Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
ShellExtensions deprecated, forked into FileManager and PowerShell plugins
dmoore:
I just did a small update of the plugins to fix the build problems (for win32). I've also re-enabled the styling of filename links and error output in the powershell plugin. see attached png
--- Quote from: Cryogen on April 07, 2010, 08:36:25 pm ---Once compiled, I found that File Manager seemed to work OK, except that the SVN decorators only ever show a green flash
--- End quote ---
I'm unable to reproduce the problem with svn decorators. Is svn in your path?
[attachment deleted by admin]
Cryogen:
Hi,
--- Quote from: dmoore on April 23, 2010, 07:33:45 pm ---I'm unable to reproduce the problem with svn decorators. Is svn in your path?
--- End quote ---
Sorry, I didn't see this earlier. I can't remember if it was then and I haven't looked at it recently. Busy with other things, at present. ;-)
Thanks.
stahta01:
This is a wxWidgets 2.8 without using 2.6 Compatible mode Patch to PowerShell Plugin
--- Code: ---Index: PowerShell.cpp
===================================================================
--- PowerShell.cpp (revision 347)
+++ PowerShell.cpp (working copy)
@@ -200,7 +200,7 @@
#else
wild=_T("*");
#endif
- wxFileDialog *fd=new wxFileDialog(NULL,_T("Choose the Command Target"),_T(""),_T(""),wild,wxOPEN|wxFILE_MUST_EXIST);
+ wxFileDialog *fd=new wxFileDialog(NULL,_T("Choose the Command Target"),_T(""),_T(""),wild,wxFD_OPEN|wxFD_FILE_MUST_EXIST);
if(fd->ShowModal()==wxID_OK)
{
m_RunTarget=fd->GetPath();
@@ -218,7 +218,7 @@
#else
wild=_T("*");
#endif
- wxFileDialog *fd=new wxFileDialog(NULL,_T("Choose the Command Targets"),_T(""),_T(""),wild,wxOPEN|wxFILE_MUST_EXIST|wxMULTIPLE);
+ wxFileDialog *fd=new wxFileDialog(NULL,_T("Choose the Command Targets"),_T(""),_T(""),wild,wxFD_OPEN|wxFD_FILE_MUST_EXIST|wxFD_MULTIPLE);
if(fd->ShowModal()==wxID_OK)
{
wxArrayString paths;
--- End code ---
stahta01:
Patch needed to compile PowerShell plugin without using Pre-Compiled Headers(PCH) under Windows.
Tim S.
--- Code: ---Index: se_globals.h
===================================================================
--- se_globals.h (revision 347)
+++ se_globals.h (working copy)
@@ -10,7 +10,18 @@
#endif
#include <sdk.h>
+#ifndef CB_PRECOMP
+ #include <wx/filename.h>
+ #include <logmanager.h>
+ #include <manager.h>
+ #include <editorbase.h>
+ #include <editormanager.h>
+ #include <macrosmanager.h>
+ #include <configmanager.h>
+ #include <cbproject.h>
+#endif
+
wxString GetParentDir(const wxString &path);
bool DirIsChildOf(const wxString &path, const wxString &child);
Index: shellproperties.cpp
===================================================================
--- shellproperties.cpp (revision 347)
+++ shellproperties.cpp (working copy)
@@ -1,5 +1,7 @@
#include "shellproperties.h"
+#include <configmanager.h>
+
#include <wx/arrimpl.cpp> // this is a magic incantation which must be done!
//WX_DEFINE_OBJARRAY(ShellCommandMenuVec);
WX_DEFINE_OBJARRAY(ShellCommandVec);
Index: PipedProcessCtrl.cpp
===================================================================
--- PipedProcessCtrl.cpp (revision 347)
+++ PipedProcessCtrl.cpp (working copy)
@@ -3,6 +3,7 @@
#include <wx/regex.h>
#include "PipedProcessCtrl.h"
#include <globals.h>
+#include <cbeditor.h>
////////////////////////////////////// PipedProcessCtrl /////////////////////////////////////////////
#define PP_ERROR_STYLE 1
Index: PipedProcessCtrl.h
===================================================================
--- PipedProcessCtrl.h (revision 347)
+++ PipedProcessCtrl.h (working copy)
@@ -15,6 +15,9 @@
#endif
#include <sdk.h>
+#ifndef CB_PRECOMP
+ #include <wx/wxscintilla.h>
+#endif
#include "ShellCtrlBase.h"
class PipedProcessCtrl;
--- End code ---
stahta01:
Patch needed to compile FileManager plugin without using Pre-Compiled Headers(PCH) under Windows.
Tim S.
--- Code: ---Index: FileExplorer.cpp
===================================================================
--- FileExplorer.cpp (revision 347)
+++ FileExplorer.cpp (working copy)
@@ -11,7 +11,15 @@
#include <sdk.h>
+#ifndef CB_PRECOMP
+ #include <wx/dnd.h>
+ #include <cbproject.h>
+ #include <configmanager.h>
+ #include <projectmanager.h>
+#endif
+
+#include <list>
#include <vector>
#include <iostream>
Index: FileManager.cpp
===================================================================
--- FileManager.cpp (revision 347)
+++ FileManager.cpp (working copy)
@@ -4,6 +4,11 @@
#include <wx/wxFlatNotebook/wxFlatNotebook.h>
#endif
#include <sdk.h> // Code::Blocks SDK
+#ifndef CB_PRECOMP
+ #include <cbauibook.h>
+ #include <cbproject.h>
+ #include <projectmanager.h>
+#endif
//#include <configurationpanel.h>
#include "FileManager.h"
Index: se_globals.h
===================================================================
--- se_globals.h (revision 347)
+++ se_globals.h (working copy)
@@ -8,7 +8,17 @@
#endif
#include <sdk.h>
+#ifndef CB_PRECOMP
+ #include <wx/dir.h>
+ #include <wx/filename.h>
+ #include <wx/txtstrm.h>
+ #include <editorbase.h>
+ #include <editormanager.h>
+ #include <logmanager.h>
+ #include <manager.h>
+#endif
+
wxString GetParentDir(const wxString &path);
bool DirIsChildOf(const wxString &path, const wxString &child);
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version