-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathYesNoAllDialog.h
62 lines (50 loc) · 1.44 KB
/
YesNoAllDialog.h
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef YESNOALLDIALOG_H
#define YESNOALLDIALOG_H
//(*Headers(YesNoAllDialog)
#include <wx/stattext.h>
#include <wx/button.h>
#include <wx/dialog.h>
//*)
class YesNoAllDialog: public wxDialog
{
public:
YesNoAllDialog(wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
void Set(const wxString &message, const wxString &title, const wxPoint& pos=wxDefaultPosition);
virtual ~YesNoAllDialog();
public:
enum {YES, NO, ALL, CANCLE};
private:
//(*Declarations(YesNoAllDialog)
wxButton* m_bYes;
wxButton* m_bCancle;
wxButton* m_bAll;
wxStaticText* m_message;
wxButton* m_bNo;
//*)
protected:
//(*Identifiers(YesNoAllDialog)
static const long ID_STATICTEXT1;
static const long ID_BUTTON1;
static const long ID_BUTTON2;
static const long ID_BUTTON3;
static const long ID_BUTTON4;
//*)
public:
//(*Handlers(YesNoAllDialog)
void Onm_bYesClick(wxCommandEvent& event);
void Onm_bNoClick(wxCommandEvent& event);
void Onm_bAllClick(wxCommandEvent& event);
void Onm_bCancleClick(wxCommandEvent& event);
//*)
/** \brief Set position on screen, if dialog is out
* of screen(or parent if presented),
* correction is used to made it show on screen(or parent if presented).
*
* \param pos Screen position
* \return void
*
*/
void SetPosition(const wxPoint& pos);
DECLARE_EVENT_TABLE()
};
#endif