Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
actions.hpp File Reference

Setup of global actions for the main menu. More...

Go to the source code of this file.

Description

Setup of global actions for the main menu.

The Actions helper defines the structure and contents of the workspace window main menu. The individual menu options are bound to functors (closures), which use a global UI context to access the target objects or invoke the signals.

Todo:

the old Gtk::Action and Gtk::ActionGroup are planned to be deprecated. Recommendation is to rely on Gtk::Builder and Gtk::SimpleAction instead. As of 5/2017, it is not clear to what extent this might force us into additional "desktop integration" we do not need nor want (like automatically connecting to D-Bus). For that reason, we'll postpone this transition for the time being /////////////////////TICKET #1068

5/2025 generally speaking, we use way too much registration relying on matching textual IDs; This is a "boilerplaty" approach, we can do better ///////////////////////TICKET #1405 : all this registration with matching IDs is way too much "boilerplaty"

See also
ui-manager.hpp
gtk-lumiera.cpp

Definition in file actions.hpp.

Namespaces

namespace  stage
 Lumiera GTK UI implementation root.
 
namespace  stage::ctrl
 Backbone of the Lumiera GTK UI.
 

Classes

class  Actions
 A helper class which registers global user actions and populates the main menu and toolbar. More...