Crossfire Server, Trunk
RandomMaps Class Reference

#include <RandomMaps.h>

Inheritance diagram for RandomMaps:
Inheritance graph
Collaboration diagram for RandomMaps:
Collaboration graph

Public Member Functions

virtual AssetWrapperchild (int child) override
 
virtual int childIndex (AssetWrapper *child) override
 
virtual int childrenCount () const override
 
virtual QString displayName () const override
 
 RandomMaps (AssetWrapper *parent, CREMapInformationManager *maps)
 
- 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 Slots

void mapAdded (CREMapInformation *map)
 

Private Member Functions

void refresh () const
 

Private Attributes

QList< RandomMap * > myCache
 
CREMapInformationManagermyMaps
 
bool myNeedRefresh
 

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)
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 
- Properties inherited from AssetWrapper
QString displayName
 
AssetWrapper self
 

Detailed Description

Definition at line 20 of file RandomMaps.h.

Constructor & Destructor Documentation

◆ RandomMaps()

RandomMaps::RandomMaps ( AssetWrapper parent,
CREMapInformationManager maps 
)
inline

Definition at line 23 of file RandomMaps.h.

References mapAdded(), maps, and AssetWrapper::tipProperty.

Here is the call graph for this function:

Member Function Documentation

◆ child()

virtual AssetWrapper* RandomMaps::child ( int  child)
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 31 of file RandomMaps.h.

References child(), myCache, and refresh().

Referenced by child(), and childIndex().

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

◆ childIndex()

virtual int RandomMaps::childIndex ( AssetWrapper child)
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 32 of file RandomMaps.h.

References child(), myCache, and refresh().

Here is the call graph for this function:

◆ childrenCount()

virtual int RandomMaps::childrenCount ( ) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 30 of file RandomMaps.h.

References myCache, and refresh().

Here is the call graph for this function:

◆ displayName()

virtual QString RandomMaps::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 28 of file RandomMaps.h.

◆ mapAdded

void RandomMaps::mapAdded ( CREMapInformation map)
inlineprotectedslot

Definition at line 35 of file RandomMaps.h.

References disinfect::map, and myNeedRefresh.

Referenced by RandomMaps().

Here is the caller graph for this function:

◆ refresh()

void RandomMaps::refresh ( ) const
inlineprivate

Definition at line 46 of file RandomMaps.h.

References myCache, myMaps, myNeedRefresh, and CREMapInformationManager::randomMaps().

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

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

Member Data Documentation

◆ myCache

QList<RandomMap *> RandomMaps::myCache
mutableprivate

Definition at line 44 of file RandomMaps.h.

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

◆ myMaps

CREMapInformationManager* RandomMaps::myMaps
private

Definition at line 42 of file RandomMaps.h.

Referenced by refresh().

◆ myNeedRefresh

bool RandomMaps::myNeedRefresh
mutableprivate

Definition at line 43 of file RandomMaps.h.

Referenced by mapAdded(), and refresh().


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