Crossfire Server, Trunk
|
#include <CREPrePostPanel.h>
Public Member Functions | |
CREPrePostPanel (PrePostWidget::Mode mode, const QList< QuestConditionScript * > scripts, QWidget *parent) | |
QStringList | getData () |
void | setData (const QStringList &data) |
virtual | ~CREPrePostPanel () |
Private Slots | |
void | currentChoiceChanged (int index) |
void | onReset (bool) |
void | subItemChanged (const QStringList &data) |
Private Member Functions | |
CRESubItemWidget * | createSubItemWidget (const QuestConditionScript *script) |
Private Attributes | |
QComboBox * | myChoices |
QStringList | myData |
PrePostWidget::Mode | myMode |
QStringList | myOriginal |
QStackedWidget * | mySubItemsStack |
QList< CRESubItemWidget * > | mySubWidgets |
Edition of a single pre- or post- condition for a message, or a quest step list for a quest step.
Definition at line 152 of file CREPrePostPanel.h.
CREPrePostPanel::CREPrePostPanel | ( | PrePostWidget::Mode | mode, |
const QList< QuestConditionScript * > | scripts, | ||
QWidget * | parent | ||
) |
Standard constructor.
mode | what mode to work on. |
scripts | available script types for the conditions. |
parent | ancestor of this panel. |
Definition at line 426 of file CREPrePostPanel.cpp.
References createSubItemWidget(), currentChoiceChanged(), myChoices, mySubItemsStack, mySubWidgets, give::name, onReset(), PrePostWidget::PostConditions, PrePostWidget::PreConditions, python_init::scripts, PrePostWidget::SetWhen, and subItemChanged().
|
virtual |
Definition at line 475 of file CREPrePostPanel.cpp.
|
private |
Creates a CRESubItemWidget for the specified script.
script | the script to create the display for. |
Definition at line 516 of file CREPrePostPanel.cpp.
References myMode, QuestConditionScript::name(), PrePostWidget::PostConditions, and PrePostWidget::PreConditions.
Referenced by CREPrePostPanel().
|
privateslot |
Definition at line 498 of file CREPrePostPanel.cpp.
References myChoices, myData, mySubItemsStack, and mySubWidgets.
Referenced by CREPrePostPanel().
QStringList CREPrePostPanel::getData | ( | ) |
Definition at line 479 of file CREPrePostPanel.cpp.
References myData.
Referenced by CREPrePostSingleConditionDelegate::setModelData().
|
privateslot |
Definition at line 530 of file CREPrePostPanel.cpp.
References myOriginal, and setData().
Referenced by CREPrePostPanel().
void CREPrePostPanel::setData | ( | const QStringList & | data | ) |
Definition at line 484 of file CREPrePostPanel.cpp.
References navar-midane_time::data, myChoices, myData, myMode, myOriginal, mySubWidgets, and PrePostWidget::SetWhen.
Referenced by onReset(), and CREPrePostSingleConditionDelegate::setEditorData().
|
privateslot |
Definition at line 509 of file CREPrePostPanel.cpp.
References navar-midane_time::data, and myData.
Referenced by CREPrePostPanel().
|
private |
Available conditions types.
Definition at line 175 of file CREPrePostPanel.h.
Referenced by CREPrePostPanel(), currentChoiceChanged(), and setData().
|
private |
Pre- or post- condition we're working on.
Definition at line 171 of file CREPrePostPanel.h.
Referenced by currentChoiceChanged(), getData(), setData(), and subItemChanged().
|
private |
Mode we're working in.
Definition at line 181 of file CREPrePostPanel.h.
Referenced by createSubItemWidget(), and setData().
|
private |
Original data, to reset the state.
Definition at line 173 of file CREPrePostPanel.h.
|
private |
Arguments panels, only one visible based on the choice.
Definition at line 179 of file CREPrePostPanel.h.
Referenced by CREPrePostPanel(), and currentChoiceChanged().
|
private |
Matching between index of myChoices and the variable subpanels.
Definition at line 177 of file CREPrePostPanel.h.
Referenced by CREPrePostPanel(), currentChoiceChanged(), and setData().