[Lazarus] Improve watches dialog [was: Re: Improve message dialog]
lazarus at mfriebe.de
Sat May 12 19:26:15 CEST 2012
On 09/05/2012 15:32, Graeme Geldenhuys wrote:
> On 9 May 2012 15:35, Martin<lazarus at mfriebe.de> wrote:
>> So the questions are (if the grid is fixed):
>> 1) what is the preferred display:
>> - treeview
>> - grid
> I would still go for the treeview as it could nicely display the
> hierarchy of properties (if supported).
After some discussion about the patch in
http://bugs.freepascal.org/view.php?id=21990 the main question to remain
was: treeview or grid
The main reason for treeview (as far as I am aware) was/is, that
additional future feature may be easier to be implemented.
But they are not implemented yet. If someone is indeed picking up work
on such features, then we can look at bringing the treeview back in
(until the grid can do it too).
For now I have done the following. (r 37259)
- For none structured long values (strings) currently a memo with
word-wrap is better(better than treeview or grid)
Allows displaying long text.
Allows copy, copy selection
- Same for memory dumps, until we have a nice viewer for mem dumps
- For structured values:
The plan is still the grid, including extending the grid for sub-nodes
Until the grid (or rather the persistent storage system) has at least
auto-size columns, the memo is used too, but without word wrap.
The data is cleaned up (methods on a single line)
I added the splitter to the persistent storage (not supported by
docking) so it's width will be remembered.
I added a tool-button to toggle the entire inspect pane
- the button state is not yet persistent
- the icon is actually the icon for the stand alone inspector window. It
would be nice to free it up, so we can have a button to sent a watch to
the stand alone inspector win. But I am no gfx expert. If someone has an
More information about the Lazarus