GRE::VIEWABLE::MAINSCRIPT Class Reference
#include <gre/viewable.h>
List of all members.
Public Types |
| enum | FUNC {
FUNC_OnViewDataTipShowRequest,
FUNC_OnViewDataTipShowText,
FUNC_OnGroupDrawLabelsBegin,
FUNC_OnGroupDrawLabelsEnd,
FUNC_OnLayerDrawLabelsBegin,
FUNC_OnLayerDrawLabelsEnd,
FUNC_OnDrawLabel,
FUNC_COUNT
} |
Public Member Functions |
| | MAINSCRIPT (VIEWABLE *viewable) |
| virtual | ~MAINSCRIPT () |
| int | CallFunction (FUNC func, int NumArg, void *ArgPtr1, void *ArgPtr2=0, void *ArgPtr3=0) |
| int | CallFunction (FUNC func, SMLARG *ArgIn, int NumArg, SMLARG *ArgRet=0) |
| void | Destroy () |
| int | DlgEdit (MDLGPARENT dlgparent) |
| bool | HasFunction (FUNC func) const |
| bool | HasScript () const |
| ERRVALUE | Initialize () |
| void | Terminate () |
Private Member Functions |
| ERRVALUE | CreateSMLContext (SMLCONTEXT *&smlcontext) |
| virtual ERRVALUE | SerialRead (SERIALIZER &serializer) |
| virtual ERRVALUE | SerialWrite (SERIALIZER &serializer, const char *tagname=0) const |
Static Private Member Functions |
| static void | GRECB_CtrlScript (const GRE::MSG *pMsg, void *vpCtrlScript) |
| static const SERIALIZERITEM * | SerialGetItemDef () |
Private Attributes |
| MISTRING | m_DisplayString |
| bool | m_IsEncrypted |
| CONTEXT * | m_pContext |
| MISTRING | m_ScriptPath |
| MISTRING | m_String |
| VIEWABLE * | m_viewable |
Member Enumeration Documentation
Externally callable functions.
- Enumerator:
| FUNC_OnViewDataTipShowRequest |
parm[GRE::VIEW,POINT2D,TOOLTIP] ret[-1=noshow,0=builtin,1=show]
|
| FUNC_OnViewDataTipShowText |
parm[GRE::VIEW,POINT2D,TOOLTIP] ret[-1=noshow,0=builtin,1=show]
|
| FUNC_OnGroupDrawLabelsBegin |
parm[GRE::GROUP,GRE::VIEW]
|
| FUNC_OnGroupDrawLabelsEnd |
parm[GRE::GROUP,GRE::VIEW]
|
| FUNC_OnLayerDrawLabelsBegin |
parm[GRE::LAYER,GRE::VIEW]
|
| FUNC_OnLayerDrawLabelsEnd |
parm[GRE::LAYER,GRE::VIEW]
|
| FUNC_OnDrawLabel |
parm[LABELPLACE, GRE::LAYERDC,COLOR,Num] ret[0=builtin,1=drawn by script]
|
| FUNC_COUNT |
|
Constructor & Destructor Documentation
| GRE::VIEWABLE::MAINSCRIPT::MAINSCRIPT |
( |
VIEWABLE * |
viewable |
) |
|
| virtual GRE::VIEWABLE::MAINSCRIPT::~MAINSCRIPT |
( |
|
) |
[virtual] |
Member Function Documentation
| int GRE::VIEWABLE::MAINSCRIPT::CallFunction |
( |
FUNC |
func, |
|
|
int |
NumArg, |
|
|
void * |
ArgPtr1, |
|
|
void * |
ArgPtr2 = 0, |
|
|
void * |
ArgPtr3 = 0 | |
|
) |
| | |
| int GRE::VIEWABLE::MAINSCRIPT::CallFunction |
( |
FUNC |
func, |
|
|
SMLARG * |
ArgIn, |
|
|
int |
NumArg, |
|
|
SMLARG * |
ArgRet = 0 | |
|
) |
| | |
| ERRVALUE GRE::VIEWABLE::MAINSCRIPT::CreateSMLContext |
( |
SMLCONTEXT *& |
smlcontext |
) |
[private] |
| void GRE::VIEWABLE::MAINSCRIPT::Destroy |
( |
|
) |
|
| int GRE::VIEWABLE::MAINSCRIPT::DlgEdit |
( |
MDLGPARENT |
dlgparent |
) |
|
| static void GRE::VIEWABLE::MAINSCRIPT::GRECB_CtrlScript |
( |
const GRE::MSG * |
pMsg, |
|
|
void * |
vpCtrlScript | |
|
) |
| | [static, private] |
| bool GRE::VIEWABLE::MAINSCRIPT::HasFunction |
( |
FUNC |
func |
) |
const |
| bool GRE::VIEWABLE::MAINSCRIPT::HasScript |
( |
|
) |
const |
| ERRVALUE GRE::VIEWABLE::MAINSCRIPT::Initialize |
( |
|
) |
|
| static const SERIALIZERITEM* GRE::VIEWABLE::MAINSCRIPT::SerialGetItemDef |
( |
|
) |
[static, private] |
| virtual ERRVALUE GRE::VIEWABLE::MAINSCRIPT::SerialRead |
( |
SERIALIZER & |
serializer |
) |
[private, virtual] |
Read component from serialization.
This method must be called only after the tag name has been read and is responsible for determining how to deserialize the component elements. When beginning a deserialization, usually the SERIALIZER::Read(tagname,object) method should be used to match the desired tag name which was used in writing. A default implementation is not possible due to multiple inheritance resulting in a different "this" pointer being passed than the actual object, which causes the offset values in the ITEMDEF arrays to be wrong.
Implements SERIALIZABLE.
| virtual ERRVALUE GRE::VIEWABLE::MAINSCRIPT::SerialWrite |
( |
SERIALIZER & |
serializer, |
|
|
const char * |
tagname = 0 | |
|
) |
| | const [private, virtual] |
Write object to serialization.
This method must write the tag name provided, using SERIALIZER::PutBegin(). If the tagname is 0 (default) then it must determine the proper tag name to write. After writing the object this method must write the ending tag using SERIALIZER::PutEnd(). When inheriting this interface, the default value of 0 for the tag name must NOT be redefined. (See Meyers, Effective C++, item #38) A default implementation is not possible due to multiple inheritance resulting in a different "this" pointer being passed than the actual object, which causes the offset values in the ITEMDEF arrays to be wrong.
Implements SERIALIZABLE.
| void GRE::VIEWABLE::MAINSCRIPT::Terminate |
( |
|
) |
|
Member Data Documentation
The documentation for this class was generated from the following file: