本文整理汇总了C++中OverlayComp::attrlist方法的典型用法代码示例。如果您正苦于以下问题:C++ OverlayComp::attrlist方法的具体用法?C++ OverlayComp::attrlist怎么用?C++ OverlayComp::attrlist使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OverlayComp
的用法示例。
在下文中一共展示了OverlayComp::attrlist方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Interpret
//.........这里部分代码省略.........
if (globalcb->IsEmpty()) {
return;
}
cmd->SetClipboard(cb = globalcb->DeepCopy());
}
for (cb->First(i); !cb->Done(i); cb->Next(i)) {
Append((OverlayComp*)cb->GetComp(i));
}
Notify();
SelectClipboard(cb, ed);
unidraw->Update();
} else if (cmd->IsA(DUP_CMD)) {
GraphicView* views = ed->GetViewer()->GetGraphicView();
OverlayComp* prev, *dup1;
Iterator i, pos;
Clipboard* cb = cmd->GetClipboard();
const float offset = 8;
MoveCmd move(ed, offset, offset);
if (cb == nil) {
OverlaySelection* s = (OverlaySelection*)ed->GetSelection();
if (s->IsEmpty()) {
return;
}
cmd->SetClipboard(cb = new Clipboard);
s->Sort(views);
for (s->First(i); !s->Done(i); s->Next(i)) {
OverlayComp* orig = s->GetView(i)->GetOverlayComp();
dup1 = (OverlayComp*) orig->Copy();
if (!dup1->attrlist() && orig->attrlist()) {
AttributeList* al = new AttributeList(orig->attrlist());
dup1->SetAttributeList(al);
}
dup1->Interpret(&move);
cb->Append(dup1);
}
cb->First(i);
dup1 = (OverlayComp*) cb->GetComp(i);
Last(pos);
prev = (OverlayComp*) GetComp(pos);
cmd->Store(dup1, new VoidData(prev));
} else {
cb->First(i);
dup1 = (OverlayComp*) cb->GetComp(i);
VoidData* vd = (VoidData*) cmd->Recall(dup1);
prev = (OverlayComp*) vd->_void;
SetComp(prev, pos);
}
for (cb->Last(i); !cb->Done(i); cb->Prev(i)) {
InsertAfter(pos, cb->GetComp(i));
}
Notify();
SelectClipboard(cb, ed);
unidraw->Update();
} else if (cmd->IsA(OVGROUP_CMD)) {
OvGroupCmd* gcmd = (OvGroupCmd*) cmd;
OverlayComp* group = gcmd->GetGroup();
Component* edComp = gcmd->GetEditor()->GetComponent();