gnome-control-center/panels/sharing/cc-sharing-panel.ui
2023-11-02 12:15:11 +00:00

307 lines
14 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcSharingPanel" parent="CcPanel">
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="AdwPreferencesPage" id="sharing_panel">
<child>
<object class="AdwPreferencesGroup">
<property name="margin-bottom">12</property>
<child>
<object class="CcHostnameEntry" id="hostname_entry">
<property name="title" translatable="yes">Device Name</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="main_list_box">
<child>
<object class="CcListRow" id="personal_file_sharing_row">
<property name="icon-name">folder-remote-symbolic</property>
<property name="show-arrow">True</property>
<property name="subtitle" translatable="yes">Share files with other devices on the current network</property>
<property name="use-underline">True</property>
<property name="title" translatable="yes">_File Sharing</property>
<signal name="activated" handler="gtk_window_present" object="personal_file_sharing_dialog"/>
</object>
</child>
<child>
<object class="CcListRow" id="media_sharing_row">
<property name="icon-name">applications-multimedia-symbolic</property>
<property name="show-arrow">True</property>
<property name="subtitle" translatable="yes">Stream music, photos and videos to devices on the current network</property>
<property name="use-underline">True</property>
<property name="title" translatable="yes">_Media Sharing</property>
<signal name="activated" handler="gtk_window_present" object="media_sharing_dialog"/>
</object>
</child>
<child>
<object class="CcListRow" id="remote_login_row">
<property name="icon-name">utilities-terminal-symbolic</property>
<property name="show-arrow">True</property>
<property name="subtitle" translatable="yes">Enable SSH access for this device</property>
<property name="use-underline">True</property>
<property name="title" translatable="yes">_Remote Login</property>
<signal name="activated" handler="gtk_window_present" object="remote_login_dialog"/>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</template>
<object class="AdwWindow" id="personal_file_sharing_dialog">
<property name="title" translatable="yes">File Sharing</property>
<property name="resizable">False</property>
<property name="modal">True</property>
<property name="hide-on-close">True</property>
<child>
<object class="GtkShortcutController">
<property name="scope">managed</property>
<child>
<object class="GtkShortcut">
<property name="trigger">Escape</property>
<property name="action">action(window.close)</property>
</object>
</child>
</object>
</child>
<property name="content">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar" id="personal_file_sharing_headerbar"/>
</child>
<property name="content">
<object class="GtkGrid" id="personal_file_sharing_grid">
<property name="margin_start">24</property>
<property name="margin_end">24</property>
<property name="margin_top">24</property>
<property name="margin_bottom">24</property>
<property name="row_spacing">12</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="personal_file_sharing_label">
<property name="xalign">0</property>
<property name="use_markup">True</property>
<property name="wrap">True</property>
<property name="max-width-chars">36</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
<property name="column-span">2</property>
</layout>
</object>
</child>
<child>
<object class="GtkGrid" id="require_password_grid">
<property name="row_spacing">12</property>
<property name="column_spacing">6</property>
<layout>
<property name="column">0</property>
<property name="row">2</property>
<property name="column-span">2</property>
</layout>
<child>
<object class="GtkLabel" id="label17">
<property name="halign">start</property>
<property name="label" translatable="yes">_Require Password</property>
<property name="use_markup">True</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">personal_file_sharing_require_password_switch</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
</layout>
</object>
</child>
<child>
<object class="GtkLabel" id="personal_file_sharing_password_label">
<property name="halign">start</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">_Password</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">personal_file_sharing_password_entry</property>
<layout>
<property name="column">0</property>
<property name="row">1</property>
</layout>
</object>
</child>
<child>
<object class="GtkSwitch" id="personal_file_sharing_require_password_switch">
<property name="halign">end</property>
<layout>
<property name="column">1</property>
<property name="row">0</property>
</layout>
</object>
</child>
<child>
<object class="GtkEntry" id="personal_file_sharing_password_entry">
<property name="visibility">False</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
<property name="input_purpose">password</property>
<layout>
<property name="column">1</property>
<property name="row">1</property>
</layout>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
<object class="AdwWindow" id="remote_login_dialog">
<property name="title" translatable="yes">Remote Login</property>
<property name="resizable">False</property>
<property name="modal">True</property>
<property name="hide-on-close">True</property>
<child>
<object class="GtkShortcutController">
<property name="scope">managed</property>
<child>
<object class="GtkShortcut">
<property name="trigger">Escape</property>
<property name="action">action(window.close)</property>
</object>
</child>
</object>
</child>
<property name="content">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="GtkBox">
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="spacing">12</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="remote_login_label">
<property name="xalign">0</property>
<property name="use_markup">True</property>
<property name="wrap">True</property>
<property name="max-width-chars">36</property>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="AdwSwitchRow" id="remote_login_switch">
<property name="title" translatable="yes">Remote Login</property>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
<object class="AdwWindow" id="media_sharing_dialog">
<property name="title" translatable="yes">Media Sharing</property>
<property name="modal">True</property>
<property name="hide-on-close">True</property>
<property name="destroy-with-parent">True</property>
<property name="width-request">360</property>
<property name="height-request">294</property>
<property name="default-width">360</property>
<property name="default-height">500</property>
<child>
<object class="GtkShortcutController">
<property name="scope">managed</property>
<child>
<object class="GtkShortcut">
<property name="trigger">Escape</property>
<property name="action">action(window.close)</property>
</object>
</child>
</object>
</child>
<property name="content">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar" id="media_sharing_headerbar"/>
</child>
<property name="content">
<object class="GtkScrolledWindow">
<property name="hscrollbar_policy">never</property>
<child>
<object class="AdwClamp">
<child>
<object class="GtkGrid" id="shared_folders_grid">
<property name="margin_start">12</property>
<property name="margin_end">12</property>
<property name="margin_top">12</property>
<property name="margin_bottom">12</property>
<property name="row_spacing">12</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="label13">
<property name="xalign">0</property>
<property name="label" translatable="yes">Share music, photos and videos over the network.</property>
<property name="max-width-chars">36</property>
<property name="wrap">True</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
<property name="column-span">2</property>
</layout>
</object>
</child>
<child>
<object class="GtkLabel" id="label15">
<property name="xalign">0</property>
<property name="label" translatable="yes">Folders</property>
<property name="mnemonic_widget">shared_folders_listbox</property>
<layout>
<property name="column">0</property>
<property name="row">1</property>
<property name="column-span">2</property>
</layout>
<style>
<class name="heading"/>
</style>
</object>
</child>
<child>
<object class="GtkListBox" id="shared_folders_listbox">
<property name="selection-mode">none</property>
<style>
<class name="boxed-list" />
</style>
<layout>
<property name="column">0</property>
<property name="row">3</property>
<property name="column-span">2</property>
</layout>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
</interface>