Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: pauliusz on August 06, 2007, 01:37:52 am

Title: wxPropertyGrid for compiler options
Post by: pauliusz on August 06, 2007, 01:37:52 am
The thing I didn't like most in CB was compiler options dialog... So I started to implement wxPropertyGrid for it. Attached patch is the first result of my work.
I would recommend to apply [ Patch #2104 ] wxPropertyGrid 1.2.6->1.2.8 (http://developer.berlios.de/patch/?func=detailpatch&patch_id=2104&group_id=5358) before trying it out... although it should work with 1.2.6 also (I haven't tried)...

Currently I am working on problem with splitter positioning... Now you have to expand window to see checkbox'es. Maybe someone has good idea about this?

I see big potential in wxPropertyGrid since it will be possible to add combobox for CPU selection and optimization level, editbox for options like stack size and etc.

[attachment deleted by admin]
Title: Re: wxPropertyGrid for compiler options
Post by: TDragon on August 06, 2007, 02:09:49 am
This sounds pretty cool ... if it would work. Crash report attached. XP Pro SP2, wxMSW 2.8.4, C::B r4349 w/ patch 2104 and your patch.

[attachment deleted by admin]
Title: Re: wxPropertyGrid for compiler options
Post by: thomas on August 06, 2007, 09:08:42 am
Tried the very same thing some 12-13 months ago, decided to stay far away from wxPropertyGrid after fighting against it for 2 weeks.
Title: Re: wxPropertyGrid for compiler options
Post by: pauliusz on August 06, 2007, 09:49:39 am
Tried the very same thing some 12-13 months ago, decided to stay far away from wxPropertyGrid after fighting against it for 2 weeks.

What problems you were fighting with?
Title: Re: wxPropertyGrid for compiler options
Post by: pauliusz on August 06, 2007, 10:47:12 am
This sounds pretty cool ... if it would work. Crash report attached. XP Pro SP2, wxMSW 2.8.4, C::B r4349 w/ patch 2104 and your patch.

Strange... Couldn't reproduce crash with exactly the same environment.
Title: Re: wxPropertyGrid for compiler options
Post by: Biplab on August 06, 2007, 11:30:39 am
It works well and looks cool. Good work. :)

Currently I am working on problem with splitter positioning... Now you have to expand window to see checkbox'es. Maybe someone has good idea about this?

I can see the checkboxes without any resizing or moving the splitters. BTW, I'm still using wxPropGrid-1.2.6.
Title: Re: wxPropertyGrid for compiler options
Post by: pauliusz on August 07, 2007, 12:05:57 am
Improvements:
* sunken border for grid
* freeze/thaw, improves rendering speed and removes any flickering (may also fix TDragon problem)

[attachment deleted by admin]
Title: Re: wxPropertyGrid for compiler options
Post by: dmoore on August 07, 2007, 12:15:52 am
screenshot for the incredibly lazy?
Title: Re: wxPropertyGrid for compiler options
Post by: pauliusz on August 07, 2007, 12:26:31 am
screenshot for the incredibly lazy?

Here you go...

[attachment deleted by admin]
Title: Re: wxPropertyGrid for compiler options
Post by: dmoore on August 07, 2007, 12:29:51 am
 8)
Title: Re: wxPropertyGrid for compiler options
Post by: rjmyst3 on August 07, 2007, 01:33:38 am
very nice :D
Title: Re: wxPropertyGrid for compiler options
Post by: killerbot on August 07, 2007, 07:45:46 am
lazy here : can you show a screenshot, with one of those long settings : Eg : In C mose, support all ISO C90 programs.In C++ mode, remove GNU extensions that conflict with ISO C++ [-ansi] ?
Title: Re: wxPropertyGrid for compiler options
Post by: pauliusz on August 07, 2007, 10:03:07 am
lazy here : can you show a screenshot, with one of those long settings : Eg : In C mose, support all ISO C90 programs.In C++ mode, remove GNU extensions that conflict with ISO C++ [-ansi] ?

[attachment deleted by admin]
Title: Re: wxPropertyGrid for compiler options
Post by: thomas on August 07, 2007, 11:12:36 am
What problems you were fighting with?
It is seemingly impossible to make it work the way one wants it. It looks what it looks like, it places controls where it places them, and it uses the controls it uses.
If that's not exactly what you want by any chance, you're lost. True, you can adjust the font size and colour... but that is about it.