openmw-tes3coop/components/fileorderlist/contentselector.hpp

40 lines
896 B
C++

#ifndef CONTENTSELECTOR_HPP
#define CONTENTSELECTOR_HPP
#include <QWidget>
#include "ui_datafilespage.h"
class DataFilesModel;
class PluginsProxyModel;
class QSortFilterProxyModel;
namespace FileOrderList
{
class MasterProxyModel;
class ContentSelector : public QWidget, protected Ui::DataFilesPage
{
Q_OBJECT
DataFilesModel *mDataFilesModel;
MasterProxyModel *mMasterProxyModel;
PluginsProxyModel *mPluginsProxyModel;
QSortFilterProxyModel *mFilterProxyModel;
public:
explicit ContentSelector(QWidget *parent = 0);
void buildModelsAndViews();
void addFiles(const QString &path);
void setEncoding(const QString &encoding);
void setCheckState(QModelIndex index);
QStringList checkedItemsPaths();
private slots:
void updateViews();
};
}
#endif // CONTENTSELECTOR_HPP