Mercurial > mercurial > hgweb_rsearcher.cgi
view include/auth.h @ 7:29829e98d510
add net.cpp
author | pyon@macmini |
---|---|
date | Fri, 26 Oct 2018 21:05:11 +0900 |
parents | 9a8b581c1993 |
children | 82f9af6aa7e4 |
line wrap: on
line source
// Filename : auth.h // Last Change: 2018-10-23 ‰Î 09:02:05. // #ifndef __AUTH_H__ #define __AUTH_H__ #include <wx/gdicmn.h> #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> class AuthDialog : public wxDialog { DECLARE_EVENT_TABLE() private: bool m_load = false; wxString m_server; wxString m_user; wxArrayString m_users; protected: enum { ID_UID = wxID_HIGHEST + 200, ID_PW, }; wxStaticText* m_staticTextId; wxTextCtrl* m_textCtrlId; wxStaticText* m_staticTextIdmsg; 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 SetServer( wxString server ) { m_server = server; }; void CreateControls( void ); bool GetDB( void ); bool LoadDB( 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 ); }; #endif //__AUTH_H__