1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 12:42:11 +00:00
OpenMW/apps/launcher/datafilespage.hpp
2011-04-28 21:55:09 +02:00

54 lines
1.2 KiB
C++

#ifndef DATAFILESPAGE_H
#define DATAFILESPAGE_H
#include <QWidget>
#include <QModelIndex>
#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 *mProfileComboBox;
QStringListModel *mProfileModel;
QSettings *mLauncherConfig;
const QStringList checkedPlugins();
void readConfig();
void writeConfig();
public slots:
void masterSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void setCheckstate(QModelIndex index);
void resizeRows();
void profileChanged(const QString &current, const QString &previous);
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