Multiselection and Models
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
GroupInstance::GroupInstance(void)
|
||||
{
|
||||
PVInstance::PVInstance();
|
||||
name = "Model";
|
||||
className = "GroupInstance";
|
||||
listicon = 12;
|
||||
}
|
||||
@@ -10,6 +11,8 @@ GroupInstance::GroupInstance(void)
|
||||
GroupInstance::GroupInstance(const GroupInstance &oinst)
|
||||
{
|
||||
PVInstance::PVInstance(oinst);
|
||||
name = "Model";
|
||||
className = "GroupInstance";
|
||||
listicon = 12;
|
||||
}
|
||||
|
||||
@@ -26,3 +29,14 @@ void GroupInstance::PropUpdate(LPPROPGRIDITEM &pItem)
|
||||
{
|
||||
PVInstance::PropUpdate(pItem);
|
||||
}
|
||||
|
||||
std::vector<Instance *> GroupInstance::unGroup()
|
||||
{
|
||||
std::vector<Instance *> child;
|
||||
while(children.size() > 0)
|
||||
{
|
||||
child.push_back(children[0]);
|
||||
children[0]->setParent(parent);
|
||||
}
|
||||
return child;
|
||||
}
|
||||
Reference in New Issue
Block a user