Mercurial > mercurial > hgweb_qlipbrd.cgi
comparison include/adddialog.h @ 3:fd4361d2cbbd default tip
add remember function.
| author | pyon@macmini |
|---|---|
| date | Thu, 24 Sep 2015 07:45:26 +0900 |
| parents | e4aa0e7a07ad |
| children |
comparison
equal
deleted
inserted
replaced
| 2:50d9f4e2a540 | 3:fd4361d2cbbd |
|---|---|
| 1 // Filename: adddialog.h | 1 // Filename: adddialog.h |
| 2 // Last Change: 2015-09-12 Sat 11:49:15. | 2 // Last Change: 2015-09-24 Thu 06:08:43. |
| 3 // | 3 // |
| 4 | 4 |
| 5 #ifndef __ADDDLG_H__ | 5 #ifndef __ADDDLG_H__ |
| 6 #define __ADDDLG_H__ | 6 #define __ADDDLG_H__ |
| 7 | 7 |
| 24 private: | 24 private: |
| 25 wxString m_text; | 25 wxString m_text; |
| 26 bool m_owrite; | 26 bool m_owrite; |
| 27 int m_maxat; | 27 int m_maxat; |
| 28 int m_maxlt; | 28 int m_maxlt; |
| 29 bool m_remember; | |
| 29 wxString m_desc; | 30 wxString m_desc; |
| 30 | 31 |
| 31 protected: | 32 protected: |
| 32 enum | 33 enum |
| 33 { | 34 { |
| 35 ID_SPNML, | 36 ID_SPNML, |
| 36 ID_SPNMA, | 37 ID_SPNMA, |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 wxStaticText* m_staticText; | 40 wxStaticText* m_staticText; |
| 41 | |
| 40 wxStaticText* m_staticTextText; | 42 wxStaticText* m_staticTextText; |
| 41 wxTextCtrl* m_textCtrlText; | 43 wxTextCtrl* m_textCtrlText; |
| 42 wxStaticText* m_staticTextText2; | 44 wxStaticText* m_staticTextText2; |
| 45 | |
| 43 wxStaticText* m_staticTextOverwrite; | 46 wxStaticText* m_staticTextOverwrite; |
| 44 wxCheckBox* m_checkBoxOverwrite; | 47 wxCheckBox* m_checkBoxOverwrite; |
| 45 wxStaticText* m_staticTextOverwrite2; | 48 wxStaticText* m_staticTextOverwrite2; |
| 49 | |
| 46 wxStaticText* m_staticTextMaxLive; | 50 wxStaticText* m_staticTextMaxLive; |
| 47 wxSpinCtrl* m_spinCtrlMaxLive; | 51 wxSpinCtrl* m_spinCtrlMaxLive; |
| 48 wxStaticText* m_staticTextMaxLive2; | 52 wxStaticText* m_staticTextMaxLive2; |
| 53 | |
| 49 wxStaticText* m_staticTextMaxActive; | 54 wxStaticText* m_staticTextMaxActive; |
| 50 wxSpinCtrl* m_spinCtrlMaxActive; | 55 wxSpinCtrl* m_spinCtrlMaxActive; |
| 51 wxStaticText* m_staticTextMaxActive2; | 56 wxStaticText* m_staticTextMaxActive2; |
| 57 | |
| 58 wxStaticText* m_staticTextRemember; | |
| 59 wxCheckBox* m_checkBoxRemember; | |
| 60 wxStaticText* m_staticTextRemember2; | |
| 61 | |
| 52 wxStaticText* m_staticTextDesc; | 62 wxStaticText* m_staticTextDesc; |
| 53 wxTextCtrl* m_textCtrlDesc; | 63 wxTextCtrl* m_textCtrlDesc; |
| 54 wxStaticText* m_staticTextDesc2; | 64 wxStaticText* m_staticTextDesc2; |
| 65 | |
| 55 wxButton* m_buttonAdd; | 66 wxButton* m_buttonAdd; |
| 56 wxButton* m_buttonCancel; | 67 wxButton* m_buttonCancel; |
| 57 | 68 |
| 58 public: | 69 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 ); | 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 ); |
| 61 | 72 |
| 62 void OnCheckOverwrite( wxCommandEvent& ); | 73 void OnCheckOverwrite( wxCommandEvent& ); |
| 63 void Init(); | 74 void Init(); |
| 64 void SetValidators(); | 75 void SetValidators(); |
| 65 | 76 |
| 66 wxString GetText() { return m_text; }; | 77 wxString GetText() { return m_text; }; |
| 67 bool GetOverwrite() { return m_owrite; }; | 78 bool GetOverwrite() { return m_owrite; }; |
| 68 int GetMaxActiveTime() { return m_maxat; }; | 79 int GetMaxActiveTime() { return m_maxat; }; |
| 69 int GetMaxLiveTime() { return m_maxlt; }; | 80 int GetMaxLiveTime() { return m_maxlt; }; |
| 70 wxString GetDesc() { return m_desc; }; | 81 wxString GetDesc() { return m_desc; }; |
| 82 bool GetRemember() { return m_remember; }; | |
| 71 }; | 83 }; |
| 72 | 84 |
| 73 #endif //__ADDDLG_H__ | 85 #endif //__ADDDLG_H__ |
| 74 | 86 |
