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

#include <albaGUIVMEChooserTree.h>

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

Public Member Functions

 albaGUIVMEChooserTree (wxWindow *parent, albaGUICheckTree *tree, ValidateCallBackType vme_accept_function=0, wxWindowID id=-1, bool CloseButton=false, bool HideTitle=false, long style=REPRESENTATION_AS_TREE, bool multiSelect=false, albaVME *subTree=NULL)
 
virtual ~albaGUIVMEChooserTree ()
 
std::vector< albaVME * > GetChoosedNode ()
 
virtual void OnIconClick (wxTreeItemId item)
 
- Public Member Functions inherited from albaGUICheckTree
 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 Member Functions

int GetVmeStatus (albaVME *node)
 
void VmeUpdateIcon (albaVME *vme)
 
void InitializeImageList ()
 
void CloneSubTree (albaGUICheckTree *tree, wxTreeItemId *source_item, wxTreeItemId *dest_parent_item)
 
void ShowContextualMenu (wxMouseEvent &event)
 
virtual void OnSelectionChanged (wxTreeEvent &event)
 
- Protected Member Functions inherited from albaGUICheckTree
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

ValidateCallBackType m_ValidateFunction
 
albaVMEm_ChoosedNode
 
long m_ChooserTreeStyle
 
std::vector< albaVME * > m_CheckedNode
 
bool m_MultipleSelection
 
- Protected Attributes inherited from albaGUICheckTree
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
 
- Protected Types inherited from albaGUICheckTree
typedef std::map< wxString, int > MapClassNameToIcon
 

Detailed Description

Widget representing the tree that allow the user to choose a VME.

This widget has the possibility to manage validation callback passed through a constructor that allows to say if a VME can be choose or not. Another feature of the widget is to show also a checkbox near the VME's icon to allow a multiple selection.

Definition at line 45 of file albaGUIVMEChooserTree.h.

Constructor & Destructor Documentation

◆ albaGUIVMEChooserTree()

albaGUIVMEChooserTree::albaGUIVMEChooserTree ( wxWindow *  parent,
albaGUICheckTree tree,
ValidateCallBackType  vme_accept_function = 0,
wxWindowID  id = -1,
bool  CloseButton = false,
bool  HideTitle = false,
long  style = REPRESENTATION_AS_TREE,
bool  multiSelect = false,
albaVME subTree = NULL 
)

◆ ~albaGUIVMEChooserTree()

virtual albaGUIVMEChooserTree::~albaGUIVMEChooserTree ( )
virtual

Member Function Documentation

◆ GetChoosedNode()

std::vector< albaVME * > albaGUIVMEChooserTree::GetChoosedNode ( )

Return the choosed node.

◆ OnIconClick()

virtual void albaGUIVMEChooserTree::OnIconClick ( wxTreeItemId  item)
virtual

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

Reimplemented from albaGUICheckTree.

◆ GetVmeStatus()

int albaGUIVMEChooserTree::GetVmeStatus ( albaVME node)
protectedvirtual

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

Reimplemented from albaGUICheckTree.

◆ VmeUpdateIcon()

void albaGUIVMEChooserTree::VmeUpdateIcon ( albaVME vme)
protected

◆ InitializeImageList()

void albaGUIVMEChooserTree::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 from albaGUICheckTree.

◆ CloneSubTree()

void albaGUIVMEChooserTree::CloneSubTree ( albaGUICheckTree tree,
wxTreeItemId *  source_item,
wxTreeItemId *  dest_parent_item 
)
protected

clone in tree a subtree of source_item

◆ ShowContextualMenu()

void albaGUIVMEChooserTree::ShowContextualMenu ( wxMouseEvent &  event)
protectedvirtual

Called by the Custom-Tree-Event-Handler.

Reimplemented from albaGUICheckTree.

◆ OnSelectionChanged()

virtual void albaGUIVMEChooserTree::OnSelectionChanged ( wxTreeEvent &  event)
protectedvirtual

respond to Selection Changed

Reimplemented from albaGUICheckTree.

Member Data Documentation

◆ m_ValidateFunction

ValidateCallBackType albaGUIVMEChooserTree::m_ValidateFunction
protected

Definition at line 74 of file albaGUIVMEChooserTree.h.

◆ m_ChoosedNode

albaVME* albaGUIVMEChooserTree::m_ChoosedNode
protected

Pointer to the selected node in single selection.

Definition at line 76 of file albaGUIVMEChooserTree.h.

◆ m_ChooserTreeStyle

long albaGUIVMEChooserTree::m_ChooserTreeStyle
protected

Definition at line 77 of file albaGUIVMEChooserTree.h.

◆ m_CheckedNode

std::vector<albaVME*> albaGUIVMEChooserTree::m_CheckedNode
protected

Vector of checked node (used in multi-selection)

Definition at line 78 of file albaGUIVMEChooserTree.h.

◆ m_MultipleSelection

bool albaGUIVMEChooserTree::m_MultipleSelection
protected

Flag that manage the single or multi selection of the nodes inside the tree.

Definition at line 79 of file albaGUIVMEChooserTree.h.


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