1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00
OpenMW/apps/launcher/datafilespage.hpp

51 lines
1.1 KiB
C++
Raw Normal View History

2011-04-07 22:04:09 +00:00
#ifndef DATAFILESPAGE_H
#define DATAFILESPAGE_H
#include <QWidget>
#include <QModelIndex>
#include "combobox.hpp"
2011-04-07 22:04:09 +00:00
class QTableWidget;
class QTableView;
class ComboBox;
2011-04-07 22:04:09 +00:00
class QStandardItemModel;
class QItemSelection;
class QItemSelectionModel;
class QStringListModel;
class DataFilesPage : public QWidget
{
Q_OBJECT
public:
DataFilesPage(QWidget *parent = 0);
ComboBox *mProfileComboBox;
2011-04-07 22:04:09 +00:00
QStringListModel *mProfileModel;
2011-04-24 21:23:04 +00:00
const QStringList checkedPlugins();
void writeConfig();
2011-04-07 22:04:09 +00:00
public slots:
void masterSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void setCheckstate(QModelIndex index);
void resizeRows();
void profileChanged(const QString &current, const QString &previous);
2011-04-07 22:04:09 +00:00
private:
QTableWidget *mMastersWidget;
QTableView *mPluginsTable;
2011-04-24 19:42:56 +00:00
2011-04-07 22:04:09 +00:00
QStandardItemModel *mDataFilesModel;
QStandardItemModel *mPluginsModel;
2011-04-24 19:42:56 +00:00
2011-04-07 22:04:09 +00:00
QItemSelectionModel *mPluginsSelectModel;
void setupDataFiles();
void addPlugins(const QModelIndex &index);
void removePlugins(const QModelIndex &index);
2011-04-24 21:23:04 +00:00
void uncheckPlugins();
2011-04-24 19:42:56 +00:00
};
2011-04-07 22:04:09 +00:00
2011-04-24 19:42:56 +00:00
#endif