OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ApplicationData Class Reference
Inheritance diagram for ApplicationData:
[legend]

Public Member Functions

 ApplicationData ()
 
 ~ApplicationData ()
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Static Public Member Functions

static int exec ()
 Starts the event loop. More...
 
static void exit (int returncode)
 Tells the eventloop to quit. More...
 
static bool isCommandAndCTRLSwapped ()
 On Mac, is Ctrl and Command buttons swapped? More...
 
static void swapCommandAndCTRL (bool)
 
static void setOrganizationName (const char *)
 
static void setOrganizationDomain (const char *)
 
static void setApplicationName (const char *)
 

Protected Attributes

::QCoreApplication * application_
 

Additional Inherited Members

- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Detailed Description

Wrapper class around the QCoreApplicaiton, which provides an event-loop for console applications. It can also be used in GUI program as an access-point (adding events and telling it to quit) to QApplication (which has to be created before creating the ApplicationData.

Constructor & Destructor Documentation

ApplicationData::ApplicationData ( )

Will create a QCoreApplication if no QCoreApplication (or inheriting classes are instantiated.)

ApplicationData::~ApplicationData ( )

Member Function Documentation

static int ApplicationData::exec ( )
static

Starts the event loop.

static void ApplicationData::exit ( int  returncode)
static

Tells the eventloop to quit.

static bool ApplicationData::isCommandAndCTRLSwapped ( )
static

On Mac, is Ctrl and Command buttons swapped?

static void ApplicationData::setApplicationName ( const char *  )
static
static void ApplicationData::setOrganizationDomain ( const char *  )
static
static void ApplicationData::setOrganizationName ( const char *  )
static
static void ApplicationData::swapCommandAndCTRL ( bool  )
static

Member Data Documentation

:: QCoreApplication* ApplicationData::application_
protected

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