Now fills the original info for a movie file

Now detects if a file is not a video file and shows an error

Now the interface_manager class can manage treelists
This commit is contained in:
Sergio Costas 2014-07-17 21:23:28 +02:00
parent d59fc7c0e7
commit 581cf07458
10 changed files with 391 additions and 230 deletions

View file

@ -22,7 +22,14 @@
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkListStore" id="liststore_subs">
<object class="GtkAdjustment" id="subt_font_size">
<property name="lower">10</property>
<property name="upper">50</property>
<property name="value">10</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkListStore" id="subtitles_list">
<columns>
<!-- column-name Subtitles file -->
<column type="gchararray"/>
@ -32,13 +39,6 @@
<column type="gchararray"/>
</columns>
</object>
<object class="GtkAdjustment" id="subt_font_size">
<property name="lower">10</property>
<property name="upper">50</property>
<property name="value">10</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkAdjustment" id="video_rate">
<property name="lower">400</property>
<property name="upper">8500</property>
@ -223,6 +223,8 @@
<object class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">baseline</property>
<property name="margin_left">8</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Original video rate (Kbits/sec):</property>
</object>
@ -264,6 +266,7 @@
<object class="GtkLabel" id="label8">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">8</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Original audio rate (Kbits/sec):</property>
</object>
@ -305,6 +308,7 @@
<object class="GtkLabel" id="label9">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">8</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Original aspect ratio:</property>
</object>
@ -319,6 +323,7 @@
<object class="GtkLabel" id="label11">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">8</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Frames per second:</property>
</object>
@ -808,7 +813,7 @@
<object class="GtkTreeView" id="treeview_subtitles">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="model">liststore_subs</property>
<property name="model">subtitles_list</property>
<property name="headers_clickable">False</property>
<property name="enable_search">False</property>
<child internal-child="selection">
@ -894,12 +899,13 @@
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="button_add_subtitles">
<object class="GtkButton" id="add_subtitles">
<property name="label">gtk-add</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_add_subtitles_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
@ -908,12 +914,13 @@
</packing>
</child>
<child>
<object class="GtkButton" id="button_del_subtitles">
<object class="GtkButton" id="del_subtitles">
<property name="label">gtk-delete</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_del_subtitles_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>