[pitivi] RenderDialog: fill values from current project settings
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] RenderDialog: fill values from current project settings
- Date: Fri, 10 Dec 2010 17:51:32 +0000 (UTC)
commit feeccc9d710f6d735efbefcf47bcc25ea84addb4
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 19:08:56 2010 +0000
RenderDialog: fill values from current project settings
pitivi/ui/encodingdialog.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index e42c48b..7bea323 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -125,19 +125,33 @@ class EncodingDialog(GladeWindow, Renderer):
# Video settings
self.frame_rate_combo.set_model(frame_rates)
+ set_combo_value(self.frame_rate_combo, self.settings.videorate)
+
+ self.width_spinbutton.set_value(self.settings.videowidth)
# Audio settings
self.channels_combo.set_model(audio_channels)
+ set_combo_value(self.channels_combo, self.settings.audiochannels)
self.sample_rate_combo.set_model(audio_rates)
+ set_combo_value(self.sample_rate_combo, self.settings.audiorate)
self.sample_depth_combo.set_model(audio_depths)
+ set_combo_value(self.sample_depth_combo, self.settings.audiodepth)
+
# Muxer
self.muxercombobox.set_model(factorylist(
self.settings.muxers))
+ # note: this will trigger an update of the codec comboboxes
+ set_combo_value(self.muxercombobox,
+ gst.element_factory_find(self.settings.muxer))
# Encoder/Muxer settings
+ # File
+ self.filebutton.set_current_folder(self.app.settings.lastExportFolder)
+ self.updateFilename(self.project.name)
+
# Summary
self._updateSummary()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]