OpendTect-6_4  6.4
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
uiODMain Class Reference

OpendTect application top level object. More...

Inheritance diagram for uiODMain:
[legend]

Public Member Functions

 uiODMain (uiMain &)
 
 ~uiODMain ()
 
bool go ()
 
void exit ()
 
uiODApplMgrapplMgr ()
 
uiODMenuMgrmenuMgr ()
 
uiODSceneMgrsceneMgr ()
 
uiODViewer2DMgrviewer2DMgr ()
 
uiVisColTabEdcolTabEd ()
 
uiToolBarcolTabToolBar ()
 
IOParsessionPars ()
 
uiString getProgramName ()
 
bool askStore (bool &askedanything, const uiString &actiontype)
 
bool askStoreAttribs (bool, bool &askedanything)
 
bool hasSessionChanged ()
 
void saveSession ()
 pops up the save session dialog More...
 
void restoreSession ()
 pops up the restore session dlg More...
 
void autoSession ()
 pops up the auto session dlg More...
 
bool isRestoringSession ()
 
void setProgramName (const char *)
 
void forceExit ()
 
bool sceneMgrAvailable () const
 
bool menuMgrAvailable () const
 
bool viewer2DMgrAvailable () const
 
void updateCaption ()
 
- Public Member Functions inherited from uiMainWin
 uiMainWin (uiParent *, const uiMainWin::Setup &)
 
 uiMainWin (uiParent *, const uiString &caption=uiString::emptyString(), int nrstatusflds=1, bool withmenubar=true, bool modal=false)
 
virtual ~uiMainWin ()
 
uiStatusBarstatusBar ()
 
uiMenuBar * menuBar ()
 
void setCaption (const uiString &)
 
const uiStringcaption (bool unique=false) const
 
void setIcon (const uiPixmap &)
 Default icon is set in uiMain. More...
 
void setIconText (const uiString &)
 
virtual void show ()
 
void close ()
 
void raise ()
 
void showMaximized ()
 
void showMinimized ()
 
void showNormal ()
 
bool isMaximized () const
 
bool isMinimized () const
 
bool isHidden () const
 
bool isModal () const
 
void setSensitive (bool yn)
 
void toStatusBar (const uiString &, int fldidx=0, int msecs=-1)
 
virtual void reDraw (bool deep)
 
uiGrouptopGroup ()
 
void setShrinkAllowed (bool yn)
 
bool shrinkAllowed ()
 
void setExitAppOnClose (bool yn)
 automatically set by uiMain::setTopLevel More...
 
void setDeleteOnClose (bool yn)
 
void removeDockWindow (uiDockWin *)
 
void addDockWindow (uiDockWin &, Dock)
 
void addToolBar (uiToolBar *)
 
uiToolBarfindToolBar (const char *)
 
uiToolBarremoveToolBar (uiToolBar *)
 
void addToolBarBreak ()
 
uiMenugetToolbarsMenu () const
 
const ObjectSet< uiToolBar > & toolBars () const
 
const ObjectSet< uiDockWin > & dockWins () const
 
void setPopupArea (PopupArea pa)
 
PopupArea getPopupArea () const
 
void setCornerPos (int x, int y)
 
uiRect geometry (bool frame=true) const
 Position of top-left corner in screen pixel coords. More...
 
bool poppedUp () const
 
bool touch ()
 resets pop-up timer if !poppedUp yet More...
 
bool finalised () const
 
virtual uiMainWinmainwin ()
 
 mQtclass (QWidget *) qWidget() const
 
uiParentparent ()
 
const uiParentparent () const
 
void translateText ()
 
bool grab (const char *filenm, int zoom=1, const char *format=0, int quality=-1) const
 
void activateInGUIThread (const CallBack &, bool busywait=true)
 
void saveImage (const char *fnm, int w, int h, int res)
 
void saveAsPDF (const char *fnm, int w, int h, int res)
 
void saveAsPS (const char *fnm, int w, int h, int res)
 
void copyToClipBoard ()
 
void runScript (const char *filename)
 
const char * getScriptToRun () const
 
- Public Member Functions inherited from uiParent
 uiParent (const char *nm, uiParentBody *)
 
void addChild (uiBaseObject &)
 
void manageChld (uiBaseObject &, uiObjectBody &)
 
void attachChild (constraintType tp, uiObject *child, uiObject *other, int margin, bool reciprocal)
 
const ObjectSet< uiBaseObject > * childList () const
 
uiObjectmainObject ()
 
const uiObjectmainObject () const
 
uiParentBodypbody ()
 
const uiParentBodypbody () const
 
void attach (constraintType t, int margin=-1)
 
void attach (constraintType t, uiParent *oth, int margin=-1, bool reciprocal=true)
 
void attach (constraintType t, uiObject *oth, int margin=-1, bool reciprocal=true)
 
virtual void display (bool yn, bool shrk=false, bool maximize=false)
 
bool isDisplayed () const
 
void setFocus ()
 
bool hasFocus () const
 
void setSensitive (bool yn=true)
 
bool sensitive () const
 
const uiFontfont () const
 
void setFont (const uiFont &f)
 
void setCaption (const uiString &c)
 
void setCursor (const MouseCursor &c)
 
uiSize actualsize (bool include_border) const
 
int prefHNrPics () const
 
int prefVNrPics () const
 
void setPrefHeight (int h)
 
void setPrefWidth (int w)
 
void setPrefHeightInChar (int h)
 
void setPrefHeightInChar (float h)
 
void setPrefWidthInChar (float w)
 
void setPrefWidthInChar (int w)
 
void shallowRedraw (CallBacker *=0)
 
void deepRedraw (CallBacker *=0)
 
void setStretch (int h, int v)
 
Color backgroundColor () const
 
Color roBackgroundColor () const
 
void setBackgroundColor (const Color &c)
 
void translateText ()
 

Public Attributes

Notifier< uiODMainsessionSave
 Put data in pars. More...
 
Notifier< uiODMainsessionRestoreEarly
 Get data from pars, before vis. More...
 
Notifier< uiODMainsessionRestore
 Get data from pars. More...
 
Notifier< uiODMainjustBeforeGo
 Scenes inited, auto-plugins loaded. More...
 
- Public Attributes inherited from uiMainWin
Notifier< uiMainWinwindowClosed
 triggered when window exits More...
 
Notifier< uiMainWinactivatedone
 
Notifier< uiMainWinctrlCPressed
 
Notifier< uiMainWinafterPopup
 
Notifier< uiMainWinrunScriptRequest
 

Protected Member Functions

virtual bool closeOK ()
 confirm window close More...
 
void afterSurveyChgCB (CallBacker *)
 
void handleStartupSession ()
 
void restoreSession (const IOObj *)
 
void closeApplication ()
 
- Protected Member Functions inherited from uiMainWin
 uiMainWin (uiString, uiParent *)
 
uiObjectmainobject ()
 
void saveSettings ()
 
void readSettings ()
 
void saveAsPDF_PS (const char *fnm, bool aspdf, int w, int h, int res)
 
void copyToClipBoardCB (CallBacker *)
 
void aftPopupCB (CallBacker *)
 
void languageChangeCB (CallBacker *)
 
void setForceFinalise (bool)
 
void updateCaption ()
 
- Protected Member Functions inherited from uiParent
virtual void attach_ (constraintType t, uiObject *oth, int margin=-1, bool reciprocal=true)
 

Protected Attributes

uiODApplMgrapplmgr_
 
uiODMenuMgrmenumgr_
 
uiODSceneMgrscenemgr_
 
uiODViewer2DMgrviewer2dmgr_
 
uiVisColTabEdctabed_
 
uiToolBarctabtb_
 
uiMainuiapp_
 
ODSessioncursession_
 
ODSessionlastsession_
 
bool restoringsess_
 
uiDockWin * ctabwin_
 
BufferString programname_
 
MultiID cursessid_
 
bool failed_
 
- Protected Attributes inherited from uiMainWin
uiMainWinBodybody_
 
uiParentparent_
 
Timerafterpopuptimer_
 
PopupArea popuparea_
 
uiString caption_
 
uiString uniquecaption_
 
int languagechangecount_
 
BufferString scripttorun_
 

Private Member Functions

 mODTextTranslationClass (uiODMain)
 
bool ensureGoodDataDir ()
 
bool ensureGoodSurveySetup ()
 
bool buildUI ()
 
void initScene ()
 
CtxtIOObjgetUserSessionIOData (bool)
 
bool updateSession ()
 
void doRestoreSession ()
 
void sessTimerCB (CallBacker *)
 
void memTimerCB (CallBacker *)
 
void newSurvInitTimerCB (CallBacker *)
 
uiString getProgramString () const
 
void translateText ()
 

Private Attributes

Timersesstimer_
 
Timermemtimer_
 
Timernewsurvinittimer_
 
bool neednewsurvinit_
 

Friends

int ODMain (int, char **)
 

Additional Inherited Members

- Public Types inherited from uiMainWin
enum  Dock {
  Top, Bottom, Right, Left,
  Minimized, TornOff, Unmanaged
}
 Dock Selector. More...
 
enum  PopupArea {
  TopLeft, TopRight, BottomLeft, BottomRight,
  Middle, Auto
}
 
enum  ActModalTyp {
  None =0, Main, Message, File,
  Colour, Font, Unknown
}
 
- Static Public Member Functions inherited from uiMainWin
static uiMainWinactiveWindow ()
 
static uiMainWingtUiWinIfIsBdy (mQtclass(QWidget *) mwimpl)
 get uiMainWin for mwimpl if it is a uiMainWinBody More...
 
static ActModalTyp activeModalType ()
 
static uiMainWinactiveModalWindow ()
 
static const char * activeModalQDlgTitle ()
 
static const char * activeModalQDlgButTxt (int butnr)
 
static int activeModalQDlgRetVal (int butnr)
 
static void closeActiveModalQDlg (int retval)
 
static void getModalSignatures (BufferStringSet &)
 
static void getTopLevelWindows (ObjectSet< uiMainWin > &, bool visibleonly=true)
 
static uiString uniqueWinTitle (const uiString &, mQtclass(QWidget *) forwindow=0, BufferString *addendum=0)
 
static bool grabScreen (const char *filenm, const char *format=0, int quality=-1, int screen=0)
 
static void programActiveWindow (uiMainWin *)
 
static uiMainWinprogrammedActiveWindow ()
 

Detailed Description

OpendTect application top level object.

Constructor & Destructor Documentation

uiODMain::uiODMain ( uiMain )
uiODMain::~uiODMain ( )

Member Function Documentation

void uiODMain::afterSurveyChgCB ( CallBacker )
protected
uiODApplMgr& uiODMain::applMgr ( )
inline
bool uiODMain::askStore ( bool &  askedanything,
const uiString actiontype 
)

Asks user if session, picksets or attributesets need to be stored.

bool uiODMain::askStoreAttribs ( bool  ,
bool &  askedanything 
)

Asks user if attributesets (2D or 3D ) need to be stored.

void uiODMain::autoSession ( )

pops up the auto session dlg

bool uiODMain::buildUI ( )
private
void uiODMain::closeApplication ( )
protected
virtual bool uiODMain::closeOK ( )
protectedvirtual

confirm window close

Reimplemented from uiMainWin.

uiVisColTabEd& uiODMain::colTabEd ( )
inline
uiToolBar* uiODMain::colTabToolBar ( )
inline
void uiODMain::doRestoreSession ( )
private
bool uiODMain::ensureGoodDataDir ( )
private
bool uiODMain::ensureGoodSurveySetup ( )
private
void uiODMain::exit ( )
void uiODMain::forceExit ( )
uiString uiODMain::getProgramName ( )
uiString uiODMain::getProgramString ( ) const
private
CtxtIOObj* uiODMain::getUserSessionIOData ( bool  )
private
bool uiODMain::go ( )
void uiODMain::handleStartupSession ( )
protected
bool uiODMain::hasSessionChanged ( )

Compares current session with last saved.

void uiODMain::initScene ( )
private
bool uiODMain::isRestoringSession ( )
inline
void uiODMain::memTimerCB ( CallBacker )
private
uiODMenuMgr& uiODMain::menuMgr ( )
inline
  • toolbar
bool uiODMain::menuMgrAvailable ( ) const
inline
uiODMain::mODTextTranslationClass ( uiODMain  )
private
void uiODMain::newSurvInitTimerCB ( CallBacker )
private
void uiODMain::restoreSession ( )

pops up the restore session dlg

void uiODMain::restoreSession ( const IOObj )
protected
void uiODMain::saveSession ( )

pops up the save session dialog

uiODSceneMgr& uiODMain::sceneMgr ( )
inline
bool uiODMain::sceneMgrAvailable ( ) const
inline
IOPar& uiODMain::sessionPars ( )

On session save or restore notification, to get/put data

void uiODMain::sessTimerCB ( CallBacker )
private
void uiODMain::setProgramName ( const char *  )
void uiODMain::translateText ( )
private
void uiODMain::updateCaption ( )
bool uiODMain::updateSession ( )
private
uiODViewer2DMgr& uiODMain::viewer2DMgr ( )
inline
bool uiODMain::viewer2DMgrAvailable ( ) const
inline

Friends And Related Function Documentation

int ODMain ( int  ,
char **   
)
friend

Member Data Documentation

uiODApplMgr* uiODMain::applmgr_
protected
uiVisColTabEd* uiODMain::ctabed_
protected
uiToolBar* uiODMain::ctabtb_
protected
uiDockWin* uiODMain::ctabwin_
protected
MultiID uiODMain::cursessid_
protected
ODSession* uiODMain::cursession_
protected
bool uiODMain::failed_
protected
Notifier<uiODMain> uiODMain::justBeforeGo

Scenes inited, auto-plugins loaded.

ODSession& uiODMain::lastsession_
protected
Timer& uiODMain::memtimer_
private
uiODMenuMgr* uiODMain::menumgr_
protected
bool uiODMain::neednewsurvinit_
private
Timer& uiODMain::newsurvinittimer_
private
BufferString uiODMain::programname_
protected
bool uiODMain::restoringsess_
protected
uiODSceneMgr* uiODMain::scenemgr_
protected
Notifier<uiODMain> uiODMain::sessionRestore

Get data from pars.

Notifier<uiODMain> uiODMain::sessionRestoreEarly

Get data from pars, before vis.

Notifier<uiODMain> uiODMain::sessionSave

Put data in pars.

Timer& uiODMain::sesstimer_
private
uiMain& uiODMain::uiapp_
protected
uiODViewer2DMgr* uiODMain::viewer2dmgr_
protected

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