Crossfire Server, Trunk
AllAssets Class Reference

#include <AllAssets.h>

+ Inheritance diagram for AllAssets:
+ Collaboration diagram for AllAssets:

Public Member Functions

 AllAssets (ResourcesManager *resources, ScriptFileManager *scripts, MessageManager *messages)
 
virtual AssetWrapperchild (int index)
 
virtual int childIndex (AssetWrapper *child)
 
virtual int childrenCount () const
 
virtual QString displayName () const
 
AssetWrapperrandomMaps ()
 
AssetWrapperregions ()
 
SoundFilessounds () 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 PossibleUse uses (const AssetWrapper *, std::string &) const
 
virtual ~AssetWrapper () override
 

Protected Attributes

QVector< AssetWrapper * > myAssets
 
AssetWrappermyRandomMaps
 
AssetWrappermyRegions
 
SoundFilesmySounds
 
- 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
QString displayName
 
AssetWrapper self
 

Detailed Description

Definition at line 23 of file AllAssets.h.

Constructor & Destructor Documentation

◆ AllAssets()

AllAssets::AllAssets ( ResourcesManager resources,
ScriptFileManager scripts,
MessageManager messages 
)

Definition at line 39 of file AllAssets.cpp.

References getManager(), ResourcesManager::getMapInformationManager(), navar-midane_apply::messages, myAssets, myRandomMaps, myRegions, mySounds, and python_init::scripts.

+ Here is the call graph for this function:

Member Function Documentation

◆ child()

virtual AssetWrapper* AllAssets::child ( int  index)
inlinevirtual

Reimplemented from AssetWrapper.

Definition at line 31 of file AllAssets.h.

References npc_dialog::index, and myAssets.

Referenced by childIndex(), and CREMainWindow::createMenus().

+ Here is the caller graph for this function:

◆ childIndex()

virtual int AllAssets::childIndex ( AssetWrapper child)
inlinevirtual

Reimplemented from AssetWrapper.

Definition at line 32 of file AllAssets.h.

References child(), and myAssets.

+ Here is the call graph for this function:

◆ childrenCount()

virtual int AllAssets::childrenCount ( ) const
inlinevirtual

Reimplemented from AssetWrapper.

Definition at line 30 of file AllAssets.h.

References myAssets.

Referenced by CREMainWindow::createMenus().

+ Here is the caller graph for this function:

◆ displayName()

virtual QString AllAssets::displayName ( ) const
inlinevirtual

Implements AssetWrapper.

Definition at line 28 of file AllAssets.h.

◆ randomMaps()

AssetWrapper* AllAssets::randomMaps ( )
inline

Definition at line 35 of file AllAssets.h.

References myRandomMaps.

Referenced by CREMainWindow::mapAdded().

+ Here is the caller graph for this function:

◆ regions()

AssetWrapper* AllAssets::regions ( )
inline

Definition at line 34 of file AllAssets.h.

References myRegions.

Referenced by CREMainWindow::mapAdded().

+ Here is the caller graph for this function:

◆ sounds()

SoundFiles* AllAssets::sounds ( ) const
inline

Definition at line 36 of file AllAssets.h.

References mySounds.

Field Documentation

◆ myAssets

QVector<AssetWrapper *> AllAssets::myAssets
protected

Definition at line 39 of file AllAssets.h.

Referenced by AllAssets(), child(), childIndex(), and childrenCount().

◆ myRandomMaps

AssetWrapper* AllAssets::myRandomMaps
protected

Definition at line 41 of file AllAssets.h.

Referenced by AllAssets(), and randomMaps().

◆ myRegions

AssetWrapper* AllAssets::myRegions
protected

Definition at line 40 of file AllAssets.h.

Referenced by AllAssets(), and regions().

◆ mySounds

SoundFiles* AllAssets::mySounds
protected

Definition at line 42 of file AllAssets.h.

Referenced by AllAssets(), and sounds().


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