#include <PnlObjTree.h>
Collaboration diagram for PnlObjTree:
Public Member Functions | |
PnlObjTree (wxWindow *parent, wxWindowID id=-1, NtbSheet *_source=NULL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxTR_HAS_BUTTONS, const wxString &name=_T("PnlObjTree")) | |
Constructor. | |
Private Member Functions | |
void | OnSize (wxSizeEvent &event) |
Resize the ObjTree according to the panel. | |
void | OnSelectionChanged (wxTreeEvent &event) |
Select the clicked object. | |
void | OnItemMenu (wxTreeEvent &event) |
Shows the popoup menu for the selected item. | |
void | OnKeyDown (wxTreeEvent &event) |
Manage the key press event. | |
void | Fill () |
Fill the ObjTree. | |
void | FillFunction (PnlGraphFrame *Object, wxTreeItemId NodeObject) |
Fill the function for a 2D graph. | |
void | FillFunction (Graph3DFrame *Object, wxTreeItemId NodeObject) |
Fill the function for a 3D graph. | |
Private Attributes | |
wxTreeCtrl * | ObjTree |
wxTreeCtrl where the herarchy is shown | |
NtbSheet * | source |
NtbSheet to search for items. | |
wxImageList * | ImlIcons |
Image list for node icons. |
PnlObjTree show the herarchy of the allocated widgets in a wxTreeCtrl is derived from wxPanel
Definition at line 15 of file PnlObjTree.h.
|
Constructor.
Definition at line 18 of file PnlObjTree.cpp. |
|
Fill the ObjTree.
Definition at line 86 of file PnlObjTree.cpp. References TBasePanel::codice, TListaW::ExtractObject(), FillFunction(), PnlFoglio::gestionepannello, TListaW::numeroelementi, utilita::objects, ObjTree, and source. Referenced by MainFrm::BtnUpdateTreeClick(), and OnKeyDown(). |
|
Fill the function for a 3D graph.
Definition at line 170 of file PnlObjTree.cpp. References TLista3D::EstraiFlagDisegno(), TLista3D::EstraiFunzione(), Graph3DFrame::Grafico, TLista3D::numeroelementi, ObjTree, and WxGrafico::opzioni. |
|
Fill the function for a 2D graph.
Definition at line 157 of file PnlObjTree.cpp. References TLista::ExtractDrawFlag(), TLista::ExtractFunction(), OpzGrafico::functions, PnlGraphFrame::Grafico, TLista::nelements, ObjTree, and PnlGraph::options. Referenced by Fill(). |
|
Shows the popoup menu for the selected item.
Definition at line 212 of file PnlObjTree.cpp. References NtbSheet::click_position, ItdTreeNode::GetObj(), ItdTreeNode::GetPageN(), NtbSheet::GetPopUp(), ItdTreeNode::GetType(), ObjTree, and source. |
|
Manage the key press event.
Definition at line 263 of file PnlObjTree.cpp. References Fill(), ItdTreeNode::GetObj(), ItdTreeNode::GetPageN(), ItdTreeNode::GetType(), ObjTree, and source. |
|
Select the clicked object.
Definition at line 184 of file PnlObjTree.cpp. References ItdTreeNode::GetObj(), ItdTreeNode::GetPageN(), ItdTreeNode::GetType(), ObjTree, and source. |
|
Resize the ObjTree according to the panel.
Definition at line 78 of file PnlObjTree.cpp. References ObjTree. |
|
Image list for node icons.
Definition at line 55 of file PnlObjTree.h. |
|
wxTreeCtrl where the herarchy is shown
Definition at line 33 of file PnlObjTree.h. Referenced by Fill(), FillFunction(), OnItemMenu(), OnKeyDown(), OnSelectionChanged(), and OnSize(). |
|
NtbSheet to search for items.
Definition at line 36 of file PnlObjTree.h. Referenced by Fill(), OnItemMenu(), OnKeyDown(), and OnSelectionChanged(). |