forked from teamnwah/openmw-tes3coop
57 lines
1 KiB
C++
57 lines
1 KiB
C++
#ifndef DATAFILESDIALOG_H
|
|
#define DATAFILESDIALOG_H
|
|
|
|
#include "lineedit.h"
|
|
|
|
//class DataFilesModel;
|
|
|
|
|
|
/*class QStringList;
|
|
class QTreeView;
|
|
class QLineEdit;
|
|
class QPlainTextEdit;
|
|
class QItemSelectionModel;
|
|
class QSortFilterProxyModel;
|
|
*/
|
|
#include <QDialog>
|
|
#include <QModelIndex>
|
|
|
|
class QTreeView;
|
|
class QStandardItemModel;
|
|
|
|
class DataFilesDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
DataFilesDialog();
|
|
// ~DataFilesDialog() { };
|
|
|
|
private:
|
|
QStandardItemModel *dataFilesModel;
|
|
|
|
QTreeView *dataFilesView;
|
|
//QItemSelectionModel *selectionModel;
|
|
//QSortFilterProxyModel *sortModel;
|
|
|
|
//QLineEdit *lineAuthor;
|
|
//LineEdit *lineFilter;
|
|
//QPlainTextEdit *textDesc;
|
|
//QPlainTextEdit *textDepends;
|
|
|
|
|
|
public slots:
|
|
|
|
void changeData(QModelIndex top, QModelIndex bottom); // edit
|
|
void restoreDefaults();
|
|
void readConfig();
|
|
void writeConfig();
|
|
void setupView();
|
|
|
|
void setFilter();
|
|
void setCheckstate(QModelIndex index);
|
|
// void doubleClicked(QModelIndex index);
|
|
|
|
};
|
|
|
|
#endif
|