KiCad PCB EDA Suite
HIERARCHY_TREE Class Reference
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

Definition at line 71 of file hierarch.cpp.

Constructor & Destructor Documentation

HIERARCHY_TREE::HIERARCHY_TREE ( )
inline

Definition at line 78 of file hierarch.cpp.

79  {
80  m_Parent = NULL;
81  imageList = NULL;
82  }
HIERARCHY_NAVIG_DLG * m_Parent
Definition: hierarch.cpp:74
wxImageList * imageList
Definition: hierarch.cpp:75
HIERARCHY_TREE::HIERARCHY_TREE ( HIERARCHY_NAVIG_DLG parent)

Definition at line 92 of file hierarch.cpp.

References KiBitmap().

92  :
93  wxTreeCtrl( (wxWindow*)parent, ID_TREECTRL_HIERARCHY, wxDefaultPosition, wxDefaultSize,
94  wxTR_HAS_BUTTONS, wxDefaultValidator, wxT( "HierachyTreeCtrl" ) )
95 {
96  m_Parent = parent;
97 
98  // Make an image list containing small icons
99  // All icons are expected having the same size.
100  wxBitmap tree_nosel_bm( KiBitmap( tree_nosel_xpm ) );
101  imageList = new wxImageList( tree_nosel_bm.GetWidth(),
102  tree_nosel_bm.GetHeight(), true, 2 );
103 
104  imageList->Add( tree_nosel_bm );
105  imageList->Add( KiBitmap( tree_sel_xpm ) );
106 
107  AssignImageList( imageList );
108 }
HIERARCHY_NAVIG_DLG * m_Parent
Definition: hierarch.cpp:74
wxImageList * imageList
Definition: hierarch.cpp:75
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 75 of file hierarch.cpp.

HIERARCHY_NAVIG_DLG* HIERARCHY_TREE::m_Parent
private

Definition at line 74 of file hierarch.cpp.


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