-
Notifications
You must be signed in to change notification settings - Fork 2
/
generateground.h
85 lines (72 loc) · 2.16 KB
/
generateground.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* Copyright (C) Kreogist Dev Team
*
* 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; either version 2
* of the License, or (at your option) any later version.
*
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef GENERATEGROUND_H
#define GENERATEGROUND_H
#include "generategroundbase.h"
class QGroupBox;
class QPushButton;
class QTabWidget;
class PolygonEditor;
class GroundPreviewer;
/*!
* \brief The GenerateGround class is a default realization of
* GenerateGroundBase.
*/
class GenerateGround : public GenerateGroundBase
{
Q_OBJECT
public:
/*!
* \brief Construct ground generator widget.
* \param parent The parent widget.
*/
explicit GenerateGround(QWidget *parent = 0);
/*!
* \brief Reimplemented from GenerateGroundBase::border().
*/
QPolygonF border() const;
/*!
* \brief Reimplemented from GenerateGroundBase::barracks().
*/
QPolygonF barracks() const;
signals:
public slots:
/*!
* \brief Reimplemented from GenerateGroundBase::setBorder().
*/
void setBorder(const QPolygonF &border);
/*!
* \brief Reimplemented from GenerateGroundBase::setBarracks().
*/
void setBarracks(const QPolygonF &barracks);
protected:
/*!
* \brief Reimplemented from GenerateGroundBase::showEvent().
*/
void showEvent(QShowEvent *event);
private slots:
void retranslate();
private:
QTabWidget *m_tabManager;
PolygonEditor *m_borderEditor, *m_barracksEditor;
GroundPreviewer *m_previewer;
QGroupBox *m_previewerGroup;
QPushButton *m_okay, *m_cancel;
QPolygonF m_border, m_barracks;
};
#endif // GENERATEGROUND_H