1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00
OpenMW/apps/launcher/datafilespage.hpp

46 lines
946 B
C++
Raw Normal View History

2011-04-07 22:04:09 +00:00
#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