LibGUI: Add a save_as common action

This commit is contained in:
AnotherTest 2020-08-25 01:06:11 +04:30 committed by Andreas Kling
commit 5568da9a59
Notes: sideshowbarker 2024-07-19 03:11:35 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -44,6 +44,7 @@ namespace GUI {
namespace CommonActions {
NonnullRefPtr<Action> make_open_action(Function<void(Action&)>, Core::Object* parent = nullptr);
NonnullRefPtr<Action> make_save_action(Function<void(Action&)>, Core::Object* parent = nullptr);
NonnullRefPtr<Action> make_save_as_action(Function<void(Action&)>, Core::Object* parent = nullptr);
NonnullRefPtr<Action> make_undo_action(Function<void(Action&)>, Core::Object* parent = nullptr);
NonnullRefPtr<Action> make_redo_action(Function<void(Action&)>, Core::Object* parent = nullptr);
NonnullRefPtr<Action> make_cut_action(Function<void(Action&)>, Core::Object* parent = nullptr);