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/treectrl.h"
30 #include "wx/imaglist.h"
46 m_nObjectID = nObjectID;
47 m_smallimage_index = smallimage_index;
48 m_bExpandedOnce = bExpandedOnce;
56 int m_smallimage_index;
71 wxGxTreeViewBase(wxWindow* parent, wxWindowID
id = TREECTRLID,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTR_HAS_BUTTONS | wxTR_TWIST_BUTTONS );
73 virtual void AddTreeItem(
wxGxObject* pGxObject, wxTreeItemId hParent);
74 virtual void RefreshAll(
void);
76 virtual bool Create(wxWindow* parent, wxWindowID
id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTR_HAS_BUTTONS | wxTR_TWIST_BUTTONS,
const wxString& name = wxT(
"TreeView"));
77 virtual bool Activate(
IApplication*
const pApplication, wxXmlNode*
const pConf);
78 virtual void Deactivate(
void);
79 virtual void BeginRename(
long nObjectID = wxNOT_FOUND){};
80 virtual void Refresh(
void){wxTreeCtrl::Refresh();};
82 virtual int OnCompareItems(
const wxTreeItemId& item1,
const wxTreeItemId& item2);
84 typedef std::map<long, wxTreeItemId> wxTreeItemMap;
94 virtual void OnItemExpanding(wxTreeEvent& event);
95 virtual void OnItemRightClick(wxTreeEvent& event);
96 virtual void OnChar(wxKeyEvent& event);
103 virtual void UpdateGxSelection(
void);
105 wxImageList m_TreeImageList;
106 wxTreeItemMap m_TreeMap;
109 long m_ConnectionPointCatalogCookie, m_ConnectionPointSelectionCookie;
113 wxVector<ICONDATA> m_IconsArray;
115 DECLARE_EVENT_TABLE()
128 wxGxTreeView(wxWindow* parent, wxWindowID
id = TREECTRLID,
long style = wxTR_HAS_BUTTONS | wxTR_TWIST_BUTTONS | wxBORDER_NONE | wxTR_EDIT_LABELS );
131 virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def);
132 virtual bool OnDropObjects(wxCoord x, wxCoord y,
const wxArrayString& GxObjects,
bool bIsControlOn);
133 virtual void OnLeave();
134 virtual bool CanPaste(
void);
136 virtual void OnBeginLabelEdit(wxTreeEvent& event);
137 virtual void OnEndLabelEdit(wxTreeEvent& event);
138 virtual void OnSelChanged(wxTreeEvent& event);
139 virtual void OnItemRightClick(wxTreeEvent& event);
140 virtual void OnBeginDrag(wxTreeEvent& event);
141 virtual void OnActivated(wxTreeEvent& event);
145 virtual void BeginRename(
long nObjectID = wxNOT_FOUND);
147 wxTreeItemId m_HighLightItemId;
149 DECLARE_EVENT_TABLE()
Definition: gxtreeview.h:41
The GxSelection class event.
Definition: gxeventui.h:37
Definition: applicationbase.h:65
Definition: gxtreeview.h:85
The Network event.
Definition: gxevent.h:39
The tree view in Catalog.
Definition: gxtreeview.h:121
Definition: gxcatalogui.h:34
The base class for tree view of gxObjects.
Definition: gxtreeview.h:64
The GxObject Selection class.
Definition: gxselection.h:30
Definition: framework.h:59
Definition: gxapplication.h:41
Definition: gxobject.h:37