25 #ifndef __GOTOPOSITIONDIALOG_H__
26 #define __GOTOPOSITIONDIALOG_H__
28 #include <wx/dialog.h>
29 #include <wx/textctrl.h>
31 #include "model/ocpn_types.h"
32 #include "color_types.h"
41 #define ID_GOTOPOS 8100
42 #define SYMBOL_GOTOPOS_STYLE \
43 wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX
44 #define SYMBOL_GOTOPOS_TITLE _("Center view")
45 #define SYMBOL_GOTOPOS_IDNAME ID_GOTOPOS
46 #define SYMBOL_GOTOPOS_SIZE wxSize(200, 300)
47 #define SYMBOL_GOTOPOS_POSITION wxDefaultPosition
48 #define ID_GOTOPOS_CANCEL 8101
49 #define ID_GOTOPOS_OK 8102
64 const wxString& caption = SYMBOL_GOTOPOS_TITLE,
65 const wxPoint& pos = SYMBOL_GOTOPOS_POSITION,
66 const wxSize& size = SYMBOL_GOTOPOS_SIZE,
67 long style = SYMBOL_GOTOPOS_STYLE);
72 bool Create(wxWindow* parent, wxWindowID
id = SYMBOL_GOTOPOS_IDNAME,
73 const wxString& caption = SYMBOL_GOTOPOS_TITLE,
74 const wxPoint& pos = SYMBOL_GOTOPOS_POSITION,
75 const wxSize& size = SYMBOL_GOTOPOS_SIZE,
76 long style = SYMBOL_GOTOPOS_STYLE);
78 void SetCanvas(
ChartCanvas* canvas) { m_hostCanvas = canvas; }
79 void SetColorScheme(ColorScheme cs);
83 void OnGoToPosCancelClick(wxCommandEvent& event);
84 void OnGoToPosOkClick(wxCommandEvent& event);
85 void OnPositionCtlUpdated(wxCommandEvent& event);
86 void CheckPasteBufferForPosition();
91 wxTextCtrl* m_MarkLatCtl;
92 wxTextCtrl* m_MarkLonCtl;
93 wxButton* m_CancelButton;
bool Create(wxWindow *parent, wxWindowID id=SYMBOL_GOTOPOS_IDNAME, const wxString &caption=SYMBOL_GOTOPOS_TITLE, const wxPoint &pos=SYMBOL_GOTOPOS_POSITION, const wxSize &size=SYMBOL_GOTOPOS_SIZE, long style=SYMBOL_GOTOPOS_STYLE)
Creation.
GoToPositionDialog()
Constructors.
static bool ShowToolTips()
Should we show tooltips?