[gluon] Review Request: metainfo branch |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/gluon Archives
]
Hi guys!
Right, i have now implemented the metainfo system which i mentioned last
week on here, and done so in the branch metainfo. Please review the changes in
this branch, as i would like to merge them into master at some point soon (i
have some code in the behavior tree components being developed for our MSc
which use it, meaning i can't easily switch away from the metainfo branch
while developing these components).
A round-up of the changes to the framework follows:
* A new class (GluonCore::MetaInfo) which contains property ranges and steps
for any arbitrary number of properties. The class is heavily documented:
http://gitorious.net/gluon/gluon/blobs/metainfo/core/metainfo.h
* Two new functions on GluonCore::GluonObject:
GluonCore::MetaInfo* metaInfo()
bool hasMetaInfo() const
metaInfo() returns the current MetaInfo for the object, or creates one if
one does not already exist. hasMetaInfo() allows for checking this without
calling metaInfo()
* SoundEmitter component has two new properties (volume and pitch) of which
one has a range (pitch, from 0.5 to 2.0 as defined by GluonAudio::Sound)
Furthermore, unrelated changes in the branch (due to mishaps with not
switching branches, my fault, but they're there):
* Woopsie on the signal connection in PropertyWidgetContainer
* GluonObject naming issues (when adding new objects)
* The QReal PWI is now used for float properties as well (the two were
copies of the same code, literally, with the class name and supported
data types changed. This is why the code for supporting multiple data
types is there to start with ;) )
--
...Dan // Leinir..
http://leinir.dk/
Co-
existence
or no
existence
- Piet Hein
---
+----------------------------------------------+
Gluon is a high-level game development library for the KDE desktop enviornment.
http://gluon.tuxfamily.org/
http://gitorious.org/gluon