Author Topic: Hidden Compilers  (Read 27118 times)

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Hidden Compilers
« on: April 16, 2013, 03:22:15 am »
I am working on making it possible for a user to hide compilers they do not use so that the list can be made smaller.  Attached is the way I plan to filter the list.  If anyone has time, I would appreciate feedback.  Specifically, should I worry about performance of any of the functions?  (I currently have not, as they will normally not be called often, and only deal with small arrays.)

(I did not yet write the GUI to set the config value "compiler/hidden_compilers" but everything else is functional.)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Hidden Compilers
« Reply #1 on: April 16, 2013, 09:40:37 am »
Comments
* cbFilteredChoice is too common name for its functionality
* I don't think you need to derive the combo, most of the times composition should be preferred over inheritance
* If I were you I'd just modify the functions which fill the combo with data it will be a lot simpler and there won't be any performance concerns
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: Hidden Compilers
« Reply #2 on: April 21, 2013, 02:19:57 pm »
...another comment: Does not compile/work on wx2.9 (no DoAppend method) - this is a blocker.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ