Add a stub for draw map page
authorunc0rr
Sat, 11 Dec 2010 21:27:15 +0300
changeset 4500 22d06b4be225
parent 4499 d2454e4dbd03
child 4508 2a14477d1d15
Add a stub for draw map page
QTfrontend/hwform.h
QTfrontend/pages.cpp
QTfrontend/pages.h
QTfrontend/ui_hwform.cpp
QTfrontend/ui_hwform.h
--- a/QTfrontend/hwform.h	Thu Dec 09 20:35:28 2010 -0500
+++ b/QTfrontend/hwform.h	Sat Dec 11 21:27:15 2010 +0300
@@ -153,7 +153,8 @@
         ID_PAGE_SCHEME          = 16,
         ID_PAGE_ADMIN           = 17,
         ID_PAGE_NETTYPE         = 18,
-        ID_PAGE_CAMPAIGN        = 19
+        ID_PAGE_CAMPAIGN        = 19,
+        ID_PAGE_DRAWMAP         = 20
         };
     HWGame * game;
     HWNetServer* pnetserver;
--- a/QTfrontend/pages.cpp	Thu Dec 09 20:35:28 2010 -0500
+++ b/QTfrontend/pages.cpp	Sat Dec 11 21:27:15 2010 +0300
@@ -2010,3 +2010,12 @@
 
     BtnBack = addButton(":/res/Exit.png", pageLayout, 4, 0, true);
 }
+
+/////////////////////////////////////////////////
+
+PageDrawMap::PageDrawMap(QWidget* parent) : AbstractPage(parent)
+{
+    QGridLayout * pageLayout = new QGridLayout(this);
+
+    BtnBack = addButton(":/res/Exit.png", pageLayout, 0, 0, true);
+}
--- a/QTfrontend/pages.h	Thu Dec 09 20:35:28 2010 -0500
+++ b/QTfrontend/pages.h	Sat Dec 11 21:27:15 2010 +0300
@@ -572,4 +572,16 @@
     QPushButton * BtnOfficialServer;
 };
 
+
+class PageDrawMap : public AbstractPage
+{
+    Q_OBJECT
+
+public:
+    PageDrawMap(QWidget* parent = 0);
+
+    QPushButton * BtnBack;
+
+};
+
 #endif // PAGES_H
--- a/QTfrontend/ui_hwform.cpp	Thu Dec 09 20:35:28 2010 -0500
+++ b/QTfrontend/ui_hwform.cpp	Sat Dec 11 21:27:15 2010 +0300
@@ -116,4 +116,7 @@
 
     pageCampaign = new PageCampaign();
     Pages->addWidget(pageCampaign);
+
+    pageDrawMap = new PageDrawMap();
+    Pages->addWidget(pageDrawMap);
 }
--- a/QTfrontend/ui_hwform.h	Thu Dec 09 20:35:28 2010 -0500
+++ b/QTfrontend/ui_hwform.h	Sat Dec 11 21:27:15 2010 +0300
@@ -40,6 +40,7 @@
 class PageScheme;
 class PageAdmin;
 class PageNetType;
+class PageDrawMap;
 class QStackedLayout;
 class QFont;
 class QWidget;
@@ -72,6 +73,7 @@
     PageAdmin *pageAdmin;
     PageNetType *pageNetType;
     PageCampaign *pageCampaign;
+    PageDrawMap *pageDrawMap;
 
     QStackedLayout *Pages;
     QFont *font14;
@@ -79,8 +81,6 @@
     void setupUi(HWForm *HWForm);
     void SetupFonts();
     void SetupPages(QWidget *Parent, HWForm *HWForm);
-    void SetupPageNetChat(QWidget *Parent);
-    void SetupPageNetGame(QWidget *Parent);
 };
 
 #endif // UI_HWFORM_H