diff include/auth.h @ 3:db4813125eb8

many changes.
author pyon@macmini
date Thu, 11 Oct 2018 22:11:09 +0900
parents eaa27e4ed5be
children e3b10fb860b3
line wrap: on
line diff
--- a/include/auth.h	Tue Oct 02 21:20:05 2018 +0900
+++ b/include/auth.h	Thu Oct 11 22:11:09 2018 +0900
@@ -1,5 +1,5 @@
 // Filename   : auth.h
-// Last Change: 2018-10-01 Mon 23:08:10.
+// Last Change: 2018-10-11 –Ø 16:23:21.
 //
 
 #ifndef __AUTH_H__
@@ -9,9 +9,11 @@
 #include <wx/font.h>
 #include <wx/colour.h>
 #include <wx/settings.h>
+#include <wx/button.h>
 #include <wx/textctrl.h>
 #include <wx/sizer.h>
 #include <wx/stattext.h>
+#include <wx/textfile.h>
 #include <wx/dialog.h>
 #include <wx/msgdlg.h> 
 
@@ -19,7 +21,10 @@
 {
     DECLARE_EVENT_TABLE()
 	private:
-        wxArrayString users;
+		bool		  m_load = false;
+		wxString      m_server;
+		wxString	  m_user;
+        wxArrayString m_users;
 	
 	protected:
 		enum {
@@ -33,17 +38,23 @@
 		wxStaticText* m_staticTextPw;
 		wxTextCtrl*   m_textCtrlPw;
 		wxStaticText* m_staticTextPwmsg;
+		wxButton*     m_buttonLogin;
+		wxButton*     m_buttonCancel;
 	
 	public:
 		AuthDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE ); 
 		~AuthDialog();
-        void OnKey( wxKeyEvent& event );
+
+		void SetServer( wxString server ) { m_server = server; };
+        void CreateControls( void );
+		bool IsValidUser( void );
+		wxString GetUser( void ) { return m_user; };
+        void InDevelop( bool ); 
+
+		void OnShow( wxShowEvent& event );
+        void OnEnter( wxCommandEvent& event );
         void OnCheckUserID( wxCommandEvent& event );
         void OnCheckPassword( wxCommandEvent& event );
-        void OnEnter( wxCommandEvent& event );
-        void CreateControls( void );
-        void LoadUserID( void );
-        void InDevelop( bool ); 
 };
 
 #endif //__AUTH_H__