Elaztek Developer Hub
Blamite Game Engine - Keystone  00402.09.29.23.0627.blamite
A library that enables the use of Qt in Blamite's editing tools.
error_dialog.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QWidget>
4 #include <string>
5 
6 #include "api/keystone_api.h"
7 #include "ui_error_dialog.h"
8 
12 class ErrorDialog : public QMainWindow
13 {
14  Q_OBJECT
15 
16 private:
17  Ui::error_notice_qt ui;
19 
20 public:
29  ErrorDialog(bool allow_safemode, bool allow_continue, std::string text, QWidget* parent = Q_NULLPTR);
30  ~ErrorDialog();
31 
38 
39 private slots:
40 
44  void btn_continue_Click();
45 
49  void btn_safe_mode_Click();
50 
54  void btn_exit_Click();
55 };
KeystoneDialogResult::Default_NotSet
@ Default_NotSet
The dialog result has not yet been set.
KeystoneDialogResult
KeystoneDialogResult
Enumerator containing all possible generic dialog results.
Definition: keystone_api.h:30
error_dialog.h
KeystoneDialogResult::Exit
@ Exit
Indicates the user choosed the "Exit" option.
ErrorDialog::ErrorDialog
ErrorDialog(bool allow_safemode, bool allow_continue, std::string text, QWidget *parent=Q_NULLPTR)
Constructs a new error dialog.
Definition: error_dialog.cpp:3
keystone_api.h
KeystoneDialogResult::SafeMode
@ SafeMode
Indicates the user choosed the "Continue in Safe Mode" option.
ErrorDialog::~ErrorDialog
~ErrorDialog()
Definition: error_dialog.cpp:16
ErrorDialog
GUI for the Qt-based error dialog box.
Definition: error_dialog.h:12
KeystoneDialogResult::Continue
@ Continue
Indicates the user choosed the "Continue" option.
ErrorDialog::GetResult
KeystoneDialogResult GetResult()
Retrieves the result of the dialog.
Definition: error_dialog.cpp:21