RADLib
RADical C++ application framework
RADUi::AppShellModel Class Reference

High-level application shell state. More...

#include <RADAppKit.h>

+ Inheritance diagram for RADUi::AppShellModel:
+ Collaboration diagram for RADUi::AppShellModel:

Public Member Functions

MenuBarModelmenuBar ()
 Returns menu model. More...
 
ToolBarModeltoolBar ()
 Returns toolbar model. More...
 
StatusBarModelstatusBar ()
 Returns status model. More...
 
DockLayoutModeldockLayout ()
 Returns dock layout model. More...
 
DocumentWorkspaceModelworkspace ()
 Returns document workspace model. More...
 
CommandPaletteModelcommandPalette ()
 Returns command palette model. More...
 
NotificationModelnotifications ()
 Returns notification model. More...
 
void setTitle (std::string title)
 Sets application title. More...
 
const std::string & title () const
 Returns application title. More...
 
- Public Member Functions inherited from RADCore::RADObject
 RADObject ()
 Creates a RADObject bound to the current thread. More...
 
virtual ~RADObject ()
 Disconnects tracked event links and releases lifetime token. More...
 
void registerLink (const ConnectionRecord &record)
 Registers a connection for cleanup when this object is destroyed. More...
 
std::thread::id threadId () const
 Returns the thread id this object is currently associated with. More...
 
EventLoopassociatedEventLoop () const
 Returns the associated event loop, if any. More...
 
ThreadAffinity threadAffinity () const
 Returns both thread id and associated loop atomically. More...
 
std::weak_ptr< void > lifetimeToken () const
 Returns a weak token used to drop queued callbacks after destruction. More...
 
void moveToThread (std::thread::id tId, EventLoop *loop=nullptr)
 Moves the object's affinity to tId and optional loop. More...
 

Public Attributes

RADCore::Event< void() > changed
 Raised when shell state changes. More...
 

Detailed Description

High-level application shell state.

Member Function Documentation

◆ commandPalette()

CommandPaletteModel& RADUi::AppShellModel::commandPalette ( )

Returns command palette model.

◆ dockLayout()

DockLayoutModel& RADUi::AppShellModel::dockLayout ( )

Returns dock layout model.

◆ menuBar()

MenuBarModel& RADUi::AppShellModel::menuBar ( )

Returns menu model.

◆ notifications()

NotificationModel& RADUi::AppShellModel::notifications ( )

Returns notification model.

◆ setTitle()

void RADUi::AppShellModel::setTitle ( std::string  title)

Sets application title.

◆ statusBar()

StatusBarModel& RADUi::AppShellModel::statusBar ( )

Returns status model.

◆ title()

const std::string& RADUi::AppShellModel::title ( ) const

Returns application title.

◆ toolBar()

ToolBarModel& RADUi::AppShellModel::toolBar ( )

Returns toolbar model.

◆ workspace()

DocumentWorkspaceModel& RADUi::AppShellModel::workspace ( )

Returns document workspace model.

Member Data Documentation

◆ changed

RADCore::Event<void () > RADUi::AppShellModel::changed

Raised when shell state changes.


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