1 #ifndef __creaImageIOWxTreeView_h_INCLUDED__
2 #define __creaImageIOWxTreeView_h_INCLUDED__
6 #include <creaImageIOTreeView.h>
9 #include <wx/listctrl.h>
17 //=====================================================================
19 //=====================================================================
20 /// Abstract class that handles the view of a Tree through its TreeHandler
21 class WxTreeView : public wxPanel, virtual public TreeView
25 WxTreeView(TreeHandler*, wxWindow* parent, const wxWindowID id);
26 /// Virtual destructor
27 virtual ~WxTreeView();
30 /// Updates the view of a level given the selected items of upper level
31 virtual void UpdateLevel( int );
33 ///Removes selected nodes on given level
34 virtual void RemoveSelected( int );
36 /// Callback for selection change
37 void OnSelected(wxListEvent& event);
41 /// The struct holding the data for one level
42 /// Holds the wx control and other data
43 /// such as the vector of attribute keys corresponding to the columns
48 std::vector<std::string> key;
50 /// The vector of levels : one for each level of the tree
51 std::vector<LevelType> mLevelList;
53 /// return the wxListCtrl of one level
54 wxListCtrl* GetCtrl(int l) { return mLevelList[l].wxCtrl; }
56 std::vector<tree::Node*>GetSelected(int level);
62 // EO class WxTreeView
63 //=====================================================================
65 } // EO namespace creaImageIO