Crossfire Server, Trunk
CREPrePostConditionDelegate Class Reference

#include <CREPrePostConditionDelegate.h>

+ Inheritance diagram for CREPrePostConditionDelegate:
+ Collaboration diagram for CREPrePostConditionDelegate:

Public Member Functions

virtual QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
 CREPrePostConditionDelegate (QObject *parent, PrePostWidget::Mode mode, const MessageManager *manager)
 
virtual void setEditorData (QWidget *editor, const QModelIndex &index) const override
 
virtual void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 
virtual void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
virtual ~CREPrePostConditionDelegate ()
 

Private Attributes

const MessageManagermyMessages
 
PrePostWidget::Mode myMode
 

Detailed Description

Allow edition of a pre- or post- list in the message table.

Definition at line 47 of file CREPrePostConditionDelegate.h.

Constructor & Destructor Documentation

◆ CREPrePostConditionDelegate()

CREPrePostConditionDelegate::CREPrePostConditionDelegate ( QObject *  parent,
PrePostWidget::Mode  mode,
const MessageManager manager 
)

Standard constructor.

Parameters
parentparent of this item.
modelist mode to use.
managermessages manager.

Definition at line 61 of file CREPrePostConditionDelegate.cpp.

◆ ~CREPrePostConditionDelegate()

CREPrePostConditionDelegate::~CREPrePostConditionDelegate ( )
virtual

Definition at line 66 of file CREPrePostConditionDelegate.cpp.

Member Function Documentation

◆ createEditor()

QWidget * CREPrePostConditionDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
overridevirtual

Definition at line 70 of file CREPrePostConditionDelegate.cpp.

References myMessages, and myMode.

◆ setEditorData()

void CREPrePostConditionDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
overridevirtual

◆ setModelData()

void CREPrePostConditionDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
overridevirtual

Definition at line 90 of file CREPrePostConditionDelegate.cpp.

References npc_dialog::index, and guildoracle::list.

◆ updateEditorGeometry()

void CREPrePostConditionDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
overridevirtual

Definition at line 101 of file CREPrePostConditionDelegate.cpp.

References ring_occidental_mages::r.

Field Documentation

◆ myMessages

const MessageManager* CREPrePostConditionDelegate::myMessages
private

Available message scripts.

Definition at line 66 of file CREPrePostConditionDelegate.h.

Referenced by createEditor().

◆ myMode

PrePostWidget::Mode CREPrePostConditionDelegate::myMode
private

List mode we're working in.

Definition at line 65 of file CREPrePostConditionDelegate.h.

Referenced by createEditor().


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