Isis 3 Programmer Reference
WarningWidget.h
1#ifndef _WarningWidget_h_
2#define _WarningWidget_h_
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include <QToolButton>
13#include <QAction>
14#include <QDialog>
15#include <QWidget>
16#include <QStatusBar>
17#include <QTextEdit>
18
19#include "CubeViewport.h"
20
21namespace Isis {
38 class WarningWidget : public QObject {
39 Q_OBJECT
40 public:
41 WarningWidget(QStatusBar *pParent);
43 void viewWarningWidgetIcon(std::string &pStr, const std::string &pExStr);
44 void setWarningText(std::string pStr);
45 QString setValuesToRed(std::string psMessage);
46
47 public slots:
48 void resetWarning(void);
49 void checkMessage(void);
50
51 private:
52 QDialog *mDialog;// Dialog that pops up when Warning icon is clicked
53 QWidget *mWindow; // Dialog Window
54 QPushButton *mNoWarning, *mWarning; // Tool buttons displaying Warning and Nowarning icons
55 bool mbWarningFlag;// Flag to indicate Warning or Nowarning status
56 QStatusBar *mSBar;// Pointer to application's Status Bar
57 QString mMsgStr;// Message displayed on the status bar
58 QTextEdit *mTextEdit;// Textedit which contains detailed error message in the Dialog window
59 };
60};
61#endif
Displays the NoWarning icon as default and the Warning icon in case of exception and also pops up a a...
WarningWidget(QStatusBar *pParent)
Warning widget constructor, initializes and creates the Nowarning, Warning objects and objects associ...
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.
void resetWarning(void)
When the dialog "OK" button is clicked or when the mouse is released on some other area or tool the W...
~WarningWidget()
Destructor for the Warning widget.
void setWarningText(std::string pStr)
Set the message for the status bar and the dialog window.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16