OpendTect 8.0
Loading...
Searching...
No Matches
uiMain Class Reference

#include <uimain.h>

Inheritance diagram for uiMain:
[legend]

Public Member Functions

 uiMain (int &argc, char **argv)
 
virtual ~uiMain ()
 
BufferString appStyle () const
 
uiSize desktopSize () const
 
virtual int exec ()
 
void exit (int retcode=0)
 
const uiFont * font ()
 
void getCmdLineArgs (BufferStringSet &) const
 
double getDevicePixelRatio (int screennr) const
 
uiRect getScreenGeometry (int screennr, bool available) const
 
uiSize getScreenSize (int screennr, bool availablesz) const
 
BufferString getSysDefaultAppStyle () const
 
int nrScreens () const
 
void restart ()
 
void setFont (const uiFont &, bool passtochildren)
 
void setStyle (const char *)
 
void setTopLevel (uiMainWin *)
 
void * thread ()
 
uiMainWin * topLevel ()
 
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.
 
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.
 
CallBacker & operator= (const CallBacker &)=delete
 
void stopReceivingNotifications () const
 
virtual CallBacker * trueCaller ()
 

Static Public Member Functions

static bool arePrintersAvailable ()
 
static void cleanQtOSEnv ()
 
static bool directRendering ()
 
static bool directRendering (BufferString &glvendor)
 
static void formatNameToolTipString (BufferString &)
 
static double getDefZoomLevel ()
 
static OD::Pair< int, int > getDPI (int screennr=-1)
 
static int getMinDPI ()
 
static BufferString getStyleFromSettings (const CommandLineParser &, bool *needdisabledarkmode=nullptr)
 
static bool hasPrintSupport ()
 
static uiMain & instance ()
 
static bool isNameToolTipUsed ()
 
static KeyboardEventHandler & keyboardEventHandler ()
 
static void preInitForOpenGL ()
 call before the uiMain object is constructed
 
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 const char * sKeylookstyle ()
 
static uiMain & theMain ()
 
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
 

Protected Attributes

uiMainWin * mainobj_
 

Static Protected Attributes

static QApplication * app_
 
static const uiFont * font_
 
static KeyboardEventFilter * keyfilter_
 
static KeyboardEventHandler * keyhandler_
 
static QtTabletEventFilter * tabletfilter_
 
static uiMain * themain_
 

Private Member Functions

 uiMain (QApplication *)
 
void init (QApplication *, int &argc, char **argv)
 
void iomReadyCB (CallBacker *)
 
void preInit (const CommandLineParser &, BufferString &style)
 

Private Attributes

BufferString sysdefaultstyle_
 

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

◆ appStyle()

BufferString uiMain::appStyle ( ) const

◆ arePrintersAvailable()

static bool uiMain::arePrintersAvailable ( )
static

◆ cleanQtOSEnv()

static void uiMain::cleanQtOSEnv ( )
static

◆ desktopSize()

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

◆ directRendering() [1/2]

static bool uiMain::directRendering ( )
static

◆ directRendering() [2/2]

static bool uiMain::directRendering ( BufferString & glvendor)
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

◆ getScreenGeometry()

uiRect uiMain::getScreenGeometry ( int screennr,
bool available ) const

◆ getScreenSize()

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

◆ getStyleFromSettings()

static BufferString uiMain::getStyleFromSettings ( const CommandLineParser & ,
bool * needdisabledarkmode = nullptr )
static

◆ getSysDefaultAppStyle()

BufferString uiMain::getSysDefaultAppStyle ( ) const

◆ hasPrintSupport()

static bool uiMain::hasPrintSupport ( )
static

◆ 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

◆ iomReadyCB()

void uiMain::iomReadyCB ( CallBacker * )
private

◆ isNameToolTipUsed()

static bool uiMain::isNameToolTipUsed ( )
static

◆ keyboardEventHandler()

static KeyboardEventHandler & uiMain::keyboardEventHandler ( )
static

◆ nrScreens()

int uiMain::nrScreens ( ) const

◆ preInit()

void uiMain::preInit ( const CommandLineParser & ,
BufferString & style )
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

◆ setStyle()

void uiMain::setStyle ( const char * )

◆ setTopLevel()

void uiMain::setTopLevel ( uiMainWin * )

◆ setXpmIconData()

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

◆ sKeylookstyle()

static const char * uiMain::sKeylookstyle ( )
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

◆ sysdefaultstyle_

BufferString uiMain::sysdefaultstyle_
private

◆ 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-2026