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, 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)
 
TreasureListComboBoxaddTreasureList (const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
 
 AssetWrapperPanel (QWidget *parent)
 
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 29 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 140 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 150 of file AssetWrapperPanel.cpp.

References addWidget().

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

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

◆ addBottomFiller()

◆ addCheckBox()

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

Definition at line 94 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 104 of file AssetWrapperPanel.cpp.

References addWidget(), and dataChanged().

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,
bool  wrapText = false 
)

◆ addLineEdit()

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

◆ addQuestChoice()

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

Definition at line 113 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 118 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 CREMessagePanel::CREMessagePanel(), and 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 84 of file AssetWrapperPanel.cpp.

References addWidget(), and dataChanged().

Referenced by ArchetypePanel::ArchetypePanel(), ArtifactPanel::ArtifactPanel(), 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 130 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

◆ dataChanged

void AssetWrapperPanel::dataChanged ( )
protectedslot

Definition at line 160 of file AssetWrapperPanel.cpp.

References myAsset, myInhibit, and myLinks.

Referenced by addArchetype(), addCheckBox(), addFaceChoice(), 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, myLinks, and altar_valkyrie::pl.

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 60 of file AssetWrapperPanel.h.

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

◆ myDelete

QMetaObject::Connection AssetWrapperPanel::myDelete
protected

Definition at line 61 of file AssetWrapperPanel.h.

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

◆ myInhibit

bool AssetWrapperPanel::myInhibit
protected

Definition at line 59 of file AssetWrapperPanel.h.

Referenced by dataChanged(), and itemChanged().

◆ myLayout

◆ myLinks

QList<PropertyLink> AssetWrapperPanel::myLinks
protected

Definition at line 85 of file AssetWrapperPanel.h.

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

◆ myTab

QTabWidget* AssetWrapperPanel::myTab
protected

Definition at line 57 of file AssetWrapperPanel.h.

Referenced by addTab().


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