OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ApplicationData Class Reference

Wrapper class around the QCoreApplicaiton. More...

Inheritance diagram for ApplicationData:
[legend]

Public Member Functions

 ApplicationData ()
 
 ~ApplicationData ()
 
- 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 BufferString applicationName ()
 
static Notifier< ApplicationData > & applicationToBeStarted ()
 Just before the event loop is started. More...
 
static int exec ()
 Starts the event loop. More...
 
static void exit (int returncode)
 Tells the eventloop to quit. More...
 
static bool hasInstance ()
 
static bool isCommandAndCTRLSwapped ()
 On Mac, is Ctrl and Command buttons swapped? More...
 
static void setApplicationName (const char *)
 
static void setOrganizationDomain (const char *)
 
static void setOrganizationName (const char *)
 
static void swapCommandAndCTRL (bool)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Protected Attributes

QCoreApplication * application_ = nullptr
 

Detailed Description

Wrapper class around the QCoreApplicaiton.

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::ApplicationData ( )

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

◆ ~ApplicationData()

ApplicationData::~ApplicationData ( )

Member Function Documentation

◆ applicationName()

static BufferString ApplicationData::applicationName ( )
static

◆ applicationToBeStarted()

static Notifier<ApplicationData>& ApplicationData::applicationToBeStarted ( )
static

Just before the event loop is started.

◆ exec()

static int ApplicationData::exec ( )
static

Starts the event loop.

◆ exit()

static void ApplicationData::exit ( int  returncode)
static

Tells the eventloop to quit.

◆ hasInstance()

static bool ApplicationData::hasInstance ( )
static

◆ isCommandAndCTRLSwapped()

static bool ApplicationData::isCommandAndCTRLSwapped ( )
static

On Mac, is Ctrl and Command buttons swapped?

◆ setApplicationName()

static void ApplicationData::setApplicationName ( const char *  )
static

◆ setOrganizationDomain()

static void ApplicationData::setOrganizationDomain ( const char *  )
static

◆ setOrganizationName()

static void ApplicationData::setOrganizationName ( const char *  )
static

◆ swapCommandAndCTRL()

static void ApplicationData::swapCommandAndCTRL ( bool  )
static

Member Data Documentation

◆ application_

QCoreApplication* ApplicationData::application_ = nullptr
protected

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