![]() |
NDEVR
API Documentation
|
A dialog typically shown as a tab that displays an exception to the user. More...
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. | |
| LogView * | m_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 CrashManager * | s_global_crash_manager |
| Global crash manager instance for fatal error handling. | |
| static Dictionary< UUID, uint04 > | s_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< Exception > | s_pending_exceptions |
| Queue of exceptions waiting to be shown. | |
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.
| QTErrorDialog::QTErrorDialog | ( | const Exception & | exception, |
| LogPtr | log = LogPtr(), | ||
| QWidget * | parent = nullptr ) |
Constructs an error dialog for the given exception.
| [in] | exception | The exception to display to the user. |
| [in] | log | Optional log to display additional context in the dialog. |
| [in] | parent | Optional parent widget. |
References QTErrorDialog().
Referenced by QTErrorDialog().
Creates and shows an error dialog for the given exception.
| [in] | exception | The exception to display. |
| [in] | log | Optional log for additional context. |
Referenced by GoogleEarthApplicationManager::createAppLauncher(), and GoogleEarthApplicationManager::setupForCAD().
|
override |
Returns the minimum recommended size for this dialog.
|
override |
Returns the recommended size for this dialog.