OpenMW
Public Member Functions | Protected Member Functions | Private Slots | Private Attributes
CSVWorld::CommandDelegate Class Reference

#include <util.hpp>

List of all members.

Public Member Functions

 CommandDelegate (QUndoStack &undoStack, QObject *parent)
virtual void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
void setEditLock (bool locked)
bool isEditLocked () const
virtual bool updateEditorSetting (const QString &settingName, const QString &settingValue)

Protected Member Functions

QUndoStack & getUndoStack () const
virtual void setModelDataImp (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const

Private Slots

virtual void slotUpdateEditorSetting (const QString &settingName, const QString &settingValue)

Private Attributes

QUndoStack & mUndoStack
bool mEditLock

Constructor & Destructor Documentation

CSVWorld::CommandDelegate::CommandDelegate ( QUndoStack &  undoStack,
QObject *  parent 
)

Member Function Documentation

QWidget * CSVWorld::CommandDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const [virtual]

Reimplemented in CSVWorld::EnumDelegate.

QUndoStack & CSVWorld::CommandDelegate::getUndoStack ( ) const [protected]
void CSVWorld::CommandDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const [virtual]
void CSVWorld::CommandDelegate::setModelDataImp ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const [protected, virtual]

Reimplemented in CSVWorld::EnumDelegate.

virtual void CSVWorld::CommandDelegate::slotUpdateEditorSetting ( const QString &  settingName,
const QString &  settingValue 
) [inline, private, virtual, slot]
bool CSVWorld::CommandDelegate::updateEditorSetting ( const QString &  settingName,
const QString &  settingValue 
) [virtual]
Returns:
Does column require update?

Reimplemented in CSVWorld::RecordStatusDelegate, and CSVWorld::IdTypeDelegate.


Member Data Documentation


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