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

53 lines
1.2 KiB
C++
Raw Normal View History

#ifndef CONTENTSELECTOR_HPP
#define CONTENTSELECTOR_HPP
#include <QWidget>
#include "ui_datafilespage.h"
namespace EsxModel
{
class DataFilesModel;
class PluginsProxyModel;
class MasterProxyModel;
}
class QSortFilterProxyModel;
namespace EsxView
{
class ContentSelector : public QWidget, protected Ui::DataFilesPage
{
Q_OBJECT
protected:
EsxModel::DataFilesModel *mDataFilesModel;
EsxModel::MasterProxyModel *mMasterProxyModel;
EsxModel::PluginsProxyModel *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();
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