1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 23:49:55 +00:00
openmw-tes3mp/components/esxselector/view/contentselector.hpp

59 lines
1.4 KiB
C++
Raw Normal View History

#ifndef CONTENTSELECTOR_HPP
#define CONTENTSELECTOR_HPP
2013-08-20 17:34:39 +00:00
#include <QDialog>
#include "ui_datafilespage.h"
namespace EsxModel
{
2013-09-07 20:57:40 +00:00
class ContentModel;
class DataFilesModel;
}
class QSortFilterProxyModel;
namespace EsxView
{
2013-08-20 17:34:39 +00:00
class ContentSelector : public QDialog, protected Ui::DataFilesPage
{
Q_OBJECT
protected:
EsxModel::DataFilesModel *mDataFilesModel;
2013-09-07 20:57:40 +00:00
EsxModel::ContentModel *mContentModel;
2013-09-18 07:36:23 +00:00
QSortFilterProxyModel *mMasterProxyModel;
QSortFilterProxyModel *mPluginsProxyModel;
public:
explicit ContentSelector(QWidget *parent = 0);
void buildModelsAndViews();
void addFiles(const QString &path);
void setEncoding(const QString &encoding);
2013-08-18 13:54:51 +00:00
void setPluginCheckState();
void setCheckState(QModelIndex index, QSortFilterProxyModel *model);
QStringList checkedItemsPaths();
2013-08-18 13:54:51 +00:00
void on_checkAction_triggered();
2013-09-18 07:36:23 +00:00
private:
void buildSourceModel();
void buildMasterView();
void buildPluginsView();
void buildProfilesView();
signals:
void profileChanged(int index);
private slots:
void updateViews();
void slotCurrentProfileIndexChanged(int index);
void slotCurrentMasterIndexChanged(int index);
2013-08-18 13:54:51 +00:00
void slotPluginTableItemClicked(const QModelIndex &index);
};
}
#endif // CONTENTSELECTOR_HPP