Crossfire Server, Trunk
ArtifactPanel Class Reference

#include <ArtifactPanel.h>

+ Inheritance diagram for ArtifactPanel:
+ Collaboration diagram for ArtifactPanel:

Public Member Functions

 ArtifactPanel (QWidget *parent, ResourcesManager *resources)
 
virtual void updateItem () override
 
- Public Member Functions inherited from AssetTWrapperPanel< artifact >
 AssetTWrapperPanel (QWidget *parent)
 
virtual void setAsset (AssetWrapper *asset) override
 
- Public Member Functions inherited from AssetWrapperPanel
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 ~AssetWrapperPanel ()
 

Protected Slots

void artifactChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous)
 
- Protected Slots inherited from AssetWrapperPanel
void dataChanged ()
 
void itemChanged ()
 

Protected Member Functions

void computeMadeViaAlchemy (const artifact *artifact) const
 
- 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

AnimationControlmyAnimation
 
QTreeWidget * myArchetypes
 
QLineEdit * myChance
 
AnimationWidgetmyFace
 
QTextEdit * myInstance
 
QLineEdit * myName
 
QLabel * myOrigin
 
ResourcesManagermyResources
 
QLineEdit * myType
 
QTextEdit * myValues
 
QLabel * myViaAlchemy
 
- Protected Attributes inherited from AssetTWrapperPanel< artifact >
artifactmyItem
 
- Protected Attributes inherited from AssetWrapperPanel
AssetWrappermyAsset
 
QMetaObject::Connection myChanged
 
QMetaObject::Connection myDelete
 
bool myInhibit
 
QGridLayout * myLayout
 
QList< PropertyLinkmyLinks
 
QTabWidget * myTab
 

Detailed Description

Display details about an artifact definition.

Definition at line 29 of file ArtifactPanel.h.

Constructor & Destructor Documentation

◆ ArtifactPanel()

ArtifactPanel::ArtifactPanel ( QWidget *  parent,
ResourcesManager resources 
)

Member Function Documentation

◆ artifactChanged

◆ computeMadeViaAlchemy()

void ArtifactPanel::computeMadeViaAlchemy ( const artifact artifact) const
protected

◆ updateItem()

Field Documentation

◆ myAnimation

AnimationControl* ArtifactPanel::myAnimation
protected

Definition at line 46 of file ArtifactPanel.h.

Referenced by artifactChanged(), and ArtifactPanel().

◆ myArchetypes

QTreeWidget* ArtifactPanel::myArchetypes
protected

Definition at line 43 of file ArtifactPanel.h.

Referenced by ArtifactPanel(), and updateItem().

◆ myChance

QLineEdit* ArtifactPanel::myChance
protected

Definition at line 40 of file ArtifactPanel.h.

◆ myFace

AnimationWidget* ArtifactPanel::myFace
protected

Definition at line 47 of file ArtifactPanel.h.

Referenced by artifactChanged(), and ArtifactPanel().

◆ myInstance

QTextEdit* ArtifactPanel::myInstance
protected

Definition at line 45 of file ArtifactPanel.h.

Referenced by artifactChanged(), ArtifactPanel(), and updateItem().

◆ myName

QLineEdit* ArtifactPanel::myName
protected

Definition at line 39 of file ArtifactPanel.h.

◆ myOrigin

QLabel* ArtifactPanel::myOrigin
protected

Definition at line 48 of file ArtifactPanel.h.

Referenced by ArtifactPanel(), and updateItem().

◆ myResources

ResourcesManager* ArtifactPanel::myResources
protected

Definition at line 38 of file ArtifactPanel.h.

Referenced by updateItem().

◆ myType

QLineEdit* ArtifactPanel::myType
protected

Definition at line 41 of file ArtifactPanel.h.

Referenced by ArtifactPanel(), and updateItem().

◆ myValues

QTextEdit* ArtifactPanel::myValues
protected

Definition at line 44 of file ArtifactPanel.h.

Referenced by ArtifactPanel(), and updateItem().

◆ myViaAlchemy

QLabel* ArtifactPanel::myViaAlchemy
protected

Definition at line 42 of file ArtifactPanel.h.

Referenced by ArtifactPanel(), and computeMadeViaAlchemy().


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