Page 1 of 1

Pane navigation

Posted: Fri Nov 27, 2009 12:45 pm
by cowo
Hi all
I've been using codelite for some time now and have to say it's working really well. Great job Eran & Contributors!
As I've already said on SF feature request facility one of the things I like the most in IDEs is the capability to do almost evertything without touching the mouse (yes, I'm an old school fart), so I asked for the "Open project settings" shortcut.
Besides that another feature I'd find really useful is the capability to switch the focus to different panes with the keyboard.
In this way I can quickly switch to the file list, select a new file to edit, press Return to open it in the Editor.

I requested and helped to implement a similar feature in Editra, a programmers editor:
http://svn.wxwidgets.org/svn/wx/wxPytho ... auinavi.py

I'd like to have something like that in codelite, and I am willing to help.
Comments / suggestions are welcome

Re: Pane navigation

Posted: Fri Nov 27, 2009 1:01 pm
by eranif
I also misses this feature (I am also keyboard fan) and misses it from the days I used Eclipse

I am not sure how easy it is to implement it, since i think that this should come from wxAUI (as you already mentioned)
Other than that we could hack codelite to more focus to controls instead of the pane, but this is something I would like to avoid if possible.

Have you posted this on the wx-users/wx-devl mailing list?

Btw:
I asked for the "Open project settings" shortcut.
This one is already implemented in the current trunk version.

Eran

Re: Pane navigation

Posted: Fri Nov 27, 2009 1:32 pm
by cowo
eranif wrote: I am not sure how easy it is to implement it, since i think that this should come from wxAUI (as you already mentioned)
Basically it's:
- Create a popup dialog with a list
- Populate it using wxAuiManager::GetAllPanes
- Maybe filter out some unneeded stuff
- Use SetFocus on the selected pane

Could be necessary to overload the SetFocus for some pane to explicitly focus the desired control. Think about the file list: I need the focus on the actual tree, not the tabbar.
eranif wrote: Other than that we could hack codelite to more focus to controls instead of the pane, but this is something I would like to avoid if possible.
Quite a hack, yes. Since there's the layout manager I'd use it.
eranif wrote: Have you posted this on the wx-users/wx-devl mailing list?
Nope, I'm not subscribed to the list. I posted Editra code as a suggestion since I'm happy the way it works. Give it a try and see if you like it. It's Alt+1 to navigate in panes.
eranif wrote:
I asked for the "Open project settings" shortcut.
This one is already implemented in the current trunk version.
Works just fine. Thanks!