Code::Blocks  SVN r11506
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
AnnoyingDialog Class Reference

Dialog that contains a "Don't annoy me" checkbox. More...

#include <annoyingdialog.h>

Inheritance diagram for AnnoyingDialog:
Collaboration diagram for AnnoyingDialog:

Public Types

enum  dStyle {
  OK, YES_NO, YES_NO_CANCEL, OK_CANCEL,
  ONE_BUTTON, TWO_BUTTONS, THREE_BUTTONS
}
 
enum  dReturnType {
  rtINVALID = -1, rtSAVE_CHOICE, rtONE, rtTWO,
  rtTHREE, rtYES, rtNO, rtOK,
  rtCANCEL
}
 

Public Member Functions

 AnnoyingDialog (const wxString &caption, const wxString &message, const wxArtID icon=wxART_INFORMATION, dStyle style=YES_NO, dReturnType defaultReturn=rtYES, const wxString &b1=wxEmptyString, const wxString &b2=wxEmptyString, const wxString &b3=wxEmptyString)
 
 AnnoyingDialog (const wxString &caption, const wxString &id, const wxString &message, const wxArtID icon, dStyle style, dReturnType defaultReturn, const wxString &b1=wxEmptyString, const wxString &b2=wxEmptyString, const wxString &b3=wxEmptyString)
 
 ~AnnoyingDialog () override
 
int ShowModal () override
 
- Public Member Functions inherited from wxScrollingDialog
 wxScrollingDialog ()
 
 wxScrollingDialog (wxWindow *parent, int id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=_("dialogBox"))
 

Private Member Functions

void Init (const wxString &caption, const wxString &id, const wxString &message, const wxArtID icon, dStyle style, const wxString &b1, const wxString &b2, const wxString &b3)
 
void OnButton (wxCommandEvent &event)
 

Private Attributes

wxString m_Id
 
wxCheckBoxm_CheckBox
 
dReturnType m_DefRet
 
bool m_DontAnnoy
 

Detailed Description

Dialog that contains a "Don't annoy me" checkbox.

Using this dialog, the user can select not to display this dialog again. The dialog can be then re-enabled in "Settings->Environment->Dialogs"...

Definition at line 22 of file annoyingdialog.h.

Member Enumeration Documentation

◆ dReturnType

Enumerator
rtINVALID 
rtSAVE_CHOICE 
rtONE 
rtTWO 
rtTHREE 
rtYES 
rtNO 
rtOK 
rtCANCEL 

Definition at line 36 of file annoyingdialog.h.

◆ dStyle

Enumerator
OK 
YES_NO 
YES_NO_CANCEL 
OK_CANCEL 
ONE_BUTTON 
TWO_BUTTONS 
THREE_BUTTONS 

Definition at line 25 of file annoyingdialog.h.

Constructor & Destructor Documentation

◆ AnnoyingDialog() [1/2]

AnnoyingDialog::AnnoyingDialog ( const wxString caption,
const wxString message,
const wxArtID  icon = wxART_INFORMATION,
dStyle  style = YES_NO,
dReturnType  defaultReturn = rtYES,
const wxString b1 = wxEmptyString,
const wxString b2 = wxEmptyString,
const wxString b3 = wxEmptyString 
)

Definition at line 30 of file annoyingdialog.cpp.

◆ AnnoyingDialog() [2/2]

AnnoyingDialog::AnnoyingDialog ( const wxString caption,
const wxString id,
const wxString message,
const wxArtID  icon,
dStyle  style,
dReturnType  defaultReturn,
const wxString b1 = wxEmptyString,
const wxString b2 = wxEmptyString,
const wxString b3 = wxEmptyString 
)

Definition at line 39 of file annoyingdialog.cpp.

References Init(), wxCAPTION, wxDefaultPosition, and wxDefaultSize.

◆ ~AnnoyingDialog()

AnnoyingDialog::~AnnoyingDialog ( )
inlineoverride

Definition at line 55 of file annoyingdialog.h.

References HTMLTags::b1, and wxDialog::ShowModal().

Member Function Documentation

◆ Init()

void AnnoyingDialog::Init ( const wxString caption,
const wxString id,
const wxString message,
const wxArtID  icon,
dStyle  style,
const wxString b1,
const wxString b2,
const wxString b3 
)
private

◆ OnButton()

void AnnoyingDialog::OnButton ( wxCommandEvent event)
private

◆ ShowModal()

int AnnoyingDialog::ShowModal ( )
overridevirtual

Member Data Documentation

◆ m_CheckBox

wxCheckBox* AnnoyingDialog::m_CheckBox
private

Definition at line 63 of file annoyingdialog.h.

Referenced by Init(), and OnButton().

◆ m_DefRet

dReturnType AnnoyingDialog::m_DefRet
private

Definition at line 64 of file annoyingdialog.h.

Referenced by Init(), OnButton(), and ShowModal().

◆ m_DontAnnoy

bool AnnoyingDialog::m_DontAnnoy
private

Definition at line 65 of file annoyingdialog.h.

Referenced by Init(), and ShowModal().

◆ m_Id

wxString AnnoyingDialog::m_Id
private

Definition at line 62 of file annoyingdialog.h.

Referenced by Init(), and OnButton().


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