Mercurial > mercurial > hgweb_qlipbrd.cgi
view include/adddialog.h @ 1:e4aa0e7a07ad
Second release.
author | pyon@macmini |
---|---|
date | Sun, 13 Sep 2015 14:56:42 +0900 |
parents | cb3403ca39b1 |
children | fd4361d2cbbd |
line wrap: on
line source
// Filename: adddialog.h // Last Change: 2015-09-12 Sat 11:49:15. // #ifndef __ADDDLG_H__ #define __ADDDLG_H__ #include <wx/string.h> #include <wx/stattext.h> #include <wx/gdicmn.h> #include <wx/font.h> #include <wx/colour.h> #include <wx/settings.h> #include <wx/textctrl.h> #include <wx/checkbox.h> #include <wx/spinctrl.h> #include <wx/sizer.h> #include <wx/button.h> #include <wx/dialog.h> class AddDialog : public wxDialog { DECLARE_EVENT_TABLE() private: wxString m_text; bool m_owrite; int m_maxat; int m_maxlt; wxString m_desc; protected: enum { ID_CKOW = wxID_HIGHEST + 101, ID_SPNML, ID_SPNMA, }; wxStaticText* m_staticText; wxStaticText* m_staticTextText; wxTextCtrl* m_textCtrlText; wxStaticText* m_staticTextText2; wxStaticText* m_staticTextOverwrite; wxCheckBox* m_checkBoxOverwrite; wxStaticText* m_staticTextOverwrite2; wxStaticText* m_staticTextMaxLive; wxSpinCtrl* m_spinCtrlMaxLive; wxStaticText* m_staticTextMaxLive2; wxStaticText* m_staticTextMaxActive; wxSpinCtrl* m_spinCtrlMaxActive; wxStaticText* m_staticTextMaxActive2; wxStaticText* m_staticTextDesc; wxTextCtrl* m_textCtrlDesc; wxStaticText* m_staticTextDesc2; wxButton* m_buttonAdd; wxButton* m_buttonCancel; public: 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 ); ~AddDialog(); void OnCheckOverwrite( wxCommandEvent& ); void Init(); void SetValidators(); wxString GetText() { return m_text; }; bool GetOverwrite() { return m_owrite; }; int GetMaxActiveTime() { return m_maxat; }; int GetMaxLiveTime() { return m_maxlt; }; wxString GetDesc() { return m_desc; }; }; #endif //__ADDDLG_H__