ALBA
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
albaGUICheckTree Class Reference

#include <albaGUICheckTree.h>

Inheritance diagram for albaGUICheckTree:
Inheritance graph
[legend]
Collaboration diagram for albaGUICheckTree:
Collaboration graph
[legend]

Public Member Functions

 albaGUICheckTree (wxWindow *parent, wxWindowID id=-1, bool CloseButton=false, bool HideTitle=false)
 
virtual ~albaGUICheckTree ()
 
void VmeAdd (albaVME *vme)
 
void VmeRemove (albaVME *vme)
 
void VmeSelected (albaVME *vme)
 
albaVMEGetSelectedNode ()
 
bool IsIconChecked (wxTreeItemId item)
 
void VmeShow (albaVME *vme, bool show)
 
void VmeModified (albaVME *vme)
 
void ViewSelected (albaView *view)
 
void ViewDeleted (albaView *view)
 
void EnableSelect (bool enable)
 
wxTreeCtrl * GetTree ()
 
void OnMouseDown (wxMouseEvent &event)
 
void OnMouseUp (wxMouseEvent &event)
 
void OnMouseEvent (wxMouseEvent &event)
 
virtual void OnIconClick (wxTreeItemId item)
 
virtual void ShowContextualMenu (wxMouseEvent &event)
 
virtual void OnSelectionChanged (wxTreeEvent &event)
 
- Public Member Functions inherited from albaGUITree
 albaGUITree (wxWindow *parent, wxWindowID id=-1, bool CloseButton=false, bool HideTitle=false)
 
virtual ~albaGUITree ()
 
void Reset ()
 
bool AddNode (long long node_id, long long parent_id, wxString label, int icon=0)
 
bool DeleteNode (long long node_id)
 
bool SetNodeLabel (long long node_id, wxString label)
 
wxString GetNodeLabel (long long node_id)
 
bool NodeHasChildren (long long node_id)
 
long long GetNodeParent (long long node_id)
 
bool SetNodeParent (long long node_id, long long parent_id)
 
bool SetNodeIcon (long long node_id, int icon)
 
int GetNodeIcon (long long node_id)
 
bool SelectNode (long long node_id)
 
void SetImageList (wxImageList *img)
 
void SortChildren (long long node_id=0)
 
void SetAutoSort (bool enable)
 
bool GetAutoSort ()
 
void CollapseNode (long long node_id)
 
void ExpandNode (long long node_id)
 
bool IsNodeExpanded (long long node_id)
 
void SetListener (albaObserver *listener)
 
wxTreeItemId ItemFromNode (long long node_id)
 
long long NodeFromItem (wxTreeItemId &item)
 
void SetTreeStyle (long style)
 
long GetTreeStyle ()
 
bool NodeExist (long long node_id)
 
- Public Member Functions inherited from albaGUINamedPanel
 albaGUINamedPanel (wxWindow *parent, wxWindowID id=-1, bool CloseButton=false, bool HideTitle=false)
 
virtual ~albaGUINamedPanel ()
 
void Add (wxWindow *window, int option=0, int flag=wxEXPAND, int border=0)
 
void Add (wxSizer *sizer, int option=0, int flag=wxEXPAND, int border=0)
 
bool Remove (wxWindow *window)
 
bool Remove (wxSizer *sizer)
 
void SetTitle (wxString label)
 
void SetTitleColor (wxColour *color=NULL)
 
wxBoxSizer * GetTopSizer ()
 
wxPanel * GetTopPanel ()
 
- Public Member Functions inherited from albaGUIPanel
 albaGUIPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
 

Protected Types

typedef std::map< wxString, int > MapClassNameToIcon
 

Protected Member Functions

void VmeUpdateIcon (albaVME *vme)
 
void TreeUpdateIcon ()
 
virtual int GetVmeStatus (albaVME *vme)
 
int ClassNameToIcon (wxString classname)
 
virtual void InitializeImageList ()
 
wxBitmap MergeIcons (wxBitmap state, wxBitmap vme)
 
- Protected Member Functions inherited from albaGUITree
virtual void OnSelectionChanged (wxTreeEvent &event)
 
void OnSize (wxSizeEvent &event)
 
void DeleteNode2 (long long node_id)
 
void SetNodeParent2 (long long node_id, long long parent_id)
 
int CheckIconId (int icon)
 
bool IsRootHidden ()
 

Protected Attributes

albaViewm_View
 
albaVMEm_SelectedVME
 
bool m_CanSelect
 
wxMenu * m_RMenu
 
MapClassNameToIcon m_MapClassNameToIcon
 
- Protected Attributes inherited from albaGUITree
bool m_PreventNotify
 
bool m_Autosort
 
long long m_NodeRoot
 
wxTreeCtrl * m_NodeTree
 
wxImageList * m_NodeImages
 
wxHashTable * m_NodeTable
 
albaObserverm_Listener
 
- Protected Attributes inherited from albaGUINamedPanel
wxPanel * m_Top
 
albaGUILabm_Label
 
wxBoxSizer * m_Sizer
 
wxBoxSizer * m_TopSizer
 
albaGUINamedPanelm_NextPanel
 
wxColour m_Color
 

Additional Inherited Members

- Public Attributes inherited from albaGUIPanel
albaGUIPanelm_NextPanel
 

Detailed Description

class Name : albaGUICheckTree.

Class that represents the widget component put inside side bar and containing the vme tree with the possibility to check vme visibility and/or vme selection. It is possible only one selection at time.

Definition at line 44 of file albaGUICheckTree.h.

Member Typedef Documentation

◆ MapClassNameToIcon

typedef std::map<wxString,int> albaGUICheckTree::MapClassNameToIcon
protected

Definition at line 137 of file albaGUICheckTree.h.

Constructor & Destructor Documentation

◆ albaGUICheckTree()

albaGUICheckTree::albaGUICheckTree ( wxWindow *  parent,
wxWindowID  id = -1,
bool  CloseButton = false,
bool  HideTitle = false 
)

constructor .

◆ ~albaGUICheckTree()

virtual albaGUICheckTree::~albaGUICheckTree ( )
virtual

destructor .

Member Function Documentation

◆ VmeAdd()

void albaGUICheckTree::VmeAdd ( albaVME vme)

Add the vme to the checked tree and create the related icon.

◆ VmeRemove()

void albaGUICheckTree::VmeRemove ( albaVME vme)

Remove the vme from the checked tree.

◆ VmeSelected()

void albaGUICheckTree::VmeSelected ( albaVME vme)

Select the vme node of the checked tree.

◆ GetSelectedNode()

albaVME * albaGUICheckTree::GetSelectedNode ( )
inline

Return the current selected node.

Definition at line 62 of file albaGUICheckTree.h.

◆ IsIconChecked()

bool albaGUICheckTree::IsIconChecked ( wxTreeItemId  item)

Return true if the icon associated to the tree item is checked.

◆ VmeShow()

void albaGUICheckTree::VmeShow ( albaVME vme,
bool  show 
)

Update the vme node icon into the checked tree.

◆ VmeModified()

void albaGUICheckTree::VmeModified ( albaVME vme)

Update the vme node label with the new vme name.

◆ ViewSelected()

void albaGUICheckTree::ViewSelected ( albaView view)

Update the vme tree nodes with the new vme visibility for the selected view.

◆ ViewDeleted()

void albaGUICheckTree::ViewDeleted ( albaView view)

Update the vme tree nodes when a view is deleted.

◆ EnableSelect()

void albaGUICheckTree::EnableSelect ( bool  enable)

Enable the selection of a node tree.

◆ GetTree()

wxTreeCtrl * albaGUICheckTree::GetTree ( )
inline

Retrieve wxwindows widget pointer of the tree.

Definition at line 88 of file albaGUICheckTree.h.

References albaGUITree::m_NodeTree.

◆ VmeUpdateIcon()

void albaGUICheckTree::VmeUpdateIcon ( albaVME vme)
protected

Update the vme nodes icon.

◆ TreeUpdateIcon()

void albaGUICheckTree::TreeUpdateIcon ( )
protected

Update all the vme nodes icon.

◆ GetVmeStatus()

virtual int albaGUICheckTree::GetVmeStatus ( albaVME vme)
protectedvirtual

Return the status of the node according to the vme visibility.

Reimplemented in albaGUIVMEChooserTree.

◆ ClassNameToIcon()

int albaGUICheckTree::ClassNameToIcon ( wxString  classname)
protected

retrieve the icon-index for a vme given the classname

◆ InitializeImageList()

virtual void albaGUICheckTree::InitializeImageList ( )
protectedvirtual

Fill the image list considering the visibility vme type, and vme availability.

The result is a list of images, and one image can be associated to the label that represent the node of the tree in the wxwidget.

Reimplemented in albaGUIVMEChooserTree.

◆ MergeIcons()

wxBitmap albaGUICheckTree::MergeIcons ( wxBitmap  state,
wxBitmap  vme 
)
protected

Given two bitmaps, it creates a third bitmap.

The result is a merge of the others with the right side of the first image that is the left side of the second one.

◆ OnMouseDown()

void albaGUICheckTree::OnMouseDown ( wxMouseEvent &  event)

Called by the Custom-Tree-Event-Handler.

◆ OnMouseUp()

void albaGUICheckTree::OnMouseUp ( wxMouseEvent &  event)

Called by the Custom-Tree-Event-Handler.

◆ OnMouseEvent()

void albaGUICheckTree::OnMouseEvent ( wxMouseEvent &  event)

Called by the Custom-Tree-Event-Handler.

◆ OnIconClick()

virtual void albaGUICheckTree::OnIconClick ( wxTreeItemId  item)
virtual

Called by the Custom-Tree-Event-Handler - via OnMouseDown.

Reimplemented in albaGUIVMEChooserTree.

◆ ShowContextualMenu()

virtual void albaGUICheckTree::ShowContextualMenu ( wxMouseEvent &  event)
virtual

Called by the Custom-Tree-Event-Handler.

Reimplemented in albaGUIVMEChooserTree.

◆ OnSelectionChanged()

virtual void albaGUICheckTree::OnSelectionChanged ( wxTreeEvent &  event)
virtual

respond to Selection Changed

Reimplemented from albaGUITree.

Reimplemented in albaGUIVMEChooserTree.

Member Data Documentation

◆ m_View

albaView* albaGUICheckTree::m_View
protected

Definition at line 131 of file albaGUICheckTree.h.

◆ m_SelectedVME

albaVME* albaGUICheckTree::m_SelectedVME
protected

Definition at line 132 of file albaGUICheckTree.h.

◆ m_CanSelect

bool albaGUICheckTree::m_CanSelect
protected

Definition at line 134 of file albaGUICheckTree.h.

◆ m_RMenu

wxMenu* albaGUICheckTree::m_RMenu
protected

Definition at line 135 of file albaGUICheckTree.h.

◆ m_MapClassNameToIcon

MapClassNameToIcon albaGUICheckTree::m_MapClassNameToIcon
protected

Definition at line 138 of file albaGUICheckTree.h.


The documentation for this class was generated from the following file: