Code::Blocks
SVN r11506
include
annoyingdialog.h
Go to the documentation of this file.
1
/*
2
* This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3
* http://www.gnu.org/licenses/lgpl-3.0.html
4
*/
5
6
#ifndef ANNOYINGDIALOG_H
7
#define ANNOYINGDIALOG_H
8
9
#include "
settings.h
"
10
#include "
scrollingdialog.h
"
11
#include <
wx/string.h
>
12
#include <
wx/artprov.h
>
13
14
class
wxCheckBox
;
15
22
class
DLLIMPORT
AnnoyingDialog
:
public
wxScrollingDialog
23
{
24
public
:
25
enum
dStyle
26
{
27
OK
,
28
YES_NO
,
29
YES_NO_CANCEL
,
30
OK_CANCEL
,
31
ONE_BUTTON
,
32
TWO_BUTTONS
,
33
THREE_BUTTONS
34
};
35
36
enum
dReturnType
37
{
38
rtINVALID = -1,
39
rtSAVE_CHOICE
,
40
rtONE
,
41
rtTWO
,
42
rtTHREE
,
43
rtYES
,
44
rtNO
,
45
rtOK
,
46
rtCANCEL
47
};
48
49
AnnoyingDialog
(
const
wxString
& caption,
const
wxString
& message,
const
wxArtID
icon = wxART_INFORMATION,
50
dStyle
style = YES_NO,
dReturnType
defaultReturn = rtYES,
51
const
wxString
&
b1
= wxEmptyString,
const
wxString
& b2 = wxEmptyString,
const
wxString
& b3 = wxEmptyString);
52
AnnoyingDialog
(
const
wxString
& caption,
const
wxString
&
id
,
const
wxString
& message,
const
wxArtID
icon,
53
dStyle
style,
dReturnType
defaultReturn,
54
const
wxString
&
b1
= wxEmptyString,
const
wxString
& b2 = wxEmptyString,
const
wxString
& b3 = wxEmptyString);
55
~AnnoyingDialog
()
override
{}
56
int
ShowModal
()
override
;
57
private
:
58
void
Init(
const
wxString
&caption,
const
wxString
&
id
,
const
wxString
& message,
const
wxArtID
icon,
59
dStyle
style,
const
wxString
&
b1
,
const
wxString
& b2,
const
wxString
& b3);
60
void
OnButton(
wxCommandEvent
& event);
61
private
:
62
wxString
m_Id
;
63
wxCheckBox
*
m_CheckBox
;
64
dReturnType
m_DefRet
;
65
bool
m_DontAnnoy
;
66
private
:
67
DECLARE_EVENT_TABLE()
68
};
69
70
#endif // ANNOYINGDIALOG_H
AnnoyingDialog::m_Id
wxString m_Id
Definition:
annoyingdialog.h:62
AnnoyingDialog::m_CheckBox
wxCheckBox * m_CheckBox
Definition:
annoyingdialog.h:63
AnnoyingDialog::~AnnoyingDialog
~AnnoyingDialog() override
Definition:
annoyingdialog.h:55
artprov.h
HTMLTags::b1
static const wxString b1
Definition:
doxygen_parser.cpp:390
AnnoyingDialog::rtONE
Definition:
annoyingdialog.h:40
AnnoyingDialog::YES_NO
Definition:
annoyingdialog.h:28
AnnoyingDialog::rtYES
Definition:
annoyingdialog.h:43
string.h
AnnoyingDialog::rtTWO
Definition:
annoyingdialog.h:41
AnnoyingDialog::YES_NO_CANCEL
Definition:
annoyingdialog.h:29
wxScrollingDialog
Definition:
scrollingdialog.h:163
scrollingdialog.h
AnnoyingDialog::OK_CANCEL
Definition:
annoyingdialog.h:30
AnnoyingDialog::dStyle
dStyle
Definition:
annoyingdialog.h:25
AnnoyingDialog::rtTHREE
Definition:
annoyingdialog.h:42
AnnoyingDialog::ONE_BUTTON
Definition:
annoyingdialog.h:31
wxCommandEvent
DLLIMPORT
#define DLLIMPORT
Definition:
settings.h:16
AnnoyingDialog::rtSAVE_CHOICE
Definition:
annoyingdialog.h:39
AnnoyingDialog::OK
Definition:
annoyingdialog.h:27
settings.h
wxString
AnnoyingDialog::TWO_BUTTONS
Definition:
annoyingdialog.h:32
wxDialog::ShowModal
virtual int ShowModal()
wxCheckBox
AnnoyingDialog::m_DefRet
dReturnType m_DefRet
Definition:
annoyingdialog.h:64
AnnoyingDialog::m_DontAnnoy
bool m_DontAnnoy
Definition:
annoyingdialog.h:65
AnnoyingDialog::dReturnType
dReturnType
Definition:
annoyingdialog.h:36
AnnoyingDialog::rtOK
Definition:
annoyingdialog.h:45
AnnoyingDialog::rtNO
Definition:
annoyingdialog.h:44
AnnoyingDialog
Dialog that contains a "Don't annoy me" checkbox.
Definition:
annoyingdialog.h:22
Generated by
1.8.13