Isis 3 Programmer Reference
WarningWidget.h
Go to the documentation of this file.
1 #ifndef _WarningWidget_h_
2 #define _WarningWidget_h_
3 
4 #include <QToolButton>
5 #include <QAction>
6 #include <QDialog>
7 #include <QWidget>
8 #include <QStatusBar>
9 #include <QTextEdit>
10 
11 #include "CubeViewport.h"
34 namespace Isis {
51  class WarningWidget : public QObject {
52  Q_OBJECT
53  public:
54  WarningWidget(QStatusBar *pParent);
56  void viewWarningWidgetIcon(std::string &pStr, const std::string &pExStr);
57  void setWarningText(std::string pStr);
58  QString setValuesToRed(std::string psMessage);
59 
60  public slots:
61  void resetWarning(void);
62  void checkMessage(void);
63 
64  private:
65  QDialog *mDialog;// Dialog that pops up when Warning icon is clicked
66  QWidget *mWindow; // Dialog Window
67  QPushButton *mNoWarning, *mWarning; // Tool buttons displaying Warning and Nowarning icons
68  bool mbWarningFlag;// Flag to indicate Warning or Nowarning status
69  QStatusBar *mSBar;// Pointer to application's Status Bar
70  QString mMsgStr;// Message displayed on the status bar
71  QTextEdit *mTextEdit;// Textedit which contains detailed error message in the Dialog window
72  };
73 };
74 #endif
void resetWarning(void)
When the dialog "OK" button is clicked or when the mouse is released on some other area or tool the W...
void viewWarningWidgetIcon(std::string &pStr, const std::string &pExStr)
View Warning icon when there is an exception.
void checkMessage(void)
Verify that the right message is displayed in the status bar.
WarningWidget(QStatusBar *pParent)
Warning widget constructor, initializes and creates the Nowarning, Warning objects and objects associ...
void setWarningText(std::string pStr)
Set the message for the status bar and the dialog window.
~WarningWidget()
Destructor for the Warning widget.
Displays the NoWarning icon as default and the Warning icon in case of exception and also pops up a a...
Definition: WarningWidget.h:51
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31