QTfrontend/statsPage.cpp
author unc0rr
Fri, 09 Jan 2009 11:22:46 +0000
changeset 1621 d1ded2532d3f
child 1622 8e0d62727f01
permissions -rw-r--r--
- svn maintenance - add forgotten chinese engine tranlation - start refactoring stats page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1621
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
     1
/*
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
     2
 * Hedgewars, a free turn based strategy game
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
     3
 * Copyright (c) 2009 Andrey Korotaev <unC0Rr@gmail.com>
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
     4
 *
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
     8
 *
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    12
 * GNU General Public License for more details.
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    13
 *
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    17
 */
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    18
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    19
#include <QLabel>
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    20
#include <QGridLayout>
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    21
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    22
#include "statsPage.h"
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    23
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    24
PageGameStats::PageGameStats(QWidget* parent) : AbstractPage(parent)
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    25
{
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    26
	QFont * font14 = new QFont("MS Shell Dlg", 14);
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    27
	QGridLayout * pageLayout = new QGridLayout(this);
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    28
	pageLayout->setColumnStretch(0, 1);
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    29
	pageLayout->setColumnStretch(1, 1);
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    30
	pageLayout->setColumnStretch(2, 1);
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    31
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    32
	BtnBack = addButton(":/res/Exit.png", pageLayout, 1, 0, true);
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    33
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    34
	labelGameStats = new QLabel(this);
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    35
	labelGameStats->setTextFormat(Qt::RichText);
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    36
	pageLayout->addWidget(labelGameStats, 0, 0, 1, 3);
d1ded2532d3f - svn maintenance
unc0rr
parents:
diff changeset
    37
}