mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
46 lines
946 B
C++
46 lines
946 B
C++
|
#ifndef DATAFILESPAGE_H
|
||
|
#define DATAFILESPAGE_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
#include <QModelIndex>
|
||
|
|
||
|
class QTableWidget;
|
||
|
class QTableView;
|
||
|
class QComboBox;
|
||
|
class QStandardItemModel;
|
||
|
class QItemSelection;
|
||
|
class QItemSelectionModel;
|
||
|
class QStringListModel;
|
||
|
|
||
|
class DataFilesPage : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
DataFilesPage(QWidget *parent = 0);
|
||
|
|
||
|
QComboBox *mProfileComboBox;
|
||
|
QStringListModel *mProfileModel;
|
||
|
|
||
|
public slots:
|
||
|
void masterSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
|
||
|
void setCheckstate(QModelIndex index);
|
||
|
void resizeRows();
|
||
|
|
||
|
private:
|
||
|
QTableWidget *mMastersWidget;
|
||
|
QTableView *mPluginsTable;
|
||
|
|
||
|
QStandardItemModel *mDataFilesModel;
|
||
|
QStandardItemModel *mPluginsModel;
|
||
|
|
||
|
QItemSelectionModel *mPluginsSelectModel;
|
||
|
|
||
|
void setupDataFiles();
|
||
|
void addPlugins(const QModelIndex &index);
|
||
|
void removePlugins(const QModelIndex &index);
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|