[pitivi] RenderDialog: populate combo boxes



commit c5653b11ee4b074640ad86c2278327ce8ff97f3c
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Fri Nov 19 18:54:57 2010 +0000

    RenderDialog: populate combo boxes

 pitivi/ui/encodingdialog.py |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 126e771..4de1052 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -34,6 +34,15 @@ from pitivi.log.loggable import Loggable
 from pitivi.ui.gstwidget import GstElementSettingsDialog
 from pitivi.ui.glade import GladeWindow
 from pitivi.actioner import Renderer
+from pitivi.ui.common import\
+    model,\
+    frame_rates,\
+    audio_rates,\
+    audio_depths,\
+    audio_channels,\
+    get_combo_value,\
+    set_combo_value
+
 import pango
 
 def ellipsize(combo):
@@ -68,6 +77,16 @@ class EncodingDialog(GladeWindow, Renderer):
 
     def _displaySettings(self):
 
+        # Video settings
+        self.frame_rate_combo.set_model(frame_rates)
+
+        # Audio settings
+        self.channels_combo.set_model(audio_channels)
+
+        self.sample_rate_combo.set_model(audio_rates)
+
+        self.sample_depth_combo.set_model(audio_depths)
+
 
     def updatePosition(self, fraction, text):
         self.progressbar.set_fraction(fraction)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]