QTfrontend/util/DataManager.h
changeset 7278 000e4543f204
parent 7260 c3584a3ab730
child 7681 26978d581070
equal deleted inserted replaced
7238:313b2ecc4441 7278:000e4543f204
    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         QStandardItemModel * bindsModel();
       
   132 
   138     public slots:
   133     public slots:
   139         /// Reloads data from storage.
   134         /// Reloads data from storage.
   140         void reload();
   135         void reload();
   141 
   136 
   142 
   137 
   161 
   156 
   162         GameStyleModel * m_gameStyleModel; ///< game style model instance
   157         GameStyleModel * m_gameStyleModel; ///< game style model instance
   163         HatModel * m_hatModel; ///< hat model instance
   158         HatModel * m_hatModel; ///< hat model instance
   164         MapModel * m_mapModel; ///< map model instance
   159         MapModel * m_mapModel; ///< map model instance
   165         ThemeModel * m_themeModel; ///< theme model instance
   160         ThemeModel * m_themeModel; ///< theme model instance
       
   161         QStandardItemModel * m_colorsModel;
       
   162         QStandardItemModel * m_bindsModel;
   166 };
   163 };
   167 
   164 
   168 #endif // HEDGEWARS_DATAMANAGER_H
   165 #endif // HEDGEWARS_DATAMANAGER_H