1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 03:39:14 +00:00
OpenMW/apps/launcher/datafilespage.hpp
Pieter van der Kloet 64d636574e More configfile stuff
2011-04-28 21:55:09 +02:00

55 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 *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 &current);
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