本文整理汇总了C++中ProjectPtr::get方法的典型用法代码示例。如果您正苦于以下问题:C++ ProjectPtr::get方法的具体用法?C++ ProjectPtr::get怎么用?C++ ProjectPtr::get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProjectPtr
的用法示例。
在下文中一共展示了ProjectPtr::get方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: EffectInstance
OneViewNode::OneViewNode(const NodePtr& n)
: EffectInstance(n)
, _imp( new OneViewNodePrivate() )
{
setSupportsRenderScaleMaybe(eSupportsYes);
if (n) {
ProjectPtr project = n->getApp()->getProject();
QObject::connect( project.get(), SIGNAL(projectViewsChanged()), this, SLOT(onProjectViewsChanged()) );
}
}
示例2: onProjectNameChanged
NATRON_NAMESPACE_ENTER
void
Gui::setupUi()
{
onProjectNameChanged(QString(), false);
setMouseTracking(true);
installEventFilter(this);
assert( !isFullScreen() );
//Gui::loadStyleSheet();
///Restores position, size of the main window as well as whether it was fullscreen or not.
_imp->restoreGuiGeometry();
_imp->_undoStacksGroup = new QUndoGroup;
createMenuActions();
/*CENTRAL AREA*/
//======================
_imp->_centralWidget = new QWidget(this);
setCentralWidget(_imp->_centralWidget);
_imp->_mainLayout = new QHBoxLayout(_imp->_centralWidget);
_imp->_mainLayout->setContentsMargins(0, 0, 0, 0);
_imp->_centralWidget->setLayout(_imp->_mainLayout);
_imp->_leftRightSplitter = new Splitter(Qt::Horizontal, this, _imp->_centralWidget);
_imp->_leftRightSplitter->setChildrenCollapsible(false);
_imp->_leftRightSplitter->setObjectName( QString::fromUtf8(kMainSplitterObjectName) );
getApp()->registerSplitter(_imp->_leftRightSplitter);
_imp->_leftRightSplitter->setOrientation(Qt::Horizontal);
_imp->_leftRightSplitter->setContentsMargins(0, 0, 0, 0);
_imp->_toolBox = new AutoHideToolBar(this, _imp->_leftRightSplitter);
_imp->_toolBox->setToolButtonStyle(Qt::ToolButtonIconOnly);
_imp->_toolBox->setOrientation(Qt::Vertical);
_imp->_toolBox->setMaximumWidth( TO_DPIX(NATRON_TOOL_BUTTON_SIZE) );
if (_imp->leftToolBarDisplayedOnHoverOnly) {
_imp->refreshLeftToolBarVisibility( mapFromGlobal( QCursor::pos() ) );
}
_imp->_leftRightSplitter->addWidget(_imp->_toolBox);
_imp->_mainLayout->addWidget(_imp->_leftRightSplitter);
_imp->createNodeGraphGui();
_imp->createAnimationModuleGui();
_imp->createScriptEditorGui();
_imp->createProgressPanelGui();
///Must be absolutely called once _nodeGraphArea has been initialized.
_imp->createPropertiesBinGui();
ProjectPtr project = getApp()->getProject();
_imp->_projectGui = new ProjectGui(this);
_imp->_projectGui->create(project,
_imp->_layoutPropertiesBin,
this);
_imp->_errorLog = new LogWindow(0);
_imp->_errorLog->hide();
createDefaultLayoutInternal(false);
initProjectGuiKnobs();
setVisibleProjectSettingsPanel();
_imp->_aboutWindow = new AboutWindow(this, this);
_imp->_aboutWindow->hide();
//the same action also clears the ofx plugins caches, they are not the same cache but are used to the same end
QObject::connect( project.get(), SIGNAL(projectNameChanged(QString,bool)), this, SLOT(onProjectNameChanged(QString,bool)) );
TimeLinePtr timeline = project->getTimeLine();
QObject::connect( timeline.get(), SIGNAL(frameChanged(SequenceTime,int)), this, SLOT(onTimelineTimeChanged(SequenceTime,int)) );
QObject::connect( timeline.get(), SIGNAL(frameAboutToChange()), this, SLOT(onTimelineTimeAboutToChange()) );
/*Searches recursively for all child objects of the given object,
and connects matching signals from them to slots of object that follow the following form:
void on_<object name>_<signal name>(<signal parameters>);
Let's assume our object has a child object of type QPushButton with the object name button1.
The slot to catch the button's clicked() signal would be:
void on_button1_clicked();
If object itself has a properly set object name, its own signals are also connected to its respective slots.
*/
QMetaObject::connectSlotsByName(this);
//.........这里部分代码省略.........