50 const wxString& caption = _(
"Object Query"),
51 const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
53 long style = AIS_TARGET_QUERY_STYLE);
60 bool Create(wxWindow* parent, wxWindowID
id = wxID_ANY,
61 const wxString& caption = _(
"Object Query"),
62 const wxPoint& pos = wxDefaultPosition,
63 const wxSize& size = wxDefaultSize,
64 long style = AIS_TARGET_QUERY_STYLE);
66 void OnClose(wxCloseEvent& event);
67 void OnIdOKClick(wxCommandEvent& event);
68 void OnIdWptCreateClick(wxCommandEvent& event);
69 void OnIdTrkCreateClick(wxCommandEvent& event);
70 void OnMove(wxMoveEvent& event);
71 void OnSize(wxSizeEvent& event);
73 void CreateControls();
75 void OnKey(wxKeyEvent& ke);
77 void SetText(
const wxString& text_string);
78 void SetColorScheme(ColorScheme cs);
80 void RecalculateSize(
void);
81 void SetAutoCentre(
bool bval) { m_bautoCentre = bval; }
82 void SetAutoSize(
bool bval) { m_bautosize = bval; }
84 void UpdateText(
void);
85 void SetMMSI(
int mmsi);
86 int GetMMSI(
void) {
return m_MMSI; }
90 wxHtmlWindow* m_pQueryTextCtl;
91 ColorScheme m_colorscheme;
92 wxBoxSizer* m_pboxSizer;
95 wxButton* m_createWptBtn;
96 wxButton* m_createTrkBtn;
97 int m_adjustedFontSize;
98 int m_control_font_size;
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.