3 #ifndef WOBGEN_MOSeatPlanRow
4 #define WOBGEN_MOSeatPlanRow
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
19 Q_PROPERTY(Nullable<QString>
id READ
id WRITE setid)
21 Q_PROPERTY(Nullable<qint64> capacity READ capacity WRITE setcapacity)
23 Q_PROPERTY(Nullable<QString> geo READ geo WRITE setgeo)
25 Q_PROPERTY(Nullable<QString> bgcolor READ bgcolor WRITE setbgcolor)
27 Q_PROPERTY(Nullable<QString> fgcolor READ fgcolor WRITE setfgcolor)
29 Q_PROPERTY(Nullable<qint64> first READ first WRITE setfirst)
39 virtual Nullable<QString>
id()
const{
return mp_id;}
41 virtual Nullable<qint64>
capacity()
const{
return mp_capacity;}
43 virtual Nullable<QString>
geo()
const{
return mp_geo;}
45 virtual Nullable<QString>
bgcolor()
const{
return mp_bgcolor;}
47 virtual Nullable<QString>
fgcolor()
const{
return mp_fgcolor;}
49 virtual Nullable<qint64>
first()
const{
return mp_first;}
51 virtual void setid(Nullable<QString> s){mp_id=s;}
55 virtual void setgeo(Nullable<QString> s){mp_geo=s;}
57 virtual void setbgcolor(Nullable<QString> s){mp_bgcolor=s;}
59 virtual void setfgcolor(Nullable<QString> s){mp_fgcolor=s;}
61 virtual void setfirst(Nullable<qint64> s){mp_first=s;}
68 QDomElement toXml(QDomDocument&doc,QString name=
"SeatPlanRow");
70 void toXml(QDomDocument&,QDomElement&);
This is a helper for parsing seat plans: it defines a row of seats.
Definition: srcMOSeatPlanRow.h:15
virtual ~MOSeatPlanRow()
destructor: deletes this copy of the object
Definition: srcMOSeatPlanRow.h:85
virtual void setfgcolor(Nullable< QString > s)
GUI: foreground color, the one the seat number is rendered in.
Definition: srcMOSeatPlanRow.h:59
virtual Nullable< QString > geo() const
GUI: geometry information for the row.
Definition: srcMOSeatPlanRow.h:43
Nullable< qint64 > mp_capacity
Definition: srcMOSeatPlanRow.h:32
virtual void setcapacity(Nullable< qint64 > s)
amount of seats in this (part of the) row
Definition: srcMOSeatPlanRow.h:53
virtual Nullable< qint64 > first() const
number of the first seat in this row
Definition: srcMOSeatPlanRow.h:49
virtual Nullable< QString > id() const
the ID of this group, if multiple row elements with the same ID exist, they refer to different sectio...
Definition: srcMOSeatPlanRow.h:39
virtual Nullable< QString > fgcolor() const
GUI: foreground color, the one the seat number is rendered in.
Definition: srcMOSeatPlanRow.h:47
virtual void setid(Nullable< QString > s)
the ID of this group, if multiple row elements with the same ID exist, they refer to different sectio...
Definition: srcMOSeatPlanRow.h:51
Nullable< qint64 > mp_first
Definition: srcMOSeatPlanRow.h:36
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOSeatPlanRow.h:8
virtual void setfirst(Nullable< qint64 > s)
number of the first seat in this row
Definition: srcMOSeatPlanRow.h:61
Nullable< QString > mp_fgcolor
Definition: srcMOSeatPlanRow.h:35
Nullable< QString > mp_bgcolor
Definition: srcMOSeatPlanRow.h:34
virtual Nullable< QString > bgcolor() const
GUI: background color for seats.
Definition: srcMOSeatPlanRow.h:45
Q_DECLARE_METATYPE(QDomNode)
virtual void setbgcolor(Nullable< QString > s)
GUI: background color for seats.
Definition: srcMOSeatPlanRow.h:57
virtual Nullable< qint64 > capacity() const
amount of seats in this (part of the) row
Definition: srcMOSeatPlanRow.h:41
MOSeatPlanRow()
default constructor: constructs an invalid instance of MOSeatPlanRow
Definition: srcMOSeatPlanRow.h:73
Nullable< QString > mp_geo
Definition: srcMOSeatPlanRow.h:33
Nullable< QString > mp_id
Definition: srcMOSeatPlanRow.h:31
virtual void setgeo(Nullable< QString > s)
GUI: geometry information for the row.
Definition: srcMOSeatPlanRow.h:55