Go to the source code of this file.
|
| #define | mDeclClassifierClass(callerclass) |
| |
| #define | mStartDeclComposerClassNoAccept(mod, cmdkey, parentclass) |
| |
| #define | mStartDeclComposerClass(mod, cmdkey, parentclass, callerclass) |
| |
| #define | mStartDeclComposerClassWithInit(mod, cmdkey, parentclass, callerclass) |
| |
| #define | mEndDeclComposerClass }; |
| |
| #define | mRefuseAndQuit() |
| |
| #define | mCompleteAndQuitIfEventNested(ev, notifierstr) |
| |
| #define | mNotifyTest(objclass, uiobject, notifiername) |
| |
| #define | mGetInputString(inpptr, txt, haschanged) |
| |
| #define | mWriteInputCmd(haschanged, txt, enter) |
| |
| #define | mGetItemName(uiobj, sizefunc, textfunc, curitemidx, curitemname, casedep) |
| |
◆ mCompleteAndQuitIfEventNested
| #define mCompleteAndQuitIfEventNested |
( |
|
ev, |
|
|
|
notifierstr |
|
) |
| |
Value:\
if ( quitflag_ ) \
return true; \
else if ( ev.begin_ && !stackwasempty_ && \
{ \
ignoreflag_ = false; \
quitflag_ = true; \
}
◆ mDeclClassifierClass
| #define mDeclClassifierClass |
( |
|
callerclass | ) |
|
Value:\
class callerclass##Classifier : public Classifier \
{ \
public: \
\
static
const char*
className() {
return #callerclass; } \
const
char* name()
const {
return className(); } \
\
{ return dynamic_cast<const callerclass*>(caller); } \
};
◆ mEndDeclComposerClass
| #define mEndDeclComposerClass }; |
◆ mGetInputString
| #define mGetInputString |
( |
|
inpptr, |
|
|
|
txt, |
|
|
|
haschanged |
|
) |
| |
Value:\
BufferString inpstr; \
char* inpptr = inpstr.getCStr(); \
if ( haschanged ) \
{ \
inpstr = " "; inpstr += txt; \
mSkipBlanks( inpptr ); \
char* endptr; \
strtod( inpptr, &endptr ); \
const char* nextword = endptr; \
mSkipBlanks( nextword ); \
if ( inpptr!=endptr && !*nextword ) \
{ \
*endptr = '\0'; \
inpstr += " "; \
} \
else \
{ \
mDressUserInputString( inpstr, sInputStr ); \
IdentifierManager().tryFilePathPlaceholders( inpstr ); \
inpstr += "\" "; \
inpptr = inpstr.getCStr(); \
*inpptr = '"'; \
} \
}
◆ mGetItemName
| #define mGetItemName |
( |
|
uiobj, |
|
|
|
sizefunc, |
|
|
|
textfunc, |
|
|
|
curitemidx, |
|
|
|
curitemname, |
|
|
|
casedep |
|
) |
| |
Value:\
BufferString curitemname = uiobj->textfunc( curitemidx ); \
mDressNameString( curitemname, sItemName ); \
bool casedep = false; \
{ \
int nrmatches = 0; \
int selnr = 0; \
\
for ( int itmidx=0; itmidx<uiobj->sizefunc(); itmidx++ ) \
{ \
const char* itmtxt = uiobj->textfunc( itmidx ); \
if ( SearchKey(curitemname,false).isMatching(itmtxt) ) \
{ \
if ( SearchKey(curitemname,true).isMatching(itmtxt) ) \
{ \
nrmatches++; \
if ( itmidx == curitemidx ) \
selnr = nrmatches; \
} \
else \
casedep = true; \
} \
if ( selnr && nrmatches>1 ) \
{ \
curitemname += "#"; curitemname += selnr; \
} \
}
◆ mNotifyTest
| #define mNotifyTest |
( |
|
objclass, |
|
|
|
uiobject, |
|
|
|
notifiername |
|
) |
| |
Value:{ \
mDynamicCastGet( objclass*, uiclassobj, uiobject ); \
if ( uiclassobj ) \
}
◆ mRefuseAndQuit
| #define mRefuseAndQuit |
( |
| ) |
|
Value:{ \
quitflag_ = true; \
if ( stackwasempty_ ) \
refuseAndQuitDone(); \
\
return false; \
}
◆ mStartDeclComposerClass
| #define mStartDeclComposerClass |
( |
|
mod, |
|
|
|
cmdkey, |
|
|
|
parentclass, |
|
|
|
callerclass |
|
) |
| |
Value:\
mStartDeclComposerClassNoAccept(mod,cmdkey,parentclass) \
mDeclClassifierClass(callerclass) \
\
virtual bool accept(const CmdRecEvent&); \
\
static
CmdComposer* createInstance(CmdRecorder& cmdrec) \
{ factory().addCreator( createInstance, \
createFactoryKey(new callerclass##Classifier(), \
keyWord()) ); }
◆ mStartDeclComposerClassNoAccept
| #define mStartDeclComposerClassNoAccept |
( |
|
mod, |
|
|
|
cmdkey, |
|
|
|
parentclass |
|
) |
| |
Value:\
mExpClass(mod) cmdkey##
CmdComposer :
public parentclass \
{ \
public: \
: parentclass(cmdrec) \
\
static const char* keyWord() { return #cmdkey; } \
virtual const char* name() { return keyWord(); } \
◆ mStartDeclComposerClassWithInit
| #define mStartDeclComposerClassWithInit |
( |
|
mod, |
|
|
|
cmdkey, |
|
|
|
parentclass, |
|
|
|
callerclass |
|
) |
| |
◆ mWriteInputCmd
| #define mWriteInputCmd |
( |
|
haschanged, |
|
|
|
txt, |
|
|
|
enter |
|
) |
| |
Value:{ \
mGetInputString( inpptr, txt, haschanged ); \
if ( haschanged || enter ) \
{ \
insertWindowCaseExec( *eventlist_[0] ); \
mRecOutStrm << "Input \"" << eventlist_[0]->keystr_ << "\" " \
<< inpptr << (enter ?
"Enter" :
"Hold") <<
od_endl; \
} \
}
#define mCB(obj, clss, fn)
To make your CallBack. Used in many places, especially the UI.
Definition: callback.h:42
mStartDeclCmdClass(CmdDriver, Wheel, UiObjectCmd) mEndDeclCmdClass class WheelActivator CmdComposer
Definition: coincommands.h:39
#define mStartDeclComposerClass(mod, cmdkey, parentclass, callerclass)
Definition: cmdcomposer.h:130