23 #include "wxgis/catalogui/gxview.h"
24 #include "wxgis/catalogui/gxcatalogui.h"
25 #include "wxgis/catalog/gxevent.h"
26 #include "wxgis/catalogui/gxeventui.h"
27 #include "wxgis/catalogui/gxapplication.h"
29 #include "wx/listctrl.h"
30 #include "wx/imaglist.h"
34 #define LISTSTYLE (wxLC_REPORT | wxBORDER_NONE | wxLC_EDIT_LABELS | wxLC_AUTOARRANGE) //wxLC_LIST|wxLC_SORT_ASCENDING
36 #if defined(__WINDOWS__)
37 #define wxGISLIST_STATE_DROPHILITED wxLIST_STATE_DROPHILITED
38 #elif defined(__UNIX__)
39 #define wxGISLIST_STATE_DROPHILITED wxLIST_STATE_SELECTED
71 wxGxContentView(wxWindow* parent, wxWindowID
id = LISTCTRLID,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = LISTSTYLE);
73 virtual void Serialize(wxXmlNode* pRootNode,
bool bStore);
74 virtual bool AddObject(
wxGxObject*
const pObject);
75 virtual void ResetContents(
void);
76 virtual wxGxObject*
const GetParentGxObject(
void)
const;
77 virtual void SelectAll(
void);
78 virtual bool Show(
bool show =
true);
79 virtual void RefreshAll(
void);
80 virtual long HitTest(
const wxPoint& point,
int& flags,
long *pSubItem = NULL )
const;
82 virtual bool Create(wxWindow* parent, wxWindowID
id = LISTCTRLID,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = LISTSTYLE,
const wxString& name = wxT(
"ContentView"));
83 virtual bool Activate(
IApplication*
const pApplication, wxXmlNode*
const pConf);
84 virtual void Deactivate(
void);
86 virtual void BeginRename(
long nObjectID = wxNOT_FOUND);
88 virtual void SetStyle(wxGISEnumContentsViewStyle style);
89 virtual wxGISEnumContentsViewStyle GetStyle(
void){
return m_current_style;};
90 virtual bool CanSetStyle(
void){
return true;};
92 virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def);
93 virtual bool OnDropObjects(wxCoord x, wxCoord y,
const wxArrayString& GxObjects,
bool bIsControlOn);
94 virtual void OnLeave();
95 virtual bool CanPaste(
void);
97 virtual void OnColClick(wxListEvent& event);
98 virtual void OnContextMenu(wxContextMenuEvent& event);
99 virtual void ShowContextMenu(
const wxPoint& pos);
100 virtual void SetColumnImage(
int col,
int image);
101 virtual void OnActivated(wxListEvent& event);
102 virtual void OnBeginLabelEdit(wxListEvent& event);
103 virtual void OnEndLabelEdit(wxListEvent& event);
104 virtual void OnSelected(wxListEvent& event);
105 virtual void OnDeselected(wxListEvent& event);
106 virtual void OnBeginDrag(wxListEvent& event);
107 virtual void OnChar(wxKeyEvent& event);
128 int GetIconPos(wxIcon icon_small, wxIcon icon_large);
129 virtual void InitColumns(
void);
130 virtual void SelectItem(
int nChar = WXK_DOWN,
bool bShift =
false);
131 virtual wxThread::ExitCode Entry();
132 virtual bool CreateAndRunFillMetaThread(
void);
133 virtual void DestroyFillMetaThread(
void);
136 short m_currentSortCol;
137 wxGISEnumContentsViewStyle m_current_style;
138 wxArrayInt m_anOrder, m_anWidth;
139 wxImageList m_ImageListSmall, m_ImageListLarge;
141 long m_ConnectionPointCatalogCookie;
149 long m_nParentGxObjectID;
151 wxVector<ICONDATA> m_IconsArray;
152 wxCriticalSection m_CritSect;
153 wxCriticalSection m_CritSectCont;
154 wxCriticalSection m_CritSectFillMeta;
155 long m_HighLightItem;
158 wxArrayLong m_anFillMetaIDs;
160 DECLARE_EVENT_TABLE()
The GxSelection class event.
Definition: gxeventui.h:37
Definition: applicationbase.h:65
Definition: gxcontentview.h:49
Definition: gxcontentview.h:114
The Network event.
Definition: gxevent.h:39
Definition: gxcatalogui.h:34
The GxObject Selection class.
Definition: gxselection.h:30
Definition: gxcontentview.h:61
Definition: gxcontentview.h:120
Definition: framework.h:59
Definition: gxapplication.h:41
Definition: catalogui.h:112
Definition: gxobject.h:37