Mercurial > mercurial > hgweb_rsearcher.cgi
comparison include/auth.h @ 3:db4813125eb8
many changes.
author | pyon@macmini |
---|---|
date | Thu, 11 Oct 2018 22:11:09 +0900 |
parents | eaa27e4ed5be |
children | e3b10fb860b3 |
comparison
equal
deleted
inserted
replaced
2:7fe3417cefc8 | 3:db4813125eb8 |
---|---|
1 // Filename : auth.h | 1 // Filename : auth.h |
2 // Last Change: 2018-10-01 Mon 23:08:10. | 2 // Last Change: 2018-10-11 –Ø 16:23:21. |
3 // | 3 // |
4 | 4 |
5 #ifndef __AUTH_H__ | 5 #ifndef __AUTH_H__ |
6 #define __AUTH_H__ | 6 #define __AUTH_H__ |
7 | 7 |
8 #include <wx/gdicmn.h> | 8 #include <wx/gdicmn.h> |
9 #include <wx/font.h> | 9 #include <wx/font.h> |
10 #include <wx/colour.h> | 10 #include <wx/colour.h> |
11 #include <wx/settings.h> | 11 #include <wx/settings.h> |
12 #include <wx/button.h> | |
12 #include <wx/textctrl.h> | 13 #include <wx/textctrl.h> |
13 #include <wx/sizer.h> | 14 #include <wx/sizer.h> |
14 #include <wx/stattext.h> | 15 #include <wx/stattext.h> |
16 #include <wx/textfile.h> | |
15 #include <wx/dialog.h> | 17 #include <wx/dialog.h> |
16 #include <wx/msgdlg.h> | 18 #include <wx/msgdlg.h> |
17 | 19 |
18 class AuthDialog : public wxDialog | 20 class AuthDialog : public wxDialog |
19 { | 21 { |
20 DECLARE_EVENT_TABLE() | 22 DECLARE_EVENT_TABLE() |
21 private: | 23 private: |
22 wxArrayString users; | 24 bool m_load = false; |
25 wxString m_server; | |
26 wxString m_user; | |
27 wxArrayString m_users; | |
23 | 28 |
24 protected: | 29 protected: |
25 enum { | 30 enum { |
26 ID_UID = wxID_HIGHEST + 200, | 31 ID_UID = wxID_HIGHEST + 200, |
27 ID_PW, | 32 ID_PW, |
31 wxTextCtrl* m_textCtrlId; | 36 wxTextCtrl* m_textCtrlId; |
32 wxStaticText* m_staticTextIdmsg; | 37 wxStaticText* m_staticTextIdmsg; |
33 wxStaticText* m_staticTextPw; | 38 wxStaticText* m_staticTextPw; |
34 wxTextCtrl* m_textCtrlPw; | 39 wxTextCtrl* m_textCtrlPw; |
35 wxStaticText* m_staticTextPwmsg; | 40 wxStaticText* m_staticTextPwmsg; |
41 wxButton* m_buttonLogin; | |
42 wxButton* m_buttonCancel; | |
36 | 43 |
37 public: | 44 public: |
38 AuthDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE ); | 45 AuthDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE ); |
39 ~AuthDialog(); | 46 ~AuthDialog(); |
40 void OnKey( wxKeyEvent& event ); | 47 |
48 void SetServer( wxString server ) { m_server = server; }; | |
49 void CreateControls( void ); | |
50 bool IsValidUser( void ); | |
51 wxString GetUser( void ) { return m_user; }; | |
52 void InDevelop( bool ); | |
53 | |
54 void OnShow( wxShowEvent& event ); | |
55 void OnEnter( wxCommandEvent& event ); | |
41 void OnCheckUserID( wxCommandEvent& event ); | 56 void OnCheckUserID( wxCommandEvent& event ); |
42 void OnCheckPassword( wxCommandEvent& event ); | 57 void OnCheckPassword( wxCommandEvent& event ); |
43 void OnEnter( wxCommandEvent& event ); | |
44 void CreateControls( void ); | |
45 void LoadUserID( void ); | |
46 void InDevelop( bool ); | |
47 }; | 58 }; |
48 | 59 |
49 #endif //__AUTH_H__ | 60 #endif //__AUTH_H__ |
50 | 61 |