MagicSmoke  $VERSION$
srcMOSeatPlanGroupAbstract.h
Go to the documentation of this file.
1 //BEGIN OF AUTOMATICALLY GENERATED FILE
2 //DO NOT EDIT THIS FILE DIRECTLY, USE THE XML SOURCE!
3 #ifndef WOBGEN_MOSeatPlanGroupAbstract
4 #define WOBGEN_MOSeatPlanGroupAbstract
5 
6 
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
9 #endif
10 
11 #include "WObject"
12 #include <QCoreApplication>
13 
14 #include "MOSeatPlanRow"
17 {
18  Q_GADGET
20  Q_PROPERTY(Nullable<QString> id READ id WRITE setid)
22  Q_PROPERTY(Nullable<QString> capacity READ capacity WRITE setcapacity)
24  Q_PROPERTY(Nullable<QString> name READ name WRITE setname)
26  Q_PROPERTY(Nullable<bool> numbered READ numbered WRITE setnumbered)
28  Q_PROPERTY(Nullable<QString> geo READ geo WRITE setgeo)
30  Q_PROPERTY(Nullable<QString> bgcolor READ bgcolor WRITE setbgcolor)
32  Q_PROPERTY(Nullable<QString> fgcolor READ fgcolor WRITE setfgcolor)
34  Q_PROPERTY(Nullable<qint64> angle READ angle WRITE setangle)
36  Q_PROPERTY(QList<MOSeatPlanRow> Row READ Row WRITE setRow)
38  Q_PROPERTY(Nullable<QString> price READ price WRITE setprice)
39  protected:
40  Nullable<QString> mp_id;
41  Nullable<QString> mp_capacity;
42  Nullable<QString> mp_name;
43  Nullable<bool> mp_numbered;
44  Nullable<QString> mp_geo;
45  Nullable<QString> mp_bgcolor;
46  Nullable<QString> mp_fgcolor;
47  Nullable<qint64> mp_angle;
48  QList<MOSeatPlanRow> mp_Row;
49  Nullable<QString> mp_price;
50  public:
52  virtual Nullable<QString> id()const{return mp_id;}
54  virtual Nullable<QString> capacity()const{return mp_capacity;}
56  virtual Nullable<QString> name()const{return mp_name;}
58  virtual Nullable<bool> numbered()const{return mp_numbered;}
60  virtual Nullable<QString> geo()const{return mp_geo;}
62  virtual Nullable<QString> bgcolor()const{return mp_bgcolor;}
64  virtual Nullable<QString> fgcolor()const{return mp_fgcolor;}
66  virtual Nullable<qint64> angle()const{return mp_angle;}
68  virtual QList<MOSeatPlanRow> Row()const{return mp_Row;}
70  virtual Nullable<QString> price()const{return mp_price;}
72  virtual void setid(Nullable<QString> s){mp_id=s;}
74  virtual void setcapacity(Nullable<QString> s){mp_capacity=s;}
76  virtual void setname(Nullable<QString> s){mp_name=s;}
78  virtual void setnumbered(Nullable<bool> s){mp_numbered=s;}
80  virtual void setgeo(Nullable<QString> s){mp_geo=s;}
82  virtual void setbgcolor(Nullable<QString> s){mp_bgcolor=s;}
84  virtual void setfgcolor(Nullable<QString> s){mp_fgcolor=s;}
86  virtual void setangle(Nullable<qint64> s){mp_angle=s;}
88  virtual void setRow(QList<MOSeatPlanRow> s){mp_Row=s;}
89  virtual void clearRow(){mp_Row.clear();}
90  virtual void addRow(Nullable<MOSeatPlanRow> a){mp_Row.append(a);}
92  virtual void setprice(Nullable<QString> s){mp_price=s;}
93  public:
95  QString toString();
99  QDomElement toXml(QDomDocument&doc,QString name="SeatPlanGroup");
101  void toXml(QDomDocument&,QDomElement&);
102  public:
110  explicit MOSeatPlanGroupAbstract(const QDomElement&);
112  static MOSeatPlanGroupAbstract fromXml(const QDomElement&);
114  static MOSeatPlanGroupAbstract fromString(const QString&);
117 
118 };
122 
123 //END OF AUTOMATICALLY GENERATED FILE
124 #endif
virtual QList< MOSeatPlanRow > Row() const
definition of rows in this group
Definition: srcMOSeatPlanGroupAbstract.h:68
virtual void setid(Nullable< QString > s)
the ID of this group, if multiple group elements with the same ID exist, they refer to different sect...
Definition: srcMOSeatPlanGroupAbstract.h:72
virtual ~MOSeatPlanGroupAbstract()
destructor: deletes this copy of the object
Definition: srcMOSeatPlanGroupAbstract.h:116
Nullable< QString > mp_bgcolor
Definition: srcMOSeatPlanGroupAbstract.h:45
Nullable< QString > mp_fgcolor
Definition: srcMOSeatPlanGroupAbstract.h:46
QList< MOSeatPlanRow > mp_Row
Definition: srcMOSeatPlanGroupAbstract.h:48
virtual Nullable< QString > geo() const
GUI: geometry information for the group.
Definition: srcMOSeatPlanGroupAbstract.h:60
Nullable< QString > mp_geo
Definition: srcMOSeatPlanGroupAbstract.h:44
virtual void setangle(Nullable< qint64 > s)
GUI: rotation of the group rectangle.
Definition: srcMOSeatPlanGroupAbstract.h:86
virtual Nullable< QString > id() const
the ID of this group, if multiple group elements with the same ID exist, they refer to different sect...
Definition: srcMOSeatPlanGroupAbstract.h:52
virtual void setfgcolor(Nullable< QString > s)
GUI: foreground color, the one the group name is rendered in.
Definition: srcMOSeatPlanGroupAbstract.h:84
virtual Nullable< QString > fgcolor() const
GUI: foreground color, the one the group name is rendered in.
Definition: srcMOSeatPlanGroupAbstract.h:64
virtual void setname(Nullable< QString > s)
human readable name of the group
Definition: srcMOSeatPlanGroupAbstract.h:76
virtual void addRow(Nullable< MOSeatPlanRow > a)
Definition: srcMOSeatPlanGroupAbstract.h:90
Nullable< QString > mp_name
Definition: srcMOSeatPlanGroupAbstract.h:42
Nullable< QString > mp_capacity
Definition: srcMOSeatPlanGroupAbstract.h:41
virtual void setcapacity(Nullable< QString > s)
amount of seats in this (part of the) group
Definition: srcMOSeatPlanGroupAbstract.h:74
virtual Nullable< qint64 > angle() const
GUI: rotation of the group rectangle.
Definition: srcMOSeatPlanGroupAbstract.h:66
virtual Nullable< QString > bgcolor() const
GUI: background color.
Definition: srcMOSeatPlanGroupAbstract.h:62
Nullable< bool > mp_numbered
Definition: srcMOSeatPlanGroupAbstract.h:43
Nullable< QString > mp_price
Definition: srcMOSeatPlanGroupAbstract.h:49
virtual void setRow(QList< MOSeatPlanRow > s)
definition of rows in this group
Definition: srcMOSeatPlanGroupAbstract.h:88
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOSeatPlanGroupAbstract.h:8
virtual Nullable< bool > numbered() const
defines whether the group contains numbered seats
Definition: srcMOSeatPlanGroupAbstract.h:58
virtual Nullable< QString > price() const
The price categories in this group.
Definition: srcMOSeatPlanGroupAbstract.h:70
virtual Nullable< QString > capacity() const
amount of seats in this (part of the) group
Definition: srcMOSeatPlanGroupAbstract.h:54
Nullable< qint64 > mp_angle
Definition: srcMOSeatPlanGroupAbstract.h:47
virtual void setprice(Nullable< QString > s)
The price categories in this group.
Definition: srcMOSeatPlanGroupAbstract.h:92
Nullable< QString > mp_id
Definition: srcMOSeatPlanGroupAbstract.h:40
Q_DECLARE_METATYPE(QDomNode)
virtual Nullable< QString > name() const
human readable name of the group
Definition: srcMOSeatPlanGroupAbstract.h:56
virtual void setnumbered(Nullable< bool > s)
defines whether the group contains numbered seats
Definition: srcMOSeatPlanGroupAbstract.h:78
virtual void setbgcolor(Nullable< QString > s)
GUI: background color.
Definition: srcMOSeatPlanGroupAbstract.h:82
virtual void setgeo(Nullable< QString > s)
GUI: geometry information for the group.
Definition: srcMOSeatPlanGroupAbstract.h:80
This is a helper for parsing seat plans: it defines a group of rows of seats.
Definition: srcMOSeatPlanGroupAbstract.h:16
MOSeatPlanGroupAbstract()
default constructor: constructs an invalid instance of MOSeatPlanGroupAbstract
Definition: srcMOSeatPlanGroupAbstract.h:104
virtual void clearRow()
Definition: srcMOSeatPlanGroupAbstract.h:89