From ab13096c997915cac07bb372ed0d4cecc675b8d7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sun, 16 Nov 2008 16:33:21 +0000 Subject: [PATCH] Update the recordmydesktop config options svn path=/branches/KDE4/; revision=2707 --- src/kdenlivesettings.kcfg | 16 +++++++ src/recmonitor.cpp | 19 ++++++-- src/widgets/configcapture_ui.ui | 79 +++++++++++++++++++++++++++++---- 3 files changed, 102 insertions(+), 12 deletions(-) diff --git a/src/kdenlivesettings.kcfg b/src/kdenlivesettings.kcfg index e82bd659..221ae30f 100644 --- a/src/kdenlivesettings.kcfg +++ b/src/kdenlivesettings.kcfg @@ -286,6 +286,22 @@ + + + 0 + + + + + 0.0 + + + + + false + + + diff --git a/src/recmonitor.cpp b/src/recmonitor.cpp index 85765e4f..29b0e8c5 100644 --- a/src/recmonitor.cpp +++ b/src/recmonitor.cpp @@ -447,17 +447,28 @@ void RecMonitor::slotRecord() { m_captureArgs << "-width" << QString::number(KdenliveSettings::rmd_width()) << "-height" << QString::number(KdenliveSettings::rmd_height()); if (!KdenliveSettings::rmd_follow_mouse()) { m_captureArgs << "-x" << QString::number(KdenliveSettings::rmd_offsetx()) << "-y" << QString::number(KdenliveSettings::rmd_offsety()); - } else m_captureArgs << "--follow-mouse"; + } else { + m_captureArgs << "--follow-mouse"; + if (KdenliveSettings::rmd_hide_frame()) m_captureArgs << "--no-frame"; + } break; } m_isCapturing = true; if (KdenliveSettings::rmd_capture_audio()) { - if (KdenliveSettings::rmd_use_jack()) m_captureArgs << "-use-jack" << KdenliveSettings::rmd_jackports(); - else if (!KdenliveSettings::rmd_alsadevicename().isEmpty()) - m_captureArgs << "-device" << KdenliveSettings::rmd_alsadevicename(); + if (KdenliveSettings::rmd_use_jack()) { + m_captureArgs << "-use-jack" << KdenliveSettings::rmd_jackports(); + if (KdenliveSettings::rmd_jack_buffer() > 0.0) + m_captureArgs << "-ring-buffer-size" << QString::number(KdenliveSettings::rmd_jack_buffer()); + } else { + if (!KdenliveSettings::rmd_alsadevicename().isEmpty()) + m_captureArgs << "-device" << KdenliveSettings::rmd_alsadevicename(); + if (KdenliveSettings::rmd_alsa_buffer() > 0) + m_captureArgs << "-buffer-size" << QString::number(KdenliveSettings::rmd_alsa_buffer()); + } } else m_captureArgs << "--no-sound"; if (KdenliveSettings::rmd_fullshots()) m_captureArgs << "--full-shots"; + m_captureArgs << "-workdir" << KdenliveSettings::currenttmpfolder(); m_captureArgs << "-fps" << QString::number(KdenliveSettings::rmd_fps()) << "-o" << m_captureFile.path(); captureProcess->start(KdenliveSettings::rmd_path(), m_captureArgs); kDebug() << "// RecordMyDesktop params: " << m_captureArgs; diff --git a/src/widgets/configcapture_ui.ui b/src/widgets/configcapture_ui.ui index 3928b5f2..02234d1b 100644 --- a/src/widgets/configcapture_ui.ui +++ b/src/widgets/configcapture_ui.ui @@ -6,7 +6,7 @@ 0 0 409 - 411 + 416 @@ -45,7 +45,7 @@ - 2 + 0 @@ -420,6 +420,9 @@ + + + @@ -427,12 +430,6 @@ - - - - - - @@ -440,6 +437,33 @@ + + + + + + + Buffer + + + + + + + + + + 999 + + + + + + + Buffer + + + @@ -521,6 +545,13 @@ + + + + Hide frame + + + @@ -605,6 +636,38 @@
klineedit.h
+ + kcfg_defaultcapture + tabWidget + kcfg_firewireformat + kcfg_firewireautosplit + kcfg_firewiretimestamp + kcfg_video4vdevice + kcfg_video4vformat + kcfg_video4vencoding + kcfg_video4adevice + kcfg_video4aformat + kcfg_video4aencoding + kcfg_video4size + kcfg_video4rate + kcfg_video4capture + kcfg_video4playback + kcfg_rmd_capture_audio + radioButton_2 + kcfg_rmd_alsa_device + kcfg_rmd_alsa_buffer + kcfg_rmd_use_jack + kcfg_rmd_jackports + kcfg_rmd_capture_type + kcfg_rmd_follow_mouse + kcfg_rmd_hide_frame + kcfg_rmd_offsetx + kcfg_rmd_offsety + kcfg_rmd_width + kcfg_rmd_height + kcfg_rmd_audio_channels + kcfg_rmd_fullshots + -- 2.39.2