Crossfire Server, Trunk
|
#include <CREMessagePanel.h>
Public Member Functions | |
CREMessagePanel (const MessageManager *manager, QWidget *parent) | |
virtual void | updateItem () override |
virtual | ~CREMessagePanel () |
Public Member Functions inherited from AssetSWrapperPanel< MessageFile > | |
AssetSWrapperPanel (QWidget *parent) | |
virtual void | setAsset (AssetWrapper *asset) override |
Public Member Functions inherited from AssetWrapperPanel | |
ArchetypeComboBox * | addArchetype (const QString &label, const char *property, bool readOnly=false, bool allowNone=true) |
AssetUseTree * | addAssetUseTree (const QString &label, AssetModel *assets, const char *property) |
void | addBottomFiller () |
QCheckBox * | addCheckBox (const QString &label, const char *property, bool readOnly=true) |
void | addFaceChoice (const QString &label, const char *property, bool readOnly=true, bool allowNone=true) |
QLabel * | addLabel (const QString &label, const char *property, bool wrapText=false) |
QLineEdit * | addLineEdit (const QString &label, const char *property, bool readOnly=true) |
void | addQuestChoice (const QString &label, const char *property, bool readOnly=true, bool allowNone=true) |
QSpinBox * | addSpinBox (const QString &label, const char *property, int min=0, int max=100, bool readOnly=true) |
void | addTab (const QString &title) |
QTextEdit * | addTextEdit (const QString &label, const char *property, bool readOnly=true) |
TreasureListComboBox * | addTreasureList (const QString &label, const char *property, bool readOnly=true, bool allowNone=true) |
AssetWrapperPanel (QWidget *parent) | |
virtual | ~AssetWrapperPanel () |
Private Slots | |
void | currentRowChanged (const QModelIndex ¤t, const QModelIndex &previous) |
void | onAddRule (bool) |
void | onDeleteRule (bool) |
void | onDuplicate (bool) |
void | onMoveDown (bool) |
void | onMoveUp (bool) |
void | onReset (bool) |
Private Attributes | |
QBrush | myDefaultBackground |
const MessageManager * | myMessageManager |
CREMessageItemModel * | myModel |
MessageFile * | myOriginal |
QLineEdit * | myPath |
QTableView * | myRules |
QTreeWidget * | myUse |
Additional Inherited Members | |
Protected Slots inherited from AssetWrapperPanel | |
void | dataChanged () |
void | itemChanged () |
Protected Member Functions inherited from AssetWrapperPanel | |
template<class T > | |
T * | addWidget (const QString &label, T *widget, bool sideBySide, const char *property, const char *widgetProperty) |
Protected Attributes inherited from AssetSWrapperPanel< MessageFile > | |
MessageFile * | myItem |
Protected Attributes inherited from AssetWrapperPanel | |
AssetWrapper * | myAsset |
QMetaObject::Connection | myChanged |
QMetaObject::Connection | myDelete |
bool | myInhibit |
QGridLayout * | myLayout |
QList< PropertyLink > | myLinks |
QTabWidget * | myTab |
Display information about a NPC message file, and allow edition.
Definition at line 31 of file CREMessagePanel.h.
CREMessagePanel::CREMessagePanel | ( | const MessageManager * | manager, |
QWidget * | parent | ||
) |
Definition at line 25 of file CREMessagePanel.cpp.
References AssetWrapperPanel::addLineEdit(), AssetWrapperPanel::addTab(), AssetWrapperPanel::addWidget(), currentRowChanged(), manager, AssetWrapperPanel::myLayout, myMessageManager, myModel, myOriginal, myPath, myRules, myUse, onAddRule(), onDeleteRule(), onDuplicate(), onMoveDown(), onMoveUp(), onReset(), PrePostWidget::PostConditions, and PrePostWidget::PreConditions.
|
virtual |
Definition at line 88 of file CREMessagePanel.cpp.
References myOriginal.
|
privateslot |
Definition at line 167 of file CREMessagePanel.cpp.
References replace::current, myModel, and CREMessageItemModel::setSelectedRule().
Referenced by CREMessagePanel().
|
privateslot |
Definition at line 172 of file CREMessagePanel.cpp.
References CREMessageItemModel::index(), CREMessageItemModel::insertRows(), myModel, and myRules.
Referenced by CREMessagePanel().
|
privateslot |
Definition at line 179 of file CREMessagePanel.cpp.
References myModel, myRules, and CREMessageItemModel::removeRows().
Referenced by CREMessagePanel().
|
privateslot |
Definition at line 204 of file CREMessagePanel.cpp.
References CREMessageItemModel::duplicateRow(), CREMessageItemModel::index(), npc_dialog::index, AssetSWrapperPanel< MessageFile >::myItem, myModel, myRules, and MessageFile::rules().
Referenced by CREMessagePanel().
|
privateslot |
Definition at line 194 of file CREMessagePanel.cpp.
References CREMessageItemModel::index(), npc_dialog::index, CREMessageItemModel::moveUpDown(), AssetSWrapperPanel< MessageFile >::myItem, myModel, myRules, and MessageFile::rules().
Referenced by CREMessagePanel().
|
privateslot |
Definition at line 184 of file CREMessagePanel.cpp.
References CREMessageItemModel::index(), npc_dialog::index, CREMessageItemModel::moveUpDown(), AssetSWrapperPanel< MessageFile >::myItem, myModel, myRules, and MessageFile::rules().
Referenced by CREMessagePanel().
|
privateslot |
Definition at line 214 of file CREMessagePanel.cpp.
References MessageFile::copy(), AssetSWrapperPanel< MessageFile >::myItem, myOriginal, and updateItem().
Referenced by CREMessagePanel().
|
overridevirtual |
Called when myItem was updated.
Implements AssetSWrapperPanel< MessageFile >.
Definition at line 93 of file CREMessagePanel.cpp.
References MessageFile::duplicate(), mad_mage_user::file, sunnista::got, disinfect::map, MessageFile::maps(), MessageManager::messages(), AssetSWrapperPanel< MessageFile >::myItem, myMessageManager, myModel, myOriginal, myPath, myUse, MessageFile::path, root, npc_dialog::rule, and CREMessageItemModel::setMessage().
Referenced by onReset().
|
private |
Definition at line 47 of file CREMessagePanel.h.
|
private |
Definition at line 42 of file CREMessagePanel.h.
Referenced by CREMessagePanel(), and updateItem().
|
private |
Definition at line 46 of file CREMessagePanel.h.
Referenced by CREMessagePanel(), currentRowChanged(), onAddRule(), onDeleteRule(), onDuplicate(), onMoveDown(), onMoveUp(), and updateItem().
|
private |
Definition at line 43 of file CREMessagePanel.h.
Referenced by CREMessagePanel(), onReset(), updateItem(), and ~CREMessagePanel().
|
private |
Definition at line 44 of file CREMessagePanel.h.
Referenced by CREMessagePanel(), and updateItem().
|
private |
Definition at line 45 of file CREMessagePanel.h.
Referenced by CREMessagePanel(), onAddRule(), onDeleteRule(), onDuplicate(), onMoveDown(), and onMoveUp().
|
private |
Definition at line 48 of file CREMessagePanel.h.
Referenced by CREMessagePanel(), and updateItem().