don't update to revision 94 or later [...]
I get a bunch of errors if I try to do so:
mingw32-g++.exe -Wall -g -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DTIXML_USE_STL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -IC:\Devel\CodeBlocks\src\include -IC:\Devel\CodeBlocks\src\include\wxscintilla\include -IC:\Devel\CodeBlocks\src\include\wxFlatNotebook\include -IC:\Devel\wxWidgets\include -IC:\Devel\wxWidgets\lib\gcc_dllUnicode\mswu -IC:\Devel\GCC345\include -c C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp -o C:\Devel\CodeBlocks\src\.objs\plugins\contrib\ShellExtensions\ConfigDialog.o
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:4: error: expected unqualified-id before numeric constant
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:5: error: expected unqualified-id before numeric constant
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:6: error: expected unqualified-id before numeric constant
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:7: error: expected unqualified-id before numeric constant
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:8: error: expected unqualified-id before numeric constant
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp: In member function `void ConfigDialog::SetDialogItems()':
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:184: error: 'struct ShellCommand' has no member named 'exec'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:185: error: 'struct ShellCommand' has no member named 'extensions'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:187: error: 'struct ShellCommand' has no member named 'actions'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:188: error: 'struct ShellCommand' has no member named 'actions'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:188: error: 'struct ShellCommand' has no member named 'actions'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:189: error: 'struct ShellCommand' has no member named 'actions'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:189: error: 'struct ShellCommand' has no member named 'actions'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:190: error: 'struct ShellCommand' has no member named 'actions'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp: In member function `void ConfigDialog::GetDialogItems()':
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:208: error: 'struct ShellCommand' has no member named 'exec'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:209: error: 'struct ShellCommand' has no member named 'extensions'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:211: error: `ShellCommandAction' was not declared in this scope
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:211: error: expected `;' before "act"
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:212: error: 'struct ShellCommand' has no member named 'actions'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:216: error: `act' was not declared in this scope
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:225: error: 'struct ShellCommand' has no member named 'actions'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:211: warning: unused variable 'ShellCommandAction'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp: In member function `void ConfigDialog::New(wxCommandEvent&)':
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:237: error: `ShellCommandAction' was not declared in this scope
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:237: error: expected `;' before "act"
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:238: error: `act' was not declared in this scope
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:242: error: 'struct ShellCommand' has no member named 'actions'
C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ConfigDialog.cpp:237: warning: unused variable 'ShellCommandAction'
Process terminated with status 1 (0 minutes, 28 seconds)
24 errors, 3 warnings
Build log saved as: C:\Devel\CodeBlocks\src\plugins\contrib\ShellExtensions\ShellExtensions_build_log.html
...for your reference! ;-)
With regards, Morten.
Hi dmoore,
I update to SVN 109 and I get the following error, while compiling the sources under windows with mingw 3.4.5. Is this a non working revision?
\ShellExtensions.dll
Info: resolving _wxEVT_COMMAND_FLATNOTEBOOK_PAGE_CLOSING by linking to __imp__wxEVT_COMMAND_FLATNOTEBOOK_PAGE_CLOSING (auto-import)
.objs\FileExplorer.o: In function `ZN12FileExplorerC2EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString':
D:/eigene_dateien/codeblocks-trunk/src/plugins/contrib/cbilplugin/ShellExtensions/FileExplorer.cpp:163: undefined reference to `FavoriteDirs::~FavoriteDirs()'
.objs\FileExplorer.o: In function `ZN12FileExplorerC1EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString':
D:/eigene_dateien/codeblocks-trunk/src/plugins/contrib/cbilplugin/ShellExtensions/FileExplorer.cpp:163: undefined reference to `FavoriteDirs::~FavoriteDirs()'
.objs\FileExplorer.o: In function `ZN12FileExplorer10ReadConfigEv':
D:/eigene_dateien/codeblocks-trunk/src/plugins/contrib/cbilplugin/ShellExtensions/FileExplorer.cpp:448: undefined reference to `FavoriteDirs::Add(FavoriteDir const&, unsigned int)'
.objs\FileExplorer.o: In function `ZN12FileExplorer13OnAddFavoriteER14wxCommandEvent':
D:/eigene_dateien/codeblocks-trunk/src/plugins/contrib/cbilplugin/ShellExtensions/FileExplorer.cpp:764: undefined reference to `FavoriteDirs::Insert(FavoriteDir const&, unsigned int, unsigned int)'
.objs\FileExplorer.o: In function `ZN12FileExplorer10OnSettingsER14wxCommandEvent':
D:/eigene_dateien/codeblocks-trunk/src/plugins/contrib/cbilplugin/ShellExtensions/FileExplorer.cpp:978: undefined reference to `FileBrowserSettings::FileBrowserSettings(FavoriteDirs const&, wxWindow*, int, wxPoint, wxSize, int)'
D:/eigene_dateien/codeblocks-trunk/src/plugins/contrib/cbilplugin/ShellExtensions/FileExplorer.cpp:984: undefined reference to `FavoriteDirs::operator=(FavoriteDirs const&)'
.objs\FileExplorer.o: In function `ZNK12wxWindowBase10IsRetainedEv':
D:/science/wxwidgets/include/wx/window.h:(.text$_ZN19FileBrowserSettingsD1Ev[FileBrowserSettings::~FileBrowserSettings()]+0x3a): undefined reference to `vtable for FileBrowserSettings'
D:/science/wxwidgets/include/wx/window.h:(.text$_ZN19FileBrowserSettingsD1Ev[FileBrowserSettings::~FileBrowserSettings()]+0x51): undefined reference to `FavoriteDirs::~FavoriteDirs()'
.objs\FileExplorer.o: In function `ZN13VCSstatearrayD2Ev':
D:/eigene_dateien/codeblocks-trunk/src/plugins/contrib/cbilplugin/ShellExtensions/FileExplorer.cpp:9: undefined reference to `FavoriteDirs::~FavoriteDirs()'
D:/eigene_dateien/codeblocks-trunk/src/plugins/contrib/cbilplugin/ShellExtensions/FileExplorer.cpp:9: undefined reference to `FavoriteDirs::~FavoriteDirs()'
D:/eigene_dateien/codeblocks-trunk/src/plugins/contrib/cbilplugin/ShellExtensions/FileExplorer.cpp:9: undefined reference to `FavoriteDirs::~FavoriteDirs()'
D:/eigene_dateien/codeblocks-trunk/src/plugins/contrib/cbilplugin/ShellExtensions/FileExplorer.cpp:9: undefined reference to `FavoriteDirs::~FavoriteDirs()'
collect2: ld returned 1 exit status
As sometimes I close the Management window (to have more space on my laptop), it would be cool to have the shell extension feature available from the editor. E.g. you have a open file and want to get the svn history of this file. So you just select the menu SVN/Status and the you get all you need. What do you think if a current active file in the editor supports the shell extension.
Another useful features is the $fname and $fext variables. Is it possible to select a file and replace the extension but a different one. Example: I want to select a C-File foo.c. The executable is foo.elf. So if I select foo.c in the editor I want to call a shell command for foo.elf.
P.S.: Hope to be able to update the docu the next week