1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 22:53:54 +00:00
openmw/components/fileorderlist/contentselector.hpp
graffy76 2878f51cd3 Reimplemented dependency selection feature
Moved more code to ContentSelector
Added support for omwgame and omwaddon files
2013-08-17 19:40:28 -05:00

46 lines
1 KiB
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
protected:
DataFilesModel *mDataFilesModel;
MasterProxyModel *mMasterProxyModel;
PluginsProxyModel *mPluginsProxyModel;
public:
explicit ContentSelector(QWidget *parent = 0);
void buildModelsAndViews();
void addFiles(const QString &path);
void setEncoding(const QString &encoding);
void setCheckState(QModelIndex index, QSortFilterProxyModel *model);
QStringList checkedItemsPaths();
signals:
void profileChanged(int index);
private slots:
void updateViews();
void slotCurrentProfileIndexChanged(int index);
void slotCurrentMasterIndexChanged(int index);
};
}
#endif // CONTENTSELECTOR_HPP