OpendTect-6_4  6.4
Classes | Macros | Functions
uistring.h File Reference
Include dependency graph for uistring.h:

Go to the source code of this file.

Classes

class  uiString
 
class  uiStringSet
 
class  uiRetVal
 

Macros

#define mTextTranslationClass(clss, application)
 
#define mODTextTranslationClass(clss)   mTextTranslationClass( clss, uiString::sODLocalizationApplication() )
 
#define mToUiStringTodo(i)   ::toUiString(i)
 
#define mFromUiStringTodo(i)   i.getFullString()
 

Functions

bool isFinished (const uiRetVal &)
 
bool isCancelled (const uiRetVal &)
 
uiString toUiString (const uiString &)
 
uiString toUiString (const char *)
 
uiString toUiString (const OD::String &)
 
uiString toUiString (int)
 
uiString toUiString (int64_t)
 
uiString toUiString (unsigned int)
 
uiString toUiString (uint64_t)
 
uiString toUiString (float)
 
uiString toUiString (double)
 
uiString toUiString (float, int nrdec)
 
uiString toUiString (double, int nrdec)
 
uiString toUiString (float, char format, int precision)
 
uiString toUiString (double, char format, int precision)
 
uiString mkUiString (const char *var)
 
uiString od_static_tr (const char *function, const char *text, const char *disambiguation=0, int pluralnr=-1)
 
uiString getUiYesNoString (bool res)
 

Macro Definition Documentation

#define mFromUiStringTodo (   i)    i.getFullString()
#define mODTextTranslationClass (   clss)    mTextTranslationClass( clss, uiString::sODLocalizationApplication() )
#define mTextTranslationClass (   clss,
  application 
)
Value:
private: \
static inline uiString tr( const char* text, const char* disambiguation = 0, \
int pluralnr=-1 ) \
{ return uiString( text, #clss, application, disambiguation, pluralnr ); } \
static inline uiString legacyTr( const char* text, \
const char* disambiguation = 0, \
int pluralnr=-1 ) \
{ return uiString( text, #clss, application, disambiguation, pluralnr ); }
Definition: uistring.h:89
#define mToUiStringTodo (   i)    ::toUiString(i)

Function Documentation

uiString getUiYesNoString ( bool  res)
bool isCancelled ( const uiRetVal )
bool isFinished ( const uiRetVal )
uiString mkUiString ( const char *  var)
inline
uiString od_static_tr ( const char *  function,
const char *  text,
const char *  disambiguation = 0,
int  pluralnr = -1 
)

Adds translation of strings outside of classes for the "od" application. It will return a uistring where the context is "static_func_function", where 'function' is whatever is given as the function parameter. This matches what is done in the filtering of the source files before lupdate is run (in ./dtect/update_translations.csh).

1 bool myFunction( int var )
2 {
3  if ( var<5 )
4  {
5  uiMSG().error(
6  od_static_tr( "myFunction", "%1 is less than 5" ).arg( var ) );
7  }
8 }
uiString toUiString ( const uiString )
uiString toUiString ( const char *  )
uiString toUiString ( const OD::String )
uiString toUiString ( int  )
uiString toUiString ( int64_t  )
uiString toUiString ( unsigned  int)
uiString toUiString ( uint64_t  )
uiString toUiString ( float  )
uiString toUiString ( double  )
uiString toUiString ( float  ,
int  nrdec 
)
uiString toUiString ( double  ,
int  nrdec 
)
uiString toUiString ( float  ,
char  format,
int  precision 
)
uiString toUiString ( double  ,
char  format,
int  precision 
)

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