MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

PnlObjTree Class Reference

Widget tree visualization. More...

#include <PnlObjTree.h>

Collaboration diagram for PnlObjTree:

Collaboration graph
[legend]
List of all members.

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
NtbSheetsource
 NtbSheet to search for items.
wxImageList * ImlIcons
 Image list for node icons.

Detailed Description

Widget tree visualization.

PnlObjTree show the herarchy of the allocated widgets in a wxTreeCtrl is derived from wxPanel

Definition at line 15 of file PnlObjTree.h.


Constructor & Destructor Documentation

PnlObjTree::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.

Definition at line 18 of file PnlObjTree.cpp.


Member Function Documentation

void PnlObjTree::Fill  )  [private]
 

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().

void PnlObjTree::FillFunction Graph3DFrame Object,
wxTreeItemId  NodeObject
[private]
 

Fill the function for a 3D graph.

Parameters:
Object the Graph3DFrame that contains the Tgrafico3d.
NodeObject the node of the Graph3DFrame.
See also:
FillFunction()

Definition at line 170 of file PnlObjTree.cpp.

References TLista3D::EstraiFlagDisegno(), TLista3D::EstraiFunzione(), Graph3DFrame::Grafico, TLista3D::numeroelementi, ObjTree, and WxGrafico::opzioni.

void PnlObjTree::FillFunction PnlGraphFrame Object,
wxTreeItemId  NodeObject
[private]
 

Fill the function for a 2D graph.

Parameters:
Object the 2DGraphFrame that contains the PnlGraph.
NodeObject the node of the PnlGraphFrame.
See also:
FillFunction()

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().

void PnlObjTree::OnItemMenu wxTreeEvent &  event  )  [private]
 

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.

void PnlObjTree::OnKeyDown wxTreeEvent &  event  )  [private]
 

Manage the key press event.

Definition at line 263 of file PnlObjTree.cpp.

References Fill(), ItdTreeNode::GetObj(), ItdTreeNode::GetPageN(), ItdTreeNode::GetType(), ObjTree, and source.

void PnlObjTree::OnSelectionChanged wxTreeEvent &  event  )  [private]
 

Select the clicked object.

Definition at line 184 of file PnlObjTree.cpp.

References ItdTreeNode::GetObj(), ItdTreeNode::GetPageN(), ItdTreeNode::GetType(), ObjTree, and source.

void PnlObjTree::OnSize wxSizeEvent &  event  )  [private]
 

Resize the ObjTree according to the panel.

Definition at line 78 of file PnlObjTree.cpp.

References ObjTree.


Member Data Documentation

wxImageList* PnlObjTree::ImlIcons [private]
 

Image list for node icons.

Definition at line 55 of file PnlObjTree.h.

wxTreeCtrl* PnlObjTree::ObjTree [private]
 

wxTreeCtrl where the herarchy is shown

Definition at line 33 of file PnlObjTree.h.

Referenced by Fill(), FillFunction(), OnItemMenu(), OnKeyDown(), OnSelectionChanged(), and OnSize().

NtbSheet* PnlObjTree::source [private]
 

NtbSheet to search for items.

Definition at line 36 of file PnlObjTree.h.

Referenced by Fill(), OnItemMenu(), OnKeyDown(), and OnSelectionChanged().


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

 

SourceForge Logo