QTfrontend/pages.h
changeset 692 07787e748831
parent 686 494b5880989a
child 693 32a546d1eb3e
--- a/QTfrontend/pages.h	Sun Dec 30 16:51:06 2007 +0000
+++ b/QTfrontend/pages.h	Mon Jan 07 13:09:10 2008 +0000
@@ -67,6 +67,14 @@
     return butt;
   };
 
+  QPushButton* addButton(const char* btname, QGridLayout* grid, int wy, int wx, int rowSpan, int columnSpan) {
+    QPushButton* butt = new QPushButton(this);
+    butt->setFont(*font14);
+    butt->setText(QPushButton::tr(btname));
+    grid->addWidget(butt, wy, wx, rowSpan, columnSpan);
+    return butt;
+  };
+
   QPushButton* addButton(const char* btname, QBoxLayout* box, int where) {
     QPushButton* butt = new QPushButton(this);
     butt->setFont(*font14);
@@ -107,7 +115,7 @@
 	GameCFGWidget *gameCFG;
 };
 
-class PageEditTeam : public QWidget
+class PageEditTeam : public AbstractPage
 {
 	Q_OBJECT
 
@@ -145,7 +153,7 @@
 	QLabel * LBind[BINDS_NUMBER];
 };
 
-class PageMultiplayer : public QWidget
+class PageMultiplayer : public AbstractPage
 {
 	Q_OBJECT
 
@@ -158,7 +166,7 @@
 	QPushButton *BtnStartMPGame;
 };
 
-class PageOptions : public QWidget
+class PageOptions : public AbstractPage
 {
 	Q_OBJECT