QTfrontend/ui/widget/gamecfgwidget.h
branchwebgl
changeset 8444 75db7bb8dce8
parent 8424 225ede46e3dc
child 9080 9b42757d7e71
equal deleted inserted replaced
8340:46a9fde631f4 8444:75db7bb8dce8
    29 
    29 
    30 class QCheckBox;
    30 class QCheckBox;
    31 class QVBoxLayout;
    31 class QVBoxLayout;
    32 class QLabel;
    32 class QLabel;
    33 class QTableView;
    33 class QTableView;
       
    34 class QTabWidget;
    34 
    35 
    35 class GameCFGWidget : public QGroupBox
    36 class GameCFGWidget : public QGroupBox
    36 {
    37 {
    37         Q_OBJECT
    38         Q_OBJECT
       
    39 
       
    40         Q_PROPERTY(bool master READ isMaster WRITE setMaster)
    38 
    41 
    39     public:
    42     public:
    40         GameCFGWidget(QWidget* parent);
    43         GameCFGWidget(QWidget* parent);
    41         quint32 getGameFlags() const;
    44         quint32 getGameFlags() const;
    42         quint32 getInitHealth() const;
    45         quint32 getInitHealth() const;
    45         QComboBox * GameSchemes;
    48         QComboBox * GameSchemes;
    46         QComboBox * WeaponsName;
    49         QComboBox * WeaponsName;
    47         HWMapContainer* pMapContainer;
    50         HWMapContainer* pMapContainer;
    48         QTableView * tv;
    51         QTableView * tv;
    49         QVariant schemeData(int column) const;
    52         QVariant schemeData(int column) const;
       
    53         bool isMaster();
    50 
    54 
    51     public slots:
    55     public slots:
    52         void setParam(const QString & param, const QStringList & value);
    56         void setParam(const QString & param, const QStringList & value);
    53         void fullNetConfig();
    57         void fullNetConfig();
    54         void resendSchemeData();
    58         void resendSchemeData();
       
    59         void setMaster(bool master);
       
    60         void setTabbed(bool tabbed);
    55 
    61 
    56     signals:
    62     signals:
    57         void paramChanged(const QString & param, const QStringList & value);
    63         void paramChanged(const QString & param, const QStringList & value);
    58         void goToSchemes(int);
    64         void goToSchemes(int);
    59         void goToWeapons(int);
    65         void goToWeapons(int);
    73         void maze_sizeChanged(int s);
    79         void maze_sizeChanged(int s);
    74         void onDrawnMapChanged(const QByteArray & data);
    80         void onDrawnMapChanged(const QByteArray & data);
    75         void updateModelViews();
    81         void updateModelViews();
    76 
    82 
    77     private:
    83     private:
    78         QGridLayout mainLayout;
    84         QVBoxLayout mainLayout;
    79         QCheckBox * bindEntries;
    85         QCheckBox * bindEntries;
    80         QString curNetAmmoName;
    86         QString curNetAmmoName;
    81         QString curNetAmmo;
    87         QString curNetAmmo;
    82         QRegExp seedRegexp;
    88         QRegExp seedRegexp;
    83         QString m_curScript;
    89         QString m_curScript;
       
    90         bool m_master;
       
    91         QList<QWidget *> m_childWidgets;
       
    92         QGridLayout * GBoxOptionsLayout;
       
    93         QWidget * OptionsInnerContainer;
       
    94         QWidget * StackContainer;
       
    95 
       
    96         QWidget * mapContainerFree;
       
    97         QWidget * mapContainerTabbed;
       
    98         QWidget * optionsContainerFree;
       
    99         QWidget * optionsContainerTabbed;
       
   100         bool tabbed;
       
   101         QTabWidget * tabs;
    84 
   102 
    85         void setNetAmmo(const QString& name, const QString& ammo);
   103         void setNetAmmo(const QString& name, const QString& ammo);
    86 
   104 
    87 };
   105 };
    88 
   106