Menu

[r7693]: / branches / wxsmith_addons / src / include / annoyingdialog.h  Maximize  Restore  History

Download this file

45 lines (39 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
* http://www.gnu.org/licenses/lgpl-3.0.html
*/
#include "settings.h"
#include "scrollingdialog.h"
#include <wx/string.h>
#include <wx/artprov.h>
class wxCheckBox;
/**
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"...
*/
class DLLIMPORT AnnoyingDialog : public wxScrollingDialog
{
public:
enum dStyle
{
OK,
YES_NO,
YES_NO_CANCEL,
OK_CANCEL,
ONE_BUTTON,
TWO_BUTTONS,
THREE_BUTTONS
};
AnnoyingDialog(const wxString& caption, const wxString& message, const wxArtID icon = wxART_INFORMATION,
dStyle style = YES_NO, int defaultReturn = wxID_YES, bool separate = true,
const wxString& b1 = wxEmptyString, const wxString& b2 = wxEmptyString, const wxString& b3 = wxEmptyString);
virtual ~AnnoyingDialog(){}
virtual int ShowModal();
private:
void OnButton(wxCommandEvent& event);
wxCheckBox *cb;
bool dontAnnoy;
int defRet;
DECLARE_EVENT_TABLE()
};
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.