Crossfire Server, Trunk
|
#include <ScriptFile.h>
Public Member Functions | |
void | addHook (HookInformation *hook) |
virtual QString | displayName () const override |
bool | forMap (const CREMapInformation *map) const |
QList< HookInformation * > | hooks () const |
const QString & | path () const |
bool | removeMap (CREMapInformation *map) |
ScriptFile (AssetWrapper *parent, const QString &path) | |
virtual | ~ScriptFile () |
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 AssetWrapper * | child (int) |
virtual int | childIndex (AssetWrapper *) |
virtual int | childrenCount () const |
virtual QIcon | displayIcon () const |
virtual QString | displayPanelName () const |
AssetWrapper * | displayParent () const |
virtual void | drag (QMimeData *) const |
virtual void | drop (const QMimeData *, int) |
virtual void | fillMenu (QMenu *) |
void | markModified (ChangeType change, int extra=0) |
AssetWrapper * | self () |
void | setDisplayParent (AssetWrapper *parent) |
virtual PossibleUse | uses (const AssetWrapper *, std::string &) const |
virtual | ~AssetWrapper () override |
Private Attributes | |
QList< HookInformation * > | myHooks |
QString | myPath |
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 |
AssetWrapper * | myParent |
Properties inherited from AssetWrapper | |
QString | displayName |
AssetWrapper | self |
Information about a script file.
Definition at line 48 of file ScriptFile.h.
ScriptFile::ScriptFile | ( | AssetWrapper * | parent, |
const QString & | path | ||
) |
Definition at line 16 of file ScriptFile.cpp.
References myPath, and path().
|
virtual |
Definition at line 20 of file ScriptFile.cpp.
References myHooks.
void ScriptFile::addHook | ( | HookInformation * | hook | ) |
Definition at line 25 of file ScriptFile.cpp.
References myHooks.
Referenced by ScriptFileManager::addHook().
|
inlineoverridevirtual |
bool ScriptFile::forMap | ( | const CREMapInformation * | map | ) | const |
Definition at line 30 of file ScriptFile.cpp.
References disinfect::map, HookInformation::map(), and myHooks.
Referenced by ScriptFileManager::scriptsForMap(), and CREMapInformation::uses().
QList< HookInformation * > ScriptFile::hooks | ( | ) | const |
Definition at line 42 of file ScriptFile.cpp.
References myHooks.
Referenced by CREMapInformationManager::storeCache(), and CREMapPanel::updateItem().
const QString & ScriptFile::path | ( | ) | const |
Definition at line 47 of file ScriptFile.cpp.
References myPath.
Referenced by ScriptFile(), CREMapInformationManager::storeCache(), and CREMapPanel::updateItem().
bool ScriptFile::removeMap | ( | CREMapInformation * | map | ) |
Remove hooks linked to a map.
map | map to remove scripts of. |
Definition at line 52 of file ScriptFile.cpp.
References disinfect::map, and myHooks.
|
private |
Definition at line 68 of file ScriptFile.h.
Referenced by addHook(), forMap(), hooks(), removeMap(), and ~ScriptFile().
|
private |
Definition at line 67 of file ScriptFile.h.
Referenced by displayName(), path(), and ScriptFile().