Crossfire Server, Trunk
ArtifactsWrapper Class Reference

#include <ArtifactsWrapper.h>

+ Inheritance diagram for ArtifactsWrapper:
+ Collaboration diagram for ArtifactsWrapper:

Public Member Functions

 ArtifactsWrapper (AssetWrapper *parent, ResourcesManager *resourcesManager)
 
virtual AssetWrapperchild (int) override
 
virtual int childIndex (AssetWrapper *) override
 
virtual int childrenCount () const override
 
virtual QString displayName () const override
 
virtual PossibleUse uses (const AssetWrapper *asset, std::string &) const override
 
- Public Member Functions inherited from AssetWrapper
 AssetWrapper (AssetWrapper *parent, const QString &panelName="empty")
 
virtual bool canDrag () const
 
virtual bool canDrop (const QMimeData *, int) const
 
virtual QIcon displayIcon () const
 
virtual QString displayPanelName () const
 
AssetWrapperdisplayParent () const
 
virtual void drag (QMimeData *) const
 
virtual void drop (const QMimeData *, int)
 
virtual void fillMenu (QMenu *)
 
void markModified (ChangeType change, int extra=0)
 
AssetWrapperself ()
 
void setDisplayParent (AssetWrapper *parent)
 
virtual ~AssetWrapper () override
 

Protected Attributes

ResourcesManagermyResourcesManager
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 

Additional Inherited Members

- Public Types inherited from AssetWrapper
enum  ChangeType {
  AssetUpdated, BeforeChildAdd, AfterChildAdd, BeforeChildRemove,
  AfterChildRemove, BeforeLayoutChange, AfterLayoutChange
}
 
enum  PossibleUse { Uses, ChildrenMayUse, DoesntUse }
 
- Public Slots inherited from AssetWrapper
virtual void removeChild (AssetWrapper *)
 
- Signals inherited from AssetWrapper
void dataModified (AssetWrapper *asset, AssetWrapper::ChangeType type, int extra)
 
void modified ()
 
- Static Public Member Functions inherited from AssetWrapper
static bool compareByDisplayName (const AssetWrapper *left, const AssetWrapper *right)
 
- Static Public Attributes inherited from AssetWrapper
static const char * tipProperty = "_cre_internal"
 
- Protected Member Functions inherited from AssetWrapper
virtual void wasModified (AssetWrapper *asset, ChangeType type, int extra)
 
- Properties inherited from AssetWrapper
AssetWrapper self
 

Detailed Description

Definition at line 24 of file ArtifactsWrapper.h.

Constructor & Destructor Documentation

◆ ArtifactsWrapper()

ArtifactsWrapper::ArtifactsWrapper ( AssetWrapper parent,
ResourcesManager resourcesManager 
)

Definition at line 18 of file ArtifactsWrapper.cpp.

References AssetWrapper::tipProperty.

Member Function Documentation

◆ child()

AssetWrapper * ArtifactsWrapper::child ( int  index)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 33 of file ArtifactsWrapper.cpp.

References first_artifactlist, npc_dialog::index, guildoracle::list, myResourcesManager, and ResourcesManager::wrap().

Referenced by childIndex().

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

◆ childIndex()

int ArtifactsWrapper::childIndex ( AssetWrapper child)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 42 of file ArtifactsWrapper.cpp.

References child(), first_artifactlist, npc_dialog::index, guildoracle::list, myResourcesManager, and ResourcesManager::wrap().

+ Here is the call graph for this function:

◆ childrenCount()

int ArtifactsWrapper::childrenCount ( ) const
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 23 of file ArtifactsWrapper.cpp.

References disinfect::count, first_artifactlist, and guildoracle::list.

◆ displayName()

virtual QString ArtifactsWrapper::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 30 of file ArtifactsWrapper.h.

◆ uses()

AssetWrapper::PossibleUse ArtifactsWrapper::uses ( const AssetWrapper asset,
std::string &   
) const
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 55 of file ArtifactsWrapper.cpp.

References AssetWrapper::ChildrenMayUse, and AssetWrapper::DoesntUse.

Field Documentation

◆ myResourcesManager

ResourcesManager* ArtifactsWrapper::myResourcesManager
protected

Definition at line 39 of file ArtifactsWrapper.h.

Referenced by child(), and childIndex().


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