Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Multi File editing
Belgabor:
Sounds great. The layout saving might be a problem though, as far as I know wxAuiNotebook cannot do that. There is a patch on the Kirix forums about that though that was reported to work (I have applied it in my local wxWidgets copy, but haven't worked the functionality into my app yet).
Der Meister:
I haven't looked into this issue yet, but as I saw no obvious way for saving the layout I already feared that it might get tricky. However, patching wxWidgets is probably a no-go which means that if this is the only way for implementing this feature we would have to wait until wxWidgets officially provides an api for it.
MortenMacFly:
Ok - here are some testing results
1.) The patch does not work under Windows (it stops while trying to remove AUTHORS from wxFlatNotebook)
2.) wxContribItems is broken heavily afterwards because this relies on the wxFlatNotebook library
3.) same applies to lib_finder
4.) I had to exchange some includes with the wxAUI ones in addition to the ones in the patch (I only recall codesnippets atm).
Other that that... looks fine! ;-)
For the issues, including:
--- Quote from: Der Meister on June 27, 2008, 07:10:15 pm ---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.
--- End quote ---
The "solutions" are:
Project files update I have done.
Saving layout and the styling of notebooks remains (IMHO styling we could just remove).
"1.)" I don't know how to resolve but that's not an issue as one of the devs will just do it right when committing... ;-)
"2.)" I resolved by putting wxFlatNotebook under wxContribItems and adding a target to the wxContribItems project file accordingly.
"3.)" I resolved "not so nice" by pointing to wxContribItems. Hence it should be resolved by exchanging the wxFlatNotebook with a "default" one in lib_finder (I don't see the need for a wxFlatNotebook there). Exchanging with wxAUI is not possible atm as lib_finder does it's GUI with wxSmith which does not support wxAUI (yet)... Byo!!! ;-) So this is a work-around anyways.
"4.)" is obviously done, too.
Der Meister:
--- Quote from: MortenMacFly on July 04, 2008, 09:30:48 am ---1.) The patch does not work under Windows (it stops while trying to remove AUTHORS from wxFlatNotebook)
--- End quote ---
Well, the patch just removes these files therefore this shouldn't be a big problem.
--- Quote from: MortenMacFly on July 04, 2008, 09:30:48 am ---2.) wxContribItems is broken heavily afterwards because this relies on the wxFlatNotebook library
--- End quote ---
Yes, wxSmith might need its own copy of wxFlatNotebook to work with this patch.
--- Quote from: MortenMacFly on July 04, 2008, 09:30:48 am ---Saving layout and the styling of notebooks remains (IMHO styling we could just remove).
--- End quote ---
I wouldn't remove the sytling. I think most of it can be implemented as wxAuiNotebook gives you almost complete control over drawing the tabs. The styles used with wxFlatNotebooks should be possible to implement (possibly with borrowing some code from wxFlatNotebook ;) ). Maybe the gradient colors should be removed as wxAuiNotebook automatically grabs the wxAUI colors. The smart-tab option is also useless and I already removed it from my working copy. The option regarding the list or scroll buttons works in my working copy, too.
I will try to implement the styles and then provide another version of the patch. But this may take some time as I'm quite busy working on my diploma thesis and therefore only work on this patch in some little spare time. So don't expect an update in the next few days ;)
lexis:
Hi all.
I've found some bug with tabs drawing. If switch tabs appear at top/bottom then tab line is drawn twice. The doubled wrong tab line is drown above text window (if at top) or scroll bar (if at bottom)
I have compiled a revision 5109 from trunk with dermeister's patch updated at the 27th of July applyed. It has been compiled for Windows with mingw (gcc 3.4.2)
PS: Thank you for the work, is seems perfect!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version