From 99e499604bef7e3d27627b1fd275d14d598fd468 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 2 Jan 2018 17:12:04 -0800 Subject: [PATCH] Library Editor: Place CMP_TREE_NODE in context --- eeschema/cmp_tree_model.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eeschema/cmp_tree_model.h b/eeschema/cmp_tree_model.h index ab062ee4a..afd43fdbc 100644 --- a/eeschema/cmp_tree_model.h +++ b/eeschema/cmp_tree_model.h @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -74,7 +75,11 @@ class LIB_ALIAS; * - `LibId` - the #LIB_ID this alias or unit is from, or not valid * - `Unit` - the unit number, or zero for non-units */ -class CMP_TREE_NODE { +class CMP_TREE_NODE : public wxDataViewItem { +protected: + wxString _name; + int _type; + public: enum TYPE { ROOT, LIB, LIBID, UNIT, INVALID -- 2.11.0