OpenMW
|
#include <contentmodel.hpp>
Public Member Functions | |
ContentModel (QObject *parent=0) | |
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) |
QModelIndex | indexFromItem (const EsmFile *item) const |
const EsmFile * | item (const QString &name) const |
bool | isEnabled (QModelIndex index) const |
bool | isChecked (const QString &name) const |
bool | setCheckState (const QString &name, bool isChecked) |
void | setCheckStates (const QStringList &fileList, bool isChecked) |
ContentFileList | checkedItems () const |
void | uncheckAll () |
void | refreshModel () |
Public Attributes | |
QString | mMimeType |
QStringList | mMimeTypes |
int | mColumnCount |
Qt::ItemFlags | mDragDropFlags |
Qt::DropActions | mDropActions |
Private Member Functions | |
void | addFile (EsmFile *file) |
const EsmFile * | item (int row) const |
EsmFile * | item (int row) |
void | sortFiles () |
Private Attributes | |
ContentFileList | mFiles |
QHash< QString, Qt::CheckState > | mCheckStates |
QTextCodec * | mCodec |
ContentSelectorModel::ContentModel::ContentModel | ( | QObject * | parent = 0 | ) | [explicit] |
void ContentSelectorModel::ContentModel::addFile | ( | EsmFile * | file | ) | [private] |
void ContentSelectorModel::ContentModel::addFiles | ( | const QString & | path | ) |
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 |
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 & | name | ) | const |
bool ContentSelectorModel::ContentModel::isEnabled | ( | QModelIndex | index | ) | const |
const ContentSelectorModel::EsmFile * ContentSelectorModel::ContentModel::item | ( | const QString & | name | ) | const |
const ContentSelectorModel::EsmFile * ContentSelectorModel::ContentModel::item | ( | int | row | ) | const [private] |
ContentSelectorModel::EsmFile * ContentSelectorModel::ContentModel::item | ( | int | row | ) | [private] |
QMimeData * ContentSelectorModel::ContentModel::mimeData | ( | const QModelIndexList & | indexes | ) | const |
QStringList ContentSelectorModel::ContentModel::mimeTypes | ( | ) | const |
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 & | name, |
bool | isChecked | ||
) |
void ContentSelectorModel::ContentModel::setCheckStates | ( | const QStringList & | fileList, |
bool | isChecked | ||
) |
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 |
QHash<QString, Qt::CheckState> ContentSelectorModel::ContentModel::mCheckStates [private] |
QTextCodec* ContentSelectorModel::ContentModel::mCodec [private] |
Qt::ItemFlags ContentSelectorModel::ContentModel::mDragDropFlags |
Qt::DropActions ContentSelectorModel::ContentModel::mDropActions |
QStringList ContentSelectorModel::ContentModel::mMimeTypes |