1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00
OpenMW/apps/launcher/datafilesdialog.h

81 lines
1.7 KiB
C
Raw Normal View History

2011-03-28 23:36:26 +00:00
#ifndef DATAFILESDIALOG_H
#define DATAFILESDIALOG_H
#include "lineedit.h"
2011-03-30 12:05:27 +00:00
//class DataFilesModel;
/*class QStringList;
class QTreeView;
2011-03-28 23:36:26 +00:00
class QLineEdit;
class QPlainTextEdit;
class QItemSelectionModel;
class QSortFilterProxyModel;
*/
#include <QDialog>
#include <QModelIndex>
class QTreeView;
class QTableView;
2011-03-30 12:05:27 +00:00
class QStandardItemModel;
class QItemSelectionModel;
class QItemSelection;
2011-03-28 23:36:26 +00:00
class DataFilesDialog : public QDialog
{
Q_OBJECT
public:
DataFilesDialog();
// ~DataFilesDialog() { };
private:
//QStandardItemModel *dataFilesModel;
2011-03-28 23:36:26 +00:00
//QTreeView *dataFilesView;
//QItemSelectionModel *selectionModel;
//QSortFilterProxyModel *sortModel;
2011-03-28 23:36:26 +00:00
//QLineEdit *lineAuthor;
//LineEdit *lineFilter;
//QPlainTextEdit *textDesc;
//QPlainTextEdit *textDepends;
QModelIndexList *masterindexes;
QStandardItemModel *datafilesmodel;
QStandardItemModel *mastersmodel;
QStandardItemModel *pluginsmodel;
QItemSelectionModel *masterselectmodel;
QItemSelectionModel *pluginselectmodel;
QTreeView *tree;
QTableView *mastertable;
QTableView *plugintable;
2011-03-28 23:36:26 +00:00
void appendPlugins(const QModelIndex &masterindex);
void removePlugins(const QModelIndex &masterindex);
2011-03-28 23:36:26 +00:00
public slots:
//void changeData(QModelIndex top, QModelIndex bottom); // edit
2011-03-28 23:36:26 +00:00
void restoreDefaults();
void readConfig();
void writeConfig();
void showContextMenu(const QPoint &point);
void actionCheckstate();
void test();
//void setupView();
2011-03-28 23:36:26 +00:00
void masterSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
//void setFilter();
void setCheckstate(QModelIndex index);
2011-03-28 23:36:26 +00:00
// void doubleClicked(QModelIndex index);
};
#endif