本文整理汇总了C++中NodeGuiPtr::getUndoStack方法的典型用法代码示例。如果您正苦于以下问题:C++ NodeGuiPtr::getUndoStack方法的具体用法?C++ NodeGuiPtr::getUndoStack怎么用?C++ NodeGuiPtr::getUndoStack使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NodeGuiPtr
的用法示例。
在下文中一共展示了NodeGuiPtr::getUndoStack方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: mediumBSize
NodeSettingsPanel::NodeSettingsPanel(const boost::shared_ptr<MultiInstancePanel> & multiPanel,
Gui* gui,
const NodeGuiPtr &NodeUi,
QVBoxLayout* container,
QWidget *parent)
: DockablePanel(gui,
multiPanel.get() != NULL ? dynamic_cast<KnobHolder*>( multiPanel.get() ) : NodeUi->getNode()->getEffectInstance().get(),
container,
DockablePanel::eHeaderModeFullyFeatured,
false,
NodeUi->getUndoStack(),
QString::fromUtf8( NodeUi->getNode()->getLabel().c_str() ),
QString::fromUtf8( NodeUi->getNode()->getPluginDescription().c_str() ),
false,
QString::fromUtf8("Settings"),
parent)
, _nodeGUI(NodeUi)
, _selected(false)
, _settingsButton(0)
, _multiPanel(multiPanel)
{
if (multiPanel) {
multiPanel->initializeKnobsPublic();
}
QObject::connect( this, SIGNAL(closeChanged(bool)), NodeUi.get(), SLOT(onSettingsPanelClosedChanged(bool)) );
const QSize mediumBSize( TO_DPIX(NATRON_MEDIUM_BUTTON_SIZE), TO_DPIY(NATRON_MEDIUM_BUTTON_SIZE) );
const QSize mediumIconSize( TO_DPIX(NATRON_MEDIUM_BUTTON_ICON_SIZE), TO_DPIY(NATRON_MEDIUM_BUTTON_ICON_SIZE) );
QPixmap pixSettings;
appPTR->getIcon(NATRON_PIXMAP_SETTINGS, TO_DPIX(NATRON_MEDIUM_BUTTON_ICON_SIZE), &pixSettings);
_settingsButton = new Button( QIcon(pixSettings), QString(), getHeaderWidget() );
_settingsButton->setFixedSize(mediumBSize);
_settingsButton->setIconSize(mediumIconSize);
_settingsButton->setToolTip( GuiUtils::convertFromPlainText(tr("Settings and presets."), Qt::WhiteSpaceNormal) );
_settingsButton->setFocusPolicy(Qt::NoFocus);
QObject::connect( _settingsButton, SIGNAL(clicked()), this, SLOT(onSettingsButtonClicked()) );
insertHeaderWidget(1, _settingsButton);
}