SuppressibleMsgDlg Class Reference

This interface class manages and displays a suppressible message box that can be disabled by the user. More...

#include <SuppressibleMsgDlg.h>

List of all members.

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)


Detailed Description

This interface class manages and displays a suppressible message box that can be disabled by the user.

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.


Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

virtual bool SuppressibleMsgDlg::getDontShowAgain (  )  const [virtual]

This method will return a bool value indicating whether the dialog will be visible to the user.

Returns:
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.

Parameters:
bEnable False to uncheck the check box, true to check the check box.


Software Development Kit - Opticks 4.9.0 Build 16218