28 #define mTextTranslationClass(clss,application) \ 30 static inline uiString tr( const char* text, const char* disambiguation = 0, \ 32 { return uiString( text, #clss, application, disambiguation, pluralnr ); } \ 33 static inline uiString legacyTr( const char* text, \ 34 const char* disambiguation = 0, \ 36 { return uiString( text, #clss, application, disambiguation, pluralnr ); } 38 #define mODTextTranslationClass(clss) \ 39 mTextTranslationClass( clss, uiString::sODLocalizationApplication() ) 93 uiString(
const uiString&);
96 uiString&
set(
const char*);
100 uiString& toLower(
bool yn=
true);
105 uiString& operator=(
const uiString&);
106 bool operator>(
const uiString& b)
const;
107 bool operator<(
const uiString& b)
const;
115 uiString& arg(
const T& var);
116 uiString& arg(
const uiString&);
122 uiString&
append(
const char*,
bool withnewline=
false);
124 uiString&
append(
const uiString&,
bool withnewline=
false);
134 wchar_t* createWCharString()
const;
137 const char* getOriginalString()
const;
138 const mQtclass(QString)& getQString()
const;
140 const mQtclass(QString)& fillQString(QString&)
const;
146 bool setFromHexEncoded(
const char*);
153 bool isCacheValid()
const;
154 const mQtclass(QString)& getQStringInternal()
const;
156 friend class uiStringData;
164 #ifdef mNoAutoUiString 170 uiString(
const char*);
172 uiString& operator=(
const char*);
180 bool operator!=(
const uiString& b)
const {
return !(*
this==b); }
182 bool isEqualTo(
const uiString& oth)
const;
187 void makeIndependent();
189 uiString(
const char* original,
191 const char* application,
192 const char* disambiguation,
194 void setFrom(
const mQtclass(QString)&);
197 void addLegacyVersion(
const uiString&);
207 bool translate(
const mQtclass(QTranslator)&,
211 static uiString getOrderString(
int);
214 uiString& addSpace(
int nr=1);
228 uiString createOptionString(
bool use_and=
true,
int maxnritems=-1,
229 char space =
' ')
const;
231 void fill(
mQtclass(QStringList)&)
const;
232 uiString cat(
const char* sepstr=
"\n")
const;
250 uiRetVal(
const uiRetVal&);
251 static uiRetVal
OK() {
return ok_; }
252 uiRetVal& operator =(
const uiRetVal&);
253 uiRetVal& operator =(
const uiString&);
258 inline bool isError()
const {
return !isOK(); }
259 bool isMultiMessage()
const;
261 bool isSingleWord(
const uiString&)
const;
264 uiRetVal&
set(
const uiRetVal&);
267 uiRetVal& add(
const uiRetVal&);
279 static const uiRetVal
ok_;
303 #define mToUiStringTodo(i) ::toUiString(i) 304 #define mFromUiStringTodo(i) i.getFullString() 331 const char* disambiguation = 0,
int pluralnr=-1 );
334 template <
class T>
inline bool operator!() const
Definition: uistring.h:103
#define mExpClass(module)
Definition: commondefs.h:160
bool operator!=(const uiString &b) const
Don't use, will force crash. Only here to keep TypeSet happy.
Definition: uistring.h:180
#define mQtclass(cls)
Definition: commondefs.h:229
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
bool isError() const
Definition: uistring.h:258
uiString getUiYesNoString(bool res)
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Threads::Lock lock_
Definition: uistring.h:277
#define mGlobal(module)
Definition: commondefs.h:163
static uiRetVal OK()
Definition: uistring.h:251
#define od_int64
Definition: plftypes.h:36
static const uiRetVal ok_
Definition: uistring.h:279
uiRetVal()
Definition: uistring.h:247
uiStringData * data_
Definition: uistring.h:157
uiStringSet msgs_
Definition: uistring.h:276
static const uiString & emptyString()
Definition: uistring.h:109
Definition: uistring.h:89
uiString mkUiString(const char *var)
Definition: uistring.h:308
Threads::Lock datalock_
Protects data_ variable.
Definition: uistring.h:158
bool append(TypeSetBase< T, I > &to, const TypeSetBase< S, J > &from)
append allowing a different type to be merged into set
Definition: typeset.h:198
bool isCancelled(const uiRetVal &)
Set of (small) copyable elements.
Definition: commontypes.h:30
uiStringSet(const uiString &s)
Definition: uistring.h:226
#define od_uint32
Definition: plftypes.h:32
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
#define mFDQtclass(cls)
Definition: commondefs.h:228
uiStringSet(const uiStringSet &sl)
Definition: uistring.h:224
uiString toUiString(const uiString &)
uiStringSet()
Definition: uistring.h:221
bool isSet() const
Definition: uistring.h:97
uiString & arg(const T &var)
Definition: uistring.h:335
#define od_uint64
Definition: plftypes.h:37
#define od_int32
Definition: plftypes.h:31
#define mDeprecated
Definition: plfdefs.h:233
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: uistring.h:243
void resetError()
Definition: uistring.h:270
OpendTect.
Definition: commontypes.h:29
Definition: uistring.h:218
bool isEmpty(const NLAModel *mdl)
bool isFinished(const uiRetVal &)
uiString od_static_tr(const char *function, const char *text, const char *disambiguation=0, int pluralnr=-1)
static const char * sODLocalizationApplication()
Definition: uistring.h:185
static const uiString emptystring_
Definition: uistring.h:159