Crossfire Server, Trunk
ArtifactListWrapper Class Reference

#include <ArtifactListWrapper.h>

+ Inheritance diagram for ArtifactListWrapper:
+ Collaboration diagram for ArtifactListWrapper:

Public Member Functions

 ArtifactListWrapper (AssetWrapper *parent, artifactlist *list, 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
 
virtual void wasModified (AssetWrapper *asset, ChangeType type, int extra) override
 
- Public Member Functions inherited from AssetTWrapper< artifactlist >
 AssetTWrapper (AssetWrapper *parent, const QString &panelName, artifactlist *wrappedItem)
 
artifactlistwrappedItem () const
 
- 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 AssetTWrapper< artifactlist >
artifactlistmyWrappedItem
 
- 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"
 
- Properties inherited from AssetWrapper
QString displayName
 
AssetWrapper self
 

Detailed Description

Definition at line 24 of file ArtifactListWrapper.h.

Constructor & Destructor Documentation

◆ ArtifactListWrapper()

ArtifactListWrapper::ArtifactListWrapper ( AssetWrapper parent,
artifactlist list,
ResourcesManager resourcesManager 
)

Definition at line 18 of file ArtifactListWrapper.cpp.

Member Function Documentation

◆ child()

AssetWrapper * ArtifactListWrapper::child ( int  index)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 26 of file ArtifactListWrapper.cpp.

References npc_dialog::index, artifactlist::items, myResourcesManager, AssetTWrapper< artifactlist >::myWrappedItem, and ResourcesManager::wrap().

Referenced by childIndex().

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

◆ childIndex()

int ArtifactListWrapper::childIndex ( AssetWrapper child)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 33 of file ArtifactListWrapper.cpp.

References child(), npc_dialog::index, artifactlist::items, myResourcesManager, AssetTWrapper< artifactlist >::myWrappedItem, and ResourcesManager::wrap().

Referenced by wasModified().

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

◆ childrenCount()

int ArtifactListWrapper::childrenCount ( ) const
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 22 of file ArtifactListWrapper.cpp.

References artifactlist::items, and AssetTWrapper< artifactlist >::myWrappedItem.

◆ displayName()

virtual QString ArtifactListWrapper::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 30 of file ArtifactListWrapper.h.

References navar-midane_time::data, get_typedata(), AssetTWrapper< artifactlist >::myWrappedItem, and artifactlist::type.

+ Here is the call graph for this function:

◆ uses()

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

Reimplemented from AssetWrapper.

Definition at line 44 of file ArtifactListWrapper.cpp.

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

◆ wasModified()

void ArtifactListWrapper::wasModified ( AssetWrapper asset,
ChangeType  type,
int  extra 
)
overridevirtual

Field Documentation

◆ myResourcesManager

ResourcesManager* ArtifactListWrapper::myResourcesManager
protected

Definition at line 44 of file ArtifactListWrapper.h.

Referenced by child(), and childIndex().


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