25 #ifndef __RESTSERVERGUI_H__
26 #define __RESTSERVERGUI_H__
31 #include <wx/button.h>
32 #include <wx/dialog.h>
33 #include <wx/stattext.h>
34 #include <wx/checkbox.h>
36 #include "ocpn_frame.h"
37 #include "model/rest_server.h"
40 #define ID_STGDIALOG 10005
41 #define SYMBOL_STG_STYLE \
42 wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX
44 #define SYMBOL_STG_TITLE _("Send to GPS")
45 #define SYMBOL_STG_IDNAME ID_STGDIALOG
46 #define SYMBOL_STG_SIZE wxSize(500, 500)
47 #define SYMBOL_STG_POSITION wxDefaultPosition
59 const wxString& msg1,
const wxString msg2);
61 const wxString& hint,
const wxPoint& pos,
const wxSize& size,
62 long style,
const wxString& msg1,
const wxString& msg2);
65 bool Create(wxWindow* parent, wxWindowID
id,
66 const wxString& caption,
71 const wxString& msg1,
const wxString& msg2);
73 void SetMessage(
const wxString &message);
74 void SetCheck1Message(
const wxString &message);
76 bool GetCheck1Value(){
return m_pCheck1->GetValue(); }
79 void CreateControls(
const wxString& hint,
80 const wxString& msg1,
const wxString& msg);
82 void OnCancelClick(wxCommandEvent& event);
83 void OnOKClick(wxCommandEvent& event);
85 wxButton* m_CancelButton;
87 wxStaticText* premtext;
88 wxCheckBox *m_pCheck1;
89 wxString m_checkbox1_msg;
100 PINCreateDialog(wxWindow* parent, wxWindowID
id,
const wxString& caption,
101 const wxString& hint,
const wxPoint& pos,
const wxSize& size,
108 wxDialog* Initiate(
const std::string& msg,
const std::string& text1);
111 bool Create(wxWindow* parent, wxWindowID
id = SYMBOL_STG_IDNAME,
112 const wxString& caption = SYMBOL_STG_TITLE,
113 const wxString& hint = SYMBOL_STG_TITLE,
114 const wxPoint& pos = SYMBOL_STG_POSITION,
115 const wxSize& size = SYMBOL_STG_SIZE,
116 long style = SYMBOL_STG_STYLE);
117 void SetMessage(
const wxString &message);
118 void SetText1Message(
const wxString &message);
120 wxString GetText1Value(){
return m_pText1->GetValue(); }
123 void CreateControls(
const wxString& hint);
125 void OnCancelClick(wxCommandEvent& event);
126 void OnOKClick(wxCommandEvent& event);
128 wxButton* m_CancelButton;
129 wxButton* m_OKButton;
130 wxStaticText* premtext;
131 wxTextCtrl *m_pText1;
132 wxString m_checkbox1_msg;
"Accept Object" Dialog Definition
Callbacks for handling dialogs and RouteManager updates.