26 #ifndef _PEER__CLIENT_DLG_H
27 #define _PEER__CLIENT_DLG_H
29 #include <wx/button.h>
30 #include <wx/dialog.h>
31 #include <wx/gdicmn.h>
32 #include <wx/stattext.h>
33 #include <wx/string.h>
34 #include <wx/textctrl.h>
35 #include <wx/window.h>
37 #define ID_PCDDIALOG 10005
38 #define SYMBOL_PCD_STYLE \
39 wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX
41 #define SYMBOL_PCD_TITLE _("Send to GPS")
42 #define SYMBOL_PCD_IDNAME ID_PCDDIALOG
43 #define SYMBOL_PCD_SIZE wxSize(500, 500)
44 #define SYMBOL_PCD_POSITION wxDefaultPosition
49 PinConfirmDlg(wxWindow* parent, wxWindowID
id,
const wxString& caption,
50 const wxString& hint,
const wxPoint& pos,
const wxSize& size,
54 bool Create(wxWindow* parent, wxWindowID
id = SYMBOL_PCD_IDNAME,
55 const wxString& caption = SYMBOL_PCD_TITLE,
56 const wxString& hint = SYMBOL_PCD_TITLE,
57 const wxPoint& pos = SYMBOL_PCD_POSITION,
58 const wxSize& size = SYMBOL_PCD_SIZE,
59 long style = SYMBOL_PCD_STYLE);
60 void SetMessage(
const wxString& message);
61 void SetPincodeText(
const wxString& message);
62 wxString GetPincodeText() {
return m_pin_textctrl->GetValue(); }
65 void OnCancelClick(wxCommandEvent& event);
66 void OnOKClick(wxCommandEvent& event);
68 void CreateControls(
const wxString& hint);
69 void OnTextChange(wxCommandEvent& ev);
71 wxButton* m_cancel_btn;
73 wxStaticText* premtext;
74 wxTextCtrl* m_pin_textctrl;
75 wxString m_checkbox1_msg;