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

Some UI refactoring/tidy up

<< < (3/13) > >>

dmoore:
Returning to this... Was playing with Find/Replace. First step, I created a unified find and replace dialog that dynamically relabels relevant widgets to either "Find" or "Replace" and hides irrelevant options when it is created. This makes the UI more consistent. I will be adding the ability to search in targets and search in workspaces (fixing the current broken implementation).

A couple of Qs:
1. Is there a reason why we pre-size the replace dialog to the MinSize of the multiline text entries? This introduces a lot of ugly whitespace when the multiline option is unchecked. Why not just let the dialog grow using Fit?
2. Is there an easy way to insert widgets between radio box items in wxSmith. To handle the search scope, I wanted to do something like:


--- Code: ---o Open files
o Project files
    Project Combo\/   Target Combo\/
o Workspace
o Path

--- End code ---

dmoore:

--- Quote from: MortenMacFly on August 11, 2012, 08:28:38 am ---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...?!

--- End quote ---

wxCollapsiblePane? http://docs.wxwidgets.org/2.8/wx_wxcollapsiblepane.html

MortenMacFly:

--- Quote from: dmoore on August 21, 2012, 05:28:37 pm ---wxCollapsiblePane? http://docs.wxwidgets.org/2.8/wx_wxcollapsiblepane.html

--- End quote ---
Maybe that was it, yes. Just I recall that it didn't have buttons but tiny plusses for collapsing...?! Maybe it was an older version.

dmoore:
Here's a pretty extensive patch for Find/Replace.

What's changed:
1. Find and replace now share a common XRC file and class.
2. Layout of dialogs (still a few minor glitches with the layout that I need to fix)
3. Can now specify project and optionally a target to find/replace in (defaults to active project every time, could store last used settings)
4. Can now do replace in "search path"
5. Code::Blocks Project files (I haven't touched the make files)

Attaching 2 patches:
#1 is based on rev 8239, my working copy while I was working on these changes
#2 is based on rev 8250, the current rev

Hopefully either one will apply fine.

Please test and give me your thoughts.

[attachment deleted by admin]

dmoore:
There is an issue with my patches. Before you run them, you will first need to do:


--- Code: ---svn cp src/sdk/replacedlg.cpp  src/sdk/findreplacedlg.cpp
svn cp src/include/replacedlg.h  src/include/findreplacedlg.h

--- End code ---

I had used svn cp to do this, but the svn diff does not show up the need to copy replacedlg.* first.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version