ALBA
|
#include <albaGUICheckTree.h>
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) |
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 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 | |
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 |
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.
|
protected |
Definition at line 137 of file albaGUICheckTree.h.
albaGUICheckTree::albaGUICheckTree | ( | wxWindow * | parent, |
wxWindowID | id = -1 , |
||
bool | CloseButton = false , |
||
bool | HideTitle = false |
||
) |
constructor .
|
virtual |
destructor .
void albaGUICheckTree::VmeAdd | ( | albaVME * | vme | ) |
Add the vme to the checked tree and create the related icon.
void albaGUICheckTree::VmeRemove | ( | albaVME * | vme | ) |
Remove the vme from the checked tree.
void albaGUICheckTree::VmeSelected | ( | albaVME * | vme | ) |
Select the vme node of the checked tree.
|
inline |
Return the current selected node.
Definition at line 62 of file albaGUICheckTree.h.
bool albaGUICheckTree::IsIconChecked | ( | wxTreeItemId | item | ) |
Return true if the icon associated to the tree item is checked.
void albaGUICheckTree::VmeShow | ( | albaVME * | vme, |
bool | show | ||
) |
Update the vme node icon into the checked tree.
void albaGUICheckTree::VmeModified | ( | albaVME * | vme | ) |
Update the vme node label with the new vme name.
void albaGUICheckTree::ViewSelected | ( | albaView * | view | ) |
Update the vme tree nodes with the new vme visibility for the selected view.
void albaGUICheckTree::ViewDeleted | ( | albaView * | view | ) |
Update the vme tree nodes when a view is deleted.
void albaGUICheckTree::EnableSelect | ( | bool | enable | ) |
Enable the selection of a node tree.
|
inline |
Retrieve wxwindows widget pointer of the tree.
Definition at line 88 of file albaGUICheckTree.h.
References albaGUITree::m_NodeTree.
|
protected |
Update the vme nodes icon.
|
protected |
Update all the vme nodes icon.
|
protectedvirtual |
Return the status of the node according to the vme visibility.
Reimplemented in albaGUIVMEChooserTree.
|
protected |
retrieve the icon-index for a vme given the classname
|
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.
|
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.
void albaGUICheckTree::OnMouseDown | ( | wxMouseEvent & | event | ) |
Called by the Custom-Tree-Event-Handler.
void albaGUICheckTree::OnMouseUp | ( | wxMouseEvent & | event | ) |
Called by the Custom-Tree-Event-Handler.
void albaGUICheckTree::OnMouseEvent | ( | wxMouseEvent & | event | ) |
Called by the Custom-Tree-Event-Handler.
|
virtual |
Called by the Custom-Tree-Event-Handler - via OnMouseDown.
Reimplemented in albaGUIVMEChooserTree.
|
virtual |
Called by the Custom-Tree-Event-Handler.
Reimplemented in albaGUIVMEChooserTree.
|
virtual |
respond to Selection Changed
Reimplemented from albaGUITree.
Reimplemented in albaGUIVMEChooserTree.
|
protected |
Definition at line 131 of file albaGUICheckTree.h.
|
protected |
Definition at line 132 of file albaGUICheckTree.h.
|
protected |
Definition at line 134 of file albaGUICheckTree.h.
|
protected |
Definition at line 135 of file albaGUICheckTree.h.
|
protected |
Definition at line 138 of file albaGUICheckTree.h.