Hey.
I've have hard time to understand how the properties in the layout file are defined.
I can see some of the property definition at the TaharezLook.looknfeel bitBucket repository, but there are still some
unknown properties, for example:
<Window type="TaharezLook/FrameWindow" name="Frame" >
...
<Property name="Area" value="{{0.0,0},{0.650387,0},{1.0,0},{0.998062,0}}" /> <--
I cant find any reference to this "Area" property.
There is old TaharezLook property reference page, but it only has UnifiedAreaRect property.
Question: is there an updated property reference page or can i find the property definitions somewhere else?
Figuring out layout properties.
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 11
- Joined: Sun Oct 05, 2014 09:42
Re: Figuring out layout properties.
The best way to get a list of properties is to use the CEED editor. It can figure out a complete list of properties for any widget.
Properties can come from various sources:
1) C++ Widget class, most likely registered in the constructor - these are the basic properties, probably the most used ones
See https://bitbucket.org/cegui/cegui/src/f ... -8#cl-1316
2) LookNFeel definition in XML - as you remarked, you can find these in the looknfeel definitions
Properties can come from various sources:
1) C++ Widget class, most likely registered in the constructor - these are the basic properties, probably the most used ones
See https://bitbucket.org/cegui/cegui/src/f ... -8#cl-1316
2) LookNFeel definition in XML - as you remarked, you can find these in the looknfeel definitions
-
- Just popping in
- Posts: 11
- Joined: Sun Oct 05, 2014 09:42
Re: Figuring out layout properties.
CEED would be my choice also if i could make the darn thing work. I've tried to run it in two different linux computers and it always throws exceptions when creating/loading layot.
Windows version works fine, but it isn't my development environment. I'll post the error just in case someone has similar problem and maybe a solution.
In the meantime, i can use the bitbucket page for reference.
Thanks!
Windows version works fine, but it isn't my development environment. I'll post the error just in case someone has similar problem and maybe a solution.
Code: Select all
ERROR:root:Uncaught exception '<type 'exceptions.AttributeError'>'
Exception message: 'NoneType' object has no attribute 'updateFromWidget'
Traceback:
========================
File "/opt/ceed/ceed/mainwindow.py", line 1132, in slot_newLayoutDialog
autoSuffix = True)
File "/opt/ceed/ceed/mainwindow.py", line 1126, in slot_newFileDialog
self.openEditorTab(fileName)
File "/opt/ceed/ceed/mainwindow.py", line 812, in openEditorTab
editor = self.createEditorForFile(absolutePath)
File "/opt/ceed/ceed/mainwindow.py", line 770, in createEditorForFile
ret.initialise(self)
File "/opt/ceed/ceed/editors/layout/__init__.py", line 78, in initialise
self.visual.initialise(root)
File "/opt/ceed/ceed/editors/layout/visual.py", line 1293, in initialise
self.setRootWidget(rootWidget)
File "/opt/ceed/ceed/editors/layout/visual.py", line 1318, in setRootWidget
self.setRootWidgetManipulator(None)
File "/opt/ceed/ceed/editors/layout/visual.py", line 1302, in setRootWidgetManipulator
self.scene.setRootWidgetManipulator(manipulator)
File "/opt/ceed/ceed/editors/layout/visual.py", line 839, in setRootWidgetManipulator
self.rootManipulator.updateFromWidget(True)
Versions:
========================
CEED revision: c3f46f24ed30 (Martin Preisler <martin@preisler.me>)
CEED version: 0.8.1
HW architecture: ('32bit', 'ELF')
HW type: i686
HW processor: i686
OS type: Linux
OS release: 3.5.0-54-generic
OS version: #81~precise1-Ubuntu SMP Tue Jul 15 04:05:58 UTC 2014
OS Linux: ('Ubuntu', '12.04', 'precise')
SW Python: 2.7.3 (default, Feb 27 2014, 20:00:17)
[GCC 4.6.3]
SW PySide: 1.1.0
SW Qt: 4.8.1
SW PyCEGUI: 0.8.0
GL bindings version: 3.0.1b2
GL version: 4.2.0 NVIDIA 304.116
GL vendor: NVIDIA Corporation
GL renderer: GeForce GT 520/PCIe/SSE2
GL extensions:
In the meantime, i can use the bitbucket page for reference.
Thanks!
Re: Figuring out layout properties.
Code: Select all
9:57:42 Ident | mpreisler: Linux user needing help with CEED setup:
| http://cegui.org.uk/forum/viewtopic.php?f=10&t=6900
09:58:07 Ident | it seems to be a darn lot of people who have issues with CEED on linux
09:58:22 Ident | i didnt even know we had that many linux users at all :D
10:29:01 djreep81 | +1 linux user :)
10:37:31 Ident | even you djreep81 ?
10:37:33 Ident | ;_;
10:44:19 mpreisler | Ident: any idea what the guy in the thread is using? Is it CEGUI 0.8
| or default?
10:44:31 mpreisler | either way I can't reproduce the issue no matter what I try
10:50:13 Ident | CEED revision: c3f46f24ed30 (Martin Preisler <martin@preisler.me>)
10:50:15 Ident | CEED version: 0.8.1
10:54:16 mpreisler | yeah but CEGUI?
10:54:20 mpreisler | it says 0.8.0 but taht's a lie
10:54:27 mpreisler | I was too lazy to fix that so it will say 0.8.0 forever
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
11:01:17 Ident | the only way to know is to ask him
Please give me a reproducer and I will fix it.
-
- Just popping in
- Posts: 11
- Joined: Sun Oct 05, 2014 09:42
Re: Figuring out layout properties.
Okay, i'll try.
Setup:
1. Uninstall any previous CEGUI & CEED installations.
2. Proceed CEGUI & CEED installation using steps from http://cegui.org.uk/wiki/CEED with few modification (boost-python -> libboost-python-dev):
3. Install all necessary CEGUI dependencies:
4.Clone CEGUI & CEED repositories and update them to v0-8
5. Build CEGUI
6. Check CEED runwrapper script that it has correct path definitions (just in case) then run it.
7. Run ceed-gui
Repro steps:
1. Create new project and run project settings "wizard"
2. Create new layout or load old one
Result:
1. Layout editor opens as it should.
Actual result:
1. CEED throws uncaught execption and no layout editor has been opened,
though empty layout file has been created.
Here's some of my system specs:
-Computer-
Processor : 4x Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
Memory : 8266MB (3771MB used)
Operating System : Ubuntu 12.04.5 LTS
Display:
Description : VGA compatible controller
Product : GF119 [GeForce GT 520]
Vendor : NVIDIA Corporation
Edit1: added some code lines
Setup:
1. Uninstall any previous CEGUI & CEED installations.
2. Proceed CEGUI & CEED installation using steps from http://cegui.org.uk/wiki/CEED with few modification (boost-python -> libboost-python-dev):
3. Install all necessary CEGUI dependencies:
Code: Select all
apt-get install cmake python-opengl pyside-tools libboost-python-dev
4.Clone CEGUI & CEED repositories and update them to v0-8
Code: Select all
hg clone https://bitbucket.org/cegui/cegui
hg clone https://bitbucket.org/cegui/ceed
cd ceed
hg update v0-8
cd ../
cd cegui
hg update v0-8
cd ../
5. Build CEGUI
Code: Select all
mkdir cegui/build
cd cegui/build
cmake -DCEGUI_BUILD_PYTHON_MODULES=ON -DCEGUI_BUILD_RENDERER_OPENGL=ON -DCEGUI_BUILD_RENDERER_OPENGL3=ON ../
make && make install
6. Check CEED runwrapper script that it has correct path definitions (just in case) then run it.
7. Run ceed-gui
Repro steps:
1. Create new project and run project settings "wizard"
2. Create new layout or load old one
Result:
1. Layout editor opens as it should.
Actual result:
1. CEED throws uncaught execption and no layout editor has been opened,
though empty layout file has been created.
Here's some of my system specs:
-Computer-
Processor : 4x Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
Memory : 8266MB (3771MB used)
Operating System : Ubuntu 12.04.5 LTS
Display:
Description : VGA compatible controller
Product : GF119 [GeForce GT 520]
Vendor : NVIDIA Corporation
Edit1: added some code lines
Last edited by SirTomsalot on Mon Oct 06, 2014 15:42, edited 1 time in total.
Re: Figuring out layout properties.
SirTomsalot wrote:5. Build CEGUICode: Select all
mkdir cegui/build
cd cegui/build
cmake -DCEGUI_BUILD_PYTHON_MODULES=ON -DCEGUI_BUILD_RENDERER_OPENGL=ON -DCEGUI_BUILD_RENDERER_OPENGL3=ON ../
6. Check CEED runwrapper script that it has correct path definitions (just in case) then run it.
7. Run ceed-gui
Well, I hope you built CEGUI properly and not just cmake'd it?
-
- Just popping in
- Posts: 11
- Joined: Sun Oct 05, 2014 09:42
Re: Figuring out layout properties.
Well, I hope you built CEGUI properly and not just cmake'd it?
Only if it would be so simple, but alas, it was only my poor writing skills
Goin' to edit my post.
Re: Figuring out layout properties.
No problem, I just wanted to get sure...
Fortunately, I have a working Ubuntu VM that is "cegui clean" so I will try to reproduce your issues.
EDIT: I was able to reproduce your issue.
Fortunately, I have a working Ubuntu VM that is "cegui clean" so I will try to reproduce your issues.
EDIT: I was able to reproduce your issue.
Who is online
Users browsing this forum: Bing [Bot] and 34 guests