QTfrontend/model/gameSchemeModel.h
changeset 13554 a5a8488e2485
parent 13198 ceae8e01af98
equal deleted inserted replaced
13553:e1a3994558e1 13554:a5a8488e2485
    32 
    32 
    33         QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    33         QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    34         int rowCount(const QModelIndex & parent) const;
    34         int rowCount(const QModelIndex & parent) const;
    35         int columnCount(const QModelIndex & parent) const;
    35         int columnCount(const QModelIndex & parent) const;
    36         bool hasScheme(QString name);
    36         bool hasScheme(QString name);
       
    37         bool hasScheme(QString name, int ignoreID);
       
    38         bool renameScheme(int index, QString newName);
    37         Qt::ItemFlags flags(const QModelIndex & index) const;
    39         Qt::ItemFlags flags(const QModelIndex & index) const;
    38         bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
    40         bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
    39         bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex());
    41         bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex());
    40         bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex());
    42         bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex());
    41         QVariant data(const QModelIndex &index, int role) const;
    43         QVariant data(const QModelIndex &index, int role) const;
    44         QStringList predefSchemesNames;
    46         QStringList predefSchemesNames;
    45         QStringList spNames;
    47         QStringList spNames;
    46 
    48 
    47     public slots:
    49     public slots:
    48         void Save();
    50         void Save();
       
    51 
       
    52     signals:
       
    53         void dataChanged(const QModelIndex &topLeft, const QModelIndex& bottomRight);
    49 
    54 
    50     protected:
    55     protected:
    51         QList< QList<QVariant> > schemes;
    56         QList< QList<QVariant> > schemes;
    52 };
    57 };
    53 
    58