m_configEnv.mltpathurl->setMode(KFile::Directory);
m_configEnv.mltpathurl->lineEdit()->setObjectName("kcfg_mltpath");
m_configEnv.rendererpathurl->lineEdit()->setObjectName("kcfg_rendererpath");
+ m_configEnv.ffmpegurl->lineEdit()->setObjectName("kcfg_ffmpegpath");
+ m_configEnv.ffplayurl->lineEdit()->setObjectName("kcfg_ffplaypath");
m_configEnv.kcfg_mltthreads->setMaximum( QThread::idealThreadCount() < 4 ? QThread::idealThreadCount() : 3 );
m_configEnv.tmppathurl->setMode(KFile::Directory);
m_configEnv.tmppathurl->lineEdit()->setObjectName("kcfg_currenttmpfolder");
m_configShuttle.shuttledisabled->hide();
// Store the button pointers into an array for easier handling them in the other functions.
+ // TODO: impl enumerator or live with cut and paste :-)))
m_shuttle_buttons.push_back(m_configShuttle.shuttle1);
m_shuttle_buttons.push_back(m_configShuttle.shuttle2);
m_shuttle_buttons.push_back(m_configShuttle.shuttle3);
m_shuttle_buttons.push_back(m_configShuttle.shuttle4);
m_shuttle_buttons.push_back(m_configShuttle.shuttle5);
+ m_shuttle_buttons.push_back(m_configShuttle.shuttle6);
+ m_shuttle_buttons.push_back(m_configShuttle.shuttle7);
+ m_shuttle_buttons.push_back(m_configShuttle.shuttle8);
+ m_shuttle_buttons.push_back(m_configShuttle.shuttle9);
+ m_shuttle_buttons.push_back(m_configShuttle.shuttle10);
+ m_shuttle_buttons.push_back(m_configShuttle.shuttle11);
+ m_shuttle_buttons.push_back(m_configShuttle.shuttle12);
+ m_shuttle_buttons.push_back(m_configShuttle.shuttle13);
+ m_shuttle_buttons.push_back(m_configShuttle.shuttle14);
+ m_shuttle_buttons.push_back(m_configShuttle.shuttle15);
// populate the buttons with the current configuration. The items are sorted
// according to the user-selected language, so they do not appear in random order.
delete dlg;
}
-#ifdef USE_JOGSHUTTLE
void KdenliveSettingsDialog::slotCheckShuttle(int state)
{
- m_configShuttle.config_group->setEnabled(state);
+#ifdef USE_JOGSHUTTLE
+ m_configShuttle.config_group->setEnabled(state);
if (m_configShuttle.shuttledevicelist->count() == 0) {
// parse devices
QString baseName = "/dev/input/event";
}
if (KdenliveSettings::shuttledevice().isEmpty()) QTimer::singleShot(1500, this, SLOT(slotUpdateShuttleDevice()));
}
+#endif /* USE_JOGSHUTTLE */
}
void KdenliveSettingsDialog::slotUpdateShuttleDevice(int ix)
{
+#ifdef USE_JOGSHUTTLE
QString device = m_configShuttle.shuttledevicelist->itemData(ix).toString();
//KdenliveSettings::setShuttledevice(device);
m_configShuttle.kcfg_shuttledevice->setText(device);
-}
-
#endif /* USE_JOGSHUTTLE */
+}
void KdenliveSettingsDialog::updateWidgets()
{
void KdenliveSettingsDialog::loadTranscodeProfiles()
{
- KSharedConfigPtr config = KSharedConfig::openConfig("kdenlivetranscodingrc");
+ KSharedConfigPtr config = KSharedConfig::openConfig("kdenlivetranscodingrc", KConfig::CascadeConfig);
KConfigGroup transConfig(config, "Transcoding");
// read the entries
m_configTranscode.profiles_list->blockSignals(true);
void KdenliveSettingsDialog::saveTranscodeProfiles()
{
- KSharedConfigPtr config = KSharedConfig::openConfig("kdenlivetranscodingrc");
+ KSharedConfigPtr config = KSharedConfig::openConfig("kdenlivetranscodingrc", KConfig::CascadeConfig);
//KSharedConfigPtr config = KGlobal::config();
KConfigGroup transConfig(config, "Transcoding");
// read the entries