#include <contentmodel.hpp>
|
| ContentModel (QObject *parent, QIcon warningIcon) |
|
| ~ContentModel () |
|
void | setEncoding (const QString &encoding) |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
|
QVariant | data (const QModelIndex &index, int role) const |
|
Qt::ItemFlags | flags (const QModelIndex &index) const |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
|
bool | insertRows (int position, int rows, const QModelIndex &index=QModelIndex()) |
|
bool | removeRows (int position, int rows, const QModelIndex &index=QModelIndex()) |
|
Qt::DropActions | supportedDropActions () const |
|
QStringList | mimeTypes () const |
|
QMimeData * | mimeData (const QModelIndexList &indexes) const |
|
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
|
void | addFiles (const QString &path) |
|
void | clearFiles () |
|
QModelIndex | indexFromItem (const EsmFile *item) const |
|
const EsmFile * | item (const QString &name) const |
|
QStringList | gameFiles () const |
|
bool | isEnabled (QModelIndex index) const |
|
bool | isChecked (const QString &filepath) const |
|
bool | setCheckState (const QString &filepath, bool isChecked) |
|
void | setContentList (const QStringList &fileList) |
|
ContentFileList | checkedItems () const |
|
void | uncheckAll () |
|
void | refreshModel () |
|
void | checkForLoadOrderErrors () |
| Checks all plug-ins for load order errors and updates mPluginsWithLoadOrderError with plug-ins with issues. More...
|
|
ContentSelectorModel::ContentModel::ContentModel |
( |
QObject * |
parent, |
|
|
QIcon |
warningIcon |
|
) |
| |
|
explicit |
ContentSelectorModel::ContentModel::~ContentModel |
( |
| ) |
|
void ContentSelectorModel::ContentModel::addFile |
( |
EsmFile * |
file | ) |
|
|
private |
void ContentSelectorModel::ContentModel::addFiles |
( |
const QString & |
path | ) |
|
void ContentSelectorModel::ContentModel::checkForLoadOrderErrors |
( |
| ) |
|
Checks all plug-ins for load order errors and updates mPluginsWithLoadOrderError with plug-ins with issues.
Checks a specific plug-in for load order errors
- Returns
- all errors found for specific plug-in
void ContentSelectorModel::ContentModel::clearFiles |
( |
| ) |
|
int ContentSelectorModel::ContentModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
QVariant ContentSelectorModel::ContentModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
bool ContentSelectorModel::ContentModel::dropMimeData |
( |
const QMimeData * |
data, |
|
|
Qt::DropAction |
action, |
|
|
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent |
|
) |
| |
Qt::ItemFlags ContentSelectorModel::ContentModel::flags |
( |
const QModelIndex & |
index | ) |
const |
QStringList ContentSelectorModel::ContentModel::gameFiles |
( |
| ) |
const |
QModelIndex ContentSelectorModel::ContentModel::indexFromItem |
( |
const EsmFile * |
item | ) |
const |
bool ContentSelectorModel::ContentModel::insertRows |
( |
int |
position, |
|
|
int |
rows, |
|
|
const QModelIndex & |
index = QModelIndex() |
|
) |
| |
bool ContentSelectorModel::ContentModel::isChecked |
( |
const QString & |
filepath | ) |
const |
bool ContentSelectorModel::ContentModel::isEnabled |
( |
QModelIndex |
index | ) |
const |
bool ContentSelectorModel::ContentModel::isLoadOrderError |
( |
const EsmFile * |
file | ) |
const |
|
private |
- Returns
- true if plug-in has a Load Order error
QMimeData * ContentSelectorModel::ContentModel::mimeData |
( |
const QModelIndexList & |
indexes | ) |
const |
QStringList ContentSelectorModel::ContentModel::mimeTypes |
( |
| ) |
const |
void ContentSelectorModel::ContentModel::refreshModel |
( |
| ) |
|
bool ContentSelectorModel::ContentModel::removeRows |
( |
int |
position, |
|
|
int |
rows, |
|
|
const QModelIndex & |
index = QModelIndex() |
|
) |
| |
int ContentSelectorModel::ContentModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
bool ContentSelectorModel::ContentModel::setCheckState |
( |
const QString & |
filepath, |
|
|
bool |
isChecked |
|
) |
| |
void ContentSelectorModel::ContentModel::setContentList |
( |
const QStringList & |
fileList | ) |
|
bool ContentSelectorModel::ContentModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
void ContentSelectorModel::ContentModel::setEncoding |
( |
const QString & |
encoding | ) |
|
void ContentSelectorModel::ContentModel::sortFiles |
( |
| ) |
|
|
private |
Qt::DropActions ContentSelectorModel::ContentModel::supportedDropActions |
( |
| ) |
const |
QString ContentSelectorModel::ContentModel::toolTip |
( |
const EsmFile * |
file | ) |
const |
|
private |
void ContentSelectorModel::ContentModel::uncheckAll |
( |
| ) |
|
QHash<QString, Qt::CheckState> ContentSelectorModel::ContentModel::mCheckStates |
|
private |
int ContentSelectorModel::ContentModel::mColumnCount |
Qt::DropActions ContentSelectorModel::ContentModel::mDropActions |
QString ContentSelectorModel::ContentModel::mEncoding |
|
private |
QString ContentSelectorModel::ContentModel::mMimeType |
QStringList ContentSelectorModel::ContentModel::mMimeTypes |
QSet<QString> ContentSelectorModel::ContentModel::mPluginsWithLoadOrderError |
|
private |
QIcon ContentSelectorModel::ContentModel::mWarningIcon |
|
private |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/components/contentselector/model/contentmodel.hpp
- /home/travis/build/OpenMW/openmw/components/contentselector/model/contentmodel.cpp