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;
|
|
|
|
|
2011-03-29 21:42:34 +00:00
|
|
|
|
|
|
|
/*class QStringList;
|
|
|
|
class QTreeView;
|
2011-03-28 23:36:26 +00:00
|
|
|
class QLineEdit;
|
|
|
|
class QPlainTextEdit;
|
|
|
|
class QItemSelectionModel;
|
|
|
|
class QSortFilterProxyModel;
|
2011-03-29 21:42:34 +00:00
|
|
|
*/
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QModelIndex>
|
|
|
|
|
|
|
|
class QTreeView;
|
2011-04-03 20:24:43 +00:00
|
|
|
class QTableView;
|
2011-03-30 12:05:27 +00:00
|
|
|
class QStandardItemModel;
|
2011-04-03 20:24:43 +00:00
|
|
|
class QItemSelectionModel;
|
|
|
|
class QItemSelection;
|
2011-03-28 23:36:26 +00:00
|
|
|
|
|
|
|
class DataFilesDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
DataFilesDialog();
|
|
|
|
// ~DataFilesDialog() { };
|
|
|
|
|
|
|
|
private:
|
2011-04-03 20:24:43 +00:00
|
|
|
//QStandardItemModel *dataFilesModel;
|
2011-03-28 23:36:26 +00:00
|
|
|
|
2011-04-03 20:24:43 +00:00
|
|
|
//QTreeView *dataFilesView;
|
2011-03-29 21:42:34 +00:00
|
|
|
//QItemSelectionModel *selectionModel;
|
|
|
|
//QSortFilterProxyModel *sortModel;
|
2011-03-28 23:36:26 +00:00
|
|
|
|
2011-03-29 21:42:34 +00:00
|
|
|
//QLineEdit *lineAuthor;
|
|
|
|
//LineEdit *lineFilter;
|
|
|
|
//QPlainTextEdit *textDesc;
|
|
|
|
//QPlainTextEdit *textDepends;
|
2011-04-03 20:24:43 +00:00
|
|
|
QModelIndexList *masterindexes;
|
|
|
|
|
|
|
|
QStandardItemModel *datafilesmodel;
|
|
|
|
QStandardItemModel *mastersmodel;
|
|
|
|
QStandardItemModel *pluginsmodel;
|
|
|
|
|
|
|
|
QItemSelectionModel *masterselectmodel;
|
2011-04-04 16:32:38 +00:00
|
|
|
QItemSelectionModel *pluginselectmodel;
|
2011-04-03 20:24:43 +00:00
|
|
|
|
|
|
|
QTreeView *tree;
|
|
|
|
|
|
|
|
QTableView *mastertable;
|
|
|
|
QTableView *plugintable;
|
2011-03-28 23:36:26 +00:00
|
|
|
|
2011-04-03 20:24:43 +00:00
|
|
|
void appendPlugins(const QModelIndex &masterindex);
|
|
|
|
void removePlugins(const QModelIndex &masterindex);
|
2011-03-28 23:36:26 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
2011-04-03 20:24:43 +00:00
|
|
|
//void changeData(QModelIndex top, QModelIndex bottom); // edit
|
2011-03-28 23:36:26 +00:00
|
|
|
void restoreDefaults();
|
|
|
|
void readConfig();
|
|
|
|
void writeConfig();
|
2011-04-04 16:32:38 +00:00
|
|
|
void showContextMenu(const QPoint &point);
|
|
|
|
|
|
|
|
void actionCheckstate();
|
2011-04-07 21:57:03 +00:00
|
|
|
void test();
|
2011-04-03 20:24:43 +00:00
|
|
|
//void setupView();
|
2011-03-28 23:36:26 +00:00
|
|
|
|
2011-04-03 20:24:43 +00:00
|
|
|
void masterSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
|
|
|
|
//void setFilter();
|
2011-04-04 16:32:38 +00:00
|
|
|
void setCheckstate(QModelIndex index);
|
2011-03-28 23:36:26 +00:00
|
|
|
// void doubleClicked(QModelIndex index);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|