QTfrontend/model/gameSchemeModel.h
changeset 13198 ceae8e01af98
parent 13197 0bc5f618ca7c
child 13554 a5a8488e2485
equal deleted inserted replaced
13197:0bc5f618ca7c 13198:ceae8e01af98
    20 #define _GAME_SCHEME_MODEL_INCLUDED
    20 #define _GAME_SCHEME_MODEL_INCLUDED
    21 
    21 
    22 #include <QAbstractTableModel>
    22 #include <QAbstractTableModel>
    23 #include <QStringList>
    23 #include <QStringList>
    24 #include <QList>
    24 #include <QList>
    25 #include <QSettings>
       
    26 
    25 
    27 class GameSchemeModel : public QAbstractTableModel
    26 class GameSchemeModel : public QAbstractTableModel
    28 {
    27 {
    29         Q_OBJECT
    28         Q_OBJECT
    30 
    29 
    46         QStringList spNames;
    45         QStringList spNames;
    47 
    46 
    48     public slots:
    47     public slots:
    49         void Save();
    48         void Save();
    50 
    49 
    51 //    signals:
       
    52 //        void dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight);
       
    53 
       
    54     protected:
    50     protected:
    55         QList< QList<QVariant> > schemes;
    51         QList< QList<QVariant> > schemes;
    56 
       
    57     private:
       
    58         QSettings fileConfig;
       
    59 };
    52 };
    60 
    53 
    61 class NetGameSchemeModel : public QAbstractTableModel
    54 class NetGameSchemeModel : public QAbstractTableModel
    62 {
    55 {
    63         Q_OBJECT
    56         Q_OBJECT