Lumiera
0.pre.03
»edit your freedom«
|
#include "stage/ctrl/window-locator.hpp"
A centralised manager of all top level application windows.
Definition at line 58 of file window-locator.hpp.
Public Member Functions | |
WindowLocator (GlobalCtx &) | |
void | closeWindow () |
close (and thus destroy) the current active window. More... | |
bool | empty () const |
workspace::WorkspaceWindow & | findActiveWindow () |
find and retrieve a WorkspaceWindow (top-level window) marked as 'active' by GTK. More... | |
workspace::WorkspaceWindow & | findFocusWindow () |
similar to findActiveWindow(), for the 'has_focus' property More... | |
PanelLocator & | locatePanel () |
void | newWindow () |
Private Types | |
using | PWindow = std::shared_ptr< workspace::WorkspaceWindow > |
using | Service_ElementAccess = lib::DependInject< model::ElementAccess >::ServiceInstance< ElemAccessDir > |
Private Member Functions | |
bool | on_window_closed (GdkEventAny *event) |
Event handler for when a window has been closed. | |
void | updateCloseWindowInMenus () |
On creating and closing of any window, handle enabling or disabling of the Window/Close Window menu option. More... | |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
Private Attributes | |
Service_ElementAccess | elementAccess_ |
GlobalCtx & | globalCtx_ |
PanelLocator | panelLoc_ |
list< PWindow > | windowList_ |
void closeWindow | ( | ) |
close (and thus destroy) the current active window.
Definition at line 82 of file window-locator.cpp.
WorkspaceWindow & findActiveWindow | ( | ) |
find and retrieve a WorkspaceWindow (top-level window) marked as 'active' by GTK.
NULL
, but assuming this function is only ever called when there is at least one Lumiera window. Definition at line 96 of file window-locator.cpp.
Referenced by Actions::populateShowPanelActions().
WorkspaceWindow & findFocusWindow | ( | ) |
similar to findActiveWindow(), for the 'has_focus' property
Definition at line 114 of file window-locator.cpp.
|
private |
On creating and closing of any window, handle enabling or disabling of the Window/Close Window menu option.
It should be enabled when there is more than one window and disabled otherwise.
Definition at line 163 of file window-locator.cpp.