0
|
1 // Filename: adddialog.h
|
1
|
2 // Last Change: 2015-09-12 Sat 11:49:15.
|
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;
|
|
29 wxString m_desc;
|
0
|
30
|
|
31 protected:
|
1
|
32 enum
|
|
33 {
|
|
34 ID_CKOW = wxID_HIGHEST + 101,
|
|
35 ID_SPNML,
|
|
36 ID_SPNMA,
|
|
37 };
|
|
38
|
0
|
39 wxStaticText* m_staticText;
|
|
40 wxStaticText* m_staticTextText;
|
|
41 wxTextCtrl* m_textCtrlText;
|
|
42 wxStaticText* m_staticTextText2;
|
1
|
43 wxStaticText* m_staticTextOverwrite;
|
|
44 wxCheckBox* m_checkBoxOverwrite;
|
|
45 wxStaticText* m_staticTextOverwrite2;
|
|
46 wxStaticText* m_staticTextMaxLive;
|
|
47 wxSpinCtrl* m_spinCtrlMaxLive;
|
|
48 wxStaticText* m_staticTextMaxLive2;
|
|
49 wxStaticText* m_staticTextMaxActive;
|
|
50 wxSpinCtrl* m_spinCtrlMaxActive;
|
|
51 wxStaticText* m_staticTextMaxActive2;
|
0
|
52 wxStaticText* m_staticTextDesc;
|
|
53 wxTextCtrl* m_textCtrlDesc;
|
|
54 wxStaticText* m_staticTextDesc2;
|
|
55 wxButton* m_buttonAdd;
|
|
56 wxButton* m_buttonCancel;
|
|
57
|
|
58 public:
|
|
59 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 );
|
|
60 ~AddDialog();
|
1
|
61
|
|
62 void OnCheckOverwrite( wxCommandEvent& );
|
|
63 void Init();
|
|
64 void SetValidators();
|
|
65
|
|
66 wxString GetText() { return m_text; };
|
|
67 bool GetOverwrite() { return m_owrite; };
|
|
68 int GetMaxActiveTime() { return m_maxat; };
|
|
69 int GetMaxLiveTime() { return m_maxlt; };
|
|
70 wxString GetDesc() { return m_desc; };
|
0
|
71 };
|
|
72
|
|
73 #endif //__ADDDLG_H__
|
|
74
|