LibGUI: Add save action to CommonActions list

This commit is contained in:
Hüseyin ASLITÜRK 2020-05-27 16:53:57 +03:00 committed by Andreas Kling
commit eead3878a1
Notes: sideshowbarker 2024-07-19 05:52:17 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -39,6 +39,11 @@ NonnullRefPtr<Action> make_open_action(Function<void(Action&)> callback, Core::O
return Action::create("Open...", { Mod_Ctrl, Key_O }, Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png"), move(callback), parent);
}
NonnullRefPtr<Action> make_save_action(Function<void(Action&)> callback, Core::Object* parent)
{
return Action::create("Save", { Mod_Ctrl, Key_S }, Gfx::Bitmap::load_from_file("/res/icons/16x16/save.png"), move(callback), parent);
}
NonnullRefPtr<Action> make_move_to_front_action(Function<void(Action&)> callback, Core::Object* parent)
{
return Action::create("Move to front", { Mod_Ctrl | Mod_Shift, Key_Up }, Gfx::Bitmap::load_from_file("/res/icons/16x16/move-to-front.png"), move(callback), parent);