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

#include <idtypedelegate.hpp>

Inheritance diagram for CSVWorld::IdTypeDelegate:
Collaboration diagram for CSVWorld::IdTypeDelegate:

Public Member Functions

 IdTypeDelegate (const ValueList &mValues, const IconList &icons, CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent)
 
- Public Member Functions inherited from CSVWorld::DataDisplayDelegate
 DataDisplayDelegate (const ValueList &values, const IconList &icons, CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, const std::string &pageName, const std::string &settingName, QObject *parent)
 
 ~DataDisplayDelegate ()
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 
void setIconSize (const QSize &icon)
 pass a QSize defining height / width of icon. Default is QSize (16,16). More...
 
void setTextLeftOffset (int offset)
 offset the horizontal position of the text from the right edge of the icon. Default is 8 pixels. More...
 
- 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
 
- 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
 

Additional Inherited Members

- Public Types inherited from CSVWorld::DataDisplayDelegate
typedef std::vector< std::pair
< int, QIcon > > 
IconList
 
typedef std::vector< std::pair
< int, QString > > 
ValueList
 
- Protected Types inherited from CSVWorld::DataDisplayDelegate
enum  DisplayMode { Mode_TextOnly, Mode_IconOnly, Mode_IconAndText }
 
- 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::DataDisplayDelegate
DisplayMode mDisplayMode
 
IconList mIcons
 
- Protected Attributes inherited from CSVWorld::EnumDelegate
std::vector< std::pair< int,
QString > > 
mValues
 

Constructor & Destructor Documentation

CSVWorld::IdTypeDelegate::IdTypeDelegate ( const ValueList mValues,
const IconList icons,
CSMWorld::CommandDispatcher dispatcher,
CSMDoc::Document document,
QObject parent 
)

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