24 #ifndef __AISTARGETQUERYDIALOG_H__
25 #define __AISTARGETQUERYDIALOG_H__
30 #include "model/ocpn_types.h"
31 #include "color_types.h"
33 #define AIS_TARGET_QUERY_STYLE wxDEFAULT_FRAME_STYLE | wxFRAME_FLOAT_ON_PARENT
46 const wxString& caption = _(
"Object Query"),
47 const wxPoint& pos = wxDefaultPosition,
48 const wxSize& size = wxDefaultSize,
49 long style = AIS_TARGET_QUERY_STYLE);
56 bool Create(wxWindow* parent, wxWindowID
id = wxID_ANY,
57 const wxString& caption = _(
"Object Query"),
58 const wxPoint& pos = wxDefaultPosition,
59 const wxSize& size = wxDefaultSize,
60 long style = AIS_TARGET_QUERY_STYLE);
62 void OnClose(wxCloseEvent& event);
63 void OnIdOKClick(wxCommandEvent& event);
64 void OnIdWptCreateClick(wxCommandEvent& event);
65 void OnIdTrkCreateClick(wxCommandEvent& event);
66 void OnMove(wxMoveEvent& event);
67 void OnSize(wxSizeEvent& event);
69 void CreateControls();
71 void OnKey(wxKeyEvent& ke);
73 void SetText(
const wxString& text_string);
74 void SetColorScheme(ColorScheme cs);
76 void RecalculateSize(
void);
77 void SetAutoCentre(
bool bval) { m_bautoCentre = bval; }
78 void SetAutoSize(
bool bval) { m_bautosize = bval; }
80 void UpdateText(
void);
81 void SetMMSI(
int mmsi);
82 int GetMMSI(
void) {
return m_MMSI; }
86 wxHtmlWindow* m_pQueryTextCtl;
87 ColorScheme m_colorscheme;
88 wxBoxSizer* m_pboxSizer;
91 wxButton* m_createWptBtn;
92 wxButton* m_createTrkBtn;
93 int m_adjustedFontSize;
94 int m_control_font_size;
AISTargetQueryDialog()
Constructors.
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Object Query"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=AIS_TARGET_QUERY_STYLE)
Creation.
void Init()
Initialise our variables.