#ifndef DATAFILESPAGE_H #define DATAFILESPAGE_H #include #include #include "combobox.hpp" class QTableWidget; class QTableView; class ComboBox; class QStandardItemModel; class QItemSelection; class QItemSelectionModel; class QStringListModel; class QSettings; class DataFilesPage : public QWidget { Q_OBJECT public: DataFilesPage(QWidget *parent = 0); ComboBox *mProfilesComboBox; QStringListModel *mProfilesModel; QSettings *mLauncherConfig; const QStringList checkedPlugins(); void setupConfig(); void readConfig(); void writeConfig(QString profile = QString()); public slots: void masterSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected); void setCheckstate(QModelIndex index); void resizeRows(); void profileChanged(const QString &previous, const QString ¤t); private: QTableWidget *mMastersWidget; QTableView *mPluginsTable; QStandardItemModel *mDataFilesModel; QStandardItemModel *mPluginsModel; QItemSelectionModel *mPluginsSelectModel; void setupDataFiles(); void addPlugins(const QModelIndex &index); void removePlugins(const QModelIndex &index); void uncheckPlugins(); }; #endif