OpenMW
|
#include <recordstatusdelegate.hpp>
Public Member Functions | |
RecordStatusDelegate (const ValueList &values, const IconList &icons, CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent=0) | |
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 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 |
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::Document & | getDocument () 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 |
CSVWorld::RecordStatusDelegate::RecordStatusDelegate | ( | const ValueList & | values, |
const IconList & | icons, | ||
CSMWorld::CommandDispatcher * | dispatcher, | ||
CSMDoc::Document & | document, | ||
QObject * | parent = 0 |
||
) |