Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: zarnce on June 27, 2007, 06:56:08 pm
-
Code::Blocks has the same issue I have with VS. If you are using multiple monitors the second monitor is basically useless. Would it be possible (is the Gui library capable) to have floating editor windows like you can with the Open File List or Management bars? I wanted to know before I went digging in the code to see if it would work.
Thanks
Zarnce
-
That's unluckily not possible at the present time. All editors are owned by a wxFlatNoteBook control, and tabs are not "floatable".
-
or put another way: if you are going to do some hacking, wxFlatNotebook would be the natural place to start.
-
Now that'd be cool. Integrating wAUI with wxFlatNotebook so we could detach for example, the compiler messages :)
-
So how much of an effort would this be? Can anyone give a decent estimation? Having multiple editor windows would be really useful. (Especially since a lot of people use multiple monitors these days - I have 3) I'm assuming that it would take a fairly large design change to make it work?
Thanks
Zarnce
-
Not much, drop wxFlatNotebook and replace it with wxAuiNotebook (or something like that)
The only drawback is that you have to drop wxFlatNotebook...
-
Would adding a parent-control for the notebook control, and let it aggregate information from the children controls. I'm not sure how you would beable to move editors from one tab control window to another ...
from (editor control)<->*(editors) to (editor control controller)<->*(editor control)<->*(editors)
-
all editors are ultimately owned by the EditorManager (even if there are notebooks etc that handle the view). there are lots of ways to implement multiple views. the main constraint is that you can't break the publicly exposed methods of EditorManager (e.g. retain the concept of an active editor etc) and you shouldn't need to touch the editor classes at all. No matter what approach you take you will not be able to avoid a pretty heavy coding session :)
-
Wow,
I have been thinking of this for some time now.
I just posted in two threads mentioning this without seeing this thread :D
This feature would be really cool :)