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:
parent
48f7c28a5c
commit
4755f355c6
3 changed files with 35 additions and 21 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue