gnome-control-center/panels/printers/cc-printers-panel.ui

210 lines
10 KiB
Text
Raw Normal View History

2023-07-30 22:15:53 +04:00
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="3.12"/>
<template class="CcPrintersPanel" parent="CcPanel">
2023-08-02 19:21:33 +04:00
<property name="child">
2023-08-04 00:29:28 +04:00
<object class="AdwBreakpointBin">
<property name="width-request">300</property>
<property name="height-request">200</property>
<child>
<object class="AdwBreakpoint">
<condition>max-width: 500sp</condition>
<setter object="CcPrintersPanel" property="compact">True</setter>
2023-07-30 22:15:53 +04:00
</object>
</child>
2023-08-04 00:29:28 +04:00
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar">
<child type="end">
<object class="GtkToggleButton" id="search_button">
<property name="tooltip_text" translatable="yes">Search</property>
2023-08-04 00:29:28 +04:00
<property name="icon_name">edit-find-symbolic</property>
<style>
<class name="image-button"/>
</style>
</object>
</child>
<child type="end">
<object class="GtkButton" id="printer_add_button">
<property name="tooltip_text" translatable="yes">All Connected and Network Printers</property>
<property name="sensitive">False</property>
<property name="use_underline">True</property>
<property name="can_shrink">True</property>
<property name="label" translatable="yes" comments="Translators: This button adds new printer.">_Add Printer…</property>
<signal name="clicked" handler="printer_add_cb" swapped="yes"/>
<style>
<class name="suggested-action"/>
</style>
</object>
</child>
</object>
</child>
2023-08-04 00:29:28 +04:00
<child type="top">
<object class="GtkSearchBar" id="search_bar">
<property name="search_mode_enabled" bind-source="search_button" bind-property="active" bind-flags="bidirectional" />
2023-07-30 22:19:43 +04:00
<child>
2023-08-04 00:29:28 +04:00
<object class="AdwClamp">
<property name="maximum-size">400</property>
2023-07-30 22:19:43 +04:00
<child>
2023-08-04 00:29:28 +04:00
<object class="GtkSearchEntry" id="search_entry">
<property name="placeholder_text" translatable="yes">Search printers</property>
2023-07-30 22:19:43 +04:00
</object>
</child>
</object>
</child>
2023-07-30 22:15:53 +04:00
</object>
</child>
2023-08-04 00:29:28 +04:00
<property name="content">
<object class="GtkOverlay">
<child type="overlay">
<object class="GtkRevealer" id="notification">
<property name="halign">GTK_ALIGN_CENTER</property>
<property name="valign">GTK_ALIGN_START</property>
<child>
<object class="GtkBox">
<property name="spacing">6</property>
<style>
<class name="app-notification"/>
</style>
<child>
<object class="GtkLabel" id="notification_label">
<property name="wrap">True</property>
<property name="max_width_chars">50</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="valign">GTK_ALIGN_CENTER</property>
<property name="label" translatable="yes" comments="Translators: This is the button which allows undoing the removal of the printer.">Undo</property>
<signal name="clicked" handler="on_printer_deletion_undone" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkButton">
<property name="valign">GTK_ALIGN_CENTER</property>
<property name="icon_name">window-close-symbolic</property>
<signal name="clicked" handler="on_notification_dismissed" swapped="yes"/>
<style>
<class name="flat"/>
</style>
</object>
</child>
</object>
</child>
2023-07-30 22:15:53 +04:00
</object>
</child>
<child>
2023-07-30 22:19:43 +04:00
2023-08-04 00:29:28 +04:00
<object class="GtkBox">
<property name="orientation">GTK_ORIENTATION_VERTICAL</property>
2023-07-30 22:19:43 +04:00
<child>
2023-08-04 00:29:28 +04:00
<object class="CcPermissionInfobar" id="permission_infobar">
2023-07-30 22:19:43 +04:00
</object>
</child>
<child>
2023-08-04 00:29:28 +04:00
<object class="GtkStack" id="main_stack">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkStackPage">
<property name="name">loading-page</property>
<property name="child">
<object class="GtkBox">
<child>
<object class="GtkSpinner">
<property name="spinning">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">printers-list</property>
<property name="child">
<object class="GtkScrolledWindow" id="scrolled_window">
<property name="hscrollbar-policy">never</property>
2023-07-30 22:15:53 +04:00
<child>
2023-08-04 00:29:28 +04:00
<object class="AdwClamp">
<child>
<object class="GtkListBox" id="content">
<property name="selection-mode">none</property>
<property name="valign">start</property>
<property name="margin-top">24</property>
<property name="margin-bottom">24</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<style>
<class name="boxed-list"/>
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">empty-state</property>
<property name="child">
<object class="AdwStatusPage">
<property name="icon_name">printer-symbolic</property>
<property name="title" translatable="yes">No Printers</property>
<child>
<object class="GtkButton" id="printer_add_button_empty">
<property name="label" translatable="yes" comments="Translators: This button adds a new printer.">_Add Printer…</property>
<property name="use-underline">True</property>
<property name="receives_default">True</property>
<property name="halign">center</property>
<signal name="clicked" handler="printer_add_cb" swapped="yes"/>
<style>
2023-08-04 00:29:28 +04:00
<class name="suggested-action"/>
<class name="pill"/>
</style>
2023-07-30 22:15:53 +04:00
</object>
</child>
</object>
2023-08-04 00:29:28 +04:00
</property>
2023-07-30 22:15:53 +04:00
</object>
2023-08-04 00:29:28 +04:00
</child>
2023-07-30 22:15:53 +04:00
2023-08-04 00:29:28 +04:00
<child>
<object class="GtkStackPage">
<property name="name">no-cups-page</property>
<property name="child">
<object class="AdwStatusPage">
<property name="icon_name">computer-fail-symbolic</property>
<property name="title" translatable="yes" comments="Translators: Title if the CUPS server is not running (we can not connect to it).">No Print Service</property>
<property name="description" translatable="yes" comments="Translators: Description if the CUPS server is not running (we can not connect to it).">The system printing service doesnt seem to be available.</property>
2023-07-30 22:19:43 +04:00
</object>
2023-08-04 00:29:28 +04:00
</property>
2023-07-30 22:15:53 +04:00
</object>
2023-08-04 00:29:28 +04:00
</child>
2023-07-30 22:15:53 +04:00
</object>
2023-07-30 22:19:43 +04:00
</child>
2023-07-30 22:15:53 +04:00
</object>
</child>
</object>
2023-08-04 00:29:28 +04:00
</property>
2023-07-30 22:15:53 +04:00
</object>
2023-07-30 22:19:43 +04:00
</property>
2023-07-30 22:15:53 +04:00
</object>
2023-08-02 19:21:33 +04:00
</property>
2023-07-30 22:15:53 +04:00
</template>
</interface>