setupUi(this);
if (m_max == -1) {
// special case: keyframe for tracks, do not allow keyframes
- button_add->setEnabled(false);
- button_delete->setEnabled(false);
- keyframe_seek->setEnabled(false);
widgetTable->setHidden(true);
}
m_params.append(e.cloneNode().toElement());
keyframe_list->setFont(KGlobalSettings::generalFont());
- keyframe_seek->setChecked(KdenliveSettings::keyframeseek());
- connect(keyframe_seek, SIGNAL(stateChanged(int)), this, SLOT(slotSetSeeking(int)));
+ buttonSeek->setChecked(KdenliveSettings::keyframeseek());
+ connect(buttonSeek, SIGNAL(toggled(bool)), this, SLOT(slotSetSeeking(bool)));
buttonKeyframes->setIcon(KIcon("list-add"));
button_add->setIcon(KIcon("list-add"));
button_delete->setIcon(KIcon("list-remove"));
button_delete->setToolTip(i18n("Delete keyframe"));
buttonResetKeyframe->setIcon(KIcon("edit-undo"));
+ buttonSeek->setIcon(KIcon("insert-link"));
connect(keyframe_list, SIGNAL(itemSelectionChanged()), this, SLOT(slotAdjustKeyframeInfo()));
connect(keyframe_list, SIGNAL(cellChanged(int, int)), this, SLOT(slotGenerateParams(int, int)));
setupParam();
return m_timecode.getTimecodeFromFrames(pos);
}
-void KeyframeEdit::slotSetSeeking(int state)
+void KeyframeEdit::slotSetSeeking(bool seek)
{
- KdenliveSettings::setKeyframeseek(state == Qt::Checked);
+ KdenliveSettings::setKeyframeseek(seek);
}
void KeyframeEdit::updateTimecodeFormat()
void slotAdjustKeyframeValue(int value);
/** @brief Turns the seek to keyframe position setting on/off.
* @param state State of the associated checkbox */
- void slotSetSeeking(int state);
+ void slotSetSeeking(bool seek);
/** @brief Shows the keyframe table and adds a second keyframe. */
void slotKeyframeMode();
<rect>
<x>0</x>
<y>0</y>
- <width>336</width>
- <height>190</height>
+ <width>346</width>
+ <height>196</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>0</number>
</property>
- <item row="3" column="0" colspan="4">
+ <item row="3" column="0" colspan="5">
<widget class="QTableWidget" name="keyframe_list">
<property name="alternatingRowColors">
<bool>true</bool>
</property>
</widget>
</item>
- <item row="4" column="3">
- <widget class="QCheckBox" name="keyframe_seek">
- <property name="text">
- <string>Seek to active keyframe</string>
- </property>
- </widget>
- </item>
<item row="5" column="0" colspan="2">
<widget class="QLabel" name="label">
<property name="text">
</property>
</widget>
</item>
- <item row="5" column="2" colspan="2">
+ <item row="5" column="2" colspan="3">
<widget class="QSlider" name="keyframe_pos">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
+ <item row="4" column="3">
+ <widget class="QToolButton" name="buttonSeek">
+ <property name="toolTip">
+ <string>Seek to active keyframe</string>
+ </property>
+ <property name="text">
+ <string>...</string>
+ </property>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
+ <item row="0" column="0" colspan="3">
+ <widget class="Line" name="line_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
<resources/>