本文整理汇总了C++中TApp::getCurrentFx方法的典型用法代码示例。如果您正苦于以下问题:C++ TApp::getCurrentFx方法的具体用法?C++ TApp::getCurrentFx怎么用?C++ TApp::getCurrentFx使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TApp
的用法示例。
在下文中一共展示了TApp::getCurrentFx方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QDialog
FxParamEditorPopup::FxParamEditorPopup()
: QDialog(TApp::instance()->getMainWindow()) {
setWindowTitle(tr("Fx Settings"));
setMinimumSize(20, 20);
TApp *app = TApp::instance();
TSceneHandle *hScene = app->getCurrentScene();
TPixel32 col1, col2;
Preferences::instance()->getChessboardColors(col1, col2);
FxSettings *fxSettings = new FxSettings(this, col1, col2);
fxSettings->setSceneHandle(hScene);
fxSettings->setFxHandle(app->getCurrentFx());
fxSettings->setFrameHandle(app->getCurrentFrame());
fxSettings->setXsheetHandle(app->getCurrentXsheet());
fxSettings->setLevelHandle(app->getCurrentLevel());
fxSettings->setObjectHandle(app->getCurrentObject());
fxSettings->setCurrentFx();
QVBoxLayout *mainLayout = new QVBoxLayout();
mainLayout->setMargin(0);
mainLayout->setSpacing(10);
{ mainLayout->addWidget(fxSettings); }
setLayout(mainLayout);
move(parentWidget()->geometry().center() - rect().bottomRight() / 2.0);
}
示例2: attachHandles
void FunctionViewerPanel::attachHandles() {
TApp *app = TApp::instance();
m_functionViewer->setXsheetHandle(app->getCurrentXsheet());
m_functionViewer->setFrameHandle(app->getCurrentFrame());
m_functionViewer->setObjectHandle(app->getCurrentObject());
m_functionViewer->setFxHandle(app->getCurrentFx());
m_functionViewer->setColumnHandle(app->getCurrentColumn());
m_functionViewer->setSceneHandle(app->getCurrentScene());
}
示例3: onReplace
void InsertFxPopup::onReplace()
{
TFx *fx = createFx();
if (fx) {
TApp *app = TApp::instance();
TXsheetHandle *xshHandle = app->getCurrentXsheet();
QList<TFxP> fxs;
FxSelection *selection = dynamic_cast<FxSelection *>(app->getCurrentSelection()->getSelection());
if (selection)
fxs = selection->getFxs();
TFxCommand::replaceFx(fx, fxs, app->getCurrentXsheet(), app->getCurrentFx());
xshHandle->notifyXsheetChanged();
}
}