API Documentation
Loading...
Searching...
No Matches
QTErrorDialog.h
Go to the documentation of this file.
1/**--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: Widgets
28File: QTErrorDialog
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
34#include <NDEVR/LogView.h>
35#include <NDEVR/QCustomTabWidget.h>
36#include <NDEVR/Dictionary.h>
37#include <NDEVR/UUID.h>
38#include <QDialog>
39namespace Ui
40{
41 class ErrorDialogUI;
42}
43namespace NDEVR
44{
45 class CrashManager;
46 class QTErrorDialog;
47 class CrashManager;
48 class Exception;
49 class NDEVR_WIDGETS_API QTErrorDialog : public QWidget
50 {
51 Q_OBJECT
52 public:
53 QTErrorDialog(const Exception& exception, ProgressInfo* log = nullptr, QWidget* parent = nullptr);
55 QSize sizeHint() const override;
56 QSize minimumSizeHint() const override;
57 public slots:
58 void onAccept();
59 void onIgnore();
60 signals:
63 public:
64 static void CreateErrorDialog(Exception exception, ProgressInfo* log = nullptr);
65 static void ErrorHandlingInit();
66 static void ErrorHandlineStop();
67 static void HandlePendingExceptions();
68 protected:
69 Ui::ErrorDialogUI* ui;
73 protected:
80 };
82 {
83 Q_OBJECT
84 public:
86 QSize sizeHint() const override;
87 void addErrorDialog(QTErrorDialog* dialog);
88 static QTErrorBrowser* defaultInstance();
89 };
90}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:81
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition CrashManager.h:41
Definition Dictionary.h:48
Definition Exception.hpp:56
Definition LogView.h:53
Definition ProgressInfo.hpp:43
Definition QCustomTabWidget.h:40
Definition QTErrorDialog.h:82
Definition QTErrorDialog.h:50
static Dictionary< UUID, uint04 > s_ignored_messages
Definition QTErrorDialog.h:75
static uint04 s_number_of_active_dialogs
Definition QTErrorDialog.h:76
static uint04 s_max_num_of_active_dialogs
Definition QTErrorDialog.h:77
Ui::ErrorDialogUI * ui
Definition QTErrorDialog.h:69
static bool s_is_manager_active
Definition QTErrorDialog.h:78
LogView * m_log_dock
Definition QTErrorDialog.h:70
ProgressInfo * m_log
Definition QTErrorDialog.h:71
static CrashManager * s_global_crash_manager
Definition QTErrorDialog.h:79
static Buffer< Exception, uint04, ObjectAllocator< false > > s_pending_exceptions
Definition QTErrorDialog.h:74
UUID m_exception_id
Definition QTErrorDialog.h:72
Definition UUID.h:66
Definition ACIColor.h:37
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
Definition FontEditor.h:6