OpendTect-6_4  6.4
Classes | Namespaces | Macros | Functions
cmddriverbasics.h File Reference
Include dependency graph for cmddriverbasics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CmdDrive::StringProcessor
 
class  CmdDrive::WindowStack
 
class  CmdDrive::InteractSpec
 
class  CmdDrive::UIEntity
 Convenience class UIEntity offers access to shared functionality of uiAction and uiObject, given their base class CallBacker. Since toolbar buttons are no longer uiToolButtons but uiActions, unspecified UI objects have to be passed as CallBackers. More...
 

Namespaces

 CmdDrive
 Command Drive
 

Macros

#define mAddCharToBufStr(bufstr, chr)   { char str[2]; str[0] = mCast(char,chr); str[1] = '\0'; bufstr += str; }
 
#define mSepStrSize(fms)   ( fms.isEmpty() ? 1 : fms.size() )
 
#define mGetAmpFilteredStr(dest, src)
 
#define mGetEscConvertedFMS(fms, str, removecmdfileescapes)
 
#define mStripOuterBrackets(name, context)
 
#define mDressString(name, context, cleanup)
 
#define mDressNameString(name, context)   mDressString( name, context, true );
 
#define mDressUserInputString(name, context)   mDressString( name, context, false );
 
#define mIsSymbol(chr)   ( !iswalnum(chr) && !iswspace(chr) )
 
#define mGetColorString(color, isvalid, colorstr)
 
#define mUnscope(identstr, unscopedstr)   const char* unscopedstr = *identstr=='@' ? identstr+1 : identstr;
 

Functions

const char * CmdDrive::windowTitle (const uiMainWin *applwin, const uiMainWin *uimw, int aliasnr=0)
 
bool CmdDrive::isCmdDriverWindow (const uiMainWin *)
 
const char * CmdDrive::controllerTitle ()
 

Macro Definition Documentation

#define mAddCharToBufStr (   bufstr,
  chr 
)    { char str[2]; str[0] = mCast(char,chr); str[1] = '\0'; bufstr += str; }
#define mDressNameString (   name,
  context 
)    mDressString( name, context, true );
#define mDressString (   name,
  context,
  cleanup 
)
Value:
{ \
if ( cleanup ) \
StringProcessor(name).cleanUp(); \
while ( mStripOuterBrackets(name, sDress) ) ; \
StringProcessor(name).addCmdFileEscapes( \
StringProcessor::context##EscSymbols() ); \
}
#define mStripOuterBrackets(name, context)
Definition: cmddriverbasics.h:53
#define mDressUserInputString (   name,
  context 
)    mDressString( name, context, false );
#define mGetAmpFilteredStr (   dest,
  src 
)
Value:
BufferString dest( src ); \
StringProcessor(dest).filterAmpersands();
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
#define mGetColorString (   color,
  isvalid,
  colorstr 
)
Value:
\
FileMultiString colorstr; \
colorstr += isvalid ? (int) color.r() : 255; \
colorstr += isvalid ? (int) color.g() : 255; \
colorstr += isvalid ? (int) color.b() : 255; \
colorstr += isvalid ? (int) color.t() : 255; \
#define mGetEscConvertedFMS (   fms,
  str,
  removecmdfileescapes 
)
Value:
\
BufferString fms##bufstr( str ); \
StringProcessor( fms##bufstr ).addFileMultiStrEscapes(); \
if ( removecmdfileescapes ) \
StringProcessor( fms##bufstr ).removeCmdFileEscapes(); \
\
FileMultiString fms( fms##bufstr.buf() );
#define mIsSymbol (   chr)    ( !iswalnum(chr) && !iswspace(chr) )
#define mSepStrSize (   fms)    ( fms.isEmpty() ? 1 : fms.size() )
#define mStripOuterBrackets (   name,
  context 
)
Value:
StringProcessor(name).stripOuterBrackets( \
StringProcessor::context##VoidBeginBrackets(), \
StringProcessor::context##VoidEndBrackets() )
#define mUnscope (   identstr,
  unscopedstr 
)    const char* unscopedstr = *identstr=='@' ? identstr+1 : identstr;

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019