Crossfire Server, Trunk
|
#include <CREPrePostConditionDelegate.h>
Public Member Functions | |
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
CREPrePostSingleConditionDelegate (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 |
Private Attributes | |
const MessageManager * | myMessages |
PrePostWidget::Mode | myMode |
Allow edition a single pre- or post condition.
Definition at line 23 of file CREPrePostConditionDelegate.h.
CREPrePostSingleConditionDelegate::CREPrePostSingleConditionDelegate | ( | QObject * | parent, |
PrePostWidget::Mode | mode, | ||
const MessageManager * | manager | ||
) |
Standard constructor.
parent | parent of this item. |
mode | list mode to use. |
manager | messages manager. |
Definition at line 18 of file CREPrePostConditionDelegate.cpp.
|
overridevirtual |
Definition at line 23 of file CREPrePostConditionDelegate.cpp.
References myMessages, myMode, MessageManager::postConditions(), PrePostWidget::PreConditions, and MessageManager::preConditions().
|
overridevirtual |
Definition at line 28 of file CREPrePostConditionDelegate.cpp.
References npc_dialog::index, and CREPrePostPanel::setData().
|
overridevirtual |
Definition at line 36 of file CREPrePostConditionDelegate.cpp.
References navar-midane_time::data, CREPrePostPanel::getData(), npc_dialog::index, myMode, and PrePostWidget::SetWhen.
|
overridevirtual |
Definition at line 48 of file CREPrePostConditionDelegate.cpp.
References ring_occidental_mages::r.
|
private |
Definition at line 41 of file CREPrePostConditionDelegate.h.
Referenced by createEditor().
|
private |
Definition at line 40 of file CREPrePostConditionDelegate.h.
Referenced by createEditor(), and setModelData().