QTfrontend/ammoSchemeModel.h
changeset 1899 5763f46d7486
parent 1897 e9dcb47013c7
child 1902 aeadb10c2d77
equal deleted inserted replaced
1898:f0ab0c77946d 1899:5763f46d7486
    48 
    48 
    49 protected:
    49 protected:
    50 	QList< QList<QVariant> > schemes;
    50 	QList< QList<QVariant> > schemes;
    51 
    51 
    52 private:
    52 private:
    53 	QList<QVariant> defaultScheme;
       
    54 
       
    55 	QSettings fileConfig;
    53 	QSettings fileConfig;
    56 
    54 
    57 	QStringList spNames;
    55 	QStringList spNames;
    58 };
    56 };
    59 
    57 
       
    58 class NetAmmoSchemeModel : public QAbstractTableModel
       
    59 {
       
    60 	Q_OBJECT
       
    61 
       
    62 public:
       
    63 	NetAmmoSchemeModel(QObject * parent);
       
    64 
       
    65 	QVariant headerData(int section, Qt::Orientation orientation, int role) const;
       
    66 	int rowCount(const QModelIndex & parent) const;
       
    67 	int columnCount(const QModelIndex & parent) const;
       
    68 	QVariant data(const QModelIndex &index, int role) const;
       
    69 
       
    70 public slots:
       
    71 	void setNetSchemeConfig(QStringList & cfg);
       
    72 
       
    73 private:
       
    74 	QList<QVariant> netScheme;
       
    75 };
       
    76 
    60 #endif // _AMMO_SCHEME_MODEL_INCLUDED
    77 #endif // _AMMO_SCHEME_MODEL_INCLUDED