#include <arena.h>
Signals | |
void | elementAdded (ArenaElement *element) |
void | elementRemoved (ArenaElement *element) |
void | modified () |
Public Member Functions | |
ArenaElement * | addElement (const QString &elementType) |
Creates and adds an element of type elementType. | |
void | addElement (ArenaElement *element) |
Adds an existing element to this arena. | |
Arena (ArenaElementTypeRegistry *typeRegistry) | |
void | clear () |
Removes all elements from this arena. | |
ArenaElement * | contextElement (ArenaElement *element) const |
QList< ArenaElement * > | elements () |
QList< ArenaElement * > | elementsAt (const QPoint &pos) const |
void | load (const QString &filename) |
Deserializes this arena from XML. | |
void | removeElement (ArenaElement *element) |
void | save (const QString &filename) |
Serializes this arena in XML. | |
void | saveWorld (const QString &filename) |
Writes .world format-compliant XML. | |
void | saveWorldSdf (const QString &filename) |
~Arena () | |
Private Slots | |
void | slotModified () |
Private Attributes | |
QList< ArenaElement * > | m_elements |
ArenaElementTypeRegistry *const | m_typeRegistry |
Arena::Arena | ( | ArenaElementTypeRegistry * | typeRegistry | ) |
Arena::~Arena | ( | ) |
ArenaElement * Arena::addElement | ( | const QString & | elementType | ) |
void Arena::addElement | ( | ArenaElement * | element | ) |
void Arena::clear | ( | ) |
ArenaElement * Arena::contextElement | ( | ArenaElement * | element | ) | const |
void Arena::elementAdded | ( | ArenaElement * | element | ) | [signal] |
void Arena::elementRemoved | ( | ArenaElement * | element | ) | [signal] |
QList<ArenaElement*> Arena::elements | ( | ) | [inline] |
QList< ArenaElement * > Arena::elementsAt | ( | const QPoint & | pos | ) | const |
void Arena::load | ( | const QString & | filename | ) |
void Arena::modified | ( | ) | [signal] |
void Arena::removeElement | ( | ArenaElement * | element | ) |
void Arena::save | ( | const QString & | filename | ) |
void Arena::saveWorld | ( | const QString & | filename | ) |
void Arena::saveWorldSdf | ( | const QString & | filename | ) |
void Arena::slotModified | ( | ) | [private, slot] |
QList<ArenaElement*> Arena::m_elements [private] |
ArenaElementTypeRegistry* const Arena::m_typeRegistry [private] |