FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
GuiMessageBox.h
Go to the documentation of this file.
1#ifndef GUI_WINDOW_PROMPT_MESSAGE_BOX_H
2#define GUI_WINDOW_PROMPT_MESSAGE_BOX_H
3
4#include <QMessageBox>
5#include <string>
6
9namespace gui::window::prompt {
15 class GuiMessageBox final : public QAppSingletonProto {
16 public:
17 GuiMessageBox() = delete;
18
19 static void showWarning(const std::string& title,
20 const std::string& message,
22
23 static bool promptConfirmation(const std::string& title,
24 const std::string& message,
26 };
27} // namespace gui::window::prompt
28
29#endif // GUI_WINDOW_PROMPT_MESSAGE_BOX_H
Utility class for displaying messages to the user.
static bool promptConfirmation(const std::string &title, const std::string &message, business_logic::delegate::IWindowDelegate *windowDelegate)
static void showWarning(const std::string &title, const std::string &message, business_logic::delegate::IWindowDelegate *windowDelegate)
An internal helper class for handling QApplication.
GUI user prompt utilities.