diff 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 diff
--- a/include/adddialog.h	Sun Aug 30 21:53:19 2015 +0900
+++ b/include/adddialog.h	Sun Sep 13 14:56:42 2015 +0900
@@ -1,5 +1,5 @@
 // Filename: adddialog.h
-// Last Change: 2015-08-30 Sun 16:00:48.
+// Last Change: 2015-09-12 Sat 11:49:15.
 //
 
 #ifndef __ADDDLG_H__
@@ -8,42 +8,66 @@
 #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/choice.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_staticTextType;
-		wxChoice*     m_choiceType;
-		wxStaticText* m_staticTextType2;
-
-		wxStaticText* m_staticTextTime;
-		wxTextCtrl*   m_textCtrlTime;
-		wxStaticText* m_staticTextTime2;
-
+		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__