16#ifndef __albaGUICheckTree_H__
17#define __albaGUICheckTree_H__
23#include <wx/imaglist.h>
24#include <wx/treectrl.h>
48 albaGUICheckTree (wxWindow* parent, wxWindowID
id=-1,
bool CloseButton =
false,
bool HideTitle =
false);
141 DECLARE_EVENT_TABLE()
#define EXPORT_STL_MAP(declspec_, K_, V_)
class Name : albaGUICheckTree.
std::map< wxString, int > MapClassNameToIcon
wxBitmap MergeIcons(wxBitmap state, wxBitmap vme)
Given two bitmaps, it creates a third bitmap.
void VmeAdd(albaVME *vme)
Add the vme to the checked tree and create the related icon.
void OnMouseUp(wxMouseEvent &event)
Called by the Custom-Tree-Event-Handler.
MapClassNameToIcon m_MapClassNameToIcon
void EnableSelect(bool enable)
Enable the selection of a node tree.
albaGUICheckTree(wxWindow *parent, wxWindowID id=-1, bool CloseButton=false, bool HideTitle=false)
constructor .
virtual void InitializeImageList()
Fill the image list considering the visibility vme type, and vme availability.
void VmeShow(albaVME *vme, bool show)
Update the vme node icon into the checked tree.
wxTreeCtrl * GetTree()
Retrieve wxwindows widget pointer of the tree.
virtual void OnSelectionChanged(wxTreeEvent &event)
respond to Selection Changed
void TreeUpdateIcon()
Update all the vme nodes icon.
virtual int GetVmeStatus(albaVME *vme)
Return the status of the node according to the vme visibility.
virtual void ShowContextualMenu(wxMouseEvent &event)
Called by the Custom-Tree-Event-Handler.
void OnMouseDown(wxMouseEvent &event)
Called by the Custom-Tree-Event-Handler.
void ViewDeleted(albaView *view)
Update the vme tree nodes when a view is deleted.
void VmeRemove(albaVME *vme)
Remove the vme from the checked tree.
virtual void OnIconClick(wxTreeItemId item)
Called by the Custom-Tree-Event-Handler - via OnMouseDown.
void OnMouseEvent(wxMouseEvent &event)
Called by the Custom-Tree-Event-Handler.
bool IsIconChecked(wxTreeItemId item)
Return true if the icon associated to the tree item is checked.
void VmeSelected(albaVME *vme)
Select the vme node of the checked tree.
void ViewSelected(albaView *view)
Update the vme tree nodes with the new vme visibility for the selected view.
virtual ~albaGUICheckTree()
destructor .
int ClassNameToIcon(wxString classname)
retrieve the icon-index for a vme given the classname
void VmeUpdateIcon(albaVME *vme)
Update the vme nodes icon.
albaVME * GetSelectedNode()
Return the current selected node.
void VmeModified(albaVME *vme)
Update the vme node label with the new vme name.
albaGUITree allows a simplified and lot easier use of a wxWindows tree widget.
albaView is the base class for Views in alba.