MagicSmoke
$VERSION$
|
This is a helper for parsing seat plans: it defines a row of seats. More...
#include <srcMOSeatPlanRow.h>
Public Member Functions | |
MOSeatPlanRow () | |
default constructor: constructs an invalid instance of MOSeatPlanRow More... | |
MOSeatPlanRow (const MOSeatPlanRow &) | |
copy constructor: creates a (deep) copy of the object More... | |
MOSeatPlanRow (const QDomElement &) | |
special constructor: create from the XML representation, deserializing the object More... | |
virtual | ~MOSeatPlanRow () |
destructor: deletes this copy of the object More... | |
virtual Nullable< QString > | bgcolor () const |
GUI: background color for seats. More... | |
virtual Nullable< qint64 > | capacity () const |
amount of seats in this (part of the) row More... | |
virtual Nullable< QString > | fgcolor () const |
GUI: foreground color, the one the seat number is rendered in. More... | |
virtual Nullable< qint64 > | first () const |
number of the first seat in this row More... | |
virtual Nullable< QString > | geo () const |
GUI: geometry information for the row. More... | |
virtual Nullable< QString > | id () const |
the ID of this group, if multiple row elements with the same ID exist, they refer to different sections of the same row More... | |
MOSeatPlanRow & | operator= (const MOSeatPlanRow &) |
copy assignment: creates a (deep) copy of the object More... | |
virtual void | setbgcolor (Nullable< QString > s) |
GUI: background color for seats. More... | |
virtual void | setcapacity (Nullable< qint64 > s) |
amount of seats in this (part of the) row More... | |
virtual void | setfgcolor (Nullable< QString > s) |
GUI: foreground color, the one the seat number is rendered in. More... | |
virtual void | setfirst (Nullable< qint64 > s) |
number of the first seat in this row More... | |
virtual void | setgeo (Nullable< QString > s) |
GUI: geometry information for the row. More... | |
virtual void | setid (Nullable< QString > s) |
the ID of this group, if multiple row elements with the same ID exist, they refer to different sections of the same row More... | |
QString | toString () |
Serializes the object to XML and returns the string representation of that XML. More... | |
QDomElement | toXml (QDomDocument &doc, QString name="SeatPlanRow") |
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 MOSeatPlanRow | fromString (const QString &) |
create MOSeatPlanRow from XML formatted string (inverse of toString) More... | |
static MOSeatPlanRow | fromXml (const QDomElement &) |
create MOSeatPlanRow from XML (inverse of toXml) More... | |
Protected Attributes | |
Nullable< QString > | mp_bgcolor |
Nullable< qint64 > | mp_capacity |
Nullable< QString > | mp_fgcolor |
Nullable< qint64 > | mp_first |
Nullable< QString > | mp_geo |
Nullable< QString > | mp_id |
This is a helper for parsing seat plans: it defines a row of seats.
|
inline |
default constructor: constructs an invalid instance of MOSeatPlanRow
Referenced by fromString(), and fromXml().
MOSeatPlanRow::MOSeatPlanRow | ( | const MOSeatPlanRow & | o | ) |
copy constructor: creates a (deep) copy of the object
References mp_bgcolor, mp_capacity, mp_fgcolor, mp_first, mp_geo, and mp_id.
|
explicit |
special constructor: create from the XML representation, deserializing the object
References setbgcolor(), setcapacity(), setfgcolor(), setfirst(), setgeo(), and setid().
|
inlinevirtual |
destructor: deletes this copy of the object
|
inlinevirtual |
GUI: background color for seats.
|
inlinevirtual |
amount of seats in this (part of the) row
|
inlinevirtual |
GUI: foreground color, the one the seat number is rendered in.
|
inlinevirtual |
number of the first seat in this row
|
static |
create MOSeatPlanRow from XML formatted string (inverse of toString)
References MOSeatPlanRow().
|
static |
create MOSeatPlanRow from XML (inverse of toXml)
References MOSeatPlanRow().
|
inlinevirtual |
GUI: geometry information for the row.
|
inlinevirtual |
the ID of this group, if multiple row elements with the same ID exist, they refer to different sections of the same row
MOSeatPlanRow & MOSeatPlanRow::operator= | ( | const MOSeatPlanRow & | o | ) |
copy assignment: creates a (deep) copy of the object
References mp_bgcolor, mp_capacity, mp_fgcolor, mp_first, mp_geo, and mp_id.
|
inlinevirtual |
GUI: background color for seats.
Referenced by MOSeatPlanRow().
|
inlinevirtual |
amount of seats in this (part of the) row
Referenced by MOSeatPlanRow().
|
inlinevirtual |
GUI: foreground color, the one the seat number is rendered in.
Referenced by MOSeatPlanRow().
|
inlinevirtual |
number of the first seat in this row
Referenced by MOSeatPlanRow().
|
inlinevirtual |
GUI: geometry information for the row.
Referenced by MOSeatPlanRow().
|
inlinevirtual |
the ID of this group, if multiple row elements with the same ID exist, they refer to different sections of the same row
Referenced by MOSeatPlanRow().
QString MOSeatPlanRow::toString | ( | ) |
Serializes the object to XML and returns the string representation of that XML.
References toXml().
QDomElement MOSeatPlanRow::toXml | ( | QDomDocument & | doc, |
QString | name = "SeatPlanRow" |
||
) |
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 "MOSeatPlanRow" is used |
Referenced by toString().
void MOSeatPlanRow::toXml | ( | QDomDocument & | doc, |
QDomElement & | r | ||
) |
Serializes the object into the given element.
References mp_bgcolor, mp_capacity, mp_fgcolor, mp_first, mp_geo, and mp_id.
|
protected |
Referenced by MOSeatPlanRow(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanRow(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanRow(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanRow(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanRow(), operator=(), and toXml().
|
protected |
Referenced by MOSeatPlanRow(), operator=(), and toXml().