Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

User interface for project glob feature

(1/8) > >>

BlueHazzard:
Hi,
i implemented a user interface and scripting interface for the project glob api, that was introduced 7 years ago, but never used over UI:
http://forums.codeblocks.org/index.php/topic,16958.0.html

i think this is a nice feature specially if you use a custom make file.. .

The implementation is currently here https://github.com/bluehazzard/codeblocks_sf/tree/test/UnitsGlob/ui/1
i will provide a patch and a ticket on SF as soon as someone shows interest....

Attached is a screenshot of the UI

oBFusCATed:
What is this control? It looks ugly. Also you need to provide an edit button.

BlueHazzard:
yes it is ugly... It is a wxGrid controll. I tried to use a wxListCtrl, but there you can not edit the second column. I did not wanted to add a second dialog, where you input the parameter and hit ok. With this control you can in place edit everything. Fast and easy...


--- Quote ---Also you need to provide an edit button.
--- End quote ---
I will try to add an "search" button in the first column that opens the path control (that one used by the project search paths)... As far as i can see this is also more easily made with the wxGrid control then the wxListCtrl. A other possibility would be wxPropGrid, but i am annoyed by the different implementations in wx2.8 and wx3.0....

More suggestions welcome

oBFusCATed:
It is common for C::B's UI to open secondary dialogs where stuff is edited. I don't know why this bothers you.

wxPG isn't that different in wx28 and 3x from the calling code. The wx3.x is just more buggy. :(

BlueHazzard:

--- Quote ---It is common for C::B's UI to open secondary dialogs where stuff is edited.
--- End quote ---
and i hate it... If you want to change one letter in 3 libraries (to add a debug "d" for example) you have to click 12 times  3x(select entry, open dialog, activate, close dialog), instead of 3 times (select entry and set cursor at correct position at the same time)... Quick copy and paste? Naaa forget it... you have open a dialog to get the value... Don't put design over usability, we have this crap everywhere in the new web and programing....


[Edit:] i have found wxDataViewCtrl  (http://docs.wxwidgets.org/trunk/classwx_data_view_ctrl.html) and will have a look into it. It look like the control we need
[Edit2:] This control is only available wx>2.9 ;(

Navigation

[0] Message Index

[#] Next page

Go to full version