author | unc0rr |
Fri, 24 Nov 2006 19:36:24 +0000 | |
changeset 272 | bf5240469cd1 |
parent 249 | ff85fa029541 |
child 320 | 1ee7f087195a |
permissions | -rw-r--r-- |
164 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
3 |
* Copyright (c) 2006 Igor Ulyanov <iulyanov@gmail.com> |
|
4 |
* |
|
184 | 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 |
|
164 | 8 |
* |
184 | 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. |
|
164 | 13 |
* |
184 | 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 |
|
164 | 17 |
*/ |
18 |
||
19 |
#ifndef _HWMAP_CONTAINER_INCLUDED |
|
20 |
#define _HWMAP_CONTAINER_INCLUDED |
|
21 |
||
22 |
#include "hwmap.h" |
|
23 |
||
24 |
#include <QWidget> |
|
25 |
#include <QVBoxLayout> |
|
249 | 26 |
#include <QComboBox> |
164 | 27 |
|
28 |
class QPushButton; |
|
29 |
||
249 | 30 |
class MapFileErrorException |
31 |
{ |
|
32 |
}; |
|
33 |
||
164 | 34 |
class HWMapContainer : public QWidget |
35 |
{ |
|
36 |
Q_OBJECT |
|
37 |
||
38 |
public: |
|
39 |
HWMapContainer(QWidget * parent=0); |
|
40 |
QString getCurrentSeed() const; |
|
249 | 41 |
QString getCurrentMap() const; |
42 |
QString getCurrentTheme() const; |
|
164 | 43 |
|
44 |
public slots: |
|
45 |
void changeImage(); |
|
46 |
||
47 |
private slots: |
|
48 |
void setImage(const QImage newImage); |
|
249 | 49 |
void mapChanged(int index); |
164 | 50 |
|
51 |
protected: |
|
52 |
virtual void resizeEvent ( QResizeEvent * event ); |
|
53 |
||
54 |
private: |
|
55 |
QVBoxLayout mainLayout; |
|
56 |
QPushButton* imageButt; |
|
249 | 57 |
QComboBox* chooseMap; |
169
a78d4a552500
new more working, but still not completely working version :)
displacer
parents:
168
diff
changeset
|
58 |
HWMap* pMap; |
164 | 59 |
QString m_seed; |
60 |
}; |
|
61 |
||
62 |
#endif // _HWMAP_CONTAINER_INCLUDED |