Crossfire Server, Trunk
CREFacePanel Class Reference

#include <FacePanel.h>

+ Inheritance diagram for CREFacePanel:
+ Collaboration diagram for CREFacePanel:

Public Member Functions

 CREFacePanel (QWidget *parent, AssetModel *model, ResourcesManager *resources, CREMapInformationManager *maps)
 
virtual void updateItem () override
 
- Public Member Functions inherited from AssetTWrapperPanel< Face >
 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

QComboBox * myColor
 
QLineEdit * myFile
 
QTreeWidget * myLicenses
 
CREMapInformationManagermyMaps
 
ResourcesManagermyResources
 
QPushButton * mySave
 
UseFilterAssetModelmyUseModel
 
QTreeView * myUseView
 
- Protected Attributes inherited from AssetTWrapperPanel< Face >
FacemyItem
 
- Protected Attributes inherited from AssetWrapperPanel
AssetWrappermyAsset
 
QMetaObject::Connection myChanged
 
QMetaObject::Connection myDelete
 
bool myInhibit
 
QGridLayout * myLayout
 
QList< PropertyLinkmyLinks
 
QTabWidget * myTab
 

Private Slots

void makeSmooth (bool)
 
void saveClicked (bool)
 

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 about a face.

Definition at line 30 of file FacePanel.h.

Constructor & Destructor Documentation

◆ CREFacePanel()

CREFacePanel::CREFacePanel ( QWidget *  parent,
AssetModel model,
ResourcesManager resources,
CREMapInformationManager maps 
)

Member Function Documentation

◆ makeSmooth

void CREFacePanel::makeSmooth ( bool  )
privateslot

Definition at line 86 of file FacePanel.cpp.

References AssetTWrapperPanel< Face >::myItem, CRESmoothFaceMaker::setAutoClose(), and CRESmoothFaceMaker::setSelectedFace().

Referenced by CREFacePanel().

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

◆ saveClicked

void CREFacePanel::saveClicked ( bool  )
privateslot

Definition at line 82 of file FacePanel.cpp.

Referenced by CREFacePanel().

+ Here is the caller graph for this function:

◆ updateItem()

void CREFacePanel::updateItem ( )
overridevirtual

Field Documentation

◆ myColor

QComboBox* CREFacePanel::myColor
protected

Definition at line 43 of file FacePanel.h.

Referenced by CREFacePanel(), and updateItem().

◆ myFile

QLineEdit* CREFacePanel::myFile
protected

Definition at line 44 of file FacePanel.h.

Referenced by CREFacePanel(), and updateItem().

◆ myLicenses

QTreeWidget* CREFacePanel::myLicenses
protected

Definition at line 46 of file FacePanel.h.

Referenced by CREFacePanel(), and updateItem().

◆ myMaps

CREMapInformationManager* CREFacePanel::myMaps
protected

Definition at line 38 of file FacePanel.h.

Referenced by CREFacePanel().

◆ myResources

ResourcesManager* CREFacePanel::myResources
protected

Definition at line 42 of file FacePanel.h.

Referenced by CREFacePanel(), and updateItem().

◆ mySave

QPushButton* CREFacePanel::mySave
protected

Definition at line 45 of file FacePanel.h.

Referenced by CREFacePanel().

◆ myUseModel

UseFilterAssetModel* CREFacePanel::myUseModel
protected

Definition at line 41 of file FacePanel.h.

Referenced by CREFacePanel(), and updateItem().

◆ myUseView

QTreeView* CREFacePanel::myUseView
protected

Definition at line 40 of file FacePanel.h.

Referenced by CREFacePanel(), and updateItem().


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