Go to the documentation of this file.
33 #ifndef TTA_OSED_TREE_VIEW_HH
34 #define TTA_OSED_TREE_VIEW_HH
37 #include <wx/treectrl.h>
71 void addItem(wxTreeItemId parent, std::string item);
72 void changeText(wxTreeItemId
id,
const std::string& text);
83 typedef std::map<std::string, wxTreeItemId>::value_type
ValType;
85 typedef std::map<std::string, wxTreeItemId>::iterator
Iter;
86 typedef std::multimap<std::string, wxTreeItemId>::iterator
IterM;
93 bool isPath(wxTreeItemId
id)
const;
94 bool isModule(wxTreeItemId
id)
const;
104 std::map<std::string, wxTreeItemId>
paths_;
110 DECLARE_EVENT_TABLE()
std::string selectedModule()
wxTreeItemId selectedModuleId()
void removeItem(wxTreeItemId id)
std::string pathOfModule(wxTreeItemId id)
bool isPath(wxTreeItemId id) const
wxTreeItemId moduleIdOfOperation(wxTreeItemId id)
void addItem(wxTreeItemId parent, std::string item)
wxTreeItemId selectedPathId()
OSEdInfoView * infoView() const
void onDropDownMenu(wxMouseEvent &event)
OSEdInfoView * infoView_
An info window controlled by tree view.
void onItemSelected(wxTreeEvent &event)
std::string selectedPath()
std::string moduleOfOperation(wxTreeItemId id)
bool isOperationSelected() const
bool isPathSelected() const
wxTreeItemId pathIdOfModule(wxTreeItemId id)
void changeText(wxTreeItemId id, const std::string &text)
bool isModule(wxTreeItemId id) const
OSEdTreeView(wxWindow *parent, OSEdInfoView *infoView)
bool isModuleSelected() const
Operation * selectedOperation()
OSEdTreeView & operator=(const OSEdTreeView &)
Assignment not allowed.
std::multimap< std::string, wxTreeItemId >::iterator IterM
void onItemClicked(wxTreeEvent &event)
std::multimap< std::string, wxTreeItemId > operations_
Operations of operation data base.
wxTreeItemId selectedOperationId()
std::map< std::string, wxTreeItemId >::iterator Iter
Iterators for the maps.
std::vector< std::string > constructTree()
std::map< std::string, wxTreeItemId > paths_
Paths of the operation data base.
std::map< std::string, wxTreeItemId >::value_type ValType
Value type for the map.
std::multimap< std::string, wxTreeItemId > modules_
Modules of the operation data base.
bool isOperation(wxTreeItemId id) const