0
|
1 // Filename: adddialog.h
|
3
|
2 // Last Change: 2015-09-24 Thu 06:08:43.
|
0
|
3 //
|
|
4
|
|
5 #ifndef __ADDDLG_H__
|
|
6 #define __ADDDLG_H__
|
|
7
|
|
8 #include <wx/string.h>
|
|
9 #include <wx/stattext.h>
|
|
10 #include <wx/gdicmn.h>
|
1
|
11 #include <wx/font.h>
|
|
12 #include <wx/colour.h>
|
|
13 #include <wx/settings.h>
|
0
|
14 #include <wx/textctrl.h>
|
1
|
15 #include <wx/checkbox.h>
|
|
16 #include <wx/spinctrl.h>
|
0
|
17 #include <wx/sizer.h>
|
|
18 #include <wx/button.h>
|
|
19 #include <wx/dialog.h>
|
|
20
|
|
21 class AddDialog : public wxDialog
|
|
22 {
|
1
|
23 DECLARE_EVENT_TABLE()
|
0
|
24 private:
|
1
|
25 wxString m_text;
|
|
26 bool m_owrite;
|
|
27 int m_maxat;
|
|
28 int m_maxlt;
|
3
|
29 bool m_remember;
|
1
|
30 wxString m_desc;
|
0
|
31
|
|
32 protected:
|
1
|
33 enum
|
|
34 {
|
|
35 ID_CKOW = wxID_HIGHEST + 101,
|
|
36 ID_SPNML,
|
|
37 ID_SPNMA,
|
|
38 };
|
|
39
|
0
|
40 wxStaticText* m_staticText;
|
3
|
41
|
0
|
42 wxStaticText* m_staticTextText;
|
|
43 wxTextCtrl* m_textCtrlText;
|
|
44 wxStaticText* m_staticTextText2;
|
3
|
45
|
1
|
46 wxStaticText* m_staticTextOverwrite;
|
|
47 wxCheckBox* m_checkBoxOverwrite;
|
|
48 wxStaticText* m_staticTextOverwrite2;
|
3
|
49
|
1
|
50 wxStaticText* m_staticTextMaxLive;
|
|
51 wxSpinCtrl* m_spinCtrlMaxLive;
|
|
52 wxStaticText* m_staticTextMaxLive2;
|
3
|
53
|
1
|
54 wxStaticText* m_staticTextMaxActive;
|
|
55 wxSpinCtrl* m_spinCtrlMaxActive;
|
|
56 wxStaticText* m_staticTextMaxActive2;
|
3
|
57
|
|
58 wxStaticText* m_staticTextRemember;
|
|
59 wxCheckBox* m_checkBoxRemember;
|
|
60 wxStaticText* m_staticTextRemember2;
|
|
61
|
0
|
62 wxStaticText* m_staticTextDesc;
|
|
63 wxTextCtrl* m_textCtrlDesc;
|
|
64 wxStaticText* m_staticTextDesc2;
|
3
|
65
|
0
|
66 wxButton* m_buttonAdd;
|
|
67 wxButton* m_buttonCancel;
|
|
68
|
|
69 public:
|
|
70 AddDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Set values"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE );
|
|
71 ~AddDialog();
|
1
|
72
|
|
73 void OnCheckOverwrite( wxCommandEvent& );
|
|
74 void Init();
|
|
75 void SetValidators();
|
|
76
|
3
|
77 wxString GetText() { return m_text; };
|
|
78 bool GetOverwrite() { return m_owrite; };
|
|
79 int GetMaxActiveTime() { return m_maxat; };
|
|
80 int GetMaxLiveTime() { return m_maxlt; };
|
|
81 wxString GetDesc() { return m_desc; };
|
|
82 bool GetRemember() { return m_remember; };
|
0
|
83 };
|
|
84
|
|
85 #endif //__ADDDLG_H__
|
|
86
|