[pitivi] Redesign the rendering progress dialog
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Redesign the rendering progress dialog
- Date: Sun, 8 Sep 2013 17:45:18 +0000 (UTC)
commit e956801ed4941bcf174b0b65a19ee52dda7aec7f
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Sun Sep 1 00:25:42 2013 -0400
Redesign the rendering progress dialog
- Replace the header by a small informational text on what affects render perfs
- Make the window title serve as the new dialog header
- Remove the encoding FPS and multipass labels, they're geeky and mostly useless
data/ui/renderingprogress.ui | 153 ++++++++++++------------------------------
pitivi/render.py | 2 +-
2 files changed, 44 insertions(+), 111 deletions(-)
---
diff --git a/data/ui/renderingprogress.ui b/data/ui/renderingprogress.ui
index 3de3a14..b2c8284 100644
--- a/data/ui/renderingprogress.ui
+++ b/data/ui/renderingprogress.ui
@@ -11,11 +11,27 @@
<property name="type_hint">dialog</property>
<signal name="delete-event" handler="_deleteEventCb" swapped="no"/>
<child internal-child="vbox">
- <object class="GtkBox" id="dialog-vbox2">
+ <object class="GtkBox" id="vbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
- <property name="spacing">2</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkLabel" id="informational_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="opacity">0.69999999999999996</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes"><small>This process may take a long time
depending on the selected codecs, the image resolution, your computer's processing power, applied effects and
the length of your movie.</small></property>
+ <property name="use_markup">True</property>
+ <property name="wrap">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area2">
<property name="visible">True</property>
@@ -90,131 +106,48 @@
</packing>
</child>
<child>
- <object class="GtkVBox" id="vbox4">
+ <object class="GtkProgressBar" id="progressbar">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="text" translatable="yes">Initializing...</property>
+ <property name="show_text">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkTable" id="table1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="spacing">12</property>
+ <property name="halign">start</property>
+ <property name="n_columns">2</property>
+ <property name="column_spacing">6</property>
+ <property name="row_spacing">6</property>
<child>
- <object class="GtkLabel" id="label5">
- <property name="visible">True</property>
+ <object class="GtkLabel" id="estimated_filesize_value_label">
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes"><b><big>Rendering
movie</big></b></property>
- <property name="use_markup">True</property>
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkTable" id="table1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="n_rows">3</property>
- <property name="n_columns">2</property>
- <property name="column_spacing">6</property>
- <property name="row_spacing">6</property>
- <child>
- <object class="GtkLabel" id="estimated_filesize_value_label">
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label10">
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Unknown</property>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label9">
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Rendering first pass</property>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="estimated_filesize_label">
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Estimated filesize:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
- </object>
- <packing>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label7">
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Frames per second:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
- </object>
- <packing>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label6">
- <property name="can_focus">False</property>
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Phase:</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
- </object>
- </child>
</object>
<packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
</packing>
</child>
<child>
- <object class="GtkProgressBar" id="progressbar">
- <property name="visible">True</property>
+ <object class="GtkLabel" id="estimated_filesize_label">
<property name="can_focus">False</property>
- <property name="text" translatable="yes">Initializing...</property>
- <property name="show_text">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Estimated filesize:</property>
</object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="position">1</property>
+ <property name="position">4</property>
</packing>
</child>
</object>
diff --git a/pitivi/render.py b/pitivi/render.py
index 025a95a..7e67497 100644
--- a/pitivi/render.py
+++ b/pitivi/render.py
@@ -263,7 +263,7 @@ class RenderingProgressDialog(Signallable):
def updatePosition(self, fraction, estimated):
self.progressbar.set_fraction(fraction)
- self.window.set_title(_("%d%% Rendered") % int(100 * fraction))
+ self.window.set_title(_("Rendering — %d%% complete") % int(100 * fraction))
if estimated:
# Translators: this string indicates the estimated time
# remaining until an action (such as rendering) completes.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]