1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-06 03:49:36 +00:00
Purism-Calls/src/ui/main-window.ui

173 lines
7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CallsMainWindow" parent="AdwApplicationWindow">
<property name="title" translatable="yes">Calls</property>
<property name="show_menubar">False</property>
<property name="hide-on-close">True</property>
<property name="width-request">360</property>
<property name="height-request">294</property>
<child>
<object class="AdwBreakpoint">
<condition>max-width: 450sp</condition>
<setter object="header_bar" property="title-widget"/>
<setter object="switcher_bar" property="reveal">True</setter>
</object>
</child>
<child>
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar" id="header_bar">
<child type="title">
<object class="AdwViewSwitcher" id="title_switcher">
<property name="policy">wide</property>
<property name="stack">main_stack</property>
</object>
</child>
<child type="end">
<object class="GtkMenuButton">
<property name="menu-model">app-menu</property>
<property name="icon-name">open-menu-symbolic</property>
</object>
</child>
</object>
</child>
<property name="content">
<object class="AdwToastOverlay" id="toast_overlay">
<property name="child">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkRevealer" id="permanent_error_revealer">
<property name="reveal_child">True</property>
<property name="child">
<object class="GtkLabel" id="permanent_error_label">
<property name="justify">center</property>
<property name="wrap">True</property>
<style>
<class name="error-state-message"/>
</style>
</object>
</property>
</object>
</child>
<child>
<object class="AdwViewStack" id="main_stack">
<property name="vhomogeneous">False</property>
<property name="hhomogeneous">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
</object>
</child>
<child>
<object class="AdwViewSwitcherBar" id="switcher_bar">
<property name="stack">main_stack</property>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
</child>
</template>
<object class="GtkDialog" id="ussd_dialog">
<property name="modal">True</property>
<property name="default-width">240</property>
<property name="default-height">200</property>
<property name="hide-on-close">True</property>
<property name="default-widget">ussd_cancel_button</property>
<child type="titlebar">
<object class="AdwHeaderBar">
<property name="show-start-title-buttons">False</property>
<property name="show-end-title-buttons">False</property>
<child type="start">
<object class="GtkButton" id="ussd_cancel_button">
<property name="use-underline">True</property>
<property name="label" translatable="yes">_Cancel</property>
<signal name="clicked" handler="window_ussd_cancel_clicked_cb" swapped="yes"/>
</object>
</child>
<child type="start">
<object class="GtkButton" id="ussd_close_button">
<property name="visible" bind-source="ussd_cancel_button" bind-property="visible" bind-flags="sync-create|invert-boolean|bidirectional"/>
<property name="use-underline">True</property>
<property name="label" translatable="yes">_Close</property>
<signal name="clicked" handler="gtk_window_close" object="ussd_dialog" swapped="yes"/>
</object>
</child>
<child type="end">
<object class="GtkButton" id="ussd_reply_button">
<property name="label" translatable="yes">_Send</property>
<property name="sensitive">False</property>
<property name="use-underline">True</property>
<signal name="clicked" handler="window_ussd_reply_clicked_cb" swapped="yes"/>
<style>
<class name="suggested-action"/>
</style>
</object>
</child>
</object>
</child>
<child internal-child="content_area">
<object class="GtkBox">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<child>
<object class="GtkStack" id="ussd_stack">
<child>
<object class="GtkBox" id="ussd_content">
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel" id="ussd_label">
<property name="wrap">True</property>
<property name="xalign">0</property>
</object>
</child>
<child>
<object class="GtkEntry" id="ussd_entry">
<property name="visible">False</property>
<signal name="changed" handler="window_ussd_entry_changed_cb" swapped="yes"/>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSpinner" id="ussd_spinner">
<property name="valign">center</property>
<property name="vexpand">True</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
<menu id="app-menu">
<section>
<item>
<attribute name="label" translatable="yes">_VoIP Accounts</attribute>
<attribute name="action">app.accounts</attribute>
</item>
</section>
<section>
<!--item>
<attribute name="label" translatable="yes">_Keyboard shortcuts</attribute>
<attribute name="action"></attribute>
</item-->
<!--item>
<attribute name="label" translatable="yes">_Help</attribute>
<attribute name="action"></attribute>
</item-->
<item>
<attribute name="label" translatable="yes" comments="&quot;Calls&quot; is the application name, do not translate">_About Calls</attribute>
<attribute name="action">win.about</attribute>
</item>
</section>
</menu>
</interface>