[pitivi] RenderDialog: update settings values when widgets change
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] RenderDialog: update settings values when widgets change
- Date: Fri, 10 Dec 2010 17:51:37 +0000 (UTC)
commit 3de884223cdc0602a260af0b941db947f0645600
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date: Fri Nov 19 19:10:00 2010 +0000
RenderDialog: update settings values when widgets change
pitivi/ui/encodingdialog.py | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 7bea323..c0b1f60 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -188,10 +188,32 @@ class EncodingDialog(GladeWindow, Renderer):
self.height_label.set_text(_("x %d pixels") % self._height)
self.settings.setVideoProperties(width=self._width, height=self._height)
+
+ def _frameRateComboChangedCb(self, combo):
+ framerate = get_combo_value(combo)
+ self.settings.setVideoProperties(framerate=framerate)
+
+ def _videoEncoderComboChangedCb(self, combo):
+ name = get_combo_value(combo).get_name()
+ self.settings.setEncoders(vencoder=name)
+
def _videoSettingsButtonClickedCb(self, button):
self._elementSettingsDialog(self.video_encoder_combo,
'vcodecsettings')
+ def _channelsComboChangedCb(self, combo):
+ self.settings.setAudioProperties(nbchanns=get_combo_value(combo))
+
+ def _sampleDepthComboChangedCb(self, combo):
+ self.settings.setAudioProperties(depth=get_combo_value(combo))
+
+ def _sampleRateComboChangedCb(self, combo):
+ self.settings.setAudioProperties(rate=get_combo_value(combo))
+
+ def _audioEncoderChangedComboCb(self, combo):
+ name = get_combo_value(combo).get_name()
+ self.settings.setEncoders(aencoder=name)
+
def _updateSummary(self):
text = self.settings.getVideoDescription() + "\n\n" +\
self.settings.getAudioDescription()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]