mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2025-12-22 16:39:42 +01:00
filtering support for recordings tab
This commit is contained in:
@@ -1131,6 +1131,18 @@ Author: Dmitriy Yefremov
|
|||||||
<placeholder/>
|
<placeholder/>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="GtkListStore" id="network_model">
|
||||||
|
<columns>
|
||||||
|
<!-- column-name name -->
|
||||||
|
<column type="gchararray"/>
|
||||||
|
<!-- column-name ip -->
|
||||||
|
<column type="gchararray"/>
|
||||||
|
<!-- column-name status -->
|
||||||
|
<column type="gchararray"/>
|
||||||
|
<!-- column-name data -->
|
||||||
|
<column type="PyObject"/>
|
||||||
|
</columns>
|
||||||
|
</object>
|
||||||
<object class="GtkListStore" id="rec_paths_model">
|
<object class="GtkListStore" id="rec_paths_model">
|
||||||
<columns>
|
<columns>
|
||||||
<!-- column-name icon -->
|
<!-- column-name icon -->
|
||||||
@@ -1161,6 +1173,12 @@ Author: Dmitriy Yefremov
|
|||||||
<signal name="row-deleted" handler="on_recordings_model_changed" swapped="no"/>
|
<signal name="row-deleted" handler="on_recordings_model_changed" swapped="no"/>
|
||||||
<signal name="row-inserted" handler="on_recordings_model_changed" swapped="no"/>
|
<signal name="row-inserted" handler="on_recordings_model_changed" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="GtkTreeModelFilter" id="recordings_filter_model">
|
||||||
|
<property name="child_model">recordings_model</property>
|
||||||
|
</object>
|
||||||
|
<object class="GtkTreeModelSort" id="recordings_sort_model">
|
||||||
|
<property name="model">recordings_filter_model</property>
|
||||||
|
</object>
|
||||||
<object class="GtkBox" id="recordings_box">
|
<object class="GtkBox" id="recordings_box">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
@@ -1182,7 +1200,7 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="margin_left">5</property>
|
<property name="margin_left">5</property>
|
||||||
<property name="margin_right">5</property>
|
<property name="margin_right">5</property>
|
||||||
<property name="margin_top">5</property>
|
<property name="margin_top">2</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="recordings_header_box">
|
<object class="GtkBox" id="recordings_header_box">
|
||||||
@@ -1193,6 +1211,28 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="margin_top">5</property>
|
<property name="margin_top">5</property>
|
||||||
<property name="margin_bottom">5</property>
|
<property name="margin_bottom">5</property>
|
||||||
<property name="spacing">5</property>
|
<property name="spacing">5</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkToggleButton" id="recordings_filter_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="focus_on_click">False</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="tooltip_text" translatable="yes">Filter</property>
|
||||||
|
<signal name="toggled" handler="on_recordings_filter_toggled" swapped="no"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="recordings_filter_button_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="icon_name">edit-find-replace-symbolic</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="recordings_remove_button">
|
<object class="GtkButton" id="recordings_remove_button">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
@@ -1208,6 +1248,37 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="icon_name">user-trash-symbolic</property>
|
<property name="icon_name">user-trash-symbolic</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
<accelerator key="Delete" signal="clicked"/>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="recordings_fs_box">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="margin_left">5</property>
|
||||||
|
<property name="margin_right">5</property>
|
||||||
|
<property name="margin_bottom">5</property>
|
||||||
|
<property name="spacing">10</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSearchEntry" id="recordings_filter_entry">
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="primary_icon_name">edit-find-replace-symbolic</property>
|
||||||
|
<property name="primary_icon_activatable">False</property>
|
||||||
|
<property name="primary_icon_sensitive">False</property>
|
||||||
|
<property name="visible" bind-source="recordings_filter_button" bind-property="active"/>
|
||||||
|
<signal name="search-changed" handler="on_recordings_filter_changed" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
@@ -1216,13 +1287,78 @@ Author: Dmitriy Yefremov
|
|||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<placeholder/>
|
<object class="GtkBox" id="recordings_search_box">
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSearchEntry" id="recordings_search_entry">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="primary_icon_name">edit-find-symbolic</property>
|
||||||
|
<property name="primary_icon_activatable">False</property>
|
||||||
|
<property name="primary_icon_sensitive">False</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="recordings_search_down_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkArrow" id="recordings_down_arrow">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="arrow_type">down</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">False</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="recordings_search_up_button">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="sensitive">False</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkArrow" id="recordings_up_arrow">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="arrow_type">up</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">False</property>
|
||||||
|
<property name="position">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<style>
|
||||||
|
<class name="group"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">False</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="position">0</property>
|
<property name="position">1</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@@ -1234,7 +1370,7 @@ Author: Dmitriy Yefremov
|
|||||||
<object class="GtkTreeView" id="recordings_view">
|
<object class="GtkTreeView" id="recordings_view">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="model">recordings_model</property>
|
<property name="model">recordings_sort_model</property>
|
||||||
<property name="enable_grid_lines">both</property>
|
<property name="enable_grid_lines">both</property>
|
||||||
<property name="tooltip_column">5</property>
|
<property name="tooltip_column">5</property>
|
||||||
<signal name="row-activated" handler="on_recordings_activated" swapped="no"/>
|
<signal name="row-activated" handler="on_recordings_activated" swapped="no"/>
|
||||||
@@ -1245,9 +1381,11 @@ Author: Dmitriy Yefremov
|
|||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="rec_service_column">
|
<object class="GtkTreeViewColumn" id="rec_service_column">
|
||||||
|
<property name="resizable">True</property>
|
||||||
<property name="min_width">100</property>
|
<property name="min_width">100</property>
|
||||||
<property name="title" translatable="yes">Service</property>
|
<property name="title" translatable="yes">Service</property>
|
||||||
<property name="alignment">0.5</property>
|
<property name="alignment">0.5</property>
|
||||||
|
<property name="sort_column_id">0</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="rec_service_renderer">
|
<object class="GtkCellRendererText" id="rec_service_renderer">
|
||||||
<property name="xalign">0.49000000953674316</property>
|
<property name="xalign">0.49000000953674316</property>
|
||||||
@@ -1260,10 +1398,12 @@ Author: Dmitriy Yefremov
|
|||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkTreeViewColumn" id="rec_title_column">
|
<object class="GtkTreeViewColumn" id="rec_title_column">
|
||||||
<property name="sizing">autosize</property>
|
<property name="resizable">True</property>
|
||||||
<property name="min_width">150</property>
|
<property name="min_width">150</property>
|
||||||
<property name="title" translatable="yes">Title</property>
|
<property name="title" translatable="yes">Title</property>
|
||||||
|
<property name="expand">True</property>
|
||||||
<property name="alignment">0.5</property>
|
<property name="alignment">0.5</property>
|
||||||
|
<property name="sort_column_id">1</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="rec_title_renderer">
|
<object class="GtkCellRendererText" id="rec_title_renderer">
|
||||||
<property name="xpad">5</property>
|
<property name="xpad">5</property>
|
||||||
@@ -1280,6 +1420,7 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="min_width">100</property>
|
<property name="min_width">100</property>
|
||||||
<property name="title" translatable="yes">Time</property>
|
<property name="title" translatable="yes">Time</property>
|
||||||
<property name="alignment">0.5</property>
|
<property name="alignment">0.5</property>
|
||||||
|
<property name="sort_column_id">2</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="rec_time_renderer">
|
<object class="GtkCellRendererText" id="rec_time_renderer">
|
||||||
<property name="xpad">5</property>
|
<property name="xpad">5</property>
|
||||||
@@ -1295,6 +1436,7 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="min_width">100</property>
|
<property name="min_width">100</property>
|
||||||
<property name="title" translatable="yes">Length</property>
|
<property name="title" translatable="yes">Length</property>
|
||||||
<property name="alignment">0.5</property>
|
<property name="alignment">0.5</property>
|
||||||
|
<property name="sort_column_id">3</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="rec_len_renderer">
|
<object class="GtkCellRendererText" id="rec_len_renderer">
|
||||||
<property name="xalign">0.49000000953674316</property>
|
<property name="xalign">0.49000000953674316</property>
|
||||||
@@ -1312,6 +1454,7 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="title" translatable="yes">File</property>
|
<property name="title" translatable="yes">File</property>
|
||||||
<property name="expand">True</property>
|
<property name="expand">True</property>
|
||||||
<property name="alignment">0.5</property>
|
<property name="alignment">0.5</property>
|
||||||
|
<property name="sort_column_id">4</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="rec_file_renderer">
|
<object class="GtkCellRendererText" id="rec_file_renderer">
|
||||||
<property name="ellipsize">end</property>
|
<property name="ellipsize">end</property>
|
||||||
@@ -1328,6 +1471,7 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="title" translatable="yes">Description</property>
|
<property name="title" translatable="yes">Description</property>
|
||||||
<property name="expand">True</property>
|
<property name="expand">True</property>
|
||||||
<property name="alignment">0.5</property>
|
<property name="alignment">0.5</property>
|
||||||
|
<property name="sort_column_id">5</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="rec_desc_renderer">
|
<object class="GtkCellRendererText" id="rec_desc_renderer">
|
||||||
<property name="ellipsize">end</property>
|
<property name="ellipsize">end</property>
|
||||||
@@ -1344,7 +1488,7 @@ Author: Dmitriy Yefremov
|
|||||||
<packing>
|
<packing>
|
||||||
<property name="expand">True</property>
|
<property name="expand">True</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="position">1</property>
|
<property name="position">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@@ -1386,7 +1530,7 @@ Author: Dmitriy Yefremov
|
|||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="position">2</property>
|
<property name="position">3</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
@@ -1469,7 +1613,7 @@ Author: Dmitriy Yefremov
|
|||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child type="label">
|
<child type="label">
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel" id="recordings_path_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="label" translatable="yes">Paths</property>
|
<property name="label" translatable="yes">Paths</property>
|
||||||
@@ -2297,59 +2441,163 @@ Author: Dmitriy Yefremov
|
|||||||
<object class="GtkBox" id="control_box">
|
<object class="GtkBox" id="control_box">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
<property name="margin_top">2</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<property name="spacing">10</property>
|
<property name="spacing">10</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="power_button_box">
|
<object class="GtkBox" id="control_header_box">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="halign">center</property>
|
<property name="margin_left">20</property>
|
||||||
<property name="valign">center</property>
|
<property name="margin_right">20</property>
|
||||||
<property name="margin_left">25</property>
|
|
||||||
<property name="margin_right">25</property>
|
|
||||||
<property name="margin_top">5</property>
|
<property name="margin_top">5</property>
|
||||||
<property name="margin_bottom">5</property>
|
<property name="margin_bottom">5</property>
|
||||||
|
<property name="spacing">15</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="standby_button">
|
<object class="GtkToggleButton" id="control_network_button">
|
||||||
<property name="width_request">70</property>
|
<property name="label">gtk-network</property>
|
||||||
<property name="visible">True</property>
|
<property name="width_request">100</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives_default">True</property>
|
||||||
<property name="tooltip_text" translatable="yes">Standby</property>
|
<property name="valign">center</property>
|
||||||
<property name="action_name">app.on_standby</property>
|
<property name="use_stock">True</property>
|
||||||
<child>
|
<property name="always_show_image">True</property>
|
||||||
<object class="GtkImage" id="standby_image">
|
<signal name="toggled" handler="on_network_toggled" swapped="no"/>
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="pixel_size">16</property>
|
|
||||||
<property name="icon_name">system-log-out</property>
|
|
||||||
<property name="icon_size">1</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="position">1</property>
|
<property name="position">0</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child type="center">
|
||||||
<object class="GtkButton" id="wake_up_button">
|
<object class="GtkBox" id="power_button_box">
|
||||||
<property name="width_request">70</property>
|
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="halign">center</property>
|
||||||
<property name="tooltip_text" translatable="yes">Wake Up</property>
|
<property name="valign">center</property>
|
||||||
<property name="action_name">app.on_wake_up</property>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkImage" id="wake_up_image">
|
<object class="GtkButton" id="standby_button">
|
||||||
|
<property name="width_request">70</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="pixel_size">16</property>
|
<property name="receives_default">True</property>
|
||||||
<property name="icon_name">document-revert</property>
|
<property name="tooltip_text" translatable="yes">Standby</property>
|
||||||
<property name="icon_size">1</property>
|
<property name="action_name">app.on_standby</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="standby_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="pixel_size">16</property>
|
||||||
|
<property name="icon_name">system-log-out</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="wake_up_button">
|
||||||
|
<property name="width_request">70</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="tooltip_text" translatable="yes">Wake Up</property>
|
||||||
|
<property name="action_name">app.on_wake_up</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="wake_up_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="pixel_size">16</property>
|
||||||
|
<property name="icon_name">document-revert</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="reboot_button">
|
||||||
|
<property name="width_request">70</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="tooltip_text" translatable="yes">Reboot</property>
|
||||||
|
<property name="action_name">app.on_reboot</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="reboot_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="pixel_size">16</property>
|
||||||
|
<property name="icon_name">view-refresh</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">3</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="restart_gui_butto">
|
||||||
|
<property name="width_request">70</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="tooltip_text" translatable="yes">Restart GUI</property>
|
||||||
|
<property name="action_name">app.on_restart_gui</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="restart_gui_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="pixel_size">16</property>
|
||||||
|
<property name="icon_name">window-new</property>
|
||||||
|
<property name="icon_size">1</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">4</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="shutdown_butto">
|
||||||
|
<property name="width_request">70</property>
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="receives_default">True</property>
|
||||||
|
<property name="tooltip_text" translatable="yes">Shutdown</property>
|
||||||
|
<property name="action_name">app.on_shutdown</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkImage" id="shutdown_image">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="pixel_size">16</property>
|
||||||
|
<property name="icon_name">application-exit</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">5</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<style>
|
||||||
|
<class name="group"/>
|
||||||
|
</style>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
@@ -2357,80 +2605,6 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="position">2</property>
|
<property name="position">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<object class="GtkButton" id="reboot_button">
|
|
||||||
<property name="width_request">70</property>
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">True</property>
|
|
||||||
<property name="receives_default">True</property>
|
|
||||||
<property name="tooltip_text" translatable="yes">Reboot</property>
|
|
||||||
<property name="action_name">app.on_reboot</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkImage" id="reboot_image">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="pixel_size">16</property>
|
|
||||||
<property name="icon_name">view-refresh</property>
|
|
||||||
<property name="icon_size">1</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="fill">True</property>
|
|
||||||
<property name="position">3</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkButton" id="restart_gui_butto">
|
|
||||||
<property name="width_request">70</property>
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">True</property>
|
|
||||||
<property name="receives_default">True</property>
|
|
||||||
<property name="tooltip_text" translatable="yes">Restart GUI</property>
|
|
||||||
<property name="action_name">app.on_restart_gui</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkImage" id="restart_gui_image">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="pixel_size">16</property>
|
|
||||||
<property name="icon_name">window-new</property>
|
|
||||||
<property name="icon_size">1</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="fill">True</property>
|
|
||||||
<property name="position">4</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkButton" id="shutdown_butto">
|
|
||||||
<property name="width_request">70</property>
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">True</property>
|
|
||||||
<property name="receives_default">True</property>
|
|
||||||
<property name="tooltip_text" translatable="yes">Shutdown</property>
|
|
||||||
<property name="action_name">app.on_shutdown</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkImage" id="shutdown_image">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="pixel_size">16</property>
|
|
||||||
<property name="icon_name">application-exit</property>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="fill">True</property>
|
|
||||||
<property name="position">5</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<style>
|
|
||||||
<class name="group"/>
|
|
||||||
</style>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
@@ -2443,11 +2617,108 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="spacing">10</property>
|
<property name="spacing">10</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkFrame" id="control_network_frame">
|
||||||
|
<property name="width_request">240</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="label_xalign">0.5</property>
|
||||||
|
<property name="shadow_type">in</property>
|
||||||
|
<property name="visible" bind-source="control_network_button" bind-property="active"/>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="network_box">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="margin_left">5</property>
|
||||||
|
<property name="margin_right">5</property>
|
||||||
|
<property name="margin_top">5</property>
|
||||||
|
<property name="margin_bottom">5</property>
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkScrolledWindow" id="network_scrolled_window">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="shadow_type">in</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkTreeView" id="network_view">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">True</property>
|
||||||
|
<property name="model">network_model</property>
|
||||||
|
<property name="enable_search">False</property>
|
||||||
|
<property name="tooltip_column">3</property>
|
||||||
|
<child internal-child="selection">
|
||||||
|
<object class="GtkTreeSelection" id="network_view_selection"/>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkTreeViewColumn" id="network_name_column">
|
||||||
|
<property name="title" translatable="yes">Name</property>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="alignment">0.5</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCellRendererText" id="network_name_renderer"/>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="text">0</attribute>
|
||||||
|
</attributes>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkTreeViewColumn" id="network_ip_column">
|
||||||
|
<property name="title" translatable="yes">IP</property>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="alignment">0.5</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCellRendererText" id="network_ip_renderer"/>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="text">1</attribute>
|
||||||
|
</attributes>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkTreeViewColumn" id="network_status_column">
|
||||||
|
<property name="title" translatable="yes">Status</property>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="alignment">0.5</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCellRendererText" id="network_status_renderer"/>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="text">2</attribute>
|
||||||
|
</attributes>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<placeholder/>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<placeholder/>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child type="label_item">
|
||||||
|
<placeholder/>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">0</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkFrame" id="info_box_frame">
|
<object class="GtkFrame" id="info_box_frame">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="label_xalign">0</property>
|
<property name="label_xalign">0.5</property>
|
||||||
<property name="shadow_type">in</property>
|
<property name="shadow_type">in</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="info_box">
|
<object class="GtkBox" id="info_box">
|
||||||
@@ -2458,27 +2729,6 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="margin_top">5</property>
|
<property name="margin_top">5</property>
|
||||||
<property name="margin_bottom">5</property>
|
<property name="margin_bottom">5</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<child>
|
|
||||||
<object class="GtkViewport" id="screenshot_view_port">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<property name="margin_left">5</property>
|
|
||||||
<property name="margin_right">5</property>
|
|
||||||
<property name="margin_top">5</property>
|
|
||||||
<property name="margin_bottom">5</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkDrawingArea" id="screenshot_area">
|
|
||||||
<property name="can_focus">False</property>
|
|
||||||
<signal name="draw" handler="on_screenshot_draw" swapped="no"/>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="expand">True</property>
|
|
||||||
<property name="fill">True</property>
|
|
||||||
<property name="position">0</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="remote_signal_box">
|
<object class="GtkBox" id="remote_signal_box">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
@@ -2628,6 +2878,27 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="position">1</property>
|
<property name="position">1</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkViewport" id="screenshot_view_port">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="margin_left">2</property>
|
||||||
|
<property name="margin_right">2</property>
|
||||||
|
<property name="margin_top">2</property>
|
||||||
|
<property name="margin_bottom">2</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkDrawingArea" id="screenshot_area">
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<signal name="draw" handler="on_screenshot_draw" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">True</property>
|
||||||
|
<property name="fill">True</property>
|
||||||
|
<property name="position">2</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child type="label_item">
|
<child type="label_item">
|
||||||
@@ -2637,7 +2908,7 @@ Author: Dmitriy Yefremov
|
|||||||
<packing>
|
<packing>
|
||||||
<property name="expand">True</property>
|
<property name="expand">True</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="position">0</property>
|
<property name="position">1</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
@@ -2645,7 +2916,7 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="width_request">300</property>
|
<property name="width_request">300</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="label_xalign">0</property>
|
<property name="label_xalign">0.5</property>
|
||||||
<property name="shadow_type">in</property>
|
<property name="shadow_type">in</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="remote_control_box">
|
<object class="GtkBox" id="remote_control_box">
|
||||||
@@ -2654,8 +2925,8 @@ Author: Dmitriy Yefremov
|
|||||||
<property name="valign">center</property>
|
<property name="valign">center</property>
|
||||||
<property name="margin_left">25</property>
|
<property name="margin_left">25</property>
|
||||||
<property name="margin_right">25</property>
|
<property name="margin_right">25</property>
|
||||||
<property name="margin_top">25</property>
|
<property name="margin_top">20</property>
|
||||||
<property name="margin_bottom">25</property>
|
<property name="margin_bottom">20</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<property name="spacing">5</property>
|
<property name="spacing">5</property>
|
||||||
<child>
|
<child>
|
||||||
@@ -3052,7 +3323,7 @@ audio-volume-medium-symbolic</property>
|
|||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="valign">center</property>
|
<property name="valign">center</property>
|
||||||
<property name="margin_top">50</property>
|
<property name="margin_top">15</property>
|
||||||
<property name="label_xalign">0.5</property>
|
<property name="label_xalign">0.5</property>
|
||||||
<property name="shadow_type">none</property>
|
<property name="shadow_type">none</property>
|
||||||
<child>
|
<child>
|
||||||
@@ -3137,7 +3408,7 @@ audio-volume-medium-symbolic</property>
|
|||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
<property name="fill">True</property>
|
||||||
<property name="position">1</property>
|
<property name="position">2</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ from urllib.parse import quote
|
|||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
|
|
||||||
from .dialogs import get_builder, show_dialog, DialogType, get_message
|
from .dialogs import get_builder, show_dialog, DialogType, get_message
|
||||||
|
from .main_helper import get_base_paths, get_base_model
|
||||||
from .uicommons import Gtk, Gdk, UI_RESOURCES_PATH, Page, Column, KeyboardKey, IS_GNOME_SESSION
|
from .uicommons import Gtk, Gdk, UI_RESOURCES_PATH, Page, Column, KeyboardKey, IS_GNOME_SESSION
|
||||||
from ..commons import run_task, run_with_delay, log, run_idle
|
from ..commons import run_task, run_with_delay, log, run_idle
|
||||||
from ..connections import HttpAPI, UtfFTP
|
from ..connections import HttpAPI, UtfFTP
|
||||||
@@ -659,13 +660,20 @@ class RecordingsTool(Gtk.Box):
|
|||||||
"on_path_activated": self.on_path_activated,
|
"on_path_activated": self.on_path_activated,
|
||||||
"on_recordings_activated": self.on_recordings_activated,
|
"on_recordings_activated": self.on_recordings_activated,
|
||||||
"on_recording_remove": self.on_recording_remove,
|
"on_recording_remove": self.on_recording_remove,
|
||||||
"on_recordings_model_changed": self.on_recordings_model_changed}
|
"on_recordings_model_changed": self.on_recordings_model_changed,
|
||||||
|
"on_recordings_filter_changed": self.on_recordings_filter_changed,
|
||||||
|
"on_recordings_filter_toggled": self.on_recordings_filter_toggled}
|
||||||
|
|
||||||
builder = get_builder(UI_RESOURCES_PATH + "control.glade", handlers,
|
builder = get_builder(UI_RESOURCES_PATH + "control.glade", handlers,
|
||||||
objects=("recordings_box", "recordings_model", "rec_paths_model"))
|
objects=("recordings_box", "recordings_model", "rec_paths_model",
|
||||||
|
"recordings_sort_model", "recordings_filter_model"))
|
||||||
self._rec_view = builder.get_object("recordings_view")
|
self._rec_view = builder.get_object("recordings_view")
|
||||||
self._paths_view = builder.get_object("recordings_paths_view")
|
self._paths_view = builder.get_object("recordings_paths_view")
|
||||||
self._paned = builder.get_object("recordings_paned")
|
self._paned = builder.get_object("recordings_paned")
|
||||||
|
self._model = builder.get_object("recordings_model")
|
||||||
|
self._filter_model = builder.get_object("recordings_filter_model")
|
||||||
|
self._filter_model.set_visible_func(self.recordings_filter_function)
|
||||||
|
self._filter_entry = builder.get_object("recordings_filter_entry")
|
||||||
self._recordings_count_label = builder.get_object("recordings_count_label")
|
self._recordings_count_label = builder.get_object("recordings_count_label")
|
||||||
self.pack_start(builder.get_object("recordings_box"), True, True, 0)
|
self.pack_start(builder.get_object("recordings_box"), True, True, 0)
|
||||||
if settings.alternate_layout:
|
if settings.alternate_layout:
|
||||||
@@ -675,7 +683,7 @@ class RecordingsTool(Gtk.Box):
|
|||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
def clear_data(self):
|
def clear_data(self):
|
||||||
self._rec_view.get_model().clear()
|
self._model.clear()
|
||||||
self._paths_view.get_model().clear()
|
self._paths_view.get_model().clear()
|
||||||
|
|
||||||
def on_layout_changed(self, app, alt_layout):
|
def on_layout_changed(self, app, alt_layout):
|
||||||
@@ -752,9 +760,8 @@ class RecordingsTool(Gtk.Box):
|
|||||||
|
|
||||||
@run_idle
|
@run_idle
|
||||||
def update_recordings_data(self, recordings):
|
def update_recordings_data(self, recordings):
|
||||||
model = self._rec_view.get_model()
|
self._model.clear()
|
||||||
model.clear()
|
list(map(self._model.append, (self.get_recordings_row(r) for r in recordings.get("recordings", []))))
|
||||||
list(map(model.append, (self.get_recordings_row(r) for r in recordings.get("recordings", []))))
|
|
||||||
|
|
||||||
def get_recordings_row(self, rec):
|
def get_recordings_row(self, rec):
|
||||||
service = rec.get("e2servicename")
|
service = rec.get("e2servicename")
|
||||||
@@ -781,6 +788,9 @@ class RecordingsTool(Gtk.Box):
|
|||||||
return
|
return
|
||||||
|
|
||||||
model, paths = self._rec_view.get_selection().get_selected_rows()
|
model, paths = self._rec_view.get_selection().get_selected_rows()
|
||||||
|
paths = get_base_paths(paths, model)
|
||||||
|
model = get_base_model(model)
|
||||||
|
|
||||||
if paths and self._ftp:
|
if paths and self._ftp:
|
||||||
for file, itr in ((model[p][-1].get("e2filename", ""), model.get_iter(p)) for p in paths):
|
for file, itr in ((model[p][-1].get("e2filename", ""), model.get_iter(p)) for p in paths):
|
||||||
resp = self._ftp.delete_file(file)
|
resp = self._ftp.delete_file(file)
|
||||||
@@ -793,6 +803,17 @@ class RecordingsTool(Gtk.Box):
|
|||||||
def on_recordings_model_changed(self, model, path, itr=None):
|
def on_recordings_model_changed(self, model, path, itr=None):
|
||||||
self._recordings_count_label.set_text(str(len(model)))
|
self._recordings_count_label.set_text(str(len(model)))
|
||||||
|
|
||||||
|
def on_recordings_filter_changed(self, entry):
|
||||||
|
self._filter_model.refilter()
|
||||||
|
|
||||||
|
def recordings_filter_function(self, model, itr, data):
|
||||||
|
txt = self._filter_entry.get_text().upper()
|
||||||
|
return next((s for s in model.get(itr, 0, 1, 2, 3, 4, 5) if s and txt in s.upper()), False)
|
||||||
|
|
||||||
|
def on_recordings_filter_toggled(self, button):
|
||||||
|
if not button.get_active():
|
||||||
|
self._filter_entry.set_text("")
|
||||||
|
|
||||||
def on_playback(self, box, state):
|
def on_playback(self, box, state):
|
||||||
""" Updates state of the UI elements for playback mode. """
|
""" Updates state of the UI elements for playback mode. """
|
||||||
if self._settings.play_streams_mode is PlayStreamsMode.BUILT_IN:
|
if self._settings.play_streams_mode is PlayStreamsMode.BUILT_IN:
|
||||||
@@ -820,10 +841,11 @@ class ControlTool(Gtk.Box):
|
|||||||
self._pix = None
|
self._pix = None
|
||||||
|
|
||||||
handlers = {"on_volume_changed": self.on_volume_changed,
|
handlers = {"on_volume_changed": self.on_volume_changed,
|
||||||
"on_screenshot_draw": self.on_screenshot_draw}
|
"on_screenshot_draw": self.on_screenshot_draw,
|
||||||
|
"on_network_toggled": self.on_network_toggled}
|
||||||
|
|
||||||
builder = get_builder(UI_RESOURCES_PATH + "control.glade", handlers,
|
builder = get_builder(UI_RESOURCES_PATH + "control.glade", handlers,
|
||||||
objects=("control_box", "volume_adjustment"))
|
objects=("control_box", "volume_adjustment", "network_model"))
|
||||||
|
|
||||||
self.pack_start(builder.get_object("control_box"), True, True, 0)
|
self.pack_start(builder.get_object("control_box"), True, True, 0)
|
||||||
self._remote_box = builder.get_object("remote_box")
|
self._remote_box = builder.get_object("remote_box")
|
||||||
@@ -839,6 +861,7 @@ class ControlTool(Gtk.Box):
|
|||||||
self._agc_level_bar = builder.get_object("agc_level_bar")
|
self._agc_level_bar = builder.get_object("agc_level_bar")
|
||||||
self._volume_button = builder.get_object("volume_button")
|
self._volume_button = builder.get_object("volume_button")
|
||||||
self.init_actions(app)
|
self.init_actions(app)
|
||||||
|
|
||||||
if settings.alternate_layout:
|
if settings.alternate_layout:
|
||||||
self.on_layout_changed(app, True)
|
self.on_layout_changed(app, True)
|
||||||
|
|
||||||
@@ -1006,3 +1029,9 @@ class ControlTool(Gtk.Box):
|
|||||||
self._snr_level_bar.set_value(int(snr.strip("%N/A") or 0))
|
self._snr_level_bar.set_value(int(snr.strip("%N/A") or 0))
|
||||||
self._agc_level_bar.set_value(int(acg.rstrip("%N/A") or 0))
|
self._agc_level_bar.set_value(int(acg.rstrip("%N/A") or 0))
|
||||||
self._ber_level_bar.set_value(int(ber.rstrip("N/A") or 0))
|
self._ber_level_bar.set_value(int(ber.rstrip("N/A") or 0))
|
||||||
|
|
||||||
|
# ***************** Network explorer ********************** #
|
||||||
|
|
||||||
|
@run_task
|
||||||
|
def on_network_toggled(self, button):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -2671,7 +2671,7 @@ class Application(Gtk.Application):
|
|||||||
elif key is KeyboardKey.DELETE:
|
elif key is KeyboardKey.DELETE:
|
||||||
self.on_delete(view)
|
self.on_delete(view)
|
||||||
elif ctrl and key is KeyboardKey.R or key is KeyboardKey.F2:
|
elif ctrl and key is KeyboardKey.R or key is KeyboardKey.F2:
|
||||||
if event.state & Gdk.ModifierType.SHIFT_MASK:
|
if event.state & Gdk.ModifierType.MOD1_MASK: # ALT
|
||||||
self.on_rename_for_bouquet()
|
self.on_rename_for_bouquet()
|
||||||
else:
|
else:
|
||||||
self.on_rename(view)
|
self.on_rename(view)
|
||||||
|
|||||||
Reference in New Issue
Block a user