Isis Developer Reference
|
Displays the NoWarning icon as default and the Warning icon in case of exception and also pops up a a menu when an exception occurs. More...
#include <WarningWidget.h>
Public Slots | |
void | resetWarning (void) |
When the dialog "OK" button is clicked or when the mouse is released on some other area or tool the Warning is reset and Nowarning object is displayed. More... | |
void | checkMessage (void) |
Verify that the right message is displayed in the status bar. More... | |
Public Member Functions | |
WarningWidget (QStatusBar *pParent) | |
Warning widget constructor, initializes and creates the Nowarning, Warning objects and objects associated with them. More... | |
~WarningWidget () | |
Destructor for the Warning widget. More... | |
void | viewWarningWidgetIcon (std::string &pStr, const std::string &pExStr) |
View Warning icon when there is an exception. More... | |
void | setWarningText (std::string pStr) |
Set the message for the status bar and the dialog window. More... | |
QString | setValuesToRed (std::string psMessage) |
Displays the NoWarning icon as default and the Warning icon in case of exception and also pops up a a menu when an exception occurs.
Clicking on the Warning icon will display a dialog with the Exception details. With the next mouse press event, the Warning icon disappears and the default NoWarning icon appears.
Isis::WarningWidget::WarningWidget | ( | QStatusBar * | pParent | ) |
Warning widget constructor, initializes and creates the Nowarning, Warning objects and objects associated with them.
parent | - parent of this object |
References Isis::FileName::expanded(), and resetWarning().
Isis::WarningWidget::~WarningWidget | ( | ) |
Destructor for the Warning widget.
Delete all the dynamically created class members
|
slot |
Verify that the right message is displayed in the status bar.
|
slot |
When the dialog "OK" button is clicked or when the mouse is released on some other area or tool the Warning is reset and Nowarning object is displayed.
Referenced by Isis::TrackTool::resetStatusWarning(), and WarningWidget().
QString Isis::WarningWidget::setValuesToRed | ( | std::string | psMessage | ) |
void Isis::WarningWidget::setWarningText | ( | std::string | pStr | ) |
Set the message for the status bar and the dialog window.
Highlight the text within "[..]" in red
pStr | - error message |
Referenced by viewWarningWidgetIcon().
void Isis::WarningWidget::viewWarningWidgetIcon | ( | std::string & | pStr, |
const std::string & | pExStr | ||
) |
View Warning icon when there is an exception.
Usually called when an exception occurs.
pStr | - Warning message sent from the exception handler |
pExStr | - Propagated Exception message |
References setWarningText().
Referenced by Isis::TrackTool::displayWarning().