#include <SuppressibleMsgDlg.h>
Public Member Functions | |
| SuppressibleMsgDlg (const std::string &dialogTitle, const std::string &dialogMsg, MessageType type, bool checkBoxState=false, QWidget *pParent=NULL) | |
| ~SuppressibleMsgDlg () | |
| virtual bool | getDontShowAgain () const |
| virtual void | setDontShowAgain (bool bEnable) |
A suppressible message dialog is a pop-up box that can be used to display a message to the user. This type of dialog will display a message with a check box.
Definition at line 26 of file SuppressibleMsgDlg.h.
| SuppressibleMsgDlg::SuppressibleMsgDlg | ( | const std::string & | dialogTitle, | |
| const std::string & | dialogMsg, | |||
| MessageType | type, | |||
| bool | checkBoxState = false, |
|||
| QWidget * | pParent = NULL | |||
| ) |
This method creates a message box with a "Don't show this again" check box.
| dialogTitle | The message box title. | |
| dialogMsg | The message that will be displayed in the message box. | |
| type | The type of message. | |
| checkBoxState | The state of the check box. | |
| pParent | The parent widget. |
| SuppressibleMsgDlg::~SuppressibleMsgDlg | ( | ) |
Destroys the message box.
| virtual bool SuppressibleMsgDlg::getDontShowAgain | ( | ) | const [virtual] |
This method will return a bool value indicating whether the dialog will be visible to the user.
false if the dialog check box is checked. If the check box hasn't been checked, then return true. | virtual void SuppressibleMsgDlg::setDontShowAgain | ( | bool | bEnable | ) | [virtual] |
This method will set a bool value that will indicate whether the dialog will be visible to the user.
| bEnable | False to uncheck the check box, true to check the check box. |