equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Hedgewars, a free turn based strategy game |
2 * Hedgewars, a free turn based strategy game |
3 * Copyright (c) 2006-2007 Igor Ulyanov <iulyanov@gmail.com> |
3 * Copyright (c) 2011-2012 Andrey Korotaev <unC0Rr@gmail.com> |
4 * Copyright (c) 2007-2012 Andrey Korotaev <unC0Rr@gmail.com> |
|
5 * |
4 * |
6 * This program is free software; you can redistribute it and/or modify |
5 * 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 |
6 * it under the terms of the GNU General Public License as published by |
8 * the Free Software Foundation; version 2 of the License |
7 * the Free Software Foundation; version 2 of the License |
9 * |
8 * |
96 QString findFileForWrite(const QString & relativeDataFilePath) const; |
95 QString findFileForWrite(const QString & relativeDataFilePath) const; |
97 |
96 |
98 /** |
97 /** |
99 * @brief Returns pointer to a model for the available maps. |
98 * @brief Returns pointer to a model for the available maps. |
100 * |
99 * |
101 * The model is kept up to date automatically. |
100 * The model is updated automatically on data reload. |
102 * |
101 * |
103 * @return map model pointer. |
102 * @return map model pointer. |
104 */ |
103 */ |
105 MapModel * mapModel(); |
104 MapModel * mapModel(); |
106 |
105 |
107 /** |
106 /** |
108 * @brief Returns pointer to a model for the available themes. |
107 * @brief Returns pointer to a model for the available themes. |
109 * |
108 * |
110 * The model is kept up to date automatically. |
109 * The model is updated automatically on data reload. |
111 * |
110 * |
112 * @return theme model pointer. |
111 * @return theme model pointer. |
113 */ |
112 */ |
114 ThemeModel * themeModel(); |
113 ThemeModel * themeModel(); |
115 |
114 |
116 public slots: |
115 public slots: |
117 /** |
116 /// Reloads data from storage. |
118 * @brief Reloads data from storage. |
|
119 */ |
|
120 void reload(); |
117 void reload(); |
121 |
118 |
122 |
119 |
123 signals: |
120 signals: |
124 /** |
121 /// This signal is emitted after the data has been updated. |
125 * @brief This signal is emitted after the data has been updated. |
|
126 */ |
|
127 void updated(); |
122 void updated(); |
128 |
123 |
129 |
124 |
130 private: |
125 private: |
131 /** |
126 /** |