QTfrontend/pages.h
changeset 692 07787e748831
parent 686 494b5880989a
child 693 32a546d1eb3e
equal deleted inserted replaced
691:0a534a03437e 692:07787e748831
    65     butt->setText(QPushButton::tr(btname));
    65     butt->setText(QPushButton::tr(btname));
    66     grid->addWidget(butt, wy, wx);
    66     grid->addWidget(butt, wy, wx);
    67     return butt;
    67     return butt;
    68   };
    68   };
    69 
    69 
       
    70   QPushButton* addButton(const char* btname, QGridLayout* grid, int wy, int wx, int rowSpan, int columnSpan) {
       
    71     QPushButton* butt = new QPushButton(this);
       
    72     butt->setFont(*font14);
       
    73     butt->setText(QPushButton::tr(btname));
       
    74     grid->addWidget(butt, wy, wx, rowSpan, columnSpan);
       
    75     return butt;
       
    76   };
       
    77 
    70   QPushButton* addButton(const char* btname, QBoxLayout* box, int where) {
    78   QPushButton* addButton(const char* btname, QBoxLayout* box, int where) {
    71     QPushButton* butt = new QPushButton(this);
    79     QPushButton* butt = new QPushButton(this);
    72     butt->setFont(*font14);
    80     butt->setFont(*font14);
    73     butt->setText(QPushButton::tr(btname));
    81     butt->setText(QPushButton::tr(btname));
    74     box->addWidget(butt, where);
    82     box->addWidget(butt, where);
   105 	QPushButton *BtnSimpleGame;
   113 	QPushButton *BtnSimpleGame;
   106 	QPushButton *BtnBack;
   114 	QPushButton *BtnBack;
   107 	GameCFGWidget *gameCFG;
   115 	GameCFGWidget *gameCFG;
   108 };
   116 };
   109 
   117 
   110 class PageEditTeam : public QWidget
   118 class PageEditTeam : public AbstractPage
   111 {
   119 {
   112 	Q_OBJECT
   120 	Q_OBJECT
   113 
   121 
   114 public:
   122 public:
   115 	PageEditTeam(QWidget* parent = 0);
   123 	PageEditTeam(QWidget* parent = 0);
   143 
   151 
   144 private:
   152 private:
   145 	QLabel * LBind[BINDS_NUMBER];
   153 	QLabel * LBind[BINDS_NUMBER];
   146 };
   154 };
   147 
   155 
   148 class PageMultiplayer : public QWidget
   156 class PageMultiplayer : public AbstractPage
   149 {
   157 {
   150 	Q_OBJECT
   158 	Q_OBJECT
   151 
   159 
   152 public:
   160 public:
   153 	PageMultiplayer(QWidget* parent = 0);
   161 	PageMultiplayer(QWidget* parent = 0);
   156 	GameCFGWidget *gameCFG;
   164 	GameCFGWidget *gameCFG;
   157 	TeamSelWidget *teamsSelect;
   165 	TeamSelWidget *teamsSelect;
   158 	QPushButton *BtnStartMPGame;
   166 	QPushButton *BtnStartMPGame;
   159 };
   167 };
   160 
   168 
   161 class PageOptions : public QWidget
   169 class PageOptions : public AbstractPage
   162 {
   170 {
   163 	Q_OBJECT
   171 	Q_OBJECT
   164 
   172 
   165 public:
   173 public:
   166 	PageOptions(QWidget* parent = 0);
   174 	PageOptions(QWidget* parent = 0);