OpendTect  7.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
uiMsg Class Reference

Public Types

enum  Icon {
  NoIcon , Information , Warning , Critical ,
  Question
}
 

Public Member Functions

void about (const uiString &)
 
void aboutOpendTect (const uiString &)
 
int ask2D3D (const uiString &, bool cancelbut=false)
 
int askContinue (const uiString &)
 
int askDelete (const uiString &, bool cancelbut=false)
 
int askDeleteWithDetails (const uiString &msg, const uiStringSet &details, bool cancelbut=false)
 
bool askGoOn (const uiString &, bool withyesno, bool *dontaskagain)
 
bool askGoOn (const uiString &, bool withyesno=true)
 withyesno false: 'OK' and 'Cancel', true: 'Yes' and 'No' More...
 
bool askGoOn (const uiString &msg, const uiString &textyes, const uiString &textno)
 
bool askGoOn (const uiString &msg, const uiString &textyes, const uiString &textno, bool *dontaskagain)
 
int askGoOnAfter (const uiString &, const uiString &cnclmsg, const uiString &textyes, const uiString &textno, bool *dontaskagain)
 
int askGoOnAfter (const uiString &, const uiString &cnclmsg=uiString::emptyString(), const uiString &textyes=uiString::emptyString(), const uiString &textno=uiString::emptyString())
 
bool askGoOnWithDetails (const uiString &msg, const uiStringSet &details, bool withyesno=true)
 
bool askGoOnWithDetails (const uiString &msg, const uiStringSet &details, const uiString &textyes, const uiString &textno)
 
int askOverwrite (const uiString &)
 
int askRemove (const uiString &, bool cancelbut=false)
 
int askRemoveWithDetails (const uiString &msg, const uiStringSet &details, bool cancelbut=false)
 
int askSave (const uiString &, bool cancelbut=true)
 
bool error (const uiString &, const uiString &part2, const uiString &part3, bool withdontshowagain)
 
void error (const uiString &, const uiString &part2=uiString::emptyString(), const uiString &part3=uiString::emptyString())
 
void errorWithDetails (const BufferStringSet &)
 
void errorWithDetails (const FileMultiString &)
 
void errorWithDetails (const uiStringSet &)
 
void errorWithDetails (const uiStringSet &, const uiString &firstmsg)
 
bool message (const uiString &, const uiString &part2, const uiString &part3, bool withdontshowagain)
 
void message (const uiString &, const uiString &part2=uiString::emptyString(), const uiString &part3=uiString::emptyString())
 
int question (const uiString &, const uiString &textyes, const uiString &textno, const uiString &textcncl, const uiString &caption, bool *dontaskagain)
 
int question (const uiString &, const uiString &textyes=uiString::emptyString(), const uiString &textno=uiString::emptyString(), const uiString &textcncl=uiString::emptyString(), const uiString &caption=uiString::emptyString())
 
uiMainWinsetMainWin (uiMainWin *)
 return old More...
 
int showMessageBox (Icon icon, QWidget *parent, const uiString &txt, const uiString &yestxtinp, const uiString &notxtinp, const uiString &cncltxtinp, const uiString &title, bool *notagain)
 
int showMessageBox (Icon icon, QWidget *parent, const uiString &txt, const uiString &yestxtinp, const uiString &notxtinp, const uiString &cncltxtinp, const uiString &title=uiString::emptyString())
 
int showMessageBoxWithDetails (Icon icon, QWidget *parent, const uiString &txt, const uiString &yestxtinp, const uiString &notxtinp, const uiString &cncltxtinp, const uiStringSet &details, const uiString &title, bool *notagain)
 
bool showMsgNextTime (const uiString &, const uiString &msg=uiString::emptyString())
 
uiStatusBarstatusBar ()
 
bool toStatusbar (uiString, int fld=0, int msec=-1)
 returns false if there is none More...
 
bool warning (const uiString &, const uiString &part2, const uiString &part3, bool withdontshowagain)
 
void warning (const uiString &, const uiString &part2=uiString::emptyString(), const uiString &part3=uiString::emptyString())
 

Static Public Member Functions

static uiString sDontShowAgain ()
 
static void setNextCaption (const uiString &)
 

Protected Member Functions

 uiMsg ()
 
 ~uiMsg ()
 
QWidget * popParnt ()
 

Static Protected Attributes

static uiMsgtheinst_
 

Private Member Functions

int beginCmdRecEvent (const char *wintitle)
 
void endCmdRecEvent (int refnr, int retval, const char *buttxt0, const char *buttxt1=0, const char *buttxt2=0)
 

Private Attributes

uiMainWinuimainwin_ = nullptr
 

Friends

class uiMain
 
uiMsguiMSG ()
 

Detailed Description

<>

Member Enumeration Documentation

◆ Icon

Enumerator
NoIcon 
Information 
Warning 
Critical 
Question 

Constructor & Destructor Documentation

◆ uiMsg()

uiMsg::uiMsg ( )
protected

◆ ~uiMsg()

uiMsg::~uiMsg ( )
protected

Member Function Documentation

◆ about()

void uiMsg::about ( const uiString )

◆ aboutOpendTect()

void uiMsg::aboutOpendTect ( const uiString )

◆ ask2D3D()

int uiMsg::ask2D3D ( const uiString ,
bool  cancelbut = false 
)
Return values
0=3D1=2D -1=Cancel

◆ askContinue()

int uiMsg::askContinue ( const uiString )
Return values
0=Abort1=Continue

◆ askDelete()

int uiMsg::askDelete ( const uiString ,
bool  cancelbut = false 
)
Return values
0=Don'tdelete 1=Delete -1=Cancel

◆ askDeleteWithDetails()

int uiMsg::askDeleteWithDetails ( const uiString msg,
const uiStringSet details,
bool  cancelbut = false 
)
Return values
0=Don'tdelete 1=Delete -1=Cancel

◆ askGoOn() [1/4]

bool uiMsg::askGoOn ( const uiString ,
bool  withyesno,
bool *  dontaskagain 
)

withyesno false: 'OK' and 'Cancel', true: 'Yes' and 'No' If don't askagain is given, the user will have the option to not see this again, and the boolean will be filled in.

◆ askGoOn() [2/4]

bool uiMsg::askGoOn ( const uiString ,
bool  withyesno = true 
)

withyesno false: 'OK' and 'Cancel', true: 'Yes' and 'No'

◆ askGoOn() [3/4]

bool uiMsg::askGoOn ( const uiString msg,
const uiString textyes,
const uiString textno 
)

◆ askGoOn() [4/4]

bool uiMsg::askGoOn ( const uiString msg,
const uiString textyes,
const uiString textno,
bool *  dontaskagain 
)

If don't askagain is given, the user will have the option to not see this again, and the boolean will be filled in.

◆ askGoOnAfter() [1/2]

int uiMsg::askGoOnAfter ( const uiString ,
const uiString cnclmsg,
const uiString textyes,
const uiString textno,
bool *  dontaskagain 
)

1=yes, 0=no, -1=cancel If don't askagain is given, the user will have the option to not see this again, and the boolean will be filled in.

◆ askGoOnAfter() [2/2]

int uiMsg::askGoOnAfter ( const uiString ,
const uiString cnclmsg = uiString::emptyString(),
const uiString textyes = uiString::emptyString(),
const uiString textno = uiString::emptyString() 
)

◆ askGoOnWithDetails() [1/2]

bool uiMsg::askGoOnWithDetails ( const uiString msg,
const uiStringSet details,
bool  withyesno = true 
)

◆ askGoOnWithDetails() [2/2]

bool uiMsg::askGoOnWithDetails ( const uiString msg,
const uiStringSet details,
const uiString textyes,
const uiString textno 
)

◆ askOverwrite()

int uiMsg::askOverwrite ( const uiString )
Return values
0=Abort1=Overwrite

◆ askRemove()

int uiMsg::askRemove ( const uiString ,
bool  cancelbut = false 
)
Return values
0=Don'tremove 1=Remove -1=Cancel

◆ askRemoveWithDetails()

int uiMsg::askRemoveWithDetails ( const uiString msg,
const uiStringSet details,
bool  cancelbut = false 
)
Return values
0=Don'tremove 1=Remove -1=Cancel

◆ askSave()

int uiMsg::askSave ( const uiString ,
bool  cancelbut = true 
)
Return values
0=Don'tsave 1=Save -1=Cancel

◆ beginCmdRecEvent()

int uiMsg::beginCmdRecEvent ( const char *  wintitle)
private

◆ endCmdRecEvent()

void uiMsg::endCmdRecEvent ( int  refnr,
int  retval,
const char *  buttxt0,
const char *  buttxt1 = 0,
const char *  buttxt2 = 0 
)
private

◆ error() [1/2]

bool uiMsg::error ( const uiString ,
const uiString part2,
const uiString part3,
bool  withdontshowagain 
)

If withdontshowgain is true, the user will be prompted to not see this again. Return true if the user does not want to see it again.

◆ error() [2/2]

void uiMsg::error ( const uiString ,
const uiString part2 = uiString::emptyString(),
const uiString part3 = uiString::emptyString() 
)

◆ errorWithDetails() [1/4]

void uiMsg::errorWithDetails ( const BufferStringSet )

◆ errorWithDetails() [2/4]

void uiMsg::errorWithDetails ( const FileMultiString )

If input has multiple parts, the first will be displayed directly, while the complete message is available under a 'Details ...' button, separated by new lines.

◆ errorWithDetails() [3/4]

void uiMsg::errorWithDetails ( const uiStringSet )

◆ errorWithDetails() [4/4]

void uiMsg::errorWithDetails ( const uiStringSet ,
const uiString firstmsg 
)

◆ message() [1/2]

bool uiMsg::message ( const uiString ,
const uiString part2,
const uiString part3,
bool  withdontshowagain 
)

If withdontshowgain is true, the user will be prompted to not see this again. Return true if the user does not want to see it again.

◆ message() [2/2]

void uiMsg::message ( const uiString ,
const uiString part2 = uiString::emptyString(),
const uiString part3 = uiString::emptyString() 
)

◆ popParnt()

QWidget* uiMsg::popParnt ( )
protected

◆ question() [1/2]

int uiMsg::question ( const uiString ,
const uiString textyes,
const uiString textno,
const uiString textcncl,
const uiString caption,
bool *  dontaskagain 
)

If don't askagain is given, the user will have the option to not see this again, and the boolean will be filled in.

◆ question() [2/2]

int uiMsg::question ( const uiString ,
const uiString textyes = uiString::emptyString(),
const uiString textno = uiString::emptyString(),
const uiString textcncl = uiString::emptyString(),
const uiString caption = uiString::emptyString() 
)

◆ sDontShowAgain()

static uiString uiMsg::sDontShowAgain ( )
static

◆ setMainWin()

uiMainWin* uiMsg::setMainWin ( uiMainWin )

return old

◆ setNextCaption()

static void uiMsg::setNextCaption ( const uiString )
static

Sets the caption for the next call to any of the msg fns After that, caption will be reset to default

◆ showMessageBox() [1/2]

int uiMsg::showMessageBox ( Icon  icon,
QWidget *  parent,
const uiString txt,
const uiString yestxtinp,
const uiString notxtinp,
const uiString cncltxtinp,
const uiString title,
bool *  notagain 
)

◆ showMessageBox() [2/2]

int uiMsg::showMessageBox ( Icon  icon,
QWidget *  parent,
const uiString txt,
const uiString yestxtinp,
const uiString notxtinp,
const uiString cncltxtinp,
const uiString title = uiString::emptyString() 
)

◆ showMessageBoxWithDetails()

int uiMsg::showMessageBoxWithDetails ( Icon  icon,
QWidget *  parent,
const uiString txt,
const uiString yestxtinp,
const uiString notxtinp,
const uiString cncltxtinp,
const uiStringSet details,
const uiString title,
bool *  notagain 
)

◆ showMsgNextTime()

bool uiMsg::showMsgNextTime ( const uiString ,
const uiString msg = uiString::emptyString() 
)

The msg must be negative, like "Don't show msg again" Be sure to store the ret val in the user settings

◆ statusBar()

uiStatusBar* uiMsg::statusBar ( )

◆ toStatusbar()

bool uiMsg::toStatusbar ( uiString  ,
int  fld = 0,
int  msec = -1 
)

returns false if there is none

◆ warning() [1/2]

bool uiMsg::warning ( const uiString ,
const uiString part2,
const uiString part3,
bool  withdontshowagain 
)

If withdontshowgain is true, the user will be prompted to not see this again. Return true if the user does not want to see it again.

◆ warning() [2/2]

void uiMsg::warning ( const uiString ,
const uiString part2 = uiString::emptyString(),
const uiString part3 = uiString::emptyString() 
)

Friends And Related Function Documentation

◆ uiMain

friend class uiMain
friend

◆ uiMSG

uiMsg& uiMSG ( )
friend

Member Data Documentation

◆ theinst_

uiMsg* uiMsg::theinst_
staticprotected

◆ uimainwin_

uiMainWin* uiMsg::uimainwin_ = nullptr
private

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