Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

CBIL project: ShellExtension plugin warning

(1/4) > >>

dmoore:
don't update to revision 94 or later if you want to keep your current command settings for the ShellExtensions (or InterpretedLangs) plugin (you won't lose them, they just won't be accessible from the newest version of the plugin). I have changed the way custom shell commands are handled by the plugin to allow better menu customization of the commands. As a result, I had to change the way the commands are stored in the configuration files. If there is any interest i will write an automatic importer for the old style commands.

rev91 is the last commit to trunk that uses the old style command structure. (revs 92 and 93 add a tag for the state of the plugins as at that time)

MortenMacFly:

--- Quote from: dmoore on July 31, 2007, 04:51:28 am ---don't update to revision 94 or later [...]

--- End quote ---
I get a bunch of errors if I try to do so:

--- Code: ---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

--- End code ---
...for your reference! ;-)

With regards, Morten.

dmoore:
thanks... i haven't changed the windows project file yet - you need to remove configdialog.h/.cpp and replace with cmdconfigdialog.h/.cpp.

dmoore:
turns out it wasn't so hard to import the old Interpreter/Action settings so I've done that in recent revisions.

MortenMacFly:

--- Quote from: dmoore on August 01, 2007, 05:24:59 am ---turns out it wasn't so hard to import the old Interpreter/Action settings so I've done that in recent revisions.

--- End quote ---
Warning: In bool FileExplorer::AddTreeItems(const wxTreeItemId &ti) you do the m_Tree->Freeze(); twice, but only one m_Tree->Thaw();. This cannot be good... ;-)

In addtion two minor remarks on the Python plugin:
1.) You might want to consider the patch attached.
2.) The project file can be done a lot more "generic". You have a lot compiler/linker switches and includes that appear twice. I'd say it's "nicer" to put them on ptoject level and leave the different settings on target level only.

Anyway: I'm pretty sure you know that I like your work! ;-)

With regards, Morten.

Edit: BTW: After removing the duplicated Thaw I was able to see the files in the file explorer again.

[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

Go to full version