GlobalArea Class Reference

Signals

void widgetClosed (GlobalAreaWidget *widget)
 

Public Member Functions

 GlobalArea ()
 
void setSplitter (QSplitter *splitter)
 
void addWidget (GlobalAreaWidget *widget, bool canClose=false)
 
void initRegisteredWidgets (UIContext *context)
 
void updateFonts ()
 
void updateTheme ()
 
void updateViewLocation (View *view, const ViewLocation &viewLocation)
 
void viewChanged (ViewFrame *frame)
 
bool isWidgetVisible (const QString &title)
 
bool toggleVisible ()
 
bool toggleWidgetVisible (const QString &title)
 
void focusWidget (const QString &title)
 
GlobalAreaWidgetwidget (const QString &title)
 
void saveSizes (const QSettings &settings, const QString &windowStateName)
 
void saveState (const QSettings &settings, const QString &windowStateName)
 
void restoreSizes (const QSettings &settings, const QString &windowStateName)
 
void restoreState (const QSettings &settings, const QString &windowStateName)
 

Static Public Member Functions

static void addWidget (const std::function< GlobalAreaWidget *(UIContext *)> &createWidget)
 
static GlobalAreacurrent ()
 
template<class T >
static T * widget (const QString &title)
 
template<class T >
static UIAction globalAreaAction (const QString &title, const std::function< void(T *obj)> &activate)
 
template<class T >
static UIAction globalAreaAction (const QString &title, const std::function< void(T *obj, const UIActionContext &ctxt)> &activate)
 
template<class T >
static UIAction globalAreaAction (const QString &title, const std::function< void(T *obj)> &activate, const std::function< bool(T *obj)> &isValid)
 
template<class T >
static UIAction globalAreaAction (const QString &title, const std::function< void(T *obj, const UIActionContext &ctxt)> &activate, const std::function< bool(T *obj, const UIActionContext &ctxt)> &isValid)
 
template<class T >
static std::function< bool(const UIActionContext &)> globalAreaActionChecked (const QString &title, const std::function< bool(T *obj)> &isChecked)
 
template<class T >
static std::function< bool(const UIActionContext &)> globalAreaActionChecked (const QString &title, const std::function< bool(T *obj, const UIActionContext &ctxt)> &isChecked)
 

Constructor & Destructor Documentation

◆ GlobalArea()

GlobalArea::GlobalArea ( )

Member Function Documentation

◆ addWidget() [1/2]

static void GlobalArea::addWidget ( const std::function< GlobalAreaWidget *(UIContext *)> &  createWidget)
static

◆ addWidget() [2/2]

void GlobalArea::addWidget ( GlobalAreaWidget widget,
bool  canClose = false 
)

◆ current()

static GlobalArea * GlobalArea::current ( )
inlinestatic

◆ focusWidget()

void GlobalArea::focusWidget ( const QString &  title)

◆ globalAreaAction() [1/4]

template<class T >
static UIAction GlobalArea::globalAreaAction ( const QString &  title,
const std::function< void(T *obj)> &  activate 
)
inlinestatic

◆ globalAreaAction() [2/4]

template<class T >
static UIAction GlobalArea::globalAreaAction ( const QString &  title,
const std::function< void(T *obj)> &  activate,
const std::function< bool(T *obj)> &  isValid 
)
inlinestatic

◆ globalAreaAction() [3/4]

template<class T >
static UIAction GlobalArea::globalAreaAction ( const QString &  title,
const std::function< void(T *obj, const UIActionContext &ctxt)> &  activate 
)
inlinestatic

◆ globalAreaAction() [4/4]

template<class T >
static UIAction GlobalArea::globalAreaAction ( const QString &  title,
const std::function< void(T *obj, const UIActionContext &ctxt)> &  activate,
const std::function< bool(T *obj, const UIActionContext &ctxt)> &  isValid 
)
inlinestatic

◆ globalAreaActionChecked() [1/2]

template<class T >
static std::function< bool(const UIActionContext &)> GlobalArea::globalAreaActionChecked ( const QString &  title,
const std::function< bool(T *obj)> &  isChecked 
)
inlinestatic

◆ globalAreaActionChecked() [2/2]

template<class T >
static std::function< bool(const UIActionContext &)> GlobalArea::globalAreaActionChecked ( const QString &  title,
const std::function< bool(T *obj, const UIActionContext &ctxt)> &  isChecked 
)
inlinestatic

◆ initRegisteredWidgets()

void GlobalArea::initRegisteredWidgets ( UIContext context)

◆ isWidgetVisible()

bool GlobalArea::isWidgetVisible ( const QString &  title)

◆ restoreSizes()

void GlobalArea::restoreSizes ( const QSettings &  settings,
const QString &  windowStateName 
)

◆ restoreState()

void GlobalArea::restoreState ( const QSettings &  settings,
const QString &  windowStateName 
)

◆ saveSizes()

void GlobalArea::saveSizes ( const QSettings &  settings,
const QString &  windowStateName 
)

◆ saveState()

void GlobalArea::saveState ( const QSettings &  settings,
const QString &  windowStateName 
)

◆ setSplitter()

void GlobalArea::setSplitter ( QSplitter *  splitter)

◆ toggleVisible()

bool GlobalArea::toggleVisible ( )

◆ toggleWidgetVisible()

bool GlobalArea::toggleWidgetVisible ( const QString &  title)

◆ updateFonts()

void GlobalArea::updateFonts ( )

◆ updateTheme()

void GlobalArea::updateTheme ( )

◆ updateViewLocation()

void GlobalArea::updateViewLocation ( View view,
const ViewLocation viewLocation 
)

◆ viewChanged()

void GlobalArea::viewChanged ( ViewFrame frame)

◆ widget() [1/2]

GlobalAreaWidget * GlobalArea::widget ( const QString &  title)

◆ widget() [2/2]

template<class T >
static T * GlobalArea::widget ( const QString &  title)
inlinestatic

◆ widgetClosed

void GlobalArea::widgetClosed ( GlobalAreaWidget widget)
signal

The documentation for this class was generated from the following file: