Crossfire Server, Trunk
AssetWrapperPanel Class Reference

#include <AssetWrapperPanel.h>

+ Inheritance diagram for AssetWrapperPanel:
+ Collaboration diagram for AssetWrapperPanel:

Data Structures

struct  PropertyLink
 

Public Member Functions

ArchetypeComboBoxaddArchetype (const QString &label, const char *property, bool readOnly=false, bool allowNone=true)
 
AssetUseTreeaddAssetUseTree (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)
 
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)
 
TreasureListComboBoxaddTreasureList (const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
 
 AssetWrapperPanel (QWidget *parent)
 
virtual void commitData ()
 
virtual void setAsset (AssetWrapper *item)
 
virtual ~AssetWrapperPanel ()
 

Protected Slots

void dataChanged ()
 
void itemChanged ()
 

Protected Member Functions

template<class T >
T * addWidget (const QString &label, T *widget, bool sideBySide, const char *property, const char *widgetProperty)
 

Protected Attributes

AssetWrappermyAsset
 
QMetaObject::Connection myChanged
 
QMetaObject::Connection myDelete
 
bool myInhibit
 
QGridLayout * myLayout
 
QList< PropertyLinkmyLinks
 
QTabWidget * myTab
 

Detailed Description

Base class for a panel displaying information about an asset.

Definition at line 26 of file AssetWrapperPanel.h.

Constructor & Destructor Documentation

◆ AssetWrapperPanel()

AssetWrapperPanel::AssetWrapperPanel ( QWidget *  parent)

Definition at line 23 of file AssetWrapperPanel.cpp.

References myLayout.

◆ ~AssetWrapperPanel()

AssetWrapperPanel::~AssetWrapperPanel ( )
virtual

Definition at line 27 of file AssetWrapperPanel.cpp.

References myChanged, and myDelete.

Member Function Documentation

◆ addArchetype()

ArchetypeComboBox * AssetWrapperPanel::addArchetype ( const QString &  label,
const char *  property,
bool  readOnly = false,
bool  allowNone = true 
)

Definition at line 134 of file AssetWrapperPanel.cpp.

References addWidget(), and dataChanged().

Referenced by TreasurePanel::TreasurePanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addAssetUseTree()

AssetUseTree * AssetWrapperPanel::addAssetUseTree ( const QString &  label,
AssetModel assets,
const char *  property 
)

Definition at line 144 of file AssetWrapperPanel.cpp.

References addWidget().

Referenced by AnimationPanel::AnimationPanel(), ArchetypePanel::ArchetypePanel(), CREQuestPanel::CREQuestPanel(), CREScriptPanel::CREScriptPanel(), and CRETreasurePanel::CRETreasurePanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addBottomFiller()

void AssetWrapperPanel::addBottomFiller ( )

◆ addCheckBox()

QCheckBox * AssetWrapperPanel::addCheckBox ( const QString &  label,
const char *  property,
bool  readOnly = true 
)

Definition at line 92 of file AssetWrapperPanel.cpp.

References addWidget(), and dataChanged().

Referenced by CREQuestPanel::CREQuestPanel(), CRETreasurePanel::CRETreasurePanel(), QuestStepPanel::QuestStepPanel(), and RecipePanel::RecipePanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addFaceChoice()

void AssetWrapperPanel::addFaceChoice ( const QString &  label,
const char *  property,
bool  readOnly = true,
bool  allowNone = true 
)

Definition at line 102 of file AssetWrapperPanel.cpp.

References addWidget().

Referenced by CREGeneralMessagePanel::CREGeneralMessagePanel(), and CREQuestPanel::CREQuestPanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addLabel()

QLabel * AssetWrapperPanel::addLabel ( const QString &  label,
const char *  property 
)

Definition at line 68 of file AssetWrapperPanel.cpp.

References addWidget().

Referenced by AttackMessagePanel::AttackMessagePanel(), CREResourcesWindow::CREResourcesWindow(), FacesetsPanel::FacesetsPanel(), and RegionPanel::RegionPanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addLineEdit()

QLineEdit * AssetWrapperPanel::addLineEdit ( const QString &  label,
const char *  property,
bool  readOnly = true 
)

Definition at line 72 of file AssetWrapperPanel.cpp.

References addWidget(), and dataChanged().

Referenced by ArtifactPanel::ArtifactPanel(), CREGeneralMessagePanel::CREGeneralMessagePanel(), CREQuestPanel::CREQuestPanel(), QuestStepPanel::QuestStepPanel(), and RecipePanel::RecipePanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addQuestChoice()

void AssetWrapperPanel::addQuestChoice ( const QString &  label,
const char *  property,
bool  readOnly = true,
bool  allowNone = true 
)

Definition at line 107 of file AssetWrapperPanel.cpp.

References addWidget().

Referenced by CREQuestPanel::CREQuestPanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSpinBox()

QSpinBox * AssetWrapperPanel::addSpinBox ( const QString &  label,
const char *  property,
int  min = 0,
int  max = 100,
bool  readOnly = true 
)

Definition at line 112 of file AssetWrapperPanel.cpp.

References addWidget(), dataChanged(), and say::max.

Referenced by ArtifactPanel::ArtifactPanel(), QuestStepPanel::QuestStepPanel(), and TreasurePanel::TreasurePanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addTab()

void AssetWrapperPanel::addTab ( const QString &  title)

Definition at line 36 of file AssetWrapperPanel.cpp.

References myLayout, and myTab.

Referenced by CREQuestPanel::CREQuestPanel().

+ Here is the caller graph for this function:

◆ addTextEdit()

QTextEdit * AssetWrapperPanel::addTextEdit ( const QString &  label,
const char *  property,
bool  readOnly = true 
)

Definition at line 82 of file AssetWrapperPanel.cpp.

References addWidget(), and dataChanged().

Referenced by ArchetypePanel::ArchetypePanel(), CREGeneralMessagePanel::CREGeneralMessagePanel(), CREQuestPanel::CREQuestPanel(), and RecipePanel::RecipePanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addTreasureList()

TreasureListComboBox * AssetWrapperPanel::addTreasureList ( const QString &  label,
const char *  property,
bool  readOnly = true,
bool  allowNone = true 
)

Definition at line 124 of file AssetWrapperPanel.cpp.

References addWidget(), and dataChanged().

Referenced by TreasurePanel::TreasurePanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addWidget()

template<class T >
T* AssetWrapperPanel::addWidget ( const QString &  label,
T *  widget,
bool  sideBySide,
const char *  property,
const char *  widgetProperty 
)
inlineprotected

◆ commitData()

virtual void AssetWrapperPanel::commitData ( )
inlinevirtual

Reimplemented in CREMessagePanel, and ArchetypePanel.

Definition at line 35 of file AssetWrapperPanel.h.

Referenced by CREResourcesWindow::commitData().

+ Here is the caller graph for this function:

◆ dataChanged

void AssetWrapperPanel::dataChanged ( )
protectedslot

Definition at line 154 of file AssetWrapperPanel.cpp.

References myAsset, myInhibit, and myLinks.

Referenced by addArchetype(), addCheckBox(), addLineEdit(), addSpinBox(), addTextEdit(), addTreasureList(), and QuestStepPanel::QuestStepPanel().

+ Here is the caller graph for this function:

◆ itemChanged

void AssetWrapperPanel::itemChanged ( )
protectedslot

Definition at line 59 of file AssetWrapperPanel.cpp.

References myAsset, myInhibit, and myLinks.

Referenced by setAsset().

+ Here is the caller graph for this function:

◆ setAsset()

Field Documentation

◆ myAsset

AssetWrapper* AssetWrapperPanel::myAsset
protected

◆ myChanged

QMetaObject::Connection AssetWrapperPanel::myChanged
protected

Definition at line 58 of file AssetWrapperPanel.h.

Referenced by setAsset(), and ~AssetWrapperPanel().

◆ myDelete

QMetaObject::Connection AssetWrapperPanel::myDelete
protected

Definition at line 59 of file AssetWrapperPanel.h.

Referenced by setAsset(), and ~AssetWrapperPanel().

◆ myInhibit

bool AssetWrapperPanel::myInhibit
protected

Definition at line 57 of file AssetWrapperPanel.h.

Referenced by dataChanged(), and itemChanged().

◆ myLayout

◆ myLinks

QList<PropertyLink> AssetWrapperPanel::myLinks
protected

Definition at line 83 of file AssetWrapperPanel.h.

Referenced by addWidget(), dataChanged(), and itemChanged().

◆ myTab

QTabWidget* AssetWrapperPanel::myTab
protected

Definition at line 55 of file AssetWrapperPanel.h.

Referenced by addTab().


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