Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Multi File editing
Ceniza:
I love the idea, but it's the Don who has the last word about it.
MortenMacFly:
I clearly vote for it and I already had some discussions with "the Don" about it. It seems he is willing to accept. In the end it's a major new (cool) feature. I am already using it in daily work... ;-)
mariocup:
I would cleary vote for it. I am using it on my personal PC and it is a real benefit for me and if you are used to it you can't live without it. :D
I think that CB has so many users that a willing in testing, so if the feature is added, then it should be soon quite stable.
I suggest that we keep the split view feature, since sometimes it makes sense to see different parts of the same file, if a software module contains a lot of lines and navigating with bookmarks is to annoying.
I do not know if wxAuiNotebook support the following feature but if so we should think about it.
If you open the different files in multiple views it could be helpful to have a minimize button for the different views.
Bye,
Mario
mandrav:
--- Quote from: Der Meister on June 25, 2008, 06:57:02 pm ---Before I put more effort into this I would like to ask the devs a question: Is this patch desired and will it be applied somewhere in the future? I know it won't be applied immediately because this patch implies big changes (MortenMacFly already named the issues) but I don't want to sacrifice a lot of work for it if no one is willing to apply it to the main codeline.
--- End quote ---
We were planning to move completely to wxAuiNotebook anyway (which would already be an API breaking change) so the answer is 'yes': when this patch reaches a mature state it will be applied to trunk.
Btw, there's a hack for this sort of thing already in trunk/src/src/app.cpp. At the very bottom of the file. That would be a nice place to start looking for this editor-focus problem (don't know, maybe it's the cause too, have a look).
Der Meister:
No, it's not the cause. And the Linux-hack doesn't do anything for me.
However, I found the cause for this focus bug: The problem is in EditorManager::SetActiveEditor. This function first gave the active editor the focus and then updated the selection of the notebook. But when changing the selected page wxAuiNotebook sets the focus to the tab of the selected page and therefore removes the focus from the editor. Changing the order of these two steps (e.g. first select the page and then set the focus to the editor) fixed this problem.
Edit: I just updated the patch to reflect the current status of my working copy
Already done/already working:
* Completly replaced wxFlatNotebook with wxAuiNotebook
* Splitting the notebook to allow editing of multiple files (already worked with the first version of the patch)
* Focus bug should be solved
* Splitting of an editor is possible again
What doesn't work yet/needs to be done:
* Project files update
* Saving the layout of the editors
* Styling of the notebooks. Currently 'Settings->Environment->Notebook appearance' has just no effect.
The patch is quit big this time because I deleted the complete wxFlatNotebook sources and this is included in the diff and accounts for about 90% of the patch. Some contrib plugins need additional patches. Most of these patches are trivial, except for wxSmith.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version