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
 
 CREPrePostConditionDelegate (QObject *parent, CREPrePostList::Mode mode, const MessageManager *manager)
 
virtual void setEditorData (QWidget *editor, const QModelIndex &index) const
 
virtual void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 
virtual void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
virtual ~CREPrePostConditionDelegate ()
 

Private Attributes

const MessageManagermyMessages
 
CREPrePostList::Mode myMode
 

Detailed Description

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

Definition at line 35 of file CREPrePostConditionDelegate.h.

Constructor & Destructor Documentation

◆ CREPrePostConditionDelegate()

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

Standard constructor.

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

Definition at line 49 of file CREPrePostConditionDelegate.cpp.

◆ ~CREPrePostConditionDelegate()

CREPrePostConditionDelegate::~CREPrePostConditionDelegate ( )
virtual

Definition at line 54 of file CREPrePostConditionDelegate.cpp.

Member Function Documentation

◆ createEditor()

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

Definition at line 58 of file CREPrePostConditionDelegate.cpp.

References myMessages, and myMode.

◆ setEditorData()

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

◆ setModelData()

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

Definition at line 78 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 89 of file CREPrePostConditionDelegate.cpp.

References ring_occidental_mages::r.

Field Documentation

◆ myMessages

const MessageManager* CREPrePostConditionDelegate::myMessages
private

Available message scripts.

Definition at line 54 of file CREPrePostConditionDelegate.h.

Referenced by createEditor().

◆ myMode

CREPrePostList::Mode CREPrePostConditionDelegate::myMode
private

List mode we're working in.

Definition at line 53 of file CREPrePostConditionDelegate.h.

Referenced by createEditor().


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