41 std::function<std::pair<QIcon, std::string>(
const DrawableObject&)>;
46 Ui::DrawableObjectVectorTree* mUI;
49 std::shared_ptr<DrawableObjectVector> mDrawList;
52 IconFunction mIconFunction =
nullptr;
57 const std::shared_ptr<DrawableObjectVector>& v,
58 QWidget*
parent =
nullptr);
61 void setIconFunction(
const IconFunction& f);
63 void setDrawableObjectVector(
64 const std::shared_ptr<vcl::DrawableObjectVector>& v);
66 uint selectedDrawableObject()
const;
71 bool setSelectedItem(uint
i);
74 void drawableObjectSelectionChanged(uint
i);
75 void drawableObjectVisibilityChanged();
78 void updateDrawableVectorTree();
81 void itemSelectionChanged();
82 void itemCheckStateChanged(QTreeWidgetItem*
item,
int column);