Mercurial > mercurial > hgweb_qlipbrd.cgi
comparison include/adddialog.h @ 1:e4aa0e7a07ad
Second release.
| author | pyon@macmini |
|---|---|
| date | Sun, 13 Sep 2015 14:56:42 +0900 |
| parents | cb3403ca39b1 |
| children | fd4361d2cbbd |
comparison
equal
deleted
inserted
replaced
| 0:cb3403ca39b1 | 1:e4aa0e7a07ad |
|---|---|
| 1 // Filename: adddialog.h | 1 // Filename: adddialog.h |
| 2 // Last Change: 2015-08-30 Sun 16:00:48. | 2 // Last Change: 2015-09-12 Sat 11:49:15. |
| 3 // | 3 // |
| 4 | 4 |
| 5 #ifndef __ADDDLG_H__ | 5 #ifndef __ADDDLG_H__ |
| 6 #define __ADDDLG_H__ | 6 #define __ADDDLG_H__ |
| 7 | 7 |
| 8 #include <wx/string.h> | 8 #include <wx/string.h> |
| 9 #include <wx/stattext.h> | 9 #include <wx/stattext.h> |
| 10 #include <wx/gdicmn.h> | 10 #include <wx/gdicmn.h> |
| 11 #include <wx/font.h> | |
| 12 #include <wx/colour.h> | |
| 13 #include <wx/settings.h> | |
| 11 #include <wx/textctrl.h> | 14 #include <wx/textctrl.h> |
| 12 #include <wx/choice.h> | 15 #include <wx/checkbox.h> |
| 16 #include <wx/spinctrl.h> | |
| 13 #include <wx/sizer.h> | 17 #include <wx/sizer.h> |
| 14 #include <wx/button.h> | 18 #include <wx/button.h> |
| 15 #include <wx/dialog.h> | 19 #include <wx/dialog.h> |
| 16 | 20 |
| 17 class AddDialog : public wxDialog | 21 class AddDialog : public wxDialog |
| 18 { | 22 { |
| 23 DECLARE_EVENT_TABLE() | |
| 19 private: | 24 private: |
| 25 wxString m_text; | |
| 26 bool m_owrite; | |
| 27 int m_maxat; | |
| 28 int m_maxlt; | |
| 29 wxString m_desc; | |
| 20 | 30 |
| 21 protected: | 31 protected: |
| 32 enum | |
| 33 { | |
| 34 ID_CKOW = wxID_HIGHEST + 101, | |
| 35 ID_SPNML, | |
| 36 ID_SPNMA, | |
| 37 }; | |
| 38 | |
| 22 wxStaticText* m_staticText; | 39 wxStaticText* m_staticText; |
| 23 | |
| 24 wxStaticText* m_staticTextText; | 40 wxStaticText* m_staticTextText; |
| 25 wxTextCtrl* m_textCtrlText; | 41 wxTextCtrl* m_textCtrlText; |
| 26 wxStaticText* m_staticTextText2; | 42 wxStaticText* m_staticTextText2; |
| 27 | 43 wxStaticText* m_staticTextOverwrite; |
| 28 wxStaticText* m_staticTextType; | 44 wxCheckBox* m_checkBoxOverwrite; |
| 29 wxChoice* m_choiceType; | 45 wxStaticText* m_staticTextOverwrite2; |
| 30 wxStaticText* m_staticTextType2; | 46 wxStaticText* m_staticTextMaxLive; |
| 31 | 47 wxSpinCtrl* m_spinCtrlMaxLive; |
| 32 wxStaticText* m_staticTextTime; | 48 wxStaticText* m_staticTextMaxLive2; |
| 33 wxTextCtrl* m_textCtrlTime; | 49 wxStaticText* m_staticTextMaxActive; |
| 34 wxStaticText* m_staticTextTime2; | 50 wxSpinCtrl* m_spinCtrlMaxActive; |
| 35 | 51 wxStaticText* m_staticTextMaxActive2; |
| 36 wxStaticText* m_staticTextDesc; | 52 wxStaticText* m_staticTextDesc; |
| 37 wxTextCtrl* m_textCtrlDesc; | 53 wxTextCtrl* m_textCtrlDesc; |
| 38 wxStaticText* m_staticTextDesc2; | 54 wxStaticText* m_staticTextDesc2; |
| 39 | |
| 40 wxButton* m_buttonAdd; | 55 wxButton* m_buttonAdd; |
| 41 wxButton* m_buttonCancel; | 56 wxButton* m_buttonCancel; |
| 42 | 57 |
| 43 public: | 58 public: |
| 44 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 ); | 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 ); |
| 45 ~AddDialog(); | 60 ~AddDialog(); |
| 46 | 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; }; | |
| 47 }; | 71 }; |
| 48 | 72 |
| 49 #endif //__ADDDLG_H__ | 73 #endif //__ADDDLG_H__ |
| 50 | 74 |
