1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:47:35 +00:00

LibGUI: Add Yes/No and Yes/No/Cancel MessageBoxes

This commit is contained in:
thatlittlegit 2020-02-16 23:46:02 -05:00 committed by Andreas Kling
parent 48f7c28a5c
commit 4755f355c6
3 changed files with 35 additions and 21 deletions

View file

@ -43,6 +43,8 @@ public:
enum class InputType {
OK,
OKCancel,
YesNo,
YesNoCancel,
};
virtual ~MessageBox() override;
@ -54,6 +56,8 @@ private:
bool should_include_ok_button() const;
bool should_include_cancel_button() const;
bool should_include_yes_button() const;
bool should_include_no_button() const;
void build();
RefPtr<Gfx::Bitmap> icon() const;