OpenMW
|
Integer value that represents an enum and is interacted with via a combobox. More...
#include <enumdelegate.hpp>
Public Member Functions | |
EnumDelegate (const std::vector< std::pair< int, QString > > &values, CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent) | |
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index, CSMWorld::ColumnBase::Display display=CSMWorld::ColumnBase::Display_None) const |
virtual void | setEditorData (QWidget *editor, const QModelIndex &index, bool tryDisplay=false) const |
virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
Public Member Functions inherited from CSVWorld::CommandDelegate | |
CommandDelegate (CSMWorld::CommandDispatcher *commandDispatcher, CSMDoc::Document &document, QObject *parent) | |
virtual void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
void | setEditLock (bool locked) |
bool | isEditLocked () const |
virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const |
virtual void | settingChanged (const CSMPrefs::Setting *setting) |
Protected Member Functions | |
int | getValueIndex (const QModelIndex &index, int role=Qt::DisplayRole) const |
Protected Member Functions inherited from CSVWorld::CommandDelegate | |
QUndoStack & | getUndoStack () const |
CSMDoc::Document & | getDocument () const |
CSMWorld::ColumnBase::Display | getDisplayTypeFromIndex (const QModelIndex &index) const |
Protected Attributes | |
std::vector< std::pair< int, QString > > | mValues |
Private Member Functions | |
virtual void | setModelDataImp (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
virtual void | addCommands (QAbstractItemModel *model, const QModelIndex &index, int type) const |
Integer value that represents an enum and is interacted with via a combobox.
CSVWorld::EnumDelegate::EnumDelegate | ( | const std::vector< std::pair< int, QString > > & | values, |
CSMWorld::CommandDispatcher * | dispatcher, | ||
CSMDoc::Document & | document, | ||
QObject * | parent | ||
) |
|
privatevirtual |
Reimplemented in CSVWorld::VarTypeDelegate.
|
virtual |
Reimplemented from CSVWorld::CommandDelegate.
|
virtual |
Reimplemented from CSVWorld::CommandDelegate.
|
protected |
|
virtual |
|
virtual |
Reimplemented from CSVWorld::CommandDelegate.
|
privatevirtual |
Reimplemented from CSVWorld::CommandDelegate.
|
virtual |
|
protected |