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 /**--------------------------------------------------------------------------------------------------
50 \brief A dialog typically shown as a tab that displays an exception to the user. Typically interfaced
51 via QTErrorDialog::CreateErrorDialog.
52 **/
53 class NDEVR_WIDGETS_API QTErrorDialog : public QWidget
54 {
55 Q_OBJECT
56 public:
57 QTErrorDialog(const Exception& exception, ProgressInfo* log = nullptr, QWidget* parent = nullptr);
59 QSize sizeHint() const override;
60 QSize minimumSizeHint() const override;
61 public slots:
62 void onAccept();
63 void onIgnore();
64 signals:
67 public:
68 static void CreateErrorDialog(Exception exception, ProgressInfo* log = nullptr);
69 static void ErrorHandlingInit();
70 static void ErrorHandlineStop();
72 protected:
73 Ui::ErrorDialogUI* ui;
77 protected:
84 };
85
86 /**--------------------------------------------------------------------------------------------------
87 \brief A dialog that groups together a series of error dialogs that might have occured at the same
88 time.
89 **/
91 {
92 Q_OBJECT
93 public:
95 QSize sizeHint() const override;
98 };
99}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:59
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Handles crashes and can be used to write crash reports, etc On Windows this class can be used to crea...
Definition CrashManager.h:46
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
Provides consistent interface to handle errors through the throw expression. All exceptions generated...
Definition Exception.hpp:47
A table showing a specific log that allows the user to scroll around to view various log entries.
Definition LogView.h:56
A light-weight base class for Log that allows processes to update, without the need for additional in...
Definition ProgressInfo.hpp:48
A tab widget provides a tab area and a "page area" that is used to display pages related to each tab....
Definition QCustomTabWidget.h:45
A dialog that groups together a series of error dialogs that might have occured at the same time.
Definition QTErrorDialog.h:91
QSize sizeHint() const override
void addErrorDialog(QTErrorDialog *dialog)
static QTErrorBrowser * defaultInstance()
A dialog typically shown as a tab that displays an exception to the user. Typically interfaced via QT...
Definition QTErrorDialog.h:54
static CrashManager * s_global_crash_manager
Definition QTErrorDialog.h:83
QSize minimumSizeHint() const override
QSize sizeHint() const override
static Dictionary< UUID, uint04 > s_ignored_messages
Definition QTErrorDialog.h:79
static void ErrorHandlineStop()
static uint04 s_number_of_active_dialogs
Definition QTErrorDialog.h:80
static void HandlePendingExceptions()
static uint04 s_max_num_of_active_dialogs
Definition QTErrorDialog.h:81
Ui::ErrorDialogUI * ui
Definition QTErrorDialog.h:73
static bool s_is_manager_active
Definition QTErrorDialog.h:82
LogView * m_log_dock
Definition QTErrorDialog.h:74
ProgressInfo * m_log
Definition QTErrorDialog.h:75
QTErrorDialog(const Exception &exception, ProgressInfo *log=nullptr, QWidget *parent=nullptr)
static Buffer< Exception, uint04, ObjectAllocator< false > > s_pending_exceptions
Definition QTErrorDialog.h:78
static void CreateErrorDialog(Exception exception, ProgressInfo *log=nullptr)
UUID m_exception_id
Definition QTErrorDialog.h:76
static void ErrorHandlingInit()
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
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:96
Definition FontEditor.h:6