Lumiera
0.pre.03
»edit your freedom«
|
#include "stage/ctrl/actions.hpp"
A helper class which registers global user actions and populates the main menu and toolbar.
Definition at line 67 of file actions.hpp.
Public Member Functions | |
Actions (GlobalCtx &globals) | |
void | populateMainActions (Gtk::UIManager &uiManager) |
Populates the uiManager with the main set of global actions. More... | |
void | updateActionState (workspace::WorkspaceWindow ¤tWindow) |
Updates the state of the menu/toolbar actions to reflect the current state of the workspace. More... | |
Private Member Functions | |
void | onMenu_view_assets () |
void | onMenu_view_infobox () |
void | onMenu_view_timeline () |
void | onMenu_view_viewer () |
void | populateShowPanelActions (Gtk::UIManager &uiManager) |
Populates the menu entries to show specific panels within the current window. More... | |
void | unimplemented (const char *todo) |
Private Member Functions inherited from NonCopyable | |
NonCopyable (NonCopyable const &)=delete | |
NonCopyable & | operator= (NonCopyable const &)=delete |
Private Attributes | |
Glib::RefPtr< Gtk::ActionGroup > | actionGroup |
Glib::RefPtr< Gtk::ToggleAction > | assetsPanelAction |
GlobalCtx & | globalCtx_ |
Glib::RefPtr< Gtk::ToggleAction > | infoboxPanelAction |
bool | is_updating_action_state |
Glib::RefPtr< Gtk::ToggleAction > | timelinePanelAction |
Glib::RefPtr< Gtk::ToggleAction > | viewerPanelAction |
|
inline |
Populates the uiManager with the main set of global actions.
sigc::trackable
, yet this is not necessary either, since Actions, together with all the other top level UI backbone entities, is created and maintained by GtkLumiera, and thus ensured to exist as long as the GTK event loop is running. Definition at line 88 of file actions.hpp.
References steam::mobject::session::query::anonymous_namespace{fake-configrules.cpp}::entry().
|
inline |
Updates the state of the menu/toolbar actions to reflect the current state of the workspace.
Definition at line 239 of file actions.hpp.
|
inlineprivate |
Populates the menu entries to show specific panels within the current window.
Definition at line 272 of file actions.hpp.
References WindowLocator::findActiveWindow(), PanelManager::getPanelDescriptionCount(), PanelManager::getPanelStockID(), stage::widget::name(), and PanelManager::showPanel().