QTfrontend/util/DataManager.h
branchwebgl
changeset 9127 e350500c4edb
parent 9080 9b42757d7e71
child 9389 3aae70f72126
equal deleted inserted replaced
8860:bde641cf53c8 9127:e350500c4edb
     1 /*
     1 /*
     2  * Hedgewars, a free turn based strategy game
     2  * Hedgewars, a free turn based strategy game
     3  * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com>
     3  * Copyright (c) 2004-2013 Andrey Korotaev <unC0Rr@gmail.com>
     4  *
     4  *
     5  * 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
     6  * 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
     7  * the Free Software Foundation; version 2 of the License
     7  * the Free Software Foundation; version 2 of the License
     8  *
     8  *
   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