Crossfire Server, Trunk
RecipePanel Class Reference

#include <RecipePanel.h>

+ Inheritance diagram for RecipePanel:
+ Collaboration diagram for RecipePanel:

Public Member Functions

 RecipePanel (QWidget *parent)
 
virtual void updateItem () override
 
- Public Member Functions inherited from AssetTWrapperPanel< recipe >
 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 Attributes

QTreeWidget * myArchetypes
 
QTextEdit * myIngredients
 
- Protected Attributes inherited from AssetTWrapperPanel< recipe >
recipemyItem
 
- Protected Attributes inherited from AssetWrapperPanel
AssetWrappermyAsset
 
QMetaObject::Connection myChanged
 
QMetaObject::Connection myDelete
 
bool myInhibit
 
QGridLayout * myLayout
 
QList< PropertyLinkmyLinks
 
QTabWidget * myTab
 

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)
 

Detailed Description

Display details of a crafting recipe.

Definition at line 27 of file RecipePanel.h.

Constructor & Destructor Documentation

◆ RecipePanel()

RecipePanel::RecipePanel ( QWidget *  parent)

Member Function Documentation

◆ updateItem()

void RecipePanel::updateItem ( )
overridevirtual

Called when myItem is updated.

Implements AssetTWrapperPanel< recipe >.

Definition at line 42 of file RecipePanel.cpp.

References archininventory::arch, CREUtils::archetypeNode(), AssetsManager::archetypes(), AssetsCollection< T, Key >::find(), getManager(), myArchetypes, AssetWrapperPanel::myAsset, myIngredients, and give::name.

+ Here is the call graph for this function:

Field Documentation

◆ myArchetypes

QTreeWidget* RecipePanel::myArchetypes
protected

Definition at line 36 of file RecipePanel.h.

Referenced by RecipePanel(), and updateItem().

◆ myIngredients

QTextEdit* RecipePanel::myIngredients
protected

Definition at line 37 of file RecipePanel.h.

Referenced by RecipePanel(), and updateItem().


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