mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-14 04:15:37 +00:00
203 lines
8.9 KiB
XML
203 lines
8.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk" version="4.0"/>
|
|
<requires lib="libadwaita" version="1.0"/>
|
|
<template class="CallsSipAccountWidget" parent="GtkWidget">
|
|
<child>
|
|
<object class="GtkBox" id="child">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="AdwHeaderBar" id="header_add">
|
|
<child type="end">
|
|
<object class="GtkButton" id="login_btn">
|
|
<property name="use-underline">True</property>
|
|
<property name="label" translatable="yes">_Log In</property>
|
|
<signal name="clicked" handler="on_login_clicked" swapped="yes"/>
|
|
<style>
|
|
<class name="suggested-action"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkSpinner" id="spinner_add"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwHeaderBar" id="header_edit">
|
|
<property name="visible">True</property>
|
|
<child type="end">
|
|
<object class="GtkButton" id="apply_btn">
|
|
<property name="use-underline">True</property>
|
|
<property name="label" translatable="yes">_Apply</property>
|
|
<signal name="clicked" handler="on_apply_clicked" swapped="yes"/>
|
|
<style>
|
|
<class name="suggested-action"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkButton" id="delete_btn">
|
|
<property name="use-underline">True</property>
|
|
<property name="label" translatable="yes">_Delete</property>
|
|
<signal name="clicked" handler="on_delete_clicked" swapped="yes"/>
|
|
<style>
|
|
<class name="destructive-action"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child type="end">
|
|
<object class="GtkSpinner" id="spinner_edit"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesPage">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="visible">True</property>
|
|
<property name="title" translatable="yes">Server</property>
|
|
<child>
|
|
<object class="GtkEntry" id="host">
|
|
<property name="valign">center</property>
|
|
<signal name="changed" handler="on_user_changed" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="visible">True</property>
|
|
<property name="title" translatable="yes">Display Name</property>
|
|
<property name="subtitle" translatable="yes">Optional</property>
|
|
<child>
|
|
<object class="GtkEntry" id="display_name">
|
|
<property name="valign">center</property>
|
|
<signal name="changed" handler="on_user_changed" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="visible">True</property>
|
|
<property name="title" translatable="yes">User ID</property>
|
|
<child>
|
|
<object class="GtkEntry" id="user">
|
|
<property name="valign">center</property>
|
|
<signal name="changed" handler="on_user_changed" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="visible">True</property>
|
|
<property name="title" translatable="yes">Password</property>
|
|
<child>
|
|
<object class="GtkEntry" id="password">
|
|
<property name="valign">center</property>
|
|
<property name="input-purpose">password</property>
|
|
<property name="visibility">False</property>
|
|
<property name="primary_icon_sensitive">False</property>
|
|
<property name="secondary_icon_name">view-reveal-symbolic</property>
|
|
<signal name="changed" handler="on_user_changed" swapped="yes"/>
|
|
<signal name="icon-press" handler="on_password_visibility_changed" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="visible">True</property>
|
|
<property name="title" translatable="yes">Port</property>
|
|
<child>
|
|
<object class="GtkEntry" id="port">
|
|
<property name="valign">center</property>
|
|
<property name="input-purpose">digits</property>
|
|
<signal name="changed" handler="on_user_changed" swapped="yes"/>
|
|
<signal name="insert-text" handler="on_port_entry_insert_text" swapped="yes"/>
|
|
<signal name="insert-text" handler="on_port_entry_after_insert_text" swapped="yes" after="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwComboRow" id="protocol">
|
|
<property name="visible">True</property>
|
|
<property name="title" translatable="yes">Transport</property>
|
|
<signal name="notify::selected-index" handler="on_user_changed" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwComboRow" id="media_encryption">
|
|
<property name="visible">True</property>
|
|
<property name="title" translatable="yes">Media Encryption</property>
|
|
<signal name="notify::selected-index" handler="on_user_changed" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="visible">True</property>
|
|
<property name="title" translatable="yes">Use for Phone Calls</property>
|
|
<child>
|
|
<object class="GtkSwitch" id="tel_switch">
|
|
<property name="valign">center</property>
|
|
<signal name="notify::active" handler="on_user_changed" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="visible">True</property>
|
|
<property name="title" translatable="yes">Automatically Connect</property>
|
|
<child>
|
|
<object class="GtkSwitch" id="auto_connect_switch">
|
|
<property name="valign">center</property>
|
|
<signal name="notify::active" handler="on_user_changed" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
<object class="GtkSizeGroup">
|
|
<widgets>
|
|
<widget name="host"/>
|
|
<widget name="display_name"/>
|
|
<widget name="user"/>
|
|
<widget name="password"/>
|
|
<widget name="port"/>
|
|
</widgets>
|
|
</object>
|
|
</interface>
|