[Lazarus] IDE UI consolidation (was: Re: lfm as pascal)

Mattias Gärtner nc-gaertnma at netcologne.de
Wed May 6 14:02:41 CEST 2009


Zitat von Graeme Geldenhuys <graemeg.lists at gmail.com>:

> 2009/5/6 Mattias Gärtner <nc-gaertnma at netcologne.de>:
>>
>> It's called 'procedure list' and its default key is Alt-G, which does
>> not work on all widgetsets.
>
> Do you mean the shortcut doesn't work or the actual "procedure List"
> dialog doesn't work on all widgetsets?

Alt-G does not work. With other short cuts it works.


> Since I switched from GTK1 to GTK2, "procedure list" doesn't work as
> well. I think it's due to a bug in GTK2 listview, but I haven't
> investigated further.
>
> To reproduce:
>   * Alt-G (or whatever your shortcut is - mine is always different) to
> open Procedure List.
>   * Start typing partial method name.
>   * Now press Down Arrow. This should put focus in first item in
> listview, but it doesn't. :-(
>     This used to work under GTK1.
>
> Other differences between Procedure List and Code Explorer.
>   * Procedure List jumps to Implementation section. Code Explorer to
> Interface section.

Yes. And this is needed.
Maybe jumping to implementation can be added with a modifier key. And  
an option can be added to toggle With/Without modifier and  
Interface/Implementation.


>   * Procedure list can filter by Class, non-class or All methods. I  
> don't think Code Explorer can.

Very easy to implement. Make a proposal for the gui.


>   * Procedure List can filter by "method starting with text" or
> "method containing text".
>     Not sure what Code Explorer does.

containing


>   * Procedure List, when launched puts focus where it must be - in the
> filter edit box.
>     Code Explorer - I have no idea where the focus is, I think the
> treeview (filter box might be a better idea).

Patch is welcome.


>   * In procedure list, when you press Enter to jump to a method,
> Procedure List closes and gets out of the way. Code Explorer hangs  
> around taking up screen space.

code explorer is a floating window, normally visible all the time and  
placed left or right of the source editor.


> So yes, there are plenty to discuss before any merge is to be
> considered. Please.


>> All floating windows should be dockable. We have already a docking
>
> Excellent! Can we enable docking already in Lazarus - even though it
> isn't saved and restored between sessions?

1. afaik drag&drop docking does not work on gtk. Only docking via menu item.
2. docking without restore is as useful as a lazarus without projects.  
Maybe some predefined sets can be added until someone finishes the  
restore of one of the docking managers.


Mattias




More information about the Lazarus mailing list