Code::Blocks  SVN r11506
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 
23 {
24  public:
25  enum dStyle
26  {
27  OK,
33  THREE_BUTTONS
34  };
35 
37  {
38  rtINVALID = -1,
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:
66  private:
67  DECLARE_EVENT_TABLE()
68 };
69 
70 #endif // ANNOYINGDIALOG_H
wxCheckBox * m_CheckBox
~AnnoyingDialog() override
static const wxString b1
#define DLLIMPORT
Definition: settings.h:16
virtual int ShowModal()
dReturnType m_DefRet
Dialog that contains a "Don&#39;t annoy me" checkbox.