equal
deleted
inserted
replaced
20 #define _HWMAP_CONTAINER_INCLUDED |
20 #define _HWMAP_CONTAINER_INCLUDED |
21 |
21 |
22 #include <QWidget> |
22 #include <QWidget> |
23 #include <QGridLayout> |
23 #include <QGridLayout> |
24 #include <QComboBox> |
24 #include <QComboBox> |
|
25 #include <QLabel> |
25 |
26 |
26 #include "hwmap.h" |
27 #include "hwmap.h" |
27 |
28 |
28 class QPushButton; |
29 class QPushButton; |
29 class IconedGroupBox; |
30 class IconedGroupBox; |
41 HWMapContainer(QWidget * parent=0); |
42 HWMapContainer(QWidget * parent=0); |
42 QString getCurrentSeed() const; |
43 QString getCurrentSeed() const; |
43 QString getCurrentMap() const; |
44 QString getCurrentMap() const; |
44 QString getCurrentTheme() const; |
45 QString getCurrentTheme() const; |
45 int getCurrentHHLimit() const; |
46 int getCurrentHHLimit() const; |
|
47 quint32 getTemplateFilter() const; |
46 |
48 |
47 public slots: |
49 public slots: |
48 void changeImage(); |
50 void changeImage(); |
49 void setSeed(const QString & seed); |
51 void setSeed(const QString & seed); |
50 void setMap(const QString & map); |
52 void setMap(const QString & map); |
53 |
55 |
54 signals: |
56 signals: |
55 void seedChanged(const QString & seed); |
57 void seedChanged(const QString & seed); |
56 void mapChanged(const QString & map); |
58 void mapChanged(const QString & map); |
57 void themeChanged(const QString & theme); |
59 void themeChanged(const QString & theme); |
|
60 void newTemplateFilter(int filter); |
58 |
61 |
59 |
62 |
60 private slots: |
63 private slots: |
61 void setImage(const QImage newImage); |
64 void setImage(const QImage newImage); |
62 void setHHLimit(int hhLimit); |
65 void setHHLimit(int hhLimit); |
63 void mapChanged(int index); |
66 void mapChanged(int index); |
64 void setRandomSeed(); |
67 void setRandomSeed(); |
65 void setRandomTheme(); |
68 void setRandomTheme(); |
66 void themeSelected(int currentRow); |
69 void themeSelected(int currentRow); |
67 void addInfoToPreview(QPixmap image); |
70 void addInfoToPreview(QPixmap image); |
|
71 void templateFilterChanged(int filter); |
68 |
72 |
69 protected: |
73 protected: |
70 virtual void resizeEvent ( QResizeEvent * event ); |
74 virtual void resizeEvent ( QResizeEvent * event ); |
71 |
75 |
72 private: |
76 private: |
78 HWMap* pMap; |
82 HWMap* pMap; |
79 QString m_seed; |
83 QString m_seed; |
80 int hhLimit; |
84 int hhLimit; |
81 int templateFilter; |
85 int templateFilter; |
82 QPixmap hhSmall; |
86 QPixmap hhSmall; |
|
87 QLabel* lblFilter; |
|
88 QComboBox* CB_TemplateFilter; |
83 |
89 |
84 void loadMap(int index); |
90 void loadMap(int index); |
85 }; |
91 }; |
86 |
92 |
87 #endif // _HWMAP_CONTAINER_INCLUDED |
93 #endif // _HWMAP_CONTAINER_INCLUDED |