diff -r 46a9fde631f4 -r 75db7bb8dce8 QTfrontend/ui/widget/gamecfgwidget.h --- a/QTfrontend/ui/widget/gamecfgwidget.h Wed Jan 02 11:11:49 2013 +0100 +++ b/QTfrontend/ui/widget/gamecfgwidget.h Sun Jan 27 00:28:57 2013 +0100 @@ -31,11 +31,14 @@ class QVBoxLayout; class QLabel; class QTableView; +class QTabWidget; class GameCFGWidget : public QGroupBox { Q_OBJECT + Q_PROPERTY(bool master READ isMaster WRITE setMaster) + public: GameCFGWidget(QWidget* parent); quint32 getGameFlags() const; @@ -47,11 +50,14 @@ HWMapContainer* pMapContainer; QTableView * tv; QVariant schemeData(int column) const; + bool isMaster(); public slots: void setParam(const QString & param, const QStringList & value); void fullNetConfig(); void resendSchemeData(); + void setMaster(bool master); + void setTabbed(bool tabbed); signals: void paramChanged(const QString & param, const QStringList & value); @@ -75,12 +81,24 @@ void updateModelViews(); private: - QGridLayout mainLayout; + QVBoxLayout mainLayout; QCheckBox * bindEntries; QString curNetAmmoName; QString curNetAmmo; QRegExp seedRegexp; QString m_curScript; + bool m_master; + QList m_childWidgets; + QGridLayout * GBoxOptionsLayout; + QWidget * OptionsInnerContainer; + QWidget * StackContainer; + + QWidget * mapContainerFree; + QWidget * mapContainerTabbed; + QWidget * optionsContainerFree; + QWidget * optionsContainerTabbed; + bool tabbed; + QTabWidget * tabs; void setNetAmmo(const QString& name, const QString& ammo);