Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Compiler Framework Redesign => Topic started by: Alpha on April 16, 2013, 03:22:15 am

Title: Hidden Compilers
Post by: Alpha 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.)
Title: Re: Hidden Compilers
Post by: oBFusCATed on April 16, 2013, 09:40:37 am
* 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
Title: Re: Hidden Compilers
Post by: MortenMacFly on April 21, 2013, 02:19:57 pm
...another comment: Does not compile/work on wx2.9 (no DoAppend method) - this is a blocker.