6700
|
1 |
/*
|
|
2 |
* Hedgewars, a free turn based strategy game
|
6952
|
3 |
* Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com>
|
6700
|
4 |
*
|
|
5 |
* This program is free software; you can redistribute it and/or modify
|
|
6 |
* it under the terms of the GNU General Public License as published by
|
|
7 |
* the Free Software Foundation; version 2 of the License
|
|
8 |
*
|
|
9 |
* This program is distributed in the hope that it will be useful,
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 |
* GNU General Public License for more details.
|
|
13 |
*
|
|
14 |
* You should have received a copy of the GNU General Public License
|
|
15 |
* along with this program; if not, write to the Free Software
|
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
17 |
*/
|
|
18 |
|
|
19 |
#include <QHBoxLayout>
|
|
20 |
#include <QLineEdit>
|
|
21 |
#include <QTextBrowser>
|
|
22 |
#include <QLabel>
|
|
23 |
|
|
24 |
#include "pagefeedback.h"
|
|
25 |
#include "hwconsts.h"
|
|
26 |
|
|
27 |
QLayout * PageFeedback::bodyLayoutDefinition()
|
|
28 |
{
|
|
29 |
QVBoxLayout * pageLayout = new QVBoxLayout();
|
|
30 |
QHBoxLayout * summaryLayout = new QHBoxLayout();
|
|
31 |
|
|
32 |
info = new QLabel();
|
|
33 |
info->setText(
|
|
34 |
"<style type=\"text/css\">"
|
|
35 |
"a { color: #ffcc00; }"
|
|
36 |
"</style>"
|
|
37 |
"<div align=\"center\"><h1>Please give us a feedback!</h1>"
|
|
38 |
"<h3>We are always happy about suggestions, ideas or bug reports.<h3>"
|
|
39 |
"<h4>The feedback will be posted as a new issue on our Google Code page.<h4>"
|
|
40 |
"</div>"
|
|
41 |
);
|
|
42 |
pageLayout->addWidget(info);
|
|
43 |
|
|
44 |
label_summary = new QLabel();
|
|
45 |
label_summary->setText(QLabel::tr("Summary "));
|
|
46 |
summaryLayout->addWidget(label_summary);
|
|
47 |
summary = new QLineEdit();
|
|
48 |
summaryLayout->addWidget(summary);
|
|
49 |
pageLayout->addLayout(summaryLayout);
|
|
50 |
|
|
51 |
label_description = new QLabel();
|
|
52 |
label_description->setText(QLabel::tr("Description"));
|
|
53 |
pageLayout->addWidget(label_description, 0, Qt::AlignHCenter);
|
|
54 |
description = new QTextBrowser();
|
|
55 |
description->setReadOnly(false);
|
|
56 |
pageLayout->addWidget(description);
|
|
57 |
|
|
58 |
return pageLayout;
|
|
59 |
}
|
|
60 |
|
|
61 |
QLayout * PageFeedback::footerLayoutDefinition()
|
|
62 |
{
|
|
63 |
QHBoxLayout * bottomLayout = new QHBoxLayout();
|
|
64 |
|
|
65 |
bottomLayout->setStretch(0,1);
|
|
66 |
//TODO: create logo for send button
|
|
67 |
BtnSend = addButton("Send", bottomLayout, 0, false);
|
|
68 |
bottomLayout->insertStretch(0);
|
|
69 |
|
|
70 |
return bottomLayout;
|
|
71 |
}
|
|
72 |
|
|
73 |
void PageFeedback::connectSignals()
|
|
74 |
{
|
|
75 |
//TODO
|
|
76 |
}
|
|
77 |
|
|
78 |
PageFeedback::PageFeedback(QWidget* parent) : AbstractPage(parent)
|
|
79 |
{
|
|
80 |
initPage();
|
|
81 |
|
|
82 |
}
|