本文整理汇总了C++中TupScene::insertStoryBoardScene方法的典型用法代码示例。如果您正苦于以下问题:C++ TupScene::insertStoryBoardScene方法的具体用法?C++ TupScene::insertStoryBoardScene怎么用?C++ TupScene::insertStoryBoardScene使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TupScene
的用法示例。
在下文中一共展示了TupScene::insertStoryBoardScene方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: createFrame
bool TupCommandExecutor::createFrame(TupFrameResponse *response)
{
#ifdef K_DEBUG
#ifdef Q_OS_WIN32
qDebug() << "[TupCommandExecutor::createFrame()]";
#else
T_FUNCINFO;
#endif
#endif
int scenePosition = response->sceneIndex();
int layerPosition = response->layerIndex();
int position = response->frameIndex();
QString name = response->arg().toString();
// QString state = response->state();
TupScene *scene = m_project->scene(scenePosition);
if (!scene)
return false;
scene->insertStoryBoardScene(position);
TupLayer *layer = scene->layer(layerPosition);
if (layer) {
TupFrame *frame = layer->createFrame(name, position);
if (!frame)
return false;
/*
if (!name.isEmpty()) {
#ifdef K_DEBUG
tDebug("items") << name;
#endif
frame->setFrameName(name);
} else {
response->setArg(frame->frameName());
}
*/
response->setArg(frame->frameName());
response->setFrameIndex(layer->visualIndexOf(frame));
emit responsed(response);
/* SQA: Check if this code is really necessary
if (!state.isEmpty()) {
frame->fromXml(state);
response->setArg(frame->frameName());
}
*/
return true;
}
return false;
}