OpendTect  7.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | List of all members
uiMain Class Reference
Inheritance diagram for uiMain:
[legend]

Public Member Functions

 uiMain (int &argc, char **argv)
 
virtual ~uiMain ()
 
uiSize desktopSize () const
 
virtual int exec ()
 
void exit (int retcode=0)
 
const uiFontfont ()
 
void getCmdLineArgs (BufferStringSet &) const
 
double getDevicePixelRatio (int screennr) const
 
uiSize getScreenSize (int screennr, bool availablesz) const
 
int nrScreens () const
 
void restart ()
 
void setFont (const uiFont &, bool passtochildren)
 
void setTopLevel (uiMainWin *)
 
void * thread ()
 
uiMainWintopLevel ()
 
OD::Color windowColor () const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 

Static Public Member Functions

static void cleanQtOSEnv ()
 
static bool directRendering ()
 
static void formatNameToolTipString (BufferString &)
 
static double getDefZoomLevel ()
 
static OD::Pair< int, int > getDPI (int screennr=-1)
 
static int getMinDPI ()
 
static uiMaininstance ()
 
static bool isNameToolTipUsed ()
 
static KeyboardEventHandlerkeyboardEventHandler ()
 
static void preInitForOpenGL ()
 call before the uiMain object is constructed More...
 
static void processEvents (int msec=3000)
 
static void repaint ()
 
static bool reqOpenGL ()
 
static void setIcon (const char *icid)
 
static void setXpmIconData (const char **xpmdata)
 
static uiMaintheMain ()
 
static void useNameToolTip (bool)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Static Public Attributes

static const char ** XpmIconData
 

Protected Member Functions

virtual void init (QWidget *mainwidget)
 necessary for uiMain coin initialization More...
 

Protected Attributes

uiMainWinmainobj_
 

Static Protected Attributes

static QApplication * app_
 
static const uiFontfont_
 
static KeyboardEventFilter * keyfilter_
 
static KeyboardEventHandlerkeyhandler_
 
static QtTabletEventFilter * tabletfilter_
 
static uiMainthemain_
 

Private Member Functions

 uiMain (QApplication *)
 
void init (QApplication *, int &argc, char **argv)
 
void preInit ()
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ uiMain() [1/2]

uiMain::uiMain ( int &  argc,
char **  argv 
)

◆ uiMain() [2/2]

uiMain::uiMain ( QApplication *  )
private

◆ ~uiMain()

virtual uiMain::~uiMain ( )
virtual

Member Function Documentation

◆ cleanQtOSEnv()

static void uiMain::cleanQtOSEnv ( )
static

◆ desktopSize()

uiSize uiMain::desktopSize ( ) const
Returns
mUdf(int) if unknown

◆ directRendering()

static bool uiMain::directRendering ( )
static

◆ exec()

virtual int uiMain::exec ( )
virtual

◆ exit()

void uiMain::exit ( int  retcode = 0)

◆ font()

const uiFont* uiMain::font ( )

◆ formatNameToolTipString()

static void uiMain::formatNameToolTipString ( BufferString )
static

◆ getCmdLineArgs()

void uiMain::getCmdLineArgs ( BufferStringSet ) const

◆ getDefZoomLevel()

static double uiMain::getDefZoomLevel ( )
static

◆ getDevicePixelRatio()

double uiMain::getDevicePixelRatio ( int  screennr) const

◆ getDPI()

static OD::Pair<int,int> uiMain::getDPI ( int  screennr = -1)
static

◆ getMinDPI()

static int uiMain::getMinDPI ( )
static

◆ getScreenSize()

uiSize uiMain::getScreenSize ( int  screennr,
bool  availablesz 
) const

◆ init() [1/2]

void uiMain::init ( QApplication *  ,
int &  argc,
char **  argv 
)
private

◆ init() [2/2]

virtual void uiMain::init ( QWidget *  mainwidget)
inlineprotectedvirtual

necessary for uiMain coin initialization

◆ instance()

static uiMain& uiMain::instance ( )
static

◆ isNameToolTipUsed()

static bool uiMain::isNameToolTipUsed ( )
static

◆ keyboardEventHandler()

static KeyboardEventHandler& uiMain::keyboardEventHandler ( )
static

◆ nrScreens()

int uiMain::nrScreens ( ) const

◆ preInit()

void uiMain::preInit ( )
private

◆ preInitForOpenGL()

static void uiMain::preInitForOpenGL ( )
static

call before the uiMain object is constructed

◆ processEvents()

static void uiMain::processEvents ( int  msec = 3000)
static

Processes pending events for maxtime milliseconds or until there are no more events to process, whichever is shorter. Only works after themain has been constructed.

◆ repaint()

static void uiMain::repaint ( )
static

◆ reqOpenGL()

static bool uiMain::reqOpenGL ( )
static

◆ restart()

void uiMain::restart ( )

◆ setFont()

void uiMain::setFont ( const uiFont ,
bool  passtochildren 
)

◆ setIcon()

static void uiMain::setIcon ( const char *  icid)
static

◆ setTopLevel()

void uiMain::setTopLevel ( uiMainWin )

◆ setXpmIconData()

static void uiMain::setXpmIconData ( const char **  xpmdata)
static

◆ theMain()

static uiMain& uiMain::theMain ( )
inlinestatic

◆ thread()

void* uiMain::thread ( )

◆ topLevel()

uiMainWin* uiMain::topLevel ( )
inline

◆ useNameToolTip()

static void uiMain::useNameToolTip ( bool  )
static

◆ windowColor()

OD::Color uiMain::windowColor ( ) const

Member Data Documentation

◆ app_

QApplication* uiMain::app_
staticprotected

◆ font_

const uiFont* uiMain::font_
staticprotected

◆ keyfilter_

KeyboardEventFilter* uiMain::keyfilter_
staticprotected

◆ keyhandler_

KeyboardEventHandler* uiMain::keyhandler_
staticprotected

◆ mainobj_

uiMainWin* uiMain::mainobj_
protected

◆ tabletfilter_

QtTabletEventFilter* uiMain::tabletfilter_
staticprotected

◆ themain_

uiMain* uiMain::themain_
staticprotected

◆ XpmIconData

const char** uiMain::XpmIconData
static

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