本文整理汇总了C++中OverlayComp::Append方法的典型用法代码示例。如果您正苦于以下问题:C++ OverlayComp::Append方法的具体用法?C++ OverlayComp::Append怎么用?C++ OverlayComp::Append使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OverlayComp
的用法示例。
在下文中一共展示了OverlayComp::Append方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Uninterpret
//.........这里部分代码省略.........
edComp->Uninterpret(gcmd);
} else if (edComp == (Component*) this) {
Clipboard* cb = cmd->GetClipboard();
Iterator i;
cb->First(i);
OverlayComp* group = (OverlayComp*) cb->GetComp(i)->GetParent();
GroupCmd* gcmd = (GroupCmd*) cmd;
unidraw->CloseDependents(group);
for (cb->Last(i); !cb->Done(i); cb->Prev(i)) {
RestorePosition((OverlayComp*)cb->GetComp(i), cmd);
}
Remove(group);
Notify();
SelectClipboard(cb, ed);
unidraw->Update();
} else {
OverlayComp::Uninterpret(gcmd);
}
} else if (cmd->IsA(UNGROUP_CMD)) {
UngroupCmd* ucmd = (UngroupCmd*) cmd;
Component* edComp = ucmd->GetEditor()->GetComponent();
if (edComp == (Component*) this) {
Clipboard* cb = ucmd->GetClipboard();
Clipboard* kids = ucmd->GetKids();
Clipboard insertedParents;
Iterator k;
for (kids->First(k); !kids->Done(k); kids->Next(k)) {
OverlayComp* kid = (OverlayComp*) kids->GetComp(k);
UngroupData* ud = (UngroupData*) cmd->Recall(kid);
OverlayComp* parent = (OverlayComp*)ud->_parent;
*kid->GetGraphic() = *ud->_gs;
if (!insertedParents.Includes(parent)) {
GSData* gd = (GSData*) cmd->Recall(parent);
*parent->GetGraphic() = *gd->_gs;
Iterator insertPt;
SetComp(kid, insertPt);
InsertBefore(insertPt, parent);
insertedParents.Append(parent);
}
Remove(kid);
parent->Append(kid);
}
Notify();
SelectClipboard(cb, ed);
unidraw->Update();
delete kids;
ucmd->SetKids(nil);
}
} else if (cmd->IsA(FRONT_CMD)) {
Component* edComp = cmd->GetEditor()->GetComponent();
if (edComp == (Component*) this) {
Clipboard* cb = cmd->GetClipboard();
Iterator i;
for (cb->Last(i); !cb->Done(i); cb->Prev(i)) {
RestorePosition((OverlayComp*)cb->GetComp(i), cmd);
}
Notify();
SelectClipboard(cb, ed);
unidraw->Update();
} else {
OverlayComp::Uninterpret(cmd);
}
} else if (cmd->IsA(BACK_CMD)) {
Component* edComp = cmd->GetEditor()->GetComponent();
if (edComp == (Component*) this) {
Clipboard* cb = cmd->GetClipboard();
Iterator i;
for (cb->First(i); !cb->Done(i); cb->Next(i)) {
RestorePosition((OverlayComp*)cb->GetComp(i), cmd);
}
Notify();
SelectClipboard(cb, ed);
unidraw->Update();
} else {
OverlayComp::Uninterpret(cmd);
}
} else {
OverlayComp::Uninterpret(cmd);
}
}