25#ifndef __RESTSERVERGUI_H__
26#define __RESTSERVERGUI_H__
29#include <wx/stattext.h>
30#include <wx/checkbox.h>
33#define ID_STGDIALOG 10005
34#define SYMBOL_STG_STYLE \
35 wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX
37#define SYMBOL_STG_TITLE _("Send to GPS")
38#define SYMBOL_STG_IDNAME ID_STGDIALOG
39#define SYMBOL_STG_SIZE wxSize(500, 500)
40#define SYMBOL_STG_POSITION wxDefaultPosition
42enum { ID_STG_CANCEL = 10000, ID_STG_OK, ID_STG_CHECK1 };
58 const wxString& hint,
const wxPoint& pos,
const wxSize& size,
62 bool Create(wxWindow* parent, wxWindowID
id = SYMBOL_STG_IDNAME,
63 const wxString& caption = SYMBOL_STG_TITLE,
64 const wxString& hint = SYMBOL_STG_TITLE,
65 const wxPoint& pos = SYMBOL_STG_POSITION,
66 const wxSize& size = SYMBOL_STG_SIZE,
67 long style = SYMBOL_STG_STYLE);
68 void SetMessage(
const wxString &message);
69 void SetCheck1Message(
const wxString &message);
71 bool GetCheck1Value(){
return m_pCheck1->GetValue(); }
74 void CreateControls(
const wxString& hint);
76 void OnCancelClick(wxCommandEvent& event);
77 void OnOKClick(wxCommandEvent& event);
79 wxButton* m_CancelButton;
81 wxStaticText* premtext;
82 wxCheckBox *m_pCheck1;
83 wxString m_checkbox1_msg;
92 PINCreateDialog(wxWindow* parent, wxWindowID
id,
const wxString& caption,
93 const wxString& hint,
const wxPoint& pos,
const wxSize& size,
97 bool Create(wxWindow* parent, wxWindowID
id = SYMBOL_STG_IDNAME,
98 const wxString& caption = SYMBOL_STG_TITLE,
99 const wxString& hint = SYMBOL_STG_TITLE,
100 const wxPoint& pos = SYMBOL_STG_POSITION,
101 const wxSize& size = SYMBOL_STG_SIZE,
102 long style = SYMBOL_STG_STYLE);
103 void SetMessage(
const wxString &message);
104 void SetText1Message(
const wxString &message);
106 wxString GetText1Value(){
return m_pText1->GetValue(); }
109 void CreateControls(
const wxString& hint);
111 void OnCancelClick(wxCommandEvent& event);
112 void OnOKClick(wxCommandEvent& event);
114 wxButton* m_CancelButton;
115 wxButton* m_OKButton;
116 wxStaticText* premtext;
117 wxTextCtrl *m_pText1;
118 wxString m_checkbox1_msg;
"Accept Object" Dialog Definition