author | unc0rr |
Tue, 14 Nov 2006 20:39:30 +0000 | |
changeset 239 | f9adf3c73bed |
parent 184 | f97a7a3dc8f6 |
child 249 | ff85fa029541 |
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> |
|
26 |
||
27 |
class QPushButton; |
|
28 |
||
29 |
class HWMapContainer : public QWidget |
|
30 |
{ |
|
31 |
Q_OBJECT |
|
32 |
||
33 |
public: |
|
34 |
HWMapContainer(QWidget * parent=0); |
|
35 |
QString getCurrentSeed() const; |
|
36 |
||
37 |
public slots: |
|
38 |
void changeImage(); |
|
39 |
||
40 |
private slots: |
|
41 |
void setImage(const QImage newImage); |
|
42 |
||
43 |
protected: |
|
44 |
virtual void resizeEvent ( QResizeEvent * event ); |
|
45 |
||
46 |
private: |
|
47 |
QVBoxLayout mainLayout; |
|
48 |
QPushButton* imageButt; |
|
169
a78d4a552500
new more working, but still not completely working version :)
displacer
parents:
168
diff
changeset
|
49 |
HWMap* pMap; |
164 | 50 |
QString m_seed; |
51 |
}; |
|
52 |
||
53 |
#endif // _HWMAP_CONTAINER_INCLUDED |