QTfrontend/util/DataManager.h
changeset 8918 512753ea4b1b
parent 8508 f849b7b3af1d
child 9080 9b42757d7e71
equal deleted inserted replaced
8917:263f2a8475bc 8918:512753ea4b1b
   115         ThemeModel * themeModel();
   115         ThemeModel * themeModel();
   116 
   116 
   117         QStandardItemModel * colorsModel();
   117         QStandardItemModel * colorsModel();
   118         QStandardItemModel * bindsModel();
   118         QStandardItemModel * bindsModel();
   119 
   119 
       
   120         QString settingsFileName();
       
   121 
   120         static bool ensureFileExists(const QString & fileName);
   122         static bool ensureFileExists(const QString & fileName);
   121 
   123 
   122     public slots:
   124     public slots:
   123         /// Reloads data from storage.
   125         /// Reloads data from storage.
   124         void reload();
   126         void reload();
   146         MapModel * m_staticMapModel; ///< static map model instance
   148         MapModel * m_staticMapModel; ///< static map model instance
   147         MapModel * m_missionMapModel; ///< mission map model instance
   149         MapModel * m_missionMapModel; ///< mission map model instance
   148         ThemeModel * m_themeModel; ///< theme model instance
   150         ThemeModel * m_themeModel; ///< theme model instance
   149         QStandardItemModel * m_colorsModel;
   151         QStandardItemModel * m_colorsModel;
   150         QStandardItemModel * m_bindsModel;
   152         QStandardItemModel * m_bindsModel;
       
   153         QString m_settingsFileName;
   151 };
   154 };
   152 
   155 
   153 #endif // HEDGEWARS_DATAMANAGER_H
   156 #endif // HEDGEWARS_DATAMANAGER_H