equal
deleted
inserted
replaced
33 #include "drawmapscene.h" |
33 #include "drawmapscene.h" |
34 |
34 |
35 class QPushButton; |
35 class QPushButton; |
36 class IconedGroupBox; |
36 class IconedGroupBox; |
37 class QListView; |
37 class QListView; |
|
38 class SeparatorPainter; |
38 |
39 |
39 class MapFileErrorException |
40 class MapFileErrorException |
40 { |
41 { |
41 }; |
42 }; |
42 |
43 |
69 void setTemplateFilter(int); |
70 void setTemplateFilter(int); |
70 void setMapgen(MapGenerator m); |
71 void setMapgen(MapGenerator m); |
71 void setMazeSize(int size); |
72 void setMazeSize(int size); |
72 void setDrawnMapData(const QByteArray & ar); |
73 void setDrawnMapData(const QByteArray & ar); |
73 void setAllMapParameters(const QString & map, MapGenerator m, int mazesize, const QString & seed, int tmpl); |
74 void setAllMapParameters(const QString & map, MapGenerator m, int mazesize, const QString & seed, int tmpl); |
|
75 void updateModelViews(); |
74 |
76 |
75 signals: |
77 signals: |
76 void seedChanged(const QString & seed); |
78 void seedChanged(const QString & seed); |
77 void mapChanged(const QString & map); |
79 void mapChanged(const QString & map); |
78 void themeChanged(const QString & theme); |
80 void themeChanged(const QString & theme); |
92 void setRandomStatic(); |
94 void setRandomStatic(); |
93 void setRandomMission(); |
95 void setRandomMission(); |
94 void themeSelected(const QModelIndex & current, const QModelIndex &); |
96 void themeSelected(const QModelIndex & current, const QModelIndex &); |
95 void addInfoToPreview(QPixmap image); |
97 void addInfoToPreview(QPixmap image); |
96 void seedEdited(); |
98 void seedEdited(); |
97 void loadMapList(); |
|
98 |
99 |
99 protected: |
100 protected: |
100 virtual void resizeEvent ( QResizeEvent * event ); |
101 virtual void resizeEvent ( QResizeEvent * event ); |
101 |
102 |
102 private: |
103 private: |
103 QGridLayout mainLayout; |
104 QGridLayout mainLayout; |
104 QPushButton* imageButt; |
105 QPushButton* imageButt; |
105 QComboBox* chooseMap; |
106 QComboBox* chooseMap; |
|
107 MapModel * m_mapModel; |
106 IconedGroupBox* gbThemes; |
108 IconedGroupBox* gbThemes; |
107 QListView* lvThemes; |
109 QListView* lvThemes; |
108 ThemeModel * m_themeModel; |
110 ThemeModel * m_themeModel; |
109 HWMap* pMap; |
111 HWMap* pMap; |
110 QString m_seed; |
112 QString m_seed; |
125 void intSetMap(const QString & map); |
127 void intSetMap(const QString & map); |
126 void intSetMapgen(MapGenerator m); |
128 void intSetMapgen(MapGenerator m); |
127 void intSetTemplateFilter(int); |
129 void intSetTemplateFilter(int); |
128 void intSetMazeSize(int size); |
130 void intSetMazeSize(int size); |
129 void updatePreview(); |
131 void updatePreview(); |
|
132 |
|
133 MapModel::MapInfo m_mapInfo; |
130 }; |
134 }; |
131 |
135 |
132 #endif // _HWMAP_CONTAINER_INCLUDED |
136 #endif // _HWMAP_CONTAINER_INCLUDED |