21 #include "wxgis/catalogui/catalogui.h"
22 #include "wxgis/catalogui/gxapplication.h"
23 #include "wxgis/catalogui/gxeventui.h"
24 #include "wxgis/catalogui/gxcontentview.h"
27 #include <wx/combobox.h>
28 #include <wx/popupwin.h>
30 #define LISTVIEWPOPUPID 1306 //wxGxCatalog contents view
31 #define LISTPOPUSTYLE (wxBORDER_SIMPLE | wxLC_SORT_ASCENDING | wxLC_AUTOARRANGE | wxLC_REPORT | wxLC_NO_HEADER | wxLC_SINGLE_SEL)
47 wxGxPathsListView(wxWindow* parent, wxWindowID
id = LISTVIEWPOPUPID,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = LISTPOPUSTYLE);
49 virtual bool Create(wxWindow* parent, wxWindowID
id = LISTVIEWPOPUPID,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = LISTPOPUSTYLE,
const wxString& name = wxT(
"ListViewComboPopup"));
50 virtual void Append(
const wxString& sFullName);
51 virtual void Deactivate(
void);
55 virtual void OnMouseMove(wxMouseEvent& event);
57 virtual void OnMouseClick(wxMouseEvent& event);
58 virtual void OnChar(wxKeyEvent& event);
74 wxVector<ICONDATA> m_IconsArray;
75 int GetIconPos(
const wxIcon &icon_small);
76 virtual void Activate();
77 wxImageList m_ImageListSmall;
80 long m_ConnectionPointCatalogCookie;
101 virtual void OnPopup();
102 virtual void OnDismiss();
104 virtual bool Create(wxWindow* parent);
105 virtual bool Create(wxWindow* parent, wxWindowID
id = LISTVIEWPOPUPID,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = LISTPOPUSTYLE,
const wxString& name = wxT(
"ListViewComboPopup"));
107 virtual wxWindow *GetControl() {
return this; }
109 virtual void SetStringValue(
const wxString& s);
111 virtual wxString GetStringValue()
const;
112 virtual wxSize GetAdjustedSize (
int minWidth,
int prefHeight,
int maxHeight);
114 virtual void OnMouseClick(wxMouseEvent& event);
115 virtual void OnChar(wxKeyEvent& event);
134 virtual void SetControlText(
const wxString &str,
bool bFireEvents =
false) = 0;
135 virtual wxString GetControlText(
void)
const = 0;
136 virtual void DestroyPathsPopup(
void);
137 virtual wxRect GetControlRect()
const = 0;
138 virtual wxSize GetControlSize()
const = 0;
139 virtual void OnTextEnter(wxCommandEvent& event) = 0;
141 virtual void OnKillFocus(wxFocusEvent& event);
142 virtual void OnChar(wxKeyEvent& event);
143 virtual void OnMouseWheel(wxMouseEvent& event);
162 void Append(
const wxString& sFullName);
164 void OnSize(wxSizeEvent& WXUNUSED(event));
165 void OnMouseWheel(wxMouseEvent& event);
166 void OnChar(wxKeyEvent& event);
167 void OnMouseClick(wxMouseEvent& event);
169 wxRect GetViewRect()
const;
170 void Show(
const wxString &sPath);
171 void Update(
const wxString &sPath);
172 bool IsSelected()
const {
return m_bSelected;};
180 DECLARE_EVENT_TABLE()
200 virtual void SetControlText(
const wxString &str,
bool bFireEvents =
false);
201 virtual wxString GetControlText(
void)
const;
202 virtual wxRect GetControlRect()
const;
203 virtual wxSize GetControlSize()
const;
205 virtual void OnTextEnter(wxCommandEvent& event);
206 void OnText(wxCommandEvent& event);
209 virtual void Deactivate(
void);
212 virtual void OnKillFocus(wxFocusEvent& event);
213 virtual void OnChar(wxKeyEvent& event);
214 virtual void OnMouseWheel(wxMouseEvent& event);
215 virtual void OnMouseDblClick(wxMouseEvent& event);
218 wxArrayString m_ValuesArr;
219 long m_ConnectionPointSelectionCookie;
225 DECLARE_EVENT_TABLE()
Definition: gxlocationcombobox.h:63
The GxSelection class event.
Definition: gxeventui.h:37
Definition: applicationbase.h:65
The Network event.
Definition: gxevent.h:39
Definition: gxlocationcombobox.h:191
Definition: gxcatalogui.h:34
Definition: gxlocationcombobox.h:68
The GxObject Selection class.
Definition: gxselection.h:30
Definition: gxlocationcombobox.h:41
Definition: gxapplication.h:41