I am looking into adding tab controls to the editor more fully, and I've modified the layout editor code to handle adding children of Tab Controls (as it is possible to add children in xml), however, I cannot get the added windows to show up in the tree view and to get them to save to the written xml file. Where should i look for this?
Cheers and Happy St. Patty's Day
Robo
Tab Controls
Moderators: CEGUI MVP, CEGUI Team
- Robomaniac
- Just popping in
- Posts: 2
- Joined: Wed Feb 02, 2005 01:05
- Contact:
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Re: Tab Controls
Hi,
Sounds cool I wonder, how do you add children in XML then?
I suppose you removed the "tabControl" from
the WindowContext::acceptsWindowAsChild method, in order to allow adding it?
In order to make tabs visible and saved to your files, look at the following:
For the tree view, take a look at the method "ManagerDlg::initLayoutTree", where you will see that "__auto_" windows are being denied. (I suppose that tabs are tagged like that as well, right?).
For saving, take a loot at the method "CCELayoutEditorDoc::saveWindow", which also denies the automatic children.
Good luck!
Sounds cool I wonder, how do you add children in XML then?
I suppose you removed the "tabControl" from
the WindowContext::acceptsWindowAsChild method, in order to allow adding it?
In order to make tabs visible and saved to your files, look at the following:
For the tree view, take a look at the method "ManagerDlg::initLayoutTree", where you will see that "__auto_" windows are being denied. (I suppose that tabs are tagged like that as well, right?).
For saving, take a loot at the method "CCELayoutEditorDoc::saveWindow", which also denies the automatic children.
Good luck!
- Robomaniac
- Just popping in
- Posts: 2
- Joined: Wed Feb 02, 2005 01:05
- Contact:
Re: Tab Controls
Ok, i got it to save the elements, however, i get an error on loading due to the __auto elements being created already... hm... i need some way to get the children of the tab control which aren't prefixed with __auto__ (which is everything that you create as a child of the control)
any suggestions?
any suggestions?
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Re: Tab Controls
That's the main reason why support was initially dropped. Because it also creates windows itself. It's hard to distinguisg then which windows should be added and which not.
On the other hand, i remember that children of a tab control are not added by creating a new window and setting the parent, but rather through specific methods. So how does it work then for your?
Besided, you say that your own child windows are not prefixed with __auto_, so what goes wrong then? (Maybe the answer is my comment about the specific methods instead of the parent setting?)
Can you post of XML data which fails to load, so i can have a look myself?
Thanks.
On the other hand, i remember that children of a tab control are not added by creating a new window and setting the parent, but rather through specific methods. So how does it work then for your?
Besided, you say that your own child windows are not prefixed with __auto_, so what goes wrong then? (Maybe the answer is my comment about the specific methods instead of the parent setting?)
Can you post of XML data which fails to load, so i can have a look myself?
Thanks.
Re: Tab Controls
2Robomaniac:
Hi! Nice to meet here well-known face
I want to download CELayoutEditor, but CVS is not working for me... Could you help me? (i need a direct link to the
CELayoutEditor Source download).
Can you upload it somewhere or send it me by email?
I'll be very appreciated.
My email zdimitor@pochta.ru
Hi! Nice to meet here well-known face
I want to download CELayoutEditor, but CVS is not working for me... Could you help me? (i need a direct link to the
CELayoutEditor Source download).
Can you upload it somewhere or send it me by email?
I'll be very appreciated.
My email zdimitor@pochta.ru
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Re: Tab Controls
Hi!
thanks for your interest in the sources. Please see this thread:
http://www.cegui.org.uk/modules/newbb/v ... umpost2659
Thanks,
SC.
thanks for your interest in the sources. Please see this thread:
http://www.cegui.org.uk/modules/newbb/v ... umpost2659
Thanks,
SC.
Return to “Unofficial CEGUI-Related Tools”
Who is online
Users browsing this forum: No registered users and 16 guests