ALBA
|
#include <albaGUIVMEChooserTree.h>
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) |
albaVME * | GetSelectedNode () |
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 |
albaVME * | m_ChoosedNode |
long | m_ChooserTreeStyle |
std::vector< albaVME * > | m_CheckedNode |
bool | m_MultipleSelection |
Protected Attributes inherited from albaGUICheckTree | |
albaView * | m_View |
albaVME * | m_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 |
albaObserver * | m_Listener |
Protected Attributes inherited from albaGUINamedPanel | |
wxPanel * | m_Top |
albaGUILab * | m_Label |
wxBoxSizer * | m_Sizer |
wxBoxSizer * | m_TopSizer |
albaGUINamedPanel * | m_NextPanel |
wxColour | m_Color |
Additional Inherited Members | |
Public Attributes inherited from albaGUIPanel | |
albaGUIPanel * | m_NextPanel |
Protected Types inherited from albaGUICheckTree | |
typedef std::map< wxString, int > | MapClassNameToIcon |
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.
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 |
||
) |
|
virtual |
std::vector< albaVME * > albaGUIVMEChooserTree::GetChoosedNode | ( | ) |
Return the choosed node.
|
virtual |
Called by the Custom-Tree-Event-Handler - via OnMouseDown.
Reimplemented from albaGUICheckTree.
|
protectedvirtual |
Return the status of the node according to the vme visibility.
Reimplemented from albaGUICheckTree.
|
protected |
|
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.
|
protected |
clone in tree a subtree of source_item
|
protectedvirtual |
Called by the Custom-Tree-Event-Handler.
Reimplemented from albaGUICheckTree.
|
protectedvirtual |
respond to Selection Changed
Reimplemented from albaGUICheckTree.
|
protected |
Definition at line 74 of file albaGUIVMEChooserTree.h.
|
protected |
Pointer to the selected node in single selection.
Definition at line 76 of file albaGUIVMEChooserTree.h.
|
protected |
Definition at line 77 of file albaGUIVMEChooserTree.h.
|
protected |
Vector of checked node (used in multi-selection)
Definition at line 78 of file albaGUIVMEChooserTree.h.
|
protected |
Flag that manage the single or multi selection of the nodes inside the tree.
Definition at line 79 of file albaGUIVMEChooserTree.h.