KiCad PCB EDA Suite
HIERARCHY_TREE Class Reference

Handle hierarchy tree control. More...

Inheritance diagram for HIERARCHY_TREE:

Public Member Functions

 HIERARCHY_TREE ()
 
 HIERARCHY_TREE (HIERARCHY_NAVIG_DLG *parent)
 

Private Attributes

HIERARCHY_NAVIG_DLGm_Parent
 
wxImageList * imageList
 

Detailed Description

Handle hierarchy tree control.

Definition at line 76 of file hierarch.cpp.

Constructor & Destructor Documentation

HIERARCHY_TREE::HIERARCHY_TREE ( )
inline

Definition at line 83 of file hierarch.cpp.

84  {
85  m_Parent = NULL;
86  imageList = NULL;
87  }
HIERARCHY_NAVIG_DLG * m_Parent
Definition: hierarch.cpp:79
wxImageList * imageList
Definition: hierarch.cpp:80
HIERARCHY_TREE::HIERARCHY_TREE ( HIERARCHY_NAVIG_DLG parent)

Definition at line 98 of file hierarch.cpp.

References KiBitmap().

98  :
99  wxTreeCtrl( (wxWindow*)parent, ID_TREECTRL_HIERARCHY, wxDefaultPosition, wxDefaultSize,
100  wxTR_HAS_BUTTONS, wxDefaultValidator, wxT( "HierachyTreeCtrl" ) )
101 {
102  m_Parent = parent;
103 
104  // Make an image list containing small icons
105  // All icons are expected having the same size.
106  wxBitmap tree_nosel_bm( KiBitmap( tree_nosel_xpm ) );
107  imageList = new wxImageList( tree_nosel_bm.GetWidth(),
108  tree_nosel_bm.GetHeight(), true, 2 );
109 
110  imageList->Add( tree_nosel_bm );
111  imageList->Add( KiBitmap( tree_sel_xpm ) );
112 
113  AssignImageList( imageList );
114 }
HIERARCHY_NAVIG_DLG * m_Parent
Definition: hierarch.cpp:79
wxImageList * imageList
Definition: hierarch.cpp:80
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Function KiBitmap constructs a wxBitmap from a memory record, held in a BITMAP_DEF.
Definition: bitmap.cpp:36

Member Data Documentation

wxImageList* HIERARCHY_TREE::imageList
private

Definition at line 80 of file hierarch.cpp.

HIERARCHY_NAVIG_DLG* HIERARCHY_TREE::m_Parent
private

Definition at line 79 of file hierarch.cpp.


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