Isis Developer Reference
Isis::WarningWidget Class 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>

Inheritance diagram for Isis::WarningWidget:
Inheritance graph
Collaboration diagram for Isis::WarningWidget:
Collaboration graph

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.
 
void checkMessage (void)
 Verify that the right message is displayed in the status bar.
 

Public Member Functions

 WarningWidget (QStatusBar *pParent)
 Warning widget constructor, initializes and creates the Nowarning, Warning objects and objects associated with them.
 
 ~WarningWidget ()
 Destructor for the Warning widget.
 
void viewWarningWidgetIcon (std::string &pStr, const std::string &pExStr)
 View Warning icon when there is an exception.
 
void setWarningText (std::string pStr)
 Set the message for the status bar and the dialog window.
 
QString setValuesToRed (std::string psMessage)
 

Detailed Description

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.

Author
2009-12-11 Sharmila Prasad

Constructor & Destructor Documentation

◆ WarningWidget()

Isis::WarningWidget::WarningWidget ( QStatusBar * pParent)

Warning widget constructor, initializes and creates the Nowarning, Warning objects and objects associated with them.

Author
sprasad (12/11/2009)
Parameters
parent- parent of this object

References Isis::FileName::expanded(), and resetWarning().

◆ ~WarningWidget()

Isis::WarningWidget::~WarningWidget ( )

Destructor for the Warning widget.

Delete all the dynamically created class members

Author
sprasad (12/11/2009)

Member Function Documentation

◆ checkMessage

void Isis::WarningWidget::checkMessage ( void )
slot

Verify that the right message is displayed in the status bar.

Author
sprasad (3/18/2010)

◆ resetWarning

void Isis::WarningWidget::resetWarning ( void )
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.

Author
sprasad (12/11/2009)

Referenced by Isis::TrackTool::resetStatusWarning(), and WarningWidget().

◆ setValuesToRed()

QString Isis::WarningWidget::setValuesToRed ( std::string psMessage)

◆ setWarningText()

void Isis::WarningWidget::setWarningText ( std::string pStr)

Set the message for the status bar and the dialog window.

Highlight the text within "[..]" in red

Author
sprasad (12/11/2009)
Parameters
pStr- error message

Referenced by viewWarningWidgetIcon().

◆ 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.

Author
sprasad (12/11/2009)
Parameters
pStr- Warning message sent from the exception handler
pExStr- Propagated Exception message

References setWarningText().

Referenced by Isis::TrackTool::displayWarning().


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