mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -06:00
Functions "Add/Delete" objects to/from list works correct now
This commit is contained in:
parent
5c4c912132
commit
c857b68fbe
5 changed files with 64 additions and 30 deletions
|
@ -207,7 +207,7 @@ public:
|
|||
|
||||
class MyObjectTreeModel :public wxDataViewModel
|
||||
{
|
||||
std::set<MyObjectTreeModelNode*> m_objects;
|
||||
std::vector<MyObjectTreeModelNode*> m_objects;
|
||||
public:
|
||||
MyObjectTreeModel(){}
|
||||
~MyObjectTreeModel()
|
||||
|
@ -216,9 +216,9 @@ public:
|
|||
delete object;
|
||||
}
|
||||
|
||||
void Add(wxString &name);
|
||||
void AddChild(const wxDataViewItem &parent_item, wxString &name);
|
||||
void Delete(const wxDataViewItem &item);
|
||||
wxDataViewItem Add(wxString &name);
|
||||
wxDataViewItem AddChild(const wxDataViewItem &parent_item, wxString &name);
|
||||
wxDataViewItem Delete(const wxDataViewItem &item);
|
||||
bool IsEmpty() { return m_objects.empty(); }
|
||||
|
||||
// helper method for wxLog
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue