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

User interface for project glob feature

<< < (2/8) > >>

oBFusCATed:
I doubt it would be common to want to change all entries. What would be this situation?
And consistency is a good thing. It surprises users less.

wxDVC seems like the control with the most bugs and it is also ugly.

p.s. For the libs UI you can probably make a UI based on wxTextCtrl, but editable wxListCtrl would also work. I think this was possible to have editable wxListCtrls in wx. If you're interested to test it I'd be happy to review such patch.

BlueHazzard:
Ok, i looked a bit into it:

*) wxListCtrl can not be changed, that other columns but the first can be edited (https://forums.wxwidgets.org/viewtopic.php?t=39593) The supposed way is to use the wxDataViewCtrl
*) in wx2.8 wxDataViewCtrl is implemented only rudimentary. You have to add a Data provider class ecc... It differs from the wx2.9 implementation. There is a nice interface to add columns and manage them with less code http://docs.wxwidgets.org/trunk/classwx_data_view_list_ctrl.html This class does not exist in wx2.8


--- Quote ---I doubt it would be common to want to change all entries. What would be this situation?
--- End quote ---
I gave you an example:
Changing from release to debug libraries or for example wx2.8 to wx30.
Copy and paste many paths from one project to a other over a text file... From a make file to codeblocks...
I don't know, i had so many situations where a lot editing had to be done... Editing the cbp file directly is also no real alternative because of the xml file format...
I had this problems for the library setting and i see that coming for this settings, so i wanted to mitigate this with a ui where every field is editable in place...

So what is to do?
1) If we use the  wxDataViewCtrl  i am not really willing to implement it in wx2.8. So this UI would be only for cb wx3.0 and past (it is better as now, because now is no ui for no wx version)
2) Pimp the wxGrid so that it looks better? ( kicad uses this control a lot, so we could look if they have some nice changes)
3) Use property grid.
4) Use wxListCtrl and make a separate dialog for editing (not my favorite.... Adding a other dialog... Not being able to edit in place...)
[EDIT:]
5) Using wxListCtrl  but make the whole dialog bigger so there is a wxTextCtrl for every column. You select the entry in the ListCtrl on the left and the values from the textCtrls get updated on the right... Something like this http://wxdsgn.sourceforge.net/images/tutorials/Multicolumn_table_using_virtual_wxListCtrl_Tutorial.files/image046.jpg

oBFusCATed:

--- Quote from: BlueHazzard on August 17, 2018, 06:52:44 pm ---
--- Quote ---I doubt it would be common to want to change all entries. What would be this situation?
--- End quote ---
I gave you an example:
Changing from release to debug libraries or for example wx2.8 to wx30.
Copy and paste many paths from one project to a other over a text file... From a make file to codeblocks...
I don't know, i had so many situations where a lot editing had to be done... Editing the cbp file directly is also no real alternative because of the xml file format...
I had this problems for the library setting and i see that coming for this settings, so i wanted to mitigate this with a ui where every field is editable in place...

--- End quote ---
I was talking about the glob feature. Changing libraries in bulk is more common I agree.


--- Quote from: BlueHazzard on August 17, 2018, 06:52:44 pm ---So what is to do?
1) If we use the  wxDataViewCtrl  i am not really willing to implement it in wx2.8. So this UI would be only for cb wx3.0 and past (it is better as now, because now is no ui for no wx version)
2) Pimp the wxGrid so that it looks better? ( kicad uses this control a lot, so we could look if they have some nice changes)
3) Use property grid.
4) Use wxListCtrl and make a separate dialog for editing (not my favorite.... Adding a other dialog... Not being able to edit in place...)
[EDIT:]
5) Using wxListCtrl  but make the whole dialog bigger so there is a wxTextCtrl for every column. You select the entry in the ListCtrl on the left and the values from the textCtrls get updated on the right... Something like this http://wxdsgn.sourceforge.net/images/tutorials/Multicolumn_table_using_virtual_wxListCtrl_Tutorial.files/image046.jpg

--- End quote ---
1. I don't think wxDVC it is an option until we're at 3.2. wxDVS is something that is always active on the wx's issue tracker.
2. I doubt this would work. If we use wxGrid we should accept that it will be ugly and a bit hard to use. Keep in mind that many people don't know that the last row of the watches window is editable and they are confused.
3. Could probably work, but you'll have max 3 columns and only the second is easily editable. Editing the label is annoying and hard to get right if I remember correctly.
5. It is one or two clicks better than 4, but the UI will be confusing, so I don't think this is a good option.

So, I guess you have to choose between 2 and 4...

BlueHazzard:
How about this?

killerbot:
I really like a GUI front end is being made for it.

Wrt wx28 and wx3.x, do we still want to support wx28 ?
On our windows nightlies we have switched, and let's hope by the next release we will have a more stable wx so that one will be wx3 too.
And on most linux distros by default it is already wx3x

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version