Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
New plugin: Project options
MortenMacFly:
A new plugin has arrived: Project Options (maybe not a very nice title, but wtf...)
What does it do?
It allows mass-manipulation of project and/or target options in a workspace or a specific project.
It is intended to cleanup projects in a workspace.
Possible use-cases:
* Search which target has a specific compiler or linker option
* Remove certain flags from all compiler options
* Add certain flags to linker options with all projects of a workspace at project level
* ...
Source code attached, place it in the "plugin" -> "contrib" folder and compile against C::B as usual.
I would welcome feedback - if people find it useful I might add it to the plugins in SVN.
gd_on:
Thanks.
I tried it.
Somme suggestions here after :
1) : you should use the macro _ instead of wxT in ProjectOptions.cpp at lines 164, 180, 242, 247, 263, 268 to allow the translation of the strings in the result window.
2) : when there are no results, nothing is displayed. It could be nice to have a windows containing the string "No results" or something more elaborated.
3) : when a result window has been displayed, could it be possible to restart directly the plugin (for example with a specific button), because if I want to try an other set of options I have to go trough the menus Extensions/Project Options.
4) : when you delete an option, it could be nice to have a summary in the result window to know exactly where the option has been deleted.
5) : the string menu "Search for NOT w/ option" is not very clear for me. I think that it's to display the results with and without this option and only for compiler options (because I don't see any difference with link options).
Nevetheless, thanks
gd_on
killerbot:
add it to trunk, people can play with it (contrib plugins), much easier to get feedback.
what do you think ?
oBFusCATed:
Some comments on the project file/naming:
1. please use lower case plus underscores to prevent any OS porting issues.
2. external dependencies are not needed here (I think), because C::B should detect them auto-magically.
3. the post build action should use devel/codeblocks instead of devel/CodeBlocks (I know we have to have two sets of projects).
oBFusCATed:
4. The code style needs fixing
!!! 5. You've named you dialog ProjectOptionsDlg which is the same as the ProjectOptionsDlg in src/src. This causes symbols collision on linux and thus a crash. You'll have to rename your dialog for now. Later we should begin using -fvisibility=hidden!
Navigation
[0] Message Index
[#] Next page
Go to full version