Author Topic: wxPropertyGrid for compiler options  (Read 8370 times)

Offline pauliusz

  • Multiple posting newcomer
  • *
  • Posts: 73
wxPropertyGrid for compiler options
« 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 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]

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: wxPropertyGrid for compiler options
« Reply #1 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]
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: wxPropertyGrid for compiler options
« Reply #2 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline pauliusz

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: wxPropertyGrid for compiler options
« Reply #3 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?

Offline pauliusz

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: wxPropertyGrid for compiler options
« Reply #4 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.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: wxPropertyGrid for compiler options
« Reply #5 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.
Be a part of the solution, not a part of the problem.

Offline pauliusz

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: wxPropertyGrid for compiler options
« Reply #6 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]

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: wxPropertyGrid for compiler options
« Reply #7 on: August 07, 2007, 12:15:52 am »
screenshot for the incredibly lazy?

Offline pauliusz

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: wxPropertyGrid for compiler options
« Reply #8 on: August 07, 2007, 12:26:31 am »
screenshot for the incredibly lazy?

Here you go...

[attachment deleted by admin]

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: wxPropertyGrid for compiler options
« Reply #9 on: August 07, 2007, 12:29:51 am »
 8)

Offline rjmyst3

  • Multiple posting newcomer
  • *
  • Posts: 117
    • wxFormBuilder
Re: wxPropertyGrid for compiler options
« Reply #10 on: August 07, 2007, 01:33:38 am »
very nice :D

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: wxPropertyGrid for compiler options
« Reply #11 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] ?

Offline pauliusz

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: wxPropertyGrid for compiler options
« Reply #12 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]

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: wxPropertyGrid for compiler options
« Reply #13 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."