2011-04-07 22:04:09 +00:00
|
|
|
#ifndef DATAFILESPAGE_H
|
|
|
|
#define DATAFILESPAGE_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QModelIndex>
|
|
|
|
|
|
|
|
class QTableWidget;
|
|
|
|
class QTableView;
|
|
|
|
class QComboBox;
|
|
|
|
class QStandardItemModel;
|
|
|
|
class QItemSelection;
|
|
|
|
class QItemSelectionModel;
|
|
|
|
class QStringListModel;
|
|
|
|
|
|
|
|
class DataFilesPage : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
DataFilesPage(QWidget *parent = 0);
|
|
|
|
|
|
|
|
QComboBox *mProfileComboBox;
|
|
|
|
QStringListModel *mProfileModel;
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void masterSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
|
|
|
|
void setCheckstate(QModelIndex index);
|
|
|
|
void resizeRows();
|
|
|
|
|
2011-04-24 20:05:33 +00:00
|
|
|
const QStringList checkedItems();
|
|
|
|
|
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 19:42:56 +00:00
|
|
|
};
|
2011-04-07 22:04:09 +00:00
|
|
|
|
2011-04-24 19:42:56 +00:00
|
|
|
#endif
|