1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibGUI: Add a MessageBox type to reveal a file

This will be used by Ladybird to open a screenshot's containing folder.
This commit is contained in:
Timothy Flynn 2024-01-06 09:55:46 -05:00 committed by Sam Atkins
parent cc88a2657d
commit 9218b2f3ce
3 changed files with 12 additions and 1 deletions

View file

@ -32,6 +32,7 @@ public:
enum class InputType {
OK,
OKCancel,
OKReveal,
YesNo,
YesNoCancel,
};
@ -58,6 +59,7 @@ private:
bool should_include_cancel_button() const;
bool should_include_yes_button() const;
bool should_include_no_button() const;
bool should_include_reveal_button() const;
ErrorOr<void> build();
ErrorOr<RefPtr<Gfx::Bitmap>> icon() const;
@ -69,6 +71,7 @@ private:
RefPtr<GUI::Button> m_yes_button;
RefPtr<GUI::Button> m_no_button;
RefPtr<GUI::Button> m_cancel_button;
RefPtr<GUI::Button> m_reveal_button;
RefPtr<Label> m_text_label;
};