author | nemo |
Sat, 08 Nov 2014 11:26:16 -0500 | |
changeset 10472 | 8d04cebedb16 |
parent 10471 | d968b1ac130c |
child 10480 | 43c6b9cfb569 |
permissions | -rw-r--r-- |
164 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
4976 | 3 |
* Copyright (c) 2006-2007 Igor Ulyanov <iulyanov@gmail.com> |
9998 | 4 |
* Copyright (c) 2004-2014 Andrey Korotaev <unC0Rr@gmail.com> |
164 | 5 |
* |
184 | 6 |
* This program is free software; you can redistribute it and/or modify |
7 |
* it under the terms of the GNU General Public License as published by |
|
8 |
* the Free Software Foundation; version 2 of the License |
|
164 | 9 |
* |
184 | 10 |
* This program is distributed in the hope that it will be useful, |
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
164 | 14 |
* |
184 | 15 |
* You should have received a copy of the GNU General Public License |
16 |
* along with this program; if not, write to the Free Software |
|
10108
c68cf030eded
update FSF address. note: two sdl include files (by Sam Lantinga) still have the old FSF address in their copyright - but I ain't gonna touch their copyright headers
sheepluva
parents:
9998
diff
changeset
|
17 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
164 | 18 |
*/ |
19 |
||
20 |
#ifndef _HWMAP_CONTAINER_INCLUDED |
|
21 |
#define _HWMAP_CONTAINER_INCLUDED |
|
22 |
||
10462
dd3cf0c91cc9
A slider for controlling things like bumpiness of map and tunnel sizes.
nemo
parents:
10161
diff
changeset
|
23 |
#include <QByteArray> |
249 | 24 |
#include <QComboBox> |
10462
dd3cf0c91cc9
A slider for controlling things like bumpiness of map and tunnel sizes.
nemo
parents:
10161
diff
changeset
|
25 |
#include <QGridLayout> |
1802 | 26 |
#include <QLabel> |
4519 | 27 |
#include <QLineEdit> |
10462
dd3cf0c91cc9
A slider for controlling things like bumpiness of map and tunnel sizes.
nemo
parents:
10161
diff
changeset
|
28 |
#include <QSlider> |
dd3cf0c91cc9
A slider for controlling things like bumpiness of map and tunnel sizes.
nemo
parents:
10161
diff
changeset
|
29 |
#include <QVBoxLayout> |
dd3cf0c91cc9
A slider for controlling things like bumpiness of map and tunnel sizes.
nemo
parents:
10161
diff
changeset
|
30 |
#include <QWidget> |
164 | 31 |
|
6933
78d194a30520
mapContainer: use DataManager, reload maps after data update (e.g. by DLC)
sheepluva
parents:
6700
diff
changeset
|
32 |
#include "DataManager.h" |
78d194a30520
mapContainer: use DataManager, reload maps after data update (e.g. by DLC)
sheepluva
parents:
6700
diff
changeset
|
33 |
|
1210 | 34 |
#include "hwmap.h" |
4520
e7882bd1a894
Allow to draw maps in frontend and play them (only locally, some bugs to fix)
unc0rr
parents:
4519
diff
changeset
|
35 |
#include "drawmapscene.h" |
7258 | 36 |
#include "MapModel.h" |
1210 | 37 |
|
164 | 38 |
class QPushButton; |
1209 | 39 |
class IconedGroupBox; |
5289
9d18b61bd3eb
- Implement ThemesModel (load theme icons once, store in memory, don't reload from disk every time selection changes)
unc0rr
parents:
4976
diff
changeset
|
40 |
class QListView; |
6938
217ed62e872c
MapModel, various cleanups. TODO/FIXME: QComboBox separator not working with custom models
sheepluva
parents:
6937
diff
changeset
|
41 |
class SeparatorPainter; |
8377 | 42 |
class QListWidget; |
164 | 43 |
|
249 | 44 |
class MapFileErrorException |
45 |
{ |
|
46 |
}; |
|
47 |
||
164 | 48 |
class HWMapContainer : public QWidget |
49 |
{ |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
50 |
Q_OBJECT |
320 | 51 |
|
8377 | 52 |
Q_PROPERTY(bool master READ isMaster WRITE setMaster) |
53 |
||
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
54 |
public: |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
55 |
HWMapContainer(QWidget * parent=0); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
56 |
QString getCurrentSeed() const; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
57 |
QString getCurrentMap() const; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
58 |
QString getCurrentTheme() const; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
59 |
int getCurrentHHLimit() const; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
60 |
QString getCurrentScheme() const; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
61 |
QString getCurrentWeapons() const; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
62 |
quint32 getTemplateFilter() const; |
10472
8d04cebedb16
Partially hook up feature size so horrorcat has something to test.
nemo
parents:
10471
diff
changeset
|
63 |
quint32 getFeatureSize() const; |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
64 |
MapGenerator get_mapgen(void) const; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
65 |
int getMazeSize(void) const; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
66 |
bool getCurrentIsMission() const; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
67 |
QByteArray getDrawnMapData(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
68 |
DrawMapScene * getDrawMapScene(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
69 |
void mapDrawingFinished(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
70 |
QLineEdit* seedEdit; |
8377 | 71 |
bool isMaster(); |
164 | 72 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
73 |
public slots: |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
74 |
void askForGeneratedPreview(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
75 |
void setSeed(const QString & seed); |
10150
fa5c83fd0ad9
Allow lua drawn maps (shoppamap, tunnels, diagonal maze etc) to generate previews.
nemo
parents:
10108
diff
changeset
|
76 |
void setScript(const QString & script); |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
77 |
void setMap(const QString & map); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
78 |
void setTheme(const QString & theme); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
79 |
void setTemplateFilter(int); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
80 |
void setMapgen(MapGenerator m); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
81 |
void setMazeSize(int size); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
82 |
void setDrawnMapData(const QByteArray & ar); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
83 |
void setAllMapParameters(const QString & map, MapGenerator m, int mazesize, const QString & seed, int tmpl); |
6938
217ed62e872c
MapModel, various cleanups. TODO/FIXME: QComboBox separator not working with custom models
sheepluva
parents:
6937
diff
changeset
|
84 |
void updateModelViews(); |
7008
25563f054ef3
fix a previewmap-related QObject::disconnect segfault
sheepluva
parents:
6960
diff
changeset
|
85 |
void onPreviewMapDestroyed(QObject * map); |
8377 | 86 |
void setMaster(bool master); |
164 | 87 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
88 |
signals: |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
89 |
void seedChanged(const QString & seed); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
90 |
void mapChanged(const QString & map); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
91 |
void themeChanged(const QString & theme); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
92 |
void newTemplateFilter(int filter); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
93 |
void mapgenChanged(MapGenerator m); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
94 |
void mazeSizeChanged(int s); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
95 |
void drawMapRequested(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
96 |
void drawnMapChanged(const QByteArray & data); |
325 | 97 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
98 |
private slots: |
10161 | 99 |
void setImage(const QPixmap & newImage); |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
100 |
void setHHLimit(int hhLimit); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
101 |
void setRandomSeed(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
102 |
void setRandomTheme(); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
103 |
void setRandomMap(); |
10161 | 104 |
void addInfoToPreview(const QPixmap & image); |
8377 | 105 |
void setNewSeed(const QString & newSeed); |
106 |
void mapTypeChanged(int); |
|
10471
d968b1ac130c
sheepluva and unc0rr didn't like the idea of slider over preview.
nemo
parents:
10462
diff
changeset
|
107 |
void mapFeatureSizeChanged(int); |
8377 | 108 |
void showThemePrompt(); |
109 |
void updateTheme(const QModelIndex & current); |
|
110 |
void staticMapChanged(const QModelIndex & map, const QModelIndex & old = QModelIndex()); |
|
111 |
void missionMapChanged(const QModelIndex & map, const QModelIndex & old = QModelIndex()); |
|
112 |
void loadDrawing(); |
|
113 |
void showSeedPrompt(); |
|
8467 | 114 |
void previewClicked(); |
164 | 115 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
116 |
protected: |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
117 |
virtual void resizeEvent ( QResizeEvent * event ); |
9739
c2c9dd2544b8
make lazy loading of map preview a little bit less of a hack
sheepluva
parents:
9735
diff
changeset
|
118 |
virtual void showEvent ( QShowEvent * event ); |
164 | 119 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
120 |
private: |
8377 | 121 |
QVBoxLayout mainLayout; |
8467 | 122 |
QPushButton* mapPreview; |
10462
dd3cf0c91cc9
A slider for controlling things like bumpiness of map and tunnel sizes.
nemo
parents:
10161
diff
changeset
|
123 |
QSlider* mapFeatureSize; |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
124 |
QComboBox* chooseMap; |
8377 | 125 |
MapModel * m_staticMapModel; |
126 |
MapModel * m_missionMapModel; |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
127 |
IconedGroupBox* gbThemes; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
128 |
QListView* lvThemes; |
6937
7f77fa908a4e
messing with the theme model a bit (gets now auto-updated after DLC download too)
sheepluva
parents:
6933
diff
changeset
|
129 |
ThemeModel * m_themeModel; |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
130 |
HWMap* pMap; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
131 |
QString m_seed; |
10150
fa5c83fd0ad9
Allow lua drawn maps (shoppamap, tunnels, diagonal maze etc) to generate previews.
nemo
parents:
10108
diff
changeset
|
132 |
QString m_script; |
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
133 |
QPushButton* seedSet; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
134 |
QLabel* seedLabel; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
135 |
int hhLimit; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
136 |
int templateFilter; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
137 |
QPixmap hhSmall; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
138 |
QLabel* lblFilter; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
139 |
QComboBox* cbTemplateFilter; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
140 |
QLabel *maze_size_label; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
141 |
QComboBox *cbMazeSize; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
142 |
MapGenerator mapgen; |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
143 |
DrawMapScene drawMapScene; |
8377 | 144 |
QComboBox * cType; |
145 |
QListView * staticMapList; |
|
146 |
QListView * missionMapList; |
|
147 |
QListWidget * generationStyles; |
|
148 |
QListWidget * mazeStyles; |
|
149 |
QLabel * lblMapList; |
|
150 |
QLabel * lblDesc; |
|
151 |
QPushButton * btnTheme; |
|
152 |
QPushButton * btnLoadMap; |
|
153 |
QPushButton * btnEditMap; |
|
154 |
QPushButton * btnRandomize; |
|
155 |
QString selectedTheme; |
|
156 |
QPushButton * btnSeed; |
|
157 |
bool m_master; |
|
158 |
QList<QWidget *> m_childWidgets; |
|
9739
c2c9dd2544b8
make lazy loading of map preview a little bit less of a hack
sheepluva
parents:
9735
diff
changeset
|
159 |
bool m_previewEnabled; |
9744 | 160 |
bool m_missionsViewSetup; |
161 |
bool m_staticViewSetup; |
|
331 | 162 |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
163 |
void intSetSeed(const QString & seed); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
164 |
void intSetMap(const QString & map); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
165 |
void intSetMapgen(MapGenerator m); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
166 |
void intSetTemplateFilter(int); |
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
167 |
void intSetMazeSize(int size); |
8393
85bd6c7b2641
Can now change theme for static and mission maps.
dag10 <gottlieb.drew@gmail.com>
parents:
8377
diff
changeset
|
168 |
void intSetIconlessTheme(const QString & name); |
8377 | 169 |
void mapChanged(const QModelIndex & map, int type, const QModelIndex & old = QModelIndex()); |
170 |
void setMapInfo(MapModel::MapInfo mapInfo); |
|
171 |
void changeMapType(MapModel::MapType type, const QModelIndex & newMap = QModelIndex()); |
|
6616
f77bb02b669f
astyle -C -S -L -N --style=allman --recursive "QTfrontend/*.cpp" "QTfrontend/*.h"
nemo
parents:
6157
diff
changeset
|
172 |
void updatePreview(); |
8393
85bd6c7b2641
Can now change theme for static and mission maps.
dag10 <gottlieb.drew@gmail.com>
parents:
8377
diff
changeset
|
173 |
void updateThemeButtonSize(); |
9744 | 174 |
void setupMissionMapsView(); |
175 |
void setupStaticMapsView(); |
|
6938
217ed62e872c
MapModel, various cleanups. TODO/FIXME: QComboBox separator not working with custom models
sheepluva
parents:
6937
diff
changeset
|
176 |
|
217ed62e872c
MapModel, various cleanups. TODO/FIXME: QComboBox separator not working with custom models
sheepluva
parents:
6937
diff
changeset
|
177 |
MapModel::MapInfo m_mapInfo; |
8475
f605bc59c603
Initial theme selection is now random. Theme prompt now has a search input and no longer uses FlowLayout. (Resolves issue 520)
dag10
parents:
8467
diff
changeset
|
178 |
int m_themeID; |
10472
8d04cebedb16
Partially hook up feature size so horrorcat has something to test.
nemo
parents:
10471
diff
changeset
|
179 |
int m_prevMapFeatureSize; |
8d04cebedb16
Partially hook up feature size so horrorcat has something to test.
nemo
parents:
10471
diff
changeset
|
180 |
int m_mapFeatureSize; |
6940
211aca8c1f4f
decouple current theme from map theme (fixes theme confusion bugs of last commit)
sheepluva
parents:
6938
diff
changeset
|
181 |
QString m_theme; |
6960
822f8269e13f
map, theme & style selection won't be lost on data updata now (except the selected map/theme/style is deleted ofc). enabling F5 key to reload data :>
sheepluva
parents:
6952
diff
changeset
|
182 |
QString m_curMap; |
7017
19a434fc91fc
visually indicate when map preview generation is in progress.
sheepluva
parents:
7008
diff
changeset
|
183 |
|
19a434fc91fc
visually indicate when map preview generation is in progress.
sheepluva
parents:
7008
diff
changeset
|
184 |
QLinearGradient linearGrad; ///< for preview background |
19a434fc91fc
visually indicate when map preview generation is in progress.
sheepluva
parents:
7008
diff
changeset
|
185 |
QSize m_previewSize; |
164 | 186 |
}; |
187 |
||
188 |
#endif // _HWMAP_CONTAINER_INCLUDED |