OpenMW
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
ContentSelectorModel::ContentModel Class Reference

#include <contentmodel.hpp>

List of all members.

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 EsmFileitem (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 EsmFileitem (int row) const
EsmFileitem (int row)
void sortFiles ()

Private Attributes

ContentFileList mFiles
QHash< QString, Qt::CheckState > mCheckStates
QTextCodec * mCodec

Constructor & Destructor Documentation

ContentSelectorModel::ContentModel::ContentModel ( QObject *  parent = 0) [explicit]

Member Function Documentation

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
QMimeData * ContentSelectorModel::ContentModel::mimeData ( const QModelIndexList &  indexes) 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)

Member Data Documentation

QHash<QString, Qt::CheckState> ContentSelectorModel::ContentModel::mCheckStates [private]

The documentation for this class was generated from the following files: