diff options
author | rtk0c <[email protected]> | 2021-03-29 19:14:07 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-03-29 19:14:07 -0700 |
commit | e75e26da92424528e190a2111acfcc49c657e894 (patch) | |
tree | c9b6f0e2f98e8fef28feff3136e950b1f0e0f357 /core/src/Utils/Dialog/Dialog.hpp | |
parent | 70cc233165b5efa3a3888af34f7afce095fe6947 (diff) |
Replace Dialog.hpp with portable-file-dialogs, more work on projects
Diffstat (limited to 'core/src/Utils/Dialog/Dialog.hpp')
-rw-r--r-- | core/src/Utils/Dialog/Dialog.hpp | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/core/src/Utils/Dialog/Dialog.hpp b/core/src/Utils/Dialog/Dialog.hpp deleted file mode 100644 index e8989e3..0000000 --- a/core/src/Utils/Dialog/Dialog.hpp +++ /dev/null @@ -1,52 +0,0 @@ -// Adapted from https://github.com/aaronmjacobs/Boxer/blob/master/include/boxer/boxer.h
-#pragma once
-
-namespace Dialog {
-
-/// Options for styles to apply to a message box.
-enum class Style {
- Info,
- Warning,
- Error,
- Question,
-};
-
-/// Options for buttons to provide on a message box.
-enum class Buttons {
- OK,
- OKCancel,
- YesNo,
- Quit,
-};
-
-/// Possible responses from a message box. 'None' signifies that no option was chosen, and 'Error' signifies that an
-/// error was encountered while creating the message box.
-enum class Selection {
- OK,
- Cancel,
- Yes,
- No,
- Quit,
- None,
- Error,
-};
-
-/// The default style to apply to a message box.
-constexpr Style kDefaultStyle = Style::Info;
-
-/// The default buttons to provide on a message box.
-constexpr Buttons kDefaultButtons = Buttons::OK;
-
-/// Blocking call to create a modal message box with the given message, title, style, and buttons.
-Selection Show(const char* message, const char* title, Style style, Buttons buttons);
-
-/// Convenience function to call show() with the default buttons.
-Selection Show(const char* message, const char* title, Style style);
-
-/// Convenience function to call show() with the default style.
-Selection Show(const char* message, const char* title, Buttons buttons);
-
-/// Convenience function to call show() with the default style and buttons.
-Selection Show(const char* message, const char* title);
-
-} // namespace Dialog
|