MagicSmoke
$VERSION$
|
This is a helper for parsing seat plans: it defines a group of rows of seats. More...
#include <srcMOSeatPlanGroupAbstract.h>
Public Member Functions | |
MOSeatPlanGroupAbstract () | |
default constructor: constructs an invalid instance of MOSeatPlanGroupAbstract More... | |
MOSeatPlanGroupAbstract (const MOSeatPlanGroupAbstract &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOSeatPlanGroupAbstract (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOSeatPlanGroupAbstract () |
destructor: deletes this copy of the object More... | |
virtual void | addRow (Nullable< MOSeatPlanRow > a) |
virtual Nullable< qint64 > | angle () const |
GUI: rotation of the group rectangle. More... | |
virtual Nullable< QString > | bgcolor () const |
GUI: background color. More... | |
virtual Nullable< QString > | capacity () const |
amount of seats in this (part of the) group More... | |
virtual void | clearRow () |
virtual Nullable< QString > | fgcolor () const |
GUI: foreground color, the one the group name is rendered in. More... | |
virtual Nullable< QString > | geo () const |
GUI: geometry information for the group. More... | |
virtual Nullable< QString > | id () const |
the ID of this group, if multiple group elements with the same ID exist, they refer to different sections of the same group More... | |
virtual Nullable< QString > | name () const |
human readable name of the group More... | |
virtual Nullable< bool > | numbered () const |
defines whether the group contains numbered seats More... | |
MOSeatPlanGroupAbstract & | operator= (const MOSeatPlanGroupAbstract &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual Nullable< QString > | price () const |
The price categories in this group. More... | |
virtual QList< MOSeatPlanRow > | Row () const |
definition of rows in this group More... | |
virtual void | setangle (Nullable< qint64 > s) |
GUI: rotation of the group rectangle. More... | |
virtual void | setbgcolor (Nullable< QString > s) |
GUI: background color. More... | |
virtual void | setcapacity (Nullable< QString > s) |
amount of seats in this (part of the) group More... | |
virtual void | setfgcolor (Nullable< QString > s) |
GUI: foreground color, the one the group name is rendered in. More... | |
virtual void | setgeo (Nullable< QString > s) |
GUI: geometry information for the group. More... | |
virtual void | setid (Nullable< QString > s) |
the ID of this group, if multiple group elements with the same ID exist, they refer to different sections of the same group More... | |
virtual void | setname (Nullable< QString > s) |
human readable name of the group More... | |
virtual void | setnumbered (Nullable< bool > s) |
defines whether the group contains numbered seats More... | |
virtual void | setprice (Nullable< QString > s) |
The price categories in this group. More... | |
virtual void | setRow (QList< MOSeatPlanRow > s) |
definition of rows in this group More... | |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="SeatPlanGroup") |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself. More... | |
void | toXml (QDomDocument &, QDomElement &) |
Serializes the object into the given element. More... | |
Static Public Member Functions | |
static MOSeatPlanGroupAbstract | fromString (const QString &) |
create MOSeatPlanGroupAbstract from XML formatted string (inverse of toString) More... | |
static MOSeatPlanGroupAbstract | fromXml (const QDomElement &) |
create MOSeatPlanGroupAbstract from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< qint64 > | mp_angle |
Nullable< QString > | mp_bgcolor |
Nullable< QString > | mp_capacity |
Nullable< QString > | mp_fgcolor |
Nullable< QString > | mp_geo |
Nullable< QString > | mp_id |
Nullable< QString > | mp_name |
Nullable< bool > | mp_numbered |
Nullable< QString > | mp_price |
QList< MOSeatPlanRow > | mp_Row |
This is a helper for parsing seat plans: it defines a group of rows of seats.
|
inline |
default constructor: constructs an invalid instance of MOSeatPlanGroupAbstract
Referenced by fromString(), and fromXml().
MOSeatPlanGroupAbstract::MOSeatPlanGroupAbstract | ( | const MOSeatPlanGroupAbstract & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_angle, mp_bgcolor, mp_capacity, mp_fgcolor, mp_geo, mp_id, mp_name, mp_numbered, mp_price, and mp_Row.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References addRow(), setangle(), setbgcolor(), setcapacity(), setfgcolor(), setgeo(), setid(), setname(), setnumbered(), and setprice().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
Referenced by MOSeatPlanGroupAbstract().
|
inlinevirtual |
GUI: rotation of the group rectangle.
|
inlinevirtual |
GUI: background color.
|
inlinevirtual |
amount of seats in this (part of the) group
|
inlinevirtual |
|
inlinevirtual |
GUI: foreground color, the one the group name is rendered in.
|
static |
create MOSeatPlanGroupAbstract from XML formatted string (inverse of toString)
References MOSeatPlanGroupAbstract().
|
static |
create MOSeatPlanGroupAbstract from XML (inverse of toXml)
References MOSeatPlanGroupAbstract().
|
inlinevirtual |
GUI: geometry information for the group.
|
inlinevirtual |
the ID of this group, if multiple group elements with the same ID exist, they refer to different sections of the same group
|
inlinevirtual |
human readable name of the group
|
inlinevirtual |
defines whether the group contains numbered seats
MOSeatPlanGroupAbstract & MOSeatPlanGroupAbstract::operator= | ( | const MOSeatPlanGroupAbstract & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_angle, mp_bgcolor, mp_capacity, mp_fgcolor, mp_geo, mp_id, mp_name, mp_numbered, mp_price, and mp_Row.
|
inlinevirtual |
The price categories in this group.
|
inlinevirtual |
definition of rows in this group
|
inlinevirtual |
GUI: rotation of the group rectangle.
Referenced by MOSeatPlanGroupAbstract().
|
inlinevirtual |
GUI: background color.
Referenced by MOSeatPlanGroupAbstract().
|
inlinevirtual |
amount of seats in this (part of the) group
Referenced by MOSeatPlanGroupAbstract().
|
inlinevirtual |
GUI: foreground color, the one the group name is rendered in.
Referenced by MOSeatPlanGroupAbstract().
|
inlinevirtual |
GUI: geometry information for the group.
Referenced by MOSeatPlanGroupAbstract().
|
inlinevirtual |
the ID of this group, if multiple group elements with the same ID exist, they refer to different sections of the same group
Referenced by MOSeatPlanGroupAbstract().
|
inlinevirtual |
human readable name of the group
Referenced by MOSeatPlanGroupAbstract().
|
inlinevirtual |
defines whether the group contains numbered seats
Referenced by MOSeatPlanGroupAbstract().
|
inlinevirtual |
The price categories in this group.
Referenced by MOSeatPlanGroupAbstract().
|
inlinevirtual |
definition of rows in this group
QString MOSeatPlanGroupAbstract::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOSeatPlanGroupAbstract::toXml | ( | QDomDocument & | doc, |
QString | name = "SeatPlanGroup" |
||
) |
Transforms the object into its XML representation, the element node returned is not appended to the document - you have to do that yourself.
doc | the DOM document node for which to generate the element |
name | the name to give the generated element, per default "MOSeatPlanGroupAbstract" is used |
Referenced by toString(), and toXml().
void MOSeatPlanGroupAbstract::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_angle, mp_bgcolor, mp_capacity, mp_fgcolor, mp_geo, mp_id, mp_name, mp_numbered, mp_price, mp_Row, and toXml().
|
protected |
Referenced by MOSeatPlanGroupAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanGroupAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanGroupAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanGroupAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanGroupAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanGroupAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanGroupAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanGroupAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanGroupAbstract(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanGroupAbstract(), operator=(), and toXml().