+
+#include "pagefeedback.h"
+#include "hwconsts.h"
+
+QLayout * PageFeedback::bodyLayoutDefinition()
+{
+ QVBoxLayout * pageLayout = new QVBoxLayout();
+ QHBoxLayout * summaryLayout = new QHBoxLayout();
+
+ info = new QLabel();
+ info->setText(
+ ""
+ "Please give us a feedback!
"
+ "We are always happy about suggestions, ideas or bug reports."
+ "The feedback will be posted as a new issue on our Google Code page."
+ "
"
+ );
+ pageLayout->addWidget(info);
+
+ label_summary = new QLabel();
+ label_summary->setText(QLabel::tr("Summary "));
+ summaryLayout->addWidget(label_summary);
+ summary = new QLineEdit();
+ summaryLayout->addWidget(summary);
+ pageLayout->addLayout(summaryLayout);
+
+ label_description = new QLabel();
+ label_description->setText(QLabel::tr("Description"));
+ pageLayout->addWidget(label_description, 0, Qt::AlignHCenter);
+ description = new QTextBrowser();
+ description->setReadOnly(false);
+ pageLayout->addWidget(description);
+
+ return pageLayout;
+}
+
+QLayout * PageFeedback::footerLayoutDefinition()
+{
+ QHBoxLayout * bottomLayout = new QHBoxLayout();
+
+ bottomLayout->setStretch(0,1);
+ //TODO: create logo for send button
+ BtnSend = addButton("Send", bottomLayout, 0, false);
+ bottomLayout->insertStretch(0);
+
+ return bottomLayout;
+}
+
+void PageFeedback::connectSignals()
+{
+ //TODO
+}
+
+PageFeedback::PageFeedback(QWidget* parent) : AbstractPage(parent)
+{
+ initPage();
+
+}
diff -r ca07e6be08d0 -r b2165583cdf5 QTfrontend/ui/page/pagefeedback.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/QTfrontend/ui/page/pagefeedback.h Sat Jan 14 05:05:53 2012 +0100
@@ -0,0 +1,44 @@
+/*
+ * Hedgewars, a free turn based strategy game
+ * Copyright (c) 2006-2011 Andrey Korotaev
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
+#ifndef PAGE_FEEDBACK_H
+#define PAGE_FEEDBACK_H
+
+#include "AbstractPage.h"
+
+class PageFeedback : public AbstractPage
+{
+ Q_OBJECT
+
+public:
+ PageFeedback(QWidget * parent = 0);
+
+ QPushButton * BtnSend;
+ QLineEdit * summary;
+ QTextBrowser * description;
+ QLabel * info;
+ QLabel * label_summary;
+ QLabel * label_description;
+
+private:
+ QLayout * bodyLayoutDefinition();
+ QLayout * footerLayoutDefinition();
+ void connectSignals();
+};
+
+#endif
diff -r ca07e6be08d0 -r b2165583cdf5 QTfrontend/ui/page/pagemain.cpp
--- a/QTfrontend/ui/page/pagemain.cpp Sat Jan 14 05:03:21 2012 +0100
+++ b/QTfrontend/ui/page/pagemain.cpp Sat Jan 14 05:05:53 2012 +0100
@@ -78,6 +78,7 @@
bottomLayout->setStretch(0,1);
BtnSetup = addButton(":/res/Settings.png", bottomLayout, 1, true);
+ BtnFeedback = addButton("Feedback", bottomLayout, 0);
bottomLayout->setStretch(1,0);
return bottomLayout;
diff -r ca07e6be08d0 -r b2165583cdf5 QTfrontend/ui/page/pagemain.h
--- a/QTfrontend/ui/page/pagemain.h Sat Jan 14 05:03:21 2012 +0100
+++ b/QTfrontend/ui/page/pagemain.h Sat Jan 14 05:05:53 2012 +0100
@@ -31,6 +31,7 @@
QPushButton * BtnSinglePlayer;
QPushButton * BtnNet;
QPushButton * BtnSetup;
+ QPushButton * BtnFeedback;
QPushButton * BtnInfo;
QPushButton * BtnDataDownload;
QLabel * mainNote;
diff -r ca07e6be08d0 -r b2165583cdf5 QTfrontend/ui_hwform.cpp
--- a/QTfrontend/ui_hwform.cpp Sat Jan 14 05:03:21 2012 +0100
+++ b/QTfrontend/ui_hwform.cpp Sat Jan 14 05:05:53 2012 +0100
@@ -27,6 +27,7 @@
#include "pagetraining.h"
#include "pagenetserver.h"
#include "pageoptions.h"
+#include "pagefeedback.h"
#include "pageingame.h"
#include "pagescheme.h"
#include "pagenettype.h"
@@ -141,4 +142,7 @@
pageDataDownload = new PageDataDownload();
Pages->addWidget(pageDataDownload);
+
+ pageFeedback = new PageFeedback();
+ Pages->addWidget(pageFeedback);
}
diff -r ca07e6be08d0 -r b2165583cdf5 QTfrontend/ui_hwform.h
--- a/QTfrontend/ui_hwform.h Sat Jan 14 05:03:21 2012 +0100
+++ b/QTfrontend/ui_hwform.h Sat Jan 14 05:05:53 2012 +0100
@@ -24,6 +24,7 @@
class PageMultiplayer;
class PagePlayDemo;
class PageOptions;
+class PageFeedback;
class PageNet;
class PageNetServer;
class PageNetChat;
@@ -58,6 +59,7 @@
PageMultiplayer *pageMultiplayer;
PagePlayDemo *pagePlayDemo;
PageOptions *pageOptions;
+ PageFeedback *pageFeedback;
PageNet *pageNet;
PageNetServer * pageNetServer;
PageNetChat *pageNetChat;