summaryrefslogtreecommitdiff
path: root/LibGUI/GAction.cpp
AgeCommit message (Collapse)Author
2019-03-03LibGUI: Move shortcut actions from GEventLoop to GApplications.Andreas Kling
I'm gonna want to have nested event loops sooner or later, so let's not pollute GEventLoop with things that are meant to work globally. This patch also changes key events to pass around their modifiers as a bitfield all the way around the system instead of breaking them up.
2019-03-03Applications: Map Alt+F4 to Quit in FileManager/ProcessManager/Terminal.Andreas Kling
2019-03-02LibGUI+WindowServer: Add app-global keyboard shortcuts.Andreas Kling
This patch adds a GShortcut class. Each GAction can have a GShortcut which will cause the event loop to listen for that key combination app-globally and activate the event in case it's pressed. The shortcut will also be displayed when the action is added to a menu. Use this to hook up Alt+Up with the "open parent directory" action in the FileManager app. :^)
2019-02-20LibGUI: Add a GToolBar class that can be populated with GActions.Andreas Kling
The same action can be added to both a menu and a toolbar. Use this to put a toolbar into FileManager. This is pretty neat. :^)
2019-02-12LibGUI: Add GAction class and make GMenu deal in actions rather than strings.Andreas Kling