Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
As requested: editor maximize with double-click on tab (patch to test)
Jenna:
mariocup has asked me, if it is possible to maximize the editorpane with a double-click on an editor tab.
We use wxAuiNotebook as bas-class for the (most) notebooks in C::B.
wxAuiNotebook does not give us any mouse events on tabs (except for middle-mouse-events and tab-background doubleclicked).
Middlemouse-events cannot be used here (middlemouse-click closes the editor) and the tab-background can be hidden (if many editors are open).
Some users might have seen, that I added support for tab-tooltips last weekend.
With my experience from this work, I managed to create doubleclick-events from tabs.
I would be happy if other users (and devs) can test it, to find issues, that might have slipped in.
EDIT:
Patch updated : http://forums.codeblocks.org/index.php/topic,13862.msg93524.html#msg93524
Jenna:
What I forgot, the feature can be disabled/enabled in "Settings -> Environment... -> View".
The first double-click creates a new perspective named "Code::Blocks minimal".
The default does not show anything, but the menubar and the editor panes, but it can be changed to fit the users needs, as any perspectives.
The second double-click returns to the previous perspective (if any).
If the perspective is totally messed up, the default can be recreated (as the default perspective) by deleting it (it will be recreated from scratch in this case).
MortenMacFly:
--- Quote from: jens on December 15, 2010, 12:47:44 pm ---If the perspective is totally messed up, the default can be recreated (as the default perspective) by deleting it (it will be recreated from scratch in this case).
--- End quote ---
Well something I noticed which can be reproduced as following:
- Double-click on the tab (it gets maximised)
- Choose view -> perspectives -> delete current
- Answer the "reset" option with yes
- Double-click on the tab --> nothing happens.
Thus I can only return to the default perspective when choosing "Code::Blocks default" or alike.
Jenna:
--- Quote from: MortenMacFly on December 19, 2010, 01:48:55 pm ---
--- Quote from: jens on December 15, 2010, 12:47:44 pm ---If the perspective is totally messed up, the default can be recreated (as the default perspective) by deleting it (it will be recreated from scratch in this case).
--- End quote ---
Well something I noticed which can be reproduced as following:
- Double-click on the tab (it gets maximised)
- Choose view -> perspectives -> delete current
- Answer the "reset" option with yes
- Double-click on the tab --> nothing happens.
Thus I can only return to the default perspective when choosing "Code::Blocks default" or alike.
--- End quote ---
Fixed in this (updated) patch.
It includes the minimize space spatch as described here: http://forums.codeblocks.org/index.php/topic,13826.msg93382.html#msg93382
Jenna:
Applied to trunk (svn r6934) without the minimize space patch.
This one comes later.
Navigation
[0] Message Index
[#] Next page
Go to full version