本文整理汇总了C++中KisConfig::animationDropFrames方法的典型用法代码示例。如果您正苦于以下问题:C++ KisConfig::animationDropFrames方法的具体用法?C++ KisConfig::animationDropFrames怎么用?C++ KisConfig::animationDropFrames使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KisConfig
的用法示例。
在下文中一共展示了KisConfig::animationDropFrames方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QDockWidget
AnimationDocker::AnimationDocker()
: QDockWidget(i18n("Animation"))
, m_canvas(0)
, m_animationWidget(new Ui_WdgAnimation)
, m_mainWindow(0)
{
QWidget* mainWidget = new QWidget(this);
setWidget(mainWidget);
m_animationWidget->setupUi(mainWidget);
m_previousFrameAction = new KisAction(i18n("Previous Frame"), m_animationWidget->btnPreviousFrame);
m_previousFrameAction->setActivationFlags(KisAction::ACTIVE_IMAGE);
m_animationWidget->btnPreviousFrame->setDefaultAction(m_previousFrameAction);
m_nextFrameAction = new KisAction(i18n("Next Frame"), m_animationWidget->btnNextFrame);
m_nextFrameAction->setActivationFlags(KisAction::ACTIVE_IMAGE);
m_animationWidget->btnNextFrame->setDefaultAction(m_nextFrameAction);
m_previousKeyFrameAction = new KisAction(i18n("Previous Key Frame"), m_animationWidget->btnPreviousKeyFrame);
m_previousKeyFrameAction->setActivationFlags(KisAction::ACTIVE_IMAGE);
m_animationWidget->btnPreviousKeyFrame->setDefaultAction(m_previousKeyFrameAction);
m_nextKeyFrameAction = new KisAction(i18n("Next Key Frame"), m_animationWidget->btnNextKeyFrame);
m_nextKeyFrameAction->setActivationFlags(KisAction::ACTIVE_IMAGE);
m_animationWidget->btnNextKeyFrame->setDefaultAction(m_nextKeyFrameAction);
m_firstFrameAction = new KisAction(i18n("First Frame"), m_animationWidget->btnFirstFrame);
m_firstFrameAction->setActivationFlags(KisAction::ACTIVE_IMAGE);
m_animationWidget->btnFirstFrame->setDefaultAction(m_firstFrameAction);
m_lastFrameAction = new KisAction(i18n("Last Frame"), m_animationWidget->btnLastFrame);
m_lastFrameAction->setActivationFlags(KisAction::ACTIVE_IMAGE);
m_animationWidget->btnLastFrame->setDefaultAction(m_lastFrameAction);
m_playPauseAction = new KisAction(i18n("Play / Pause"), m_animationWidget->btnPlay);
m_playPauseAction->setActivationFlags(KisAction::ACTIVE_IMAGE);
m_animationWidget->btnPlay->setDefaultAction(m_playPauseAction);
m_addBlankFrameAction = new KisAction(KisAnimationUtils::addFrameActionName, m_animationWidget->btnAddKeyframe);
m_addBlankFrameAction->setActivationFlags(KisAction::ACTIVE_LAYER);
m_animationWidget->btnAddKeyframe->setDefaultAction(m_addBlankFrameAction);
m_addDuplicateFrameAction = new KisAction(KisAnimationUtils::duplicateFrameActionName, m_animationWidget->btnAddDuplicateFrame);
m_addDuplicateFrameAction->setActivationFlags(KisAction::ACTIVE_LAYER);
m_animationWidget->btnAddDuplicateFrame->setDefaultAction(m_addDuplicateFrameAction);
m_deleteKeyframeAction = new KisAction(KisAnimationUtils::removeFrameActionName, m_animationWidget->btnDeleteKeyframe);
m_deleteKeyframeAction->setActivationFlags(KisAction::ACTIVE_LAYER);
m_animationWidget->btnDeleteKeyframe->setDefaultAction(m_deleteKeyframeAction);
{
KisImageConfig cfg;
setupActionButton(KisAnimationUtils::lazyFrameCreationActionName,
KisAction::ACTIVE_IMAGE,
cfg.lazyFrameCreationEnabled(),
m_animationWidget->btnLazyFrame,
&m_lazyFrameAction);
}
{
KisConfig cfg;
setupActionButton(KisAnimationUtils::dropFramesActionName,
KisAction::ACTIVE_IMAGE,
cfg.animationDropFrames(),
m_animationWidget->btnDropFrames,
&m_dropFramesAction);
}
QFont font;
font.setPointSize(1.7 * font.pointSize());
font.setBold(true);
m_animationWidget->intCurrentTime->setFont(font);
connect(m_previousFrameAction, SIGNAL(triggered()), this, SLOT(slotPreviousFrame()));
connect(m_nextFrameAction, SIGNAL(triggered()), this, SLOT(slotNextFrame()));
connect(m_previousKeyFrameAction, SIGNAL(triggered()), this, SLOT(slotPreviousKeyFrame()));
connect(m_nextKeyFrameAction, SIGNAL(triggered()), this, SLOT(slotNextKeyFrame()));
connect(m_firstFrameAction, SIGNAL(triggered()), this, SLOT(slotFirstFrame()));
connect(m_lastFrameAction, SIGNAL(triggered()), this, SLOT(slotLastFrame()));
connect(m_playPauseAction, SIGNAL(triggered()), this, SLOT(slotPlayPause()));
connect(m_addBlankFrameAction, SIGNAL(triggered()), this, SLOT(slotAddBlankFrame()));
connect(m_addDuplicateFrameAction, SIGNAL(triggered()), this, SLOT(slotAddDuplicateFrame()));
connect(m_deleteKeyframeAction, SIGNAL(triggered()), this, SLOT(slotDeleteKeyframe()));
connect(m_lazyFrameAction, SIGNAL(toggled(bool)), this, SLOT(slotLazyFrameChanged(bool)));
connect(m_dropFramesAction, SIGNAL(toggled(bool)), this, SLOT(slotDropFramesChanged(bool)));
m_animationWidget->btnOnionSkinOptions->setToolTip(i18n("Onion Skins"));
connect(m_animationWidget->btnOnionSkinOptions, SIGNAL(clicked()), this, SLOT(slotOnionSkinOptions()));
connect(m_animationWidget->spinFromFrame, SIGNAL(valueChanged(int)), this, SLOT(slotUIRangeChanged()));
connect(m_animationWidget->spinToFrame, SIGNAL(valueChanged(int)), this, SLOT(slotUIRangeChanged()));
connect(m_animationWidget->intFramerate, SIGNAL(valueChanged(int)), this, SLOT(slotUIFramerateChanged()));
connect(m_animationWidget->intCurrentTime, SIGNAL(valueChanged(int)), SLOT(slotTimeSpinBoxChanged()));
//.........这里部分代码省略.........