following the recent discussion in this thread
http://forums.codeblocks.org/index.php/topic,662.0.html
i added code to the sdk/compileroptions.cpp in order to show the compiler option switches
in the checklistbox text - in the format " descriptive text of option [-switch] "
screenshot
(http://tiwag.front.ru/codeblocks/compiler_options/options_shown.png)
patch: "sdk/compileroptions.cpp"
Index: sdk/compileroptions.cpp
===================================================================
RCS file: /cvsroot/codeblocks/codeblocks/src/sdk/compileroptions.cpp,v
retrieving revision 1.3
diff -u -r1.3 compileroptions.cpp
--- sdk/compileroptions.cpp 19 May 2005 13:16:16 -0000 1.3
+++ sdk/compileroptions.cpp 4 Aug 2005 14:07:25 -0000
@@ -79,7 +79,7 @@
if (name.IsEmpty() || (option.IsEmpty() && additionalLibs.IsEmpty()))
return;
CompOption* coption = new CompOption;
- coption->name = name;
+ coption->name = name + " [" + option + "]";
coption->option = option;
coption->additionalLibs = additionalLibs;
coption->enabled = false;
what are you out there thinking about that ?
you can use this patch, which shows compileroptions if available - otherwise linkeroptions in the [].
sdk/compileroptions.cpp patch
Index: src/sdk/compileroptions.cpp
===================================================================
RCS file: /cvsroot/codeblocks/codeblocks/src/sdk/compileroptions.cpp,v
retrieving revision 1.3
diff -u -r1.3 compileroptions.cpp
--- src/sdk/compileroptions.cpp 19 May 2005 13:16:16 -0000 1.3
+++ src/sdk/compileroptions.cpp 4 Aug 2005 18:18:46 -0000
@@ -79,7 +79,15 @@
if (name.IsEmpty() || (option.IsEmpty() && additionalLibs.IsEmpty()))
return;
CompOption* coption = new CompOption;
- coption->name = name;
+
+ wxString listboxname = name +wxT(" [");
+ if (option.IsEmpty())
+ listboxname += additionalLibs;
+ else
+ listboxname += option;
+ listboxname += wxT("]");
+
+ coption->name = listboxname;
coption->option = option;
coption->additionalLibs = additionalLibs;
coption->enabled = false;