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

CBIL project: ShellExtension plugin warning

<< < (2/4) > >>

dmoore:
damn svn update  :lol:

strangely doesn't seem to affect linux - i guess freeze/thaw isn't doing a lot there

thanks morten. i'll look at the python patch

dmoore:

--- Quote from: MortenMacFly on August 01, 2007, 08:27:40 am ---In addtion two minor remarks on the Python plugin:
1.) You might want to consider the patch attached.

--- End quote ---

you or someone you know want to debug read-only/"protected" files?


--- Quote ---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.

--- End quote ---

yeah, all of my project files are a bit sloppy, I will fix them, I promise... :)

MortenMacFly:

--- Quote from: dmoore on August 02, 2007, 04:10:19 pm ---
--- Quote from: MortenMacFly on August 01, 2007, 08:27:40 am ---In addtion two minor remarks on the Python plugin:
1.) You might want to consider the patch attached.

--- End quote ---
you or someone you know want to debug read-only/"protected" files?

--- End quote ---
Nope. You got that part wrong. It fixes issues with wx26 where at the file open dialog a checkbox is shown meaning "open read only". Hence this does *not* work. The patch operates the same way as on all other places accross the C::B sources: It simply disables the checkbox.
Very, very, very minor... just for consistency.

dmoore:
fair enough. (i hadn't look at prep.h before i posted...)

mariocup:
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?


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

--- End code ---

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

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version