void ModelObjectTypeListView::addModelObjectType(const IddObjectType& iddObjectType, const std::string& name) { OSCollapsibleItemHeader* collapsibleItemHeader = new OSCollapsibleItemHeader(name, OSItemId("", "", false), m_headerType); auto modelObjectListView = new ModelObjectListView(iddObjectType, m_model, false,m_showLocalBCL); auto modelObjectTypeItem = new ModelObjectTypeItem(collapsibleItemHeader, modelObjectListView); addCollapsibleItem(modelObjectTypeItem); }
void ScriptFolderListView::addScriptFolder(const openstudio::path &folder, const std::string& name) { OSCollapsibleItemHeader* collapsibleItemHeader = new OSCollapsibleItemHeader(name, OSItemId("", "", false,""), m_headerType); ScriptsListView* scriptsListView = new ScriptsListView(m_rootPath / folder, false, m_draggable, m_removeable, m_fswatcher); OSCollapsibleItem* folderTypeItem = new OSCollapsibleItem(collapsibleItemHeader, scriptsListView); LOG(Debug, "Adding scriptslistview: " << openstudio::toString(m_rootPath/folder)); m_displayNames[m_rootPath / folder] = name; m_scriptsListViews[m_rootPath / folder] = scriptsListView; addCollapsibleItem(folderTypeItem); }