Figuring out layout properties.

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

SirTomsalot
Just popping in
Just popping in
Posts: 11
Joined: Sun Oct 05, 2014 09:42

Figuring out layout properties.

Postby SirTomsalot » Sun Oct 05, 2014 09:58

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?

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Figuring out layout properties.

Postby Kulik » Sun Oct 05, 2014 10:10

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

SirTomsalot
Just popping in
Just popping in
Posts: 11
Joined: Sun Oct 05, 2014 09:42

Re: Figuring out layout properties.

Postby SirTomsalot » Sun Oct 05, 2014 14:06

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.

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!

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Figuring out layout properties.

Postby Kulik » Mon Oct 06, 2014 09:09

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.

SirTomsalot
Just popping in
Just popping in
Posts: 11
Joined: Sun Oct 05, 2014 09:42

Re: Figuring out layout properties.

Postby SirTomsalot » Mon Oct 06, 2014 14:05

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:

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.

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: Figuring out layout properties.

Postby lucebac » Mon Oct 06, 2014 14:51

SirTomsalot wrote: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 ../

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?

SirTomsalot
Just popping in
Just popping in
Posts: 11
Joined: Sun Oct 05, 2014 09:42

Re: Figuring out layout properties.

Postby SirTomsalot » Mon Oct 06, 2014 15:39

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.

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: Figuring out layout properties.

Postby lucebac » Mon Oct 06, 2014 16:03

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 11 guests