equal
deleted
inserted
replaced
24 #ifndef HEDGEWARS_DATAMANAGER_H |
24 #ifndef HEDGEWARS_DATAMANAGER_H |
25 #define HEDGEWARS_DATAMANAGER_H |
25 #define HEDGEWARS_DATAMANAGER_H |
26 |
26 |
27 #include <QDir> |
27 #include <QDir> |
28 #include <QFile> |
28 #include <QFile> |
29 |
|
30 #include <QStringList> |
29 #include <QStringList> |
31 |
30 |
32 #include "GameStyleModel.h" |
|
33 #include "HatModel.h" |
|
34 #include "MapModel.h" |
|
35 #include "ThemeModel.h" |
|
36 |
|
37 class QDir; |
|
38 class QFile; |
|
39 class QStringList; |
|
40 class GameStyleModel; |
31 class GameStyleModel; |
41 class HatModel; |
32 class HatModel; |
42 class MapModel; |
33 class MapModel; |
43 class ThemeModel; |
34 class ThemeModel; |
|
35 class QStandardItemModel; |
44 |
36 |
45 /** |
37 /** |
46 * @brief Offers access to the data files of hedgewars. |
38 * @brief Offers access to the data files of hedgewars. |
47 * |
39 * |
48 * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a> |
40 * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a> |
133 * |
125 * |
134 * @return theme model pointer. |
126 * @return theme model pointer. |
135 */ |
127 */ |
136 ThemeModel * themeModel(); |
128 ThemeModel * themeModel(); |
137 |
129 |
|
130 QStandardItemModel * colorsModel(); |
|
131 |
138 public slots: |
132 public slots: |
139 /// Reloads data from storage. |
133 /// Reloads data from storage. |
140 void reload(); |
134 void reload(); |
141 |
135 |
142 |
136 |
161 |
155 |
162 GameStyleModel * m_gameStyleModel; ///< game style model instance |
156 GameStyleModel * m_gameStyleModel; ///< game style model instance |
163 HatModel * m_hatModel; ///< hat model instance |
157 HatModel * m_hatModel; ///< hat model instance |
164 MapModel * m_mapModel; ///< map model instance |
158 MapModel * m_mapModel; ///< map model instance |
165 ThemeModel * m_themeModel; ///< theme model instance |
159 ThemeModel * m_themeModel; ///< theme model instance |
|
160 QStandardItemModel * m_colorsModel; |
166 }; |
161 }; |
167 |
162 |
168 #endif // HEDGEWARS_DATAMANAGER_H |
163 #endif // HEDGEWARS_DATAMANAGER_H |