NDEVR
API Documentation
QTErrorDialog

A dialog typically shown as a tab that displays an exception to the user. More...

Collaboration diagram for QTErrorDialog:
[legend]

Public Member Functions

 QTErrorDialog (const Exception &exception, LogPtr log=LogPtr(), QWidget *parent=nullptr)
 Constructs an error dialog for the given exception.
QSize minimumSizeHint () const override
 Returns the minimum recommended size for this dialog.
void onAccept ()
 Slot invoked when the user accepts or acknowledges the error.
void onAcceptSignal ()
 Signal emitted when the user accepts or acknowledges the error.
void onIgnore ()
 Slot invoked when the user chooses to ignore the error.
void onIgnoreSignal ()
 Signal emitted when the user ignores the error.
QSize sizeHint () const override
 Returns the recommended size for this dialog.

Static Public Member Functions

static void CreateErrorDialog (Exception exception, LogPtr log=LogPtr())
 Creates and shows an error dialog for the given exception.
static void ErrorHandlingInit ()
 Initializes the global error handling system.
static void ErrorHandlingStop ()
 Stops the global error handling system.
static void HandlePendingExceptions ()
 Processes and displays any exceptions that were queued while dialogs were at capacity.

Protected Attributes

UUID m_exception_id
 Unique identifier for the exception being displayed.
LogPtr m_log
 The log associated with this error dialog.
LogViewm_log_dock
 Widget displaying log entries related to the error.
Ui::ErrorDialogUI * ui
 The auto-generated UI form for the error dialog.

Static Protected Attributes

static CrashManagers_global_crash_manager
 Global crash manager instance for fatal error handling.
static Dictionary< UUID, uint04s_ignored_messages
 Tracks how many times each exception has been ignored by UUID.
static bool s_is_manager_active
 Whether the error handling manager is currently active.
static uint04 s_max_num_of_active_dialogs
 Maximum number of error dialogs allowed simultaneously.
static uint04 s_number_of_active_dialogs
 Current number of visible error dialogs.
static Buffer< Exceptions_pending_exceptions
 Queue of exceptions waiting to be shown.

Detailed Description

A dialog typically shown as a tab that displays an exception to the user.


Typically interfaced via QTErrorDialog::CreateErrorDialog.

Definition at line 53 of file QTErrorDialog.h.

Constructor & Destructor Documentation

◆ QTErrorDialog()

QTErrorDialog::QTErrorDialog ( const Exception & exception,
LogPtr log = LogPtr(),
QWidget * parent = nullptr )

Constructs an error dialog for the given exception.

Parameters
[in]exceptionThe exception to display to the user.
[in]logOptional log to display additional context in the dialog.
[in]parentOptional parent widget.

References QTErrorDialog().

Referenced by QTErrorDialog().

Member Function Documentation

◆ CreateErrorDialog()

void QTErrorDialog::CreateErrorDialog ( Exception exception,
LogPtr log = LogPtr() )
static

Creates and shows an error dialog for the given exception.

Parameters
[in]exceptionThe exception to display.
[in]logOptional log for additional context.

Referenced by GoogleEarthApplicationManager::createAppLauncher(), and GoogleEarthApplicationManager::setupForCAD().

◆ minimumSizeHint()

QSize QTErrorDialog::minimumSizeHint ( ) const
override

Returns the minimum recommended size for this dialog.

Returns
The minimum size hint.

◆ sizeHint()

QSize QTErrorDialog::sizeHint ( ) const
override

Returns the recommended size for this dialog.

Returns
The preferred size hint.

The documentation for this class was generated from the following file: