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