author | koda |
Fri, 17 Feb 2012 17:43:59 +0100 | |
changeset 6699 | 83dd3447a212 |
parent 6616 | f77bb02b669f |
child 6700 | e04da46ee43c |
permissions | -rw-r--r-- |
6561 | 1 |
/* |
2 |
* Hedgewars, a free turn based strategy game |
|
3 |
* Copyright (c) 2006-2011 Andrey Korotaev <unC0Rr@gmail.com> |
|
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 |
*/ |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6561
diff
changeset
|
18 |
|
6561 | 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(); |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6561
diff
changeset
|
31 |
|
6561 | 32 |
info = new QLabel(); |
33 |
info->setText( |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6561
diff
changeset
|
34 |
"<style type=\"text/css\">" |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6561
diff
changeset
|
35 |
"a { color: #ffcc00; }" |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6561
diff
changeset
|
36 |
"</style>" |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6561
diff
changeset
|
37 |
"<div align=\"center\"><h1>Please give us a feedback!</h1>" |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6561
diff
changeset
|
38 |
"<h3>We are always happy about suggestions, ideas or bug reports.<h3>" |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6561
diff
changeset
|
39 |
"<h4>The feedback will be posted as a new issue on our Google Code page.<h4>" |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6561
diff
changeset
|
40 |
"</div>" |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6561
diff
changeset
|
41 |
); |
6561 | 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(); |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6561
diff
changeset
|
64 |
|
6561 | 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 |
} |