[pitivi] Removed the Summary tab in the Render dialog. Did this because the dialog is very simple, there is n



commit a5379d83ec6044c4bf1edd748412abf74bcdd89e
Author: Alex BÄ?luÈ? <alexandru balut gmail com>
Date:   Thu May 5 08:45:19 2011 +0200

    Removed the Summary tab in the Render dialog.
    Did this because the dialog is very simple,
    there is no reason for having that extra tab.

 pitivi/settings.py             |   25 -------------------------
 pitivi/ui/encodingdialog.glade |   20 --------------------
 pitivi/ui/encodingdialog.py    |    9 ---------
 3 files changed, 0 insertions(+), 54 deletions(-)
---
diff --git a/pitivi/settings.py b/pitivi/settings.py
index cb39d29..5842fd5 100644
--- a/pitivi/settings.py
+++ b/pitivi/settings.py
@@ -523,31 +523,6 @@ class ExportSettings(Signallable, Loggable):
             return get_compatible_sink_caps(self.vencoder, vcaps)
         return vcaps
 
-    def getVideoDescription(self):
-        """ Returns a human-readable markup-ed string describing the video properties """
-        res = _("%(width)d x %(height)d pixels at %(framerate).2f fps" %\
-            {"width": self.videowidth,
-            "height": self.videoheight,
-            "framerate": float(self.videorate)})
-        if self.vencoder is not None:
-            res += " <i>(%s)</i>" % self.vencoder
-
-        return res
-
-    def getAudioDescription(self):
-        """ Returns a human-readable markup-ed string describing the audio properties """
-        res = ngettext("%(channels)d channel at %(frequency)d Hz (%(depth)d bits)",
-            "%(channels)d channels at %(frequency)d Hz (%(depth)d bits)",
-            self.audiochannels)
-        res = res % \
-                {"channels": self.audiochannels,
-                "frequency": self.audiorate,
-                "depth": self.audiodepth}
-        if self.aencoder is not None:
-            res += " <i>(%s)</i>" % self.aencoder
-
-        return res
-
     def getAudioCaps(self):
         """ Returns the GstCaps corresponding to the audio settings """
         astr = "rate=%d,channels=%d" % (self.audiorate, self.audiochannels)
diff --git a/pitivi/ui/encodingdialog.glade b/pitivi/ui/encodingdialog.glade
index 5c37231..9c0dc3d 100644
--- a/pitivi/ui/encodingdialog.glade
+++ b/pitivi/ui/encodingdialog.glade
@@ -484,26 +484,6 @@ AAC</property>
                 <property name="type">tab</property>
               </packing>
             </child>
-            <child>
-              <widget class="GtkLabel" id="summary_label">
-                <property name="visible">True</property>
-                <property name="use_markup">True</property>
-              </widget>
-              <packing>
-                <property name="position">3</property>
-              </packing>
-            </child>
-            <child>
-              <widget class="GtkLabel" id="label7">
-                <property name="visible">True</property>
-                <property name="label" translatable="yes">Summary</property>
-              </widget>
-              <packing>
-                <property name="position">3</property>
-                <property name="tab_fill">False</property>
-                <property name="type">tab</property>
-              </packing>
-            </child>
           </widget>
           <packing>
             <property name="position">2</property>
diff --git a/pitivi/ui/encodingdialog.py b/pitivi/ui/encodingdialog.py
index 51b62bb..de30314 100644
--- a/pitivi/ui/encodingdialog.py
+++ b/pitivi/ui/encodingdialog.py
@@ -137,7 +137,6 @@ class EncodingDialog(GladeWindow, Renderer, Loggable):
         self.settings.connect("encoders-changed", self._settingsChanged)
 
     def _settingsChanged(self, settings):
-        self._updateSummary()
         self.updateResolution()
 
     def _displaySettings(self):
@@ -173,9 +172,6 @@ class EncodingDialog(GladeWindow, Renderer, Loggable):
         self.filebutton.set_current_folder(self.app.settings.lastExportFolder)
         self.updateFilename(self.project.name)
 
-        # Summary
-        self._updateSummary()
-
     def updateFilename(self, basename):
         """Updates the filename UI element to show the specified file name."""
         extension = extension_for_muxer(self.settings.muxer)
@@ -264,11 +260,6 @@ class EncodingDialog(GladeWindow, Renderer, Loggable):
         name = get_combo_value(combo).get_name()
         self.settings.setEncoders(aencoder=name)
 
-    def _updateSummary(self):
-        text = self.settings.getVideoDescription() + "\n\n" +\
-            self.settings.getAudioDescription()
-        self.summary_label.props.label = text
-
     def _audioSettingsButtonClickedCb(self, button):
         self._elementSettingsDialog(self.audio_encoder_combo,
             'acodecsettings')



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