Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Some UI refactoring/tidy up
dmoore:
Hi guys,
I've been thinking about the following changes:
Find/Replace:
1. Possibly remove "Find uses selected text" check box <-- have no idea what this is supposed to do (the code is attributed to tiwag). We already have a scope option and if you select text before pressing control F it become the default search term. What does this do differently?
2. Add regular expression option: "." searches across newlines or within
3. Find/Replace in files: add option to specify project to search in (active or others)
Settings Dialogs:
4. Load XRC for each configuration panel on demand (i.e. as the user clicks the tab). Avoids some delay, esp. on slower Linux systems. (also means no changes written for config panels that were never opened and, hence, no changes were made).
5. Explore making the settings dialog a modeless editor tab
6. Explore replacing the settings dialog listbook with a single scrollable page where panels are folded away and unfold on click revealing their content
I have partial patches for 2 and 4.
5 & 6 I've talked about in the past and will take a bit of work, and not sure they will necessarily improve on what we have now, but worth a try (note that 4 is pretty much a pre-requisite for these)
Any thoughts?
MortenMacFly:
--- Quote from: dmoore on August 11, 2012, 05:07:31 am ---2. Add regular expression option: "." searches across newlines or within
--- End quote ---
We have that already?!
--- Quote from: dmoore on August 11, 2012, 05:07:31 am ---3. Find/Replace in files: add option to specify project to search in (active or others)
--- End quote ---
Good - also an option to search int he files of the target is something I'd like to see... ;-)
--- Quote from: dmoore on August 11, 2012, 05:07:31 am ---4. Load XRC for each configuration panel on demand
--- End quote ---
Be careful here: We have a resource loader that kind off does such things already, but its not used. Something I had in mind to investigate why that is...
--- Quote from: dmoore on August 11, 2012, 05:07:31 am ---5. Explore making the settings dialog a modeless editor tab
--- End quote ---
Again: Be careful: We disable some function s if the settings dialog is opened for good reasons. also, avoid race conditions, like changing the (project's) compiler options while compiling in the background. Modeless dialogs require to handle this carefully. As we have an event based system this is not so easy! Other than That: Fine.
--- Quote from: dmoore on August 11, 2012, 05:07:31 am ---6. Explore replacing the settings dialog listbook with a single scrollable page where panels are folded away and unfold on click revealing their content
--- End quote ---
This sounds like a very major change and I don't know how it affects plugins which provide panels as their foreign config dialogs. There was a very nice wxWidgets class though - I recall where you were able to shrink/unshrink parts of the window. But I didn't find it anymore... wxTreeSomewhat... wxScrolledSomewhat...?!
Jenna:
1. is a very useful feature, I use a lot in find and replace dialog, because you get the posibility to select a range of text and only replace a keyword in this selection. Very good for manual refactoring after copy and paste. Please do not remove !
oBFusCATed:
--- Quote from: jens on August 11, 2012, 08:34:41 am ---1. is a very useful feature, I use a lot in find and replace dialog, because you get the posibility to select a range of text and only replace a keyword in this selection. Very good for manual refactoring after copy and paste. Please do not remove !
--- End quote ---
Yes, but it is annoying that if you have accidentally selected some text and you start a search it is in this unexpected mode.
What about making it the non-automatically selected option and the user is explicitly required to switch to this mode?
I can will add 7 to the list:
7). See if it is possible to make the project properties and build options modeless or editors, so the user can edit multiple settings at once.
This will be pretty useful in multi project workspaces.
dmoore:
--- Quote from: jens on August 11, 2012, 08:34:41 am ---1. is a very useful feature, I use a lot in find and replace dialog, because you get the posibility to select a range of text and only replace a keyword in this selection. Very good for manual refactoring after copy and paste. Please do not remove !
--- End quote ---
Isn't this what "Scope: global / selected text" radio boxes let you do? In case it wasn't clear, I was referring to the check box labeled "Find uses selected text". I still can't figure out what it does.
Navigation
[0] Message Index
[#] Next page
Go to full version