OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | List of all members
CSVWorld::VarTypeDelegate Class Reference

#include <vartypedelegate.hpp>

Inheritance diagram for CSVWorld::VarTypeDelegate:
Collaboration diagram for CSVWorld::VarTypeDelegate:

Public Member Functions

 VarTypeDelegate (const std::vector< std::pair< int, QString > > &values, CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent)
 
- Public Member Functions inherited from CSVWorld::EnumDelegate
 EnumDelegate (const std::vector< std::pair< int, QString > > &values, CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent)
 
virtual QWidgetcreateEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
virtual QWidgetcreateEditor (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)
 

Private Member Functions

virtual void addCommands (QAbstractItemModel *model, const QModelIndex &index, int type) const
 

Additional Inherited Members

- Protected Member Functions inherited from CSVWorld::EnumDelegate
int getValueIndex (const QModelIndex &index, int role=Qt::DisplayRole) const
 
- Protected Member Functions inherited from CSVWorld::CommandDelegate
QUndoStack & getUndoStack () const
 
CSMDoc::DocumentgetDocument () const
 
CSMWorld::ColumnBase::Display getDisplayTypeFromIndex (const QModelIndex &index) const
 
- Protected Attributes inherited from CSVWorld::EnumDelegate
std::vector< std::pair< int,
QString > > 
mValues
 

Constructor & Destructor Documentation

CSVWorld::VarTypeDelegate::VarTypeDelegate ( const std::vector< std::pair< int, QString > > &  values,
CSMWorld::CommandDispatcher dispatcher,
CSMDoc::Document document,
QObject parent 
)

Member Function Documentation

void CSVWorld::VarTypeDelegate::addCommands ( QAbstractItemModel model,
const QModelIndex &  index,
int  type 
) const
privatevirtual

Reimplemented from CSVWorld::EnumDelegate.

Here is the call graph for this function:


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