本文整理汇总了C++中TupScene::sceneName方法的典型用法代码示例。如果您正苦于以下问题:C++ TupScene::sceneName方法的具体用法?C++ TupScene::sceneName怎么用?C++ TupScene::sceneName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TupScene
的用法示例。
在下文中一共展示了TupScene::sceneName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: recoverScene
QString TupProject::recoverScene(int pos) const
{
TupScene *scene = k->undoScenes.takeLast();
if (scene) {
k->scenes[pos] = scene;
return scene->sceneName();
}
return "";
}
示例2: qDebug
TupScene *TupProject::createScene(QString name, int position, bool loaded)
{
#ifdef K_DEBUG
#ifdef Q_OS_WIN
qDebug() << "[TupProject::createScene()]";
#else
T_FUNCINFO;
#endif
#endif
if (position < 0 || position > k->scenes.count())
return 0;
TupScene *scene = new TupScene(this, k->dimension, k->bgColor);
k->scenes.insert(position, scene);
k->sceneCounter++;
scene->setSceneName(name);
if (loaded)
TupProjectLoader::createScene(scene->sceneName(), position, this);
return scene;
}
示例3: removeScene
bool TupCommandExecutor::removeScene(TupSceneResponse *response)
{
#ifdef K_DEBUG
T_FUNCINFO;
#endif
int position = response->sceneIndex();
int scenesTotal = m_project->scenesTotal();
TupScene *toRemove = m_project->scene(position);
if (toRemove) {
QDomDocument document;
document.appendChild(toRemove->toXml(document));
response->setState(document.toString());
response->setArg(toRemove->sceneName());
if (m_project->removeScene(position)) {
if (position+1 < scenesTotal) {
for (int i = position + 1; i < scenesTotal; i++)
m_project->moveScene(i, i-1);
}
emit responsed(response);
return true;
}
} else {
#ifdef K_DEBUG
tError() << "TupCommandExecutor::removeScene() - Scene doesn't exist (" << position << ")";
#endif
}
return false;
}