mupp 1.1.0
Loading...
Searching...
No Matches
PVarErrorDialog Class Reference

Dialog for displaying variable parsing error messages. More...

#include <PmuppGui.h>

Inheritance diagram for PVarErrorDialog:
Collaboration diagram for PVarErrorDialog:

Public Member Functions

 PVarErrorDialog (QString errMsg)
 Constructor that creates and displays the error dialog.
 

Private Attributes

QPlainTextEdit * fErrMsg
 text widget displaying the error message
 
QPushButton * fOK
 button to close the dialog
 

Detailed Description

Dialog for displaying variable parsing error messages.

PVarErrorDialog presents a modal dialog showing error messages that occur during variable expression parsing and evaluation. The dialog includes:

  • A read-only text area displaying the error message(s)
  • An "OK" button to dismiss the dialog
  • Automatic width adjustment based on message content

Used by the variable handler system to report syntax errors, undefined variables, or evaluation failures to the user.

Definition at line 213 of file PmuppGui.h.

Constructor & Destructor Documentation

◆ PVarErrorDialog()

PVarErrorDialog::PVarErrorDialog ( QString errMsg)

Constructor that creates and displays the error dialog.

Constructor for the variable error dialog.

Parameters
errMsgerror message text to display

Creates a modal dialog displaying variable parsing error messages. The dialog contains:

  • A read-only text area showing the error message(s)
  • A "Done" button to close the dialog

The dialog width is automatically calculated based on the message content to ensure readability:

  • Minimum width: 300 pixels
  • Maximum width: 900 pixels
  • Width scales with message length and line breaks
Parameters
errMsgerror message text to display (may contain newlines)

Definition at line 294 of file PmuppGui.cpp.

Member Data Documentation

◆ fErrMsg

QPlainTextEdit* PVarErrorDialog::fErrMsg
private

text widget displaying the error message

Definition at line 225 of file PmuppGui.h.

◆ fOK

QPushButton* PVarErrorDialog::fOK
private

button to close the dialog

Definition at line 226 of file PmuppGui.h.


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