2019-10-04 22:16:23 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
2021-12-19 19:57:26 +05:30
|
|
|
<requires lib="gtk" version="4.0"/>
|
2019-10-04 22:16:23 +05:30
|
|
|
<template class="CcWwanApnDialog" parent="GtkDialog">
|
|
|
|
<property name="default-height">480</property>
|
|
|
|
<property name="default-width">360</property>
|
2021-12-19 19:57:26 +05:30
|
|
|
<property name="hide-on-close">True</property>
|
|
|
|
<property name="title" translatable="yes">Access Points</property>
|
|
|
|
<property name="modal">True</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
|
|
|
|
<child type="titlebar">
|
|
|
|
<object class="GtkHeaderBar">
|
|
|
|
|
|
|
|
<!-- Back button -->
|
2021-12-19 19:57:26 +05:30
|
|
|
<child type="start">
|
2019-10-04 22:16:23 +05:30
|
|
|
<object class="GtkButton" id="back_button">
|
2021-12-19 19:57:26 +05:30
|
|
|
<property name="use-underline">True</property>
|
|
|
|
<property name="icon-name">go-previous-symbolic</property>
|
|
|
|
<signal name="clicked" handler="cc_wwan_apn_back_clicked_cb" swapped="yes"/>
|
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Back</property>
|
|
|
|
</accessibility>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- Add button -->
|
2021-12-19 19:57:26 +05:30
|
|
|
<child type="end">
|
2019-10-04 22:16:23 +05:30
|
|
|
<object class="GtkButton" id="add_button">
|
2021-12-19 19:57:26 +05:30
|
|
|
<property name="use-underline">True</property>
|
|
|
|
<property name="icon-name">list-add-symbolic</property>
|
|
|
|
<signal name="clicked" handler="cc_wwan_apn_add_clicked_cb" swapped="yes"/>
|
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Add</property>
|
|
|
|
</accessibility>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- Save button -->
|
2021-12-19 19:57:26 +05:30
|
|
|
<child type="end">
|
2019-10-04 22:16:23 +05:30
|
|
|
<object class="GtkButton" id="save_button">
|
2021-12-19 19:57:26 +05:30
|
|
|
<property name="visible">False</property>
|
|
|
|
<property name="use-underline">True</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
<property name="label" translatable="yes">_Save</property>
|
2021-12-19 19:57:26 +05:30
|
|
|
<signal name="clicked" handler="cc_wwan_apn_save_clicked_cb" swapped="yes"/>
|
2019-10-04 22:16:23 +05:30
|
|
|
<style>
|
2021-12-19 19:57:26 +05:30
|
|
|
<class name="default"/>
|
2019-10-04 22:16:23 +05:30
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
2021-12-19 19:57:26 +05:30
|
|
|
<child>
|
2022-02-03 14:49:01 +05:30
|
|
|
<object class="GtkStack" id="apn_settings_stack">
|
|
|
|
<property name="transition-type">slide-left-right</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
|
2022-02-03 14:49:01 +05:30
|
|
|
<!-- Access Point List -->
|
2019-10-04 22:16:23 +05:30
|
|
|
<child>
|
2022-02-03 14:49:01 +05:30
|
|
|
<object class="AdwPreferencesPage" id="apn_list_view">
|
2019-10-04 22:16:23 +05:30
|
|
|
<child>
|
2022-02-03 14:49:01 +05:30
|
|
|
<object class="AdwPreferencesGroup">
|
2019-10-04 22:16:23 +05:30
|
|
|
<child>
|
2022-02-03 14:49:01 +05:30
|
|
|
<object class="GtkListBox" id="apn_list">
|
|
|
|
<property name="valign">start</property>
|
|
|
|
<property name="selection-mode">none</property>
|
|
|
|
<signal name="row-activated" handler="cc_wwan_apn_activated_cb" swapped="yes"/>
|
|
|
|
<style>
|
|
|
|
<class name="boxed-list"/>
|
|
|
|
</style>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
2022-02-03 14:49:01 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
2019-10-04 22:16:23 +05:30
|
|
|
|
2022-02-03 14:49:01 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<child>
|
|
|
|
<object class="AdwPreferencesPage" id="apn_edit_view">
|
|
|
|
<child>
|
|
|
|
<object class="AdwPreferencesGroup">
|
2019-10-04 22:16:23 +05:30
|
|
|
<child>
|
2022-02-03 14:49:01 +05:30
|
|
|
<object class="GtkGrid">
|
2019-10-04 22:16:23 +05:30
|
|
|
<property name="orientation">vertical</property>
|
2021-12-19 19:57:26 +05:30
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="vexpand">True</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
<property name="row-spacing">6</property>
|
|
|
|
<property name="column-spacing">12</property>
|
|
|
|
|
|
|
|
<!-- Name -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="halign">end</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="label" translatable="yes">Name</property>
|
|
|
|
<style>
|
2021-12-19 19:57:26 +05:30
|
|
|
<class name="dim-label"/>
|
2019-10-04 22:16:23 +05:30
|
|
|
</style>
|
2021-12-19 19:57:26 +05:30
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">0</property>
|
|
|
|
</layout>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEntry" id="name_entry">
|
2021-12-19 19:57:26 +05:30
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<signal name="changed" handler="cc_wwan_apn_entry_changed_cb" swapped="yes"/>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">0</property>
|
|
|
|
</layout>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- APN -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="halign">end</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="label" translatable="yes">APN</property>
|
|
|
|
<style>
|
2021-12-19 19:57:26 +05:30
|
|
|
<class name="dim-label"/>
|
2019-10-04 22:16:23 +05:30
|
|
|
</style>
|
2021-12-19 19:57:26 +05:30
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">1</property>
|
|
|
|
</layout>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEntry" id="apn_entry">
|
|
|
|
<property name="margin-bottom">12</property>
|
2021-12-19 19:57:26 +05:30
|
|
|
<signal name="changed" handler="cc_wwan_apn_entry_changed_cb" swapped="yes"/>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">1</property>
|
|
|
|
</layout>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- Username -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="halign">end</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="label" translatable="yes">Username</property>
|
|
|
|
<style>
|
2021-12-19 19:57:26 +05:30
|
|
|
<class name="dim-label"/>
|
2019-10-04 22:16:23 +05:30
|
|
|
</style>
|
2021-12-19 19:57:26 +05:30
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">2</property>
|
|
|
|
</layout>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEntry" id="username_entry">
|
2021-12-19 19:57:26 +05:30
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">2</property>
|
|
|
|
</layout>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- Password -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="halign">end</property>
|
|
|
|
<property name="valign">center</property>
|
2021-08-14 13:39:33 +05:30
|
|
|
<property name="label" translatable="yes">Password</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
<style>
|
2021-12-19 19:57:26 +05:30
|
|
|
<class name="dim-label"/>
|
2019-10-04 22:16:23 +05:30
|
|
|
</style>
|
2021-12-19 19:57:26 +05:30
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">3</property>
|
|
|
|
</layout>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEntry" id="password_entry">
|
|
|
|
<property name="margin-bottom">12</property>
|
2021-12-19 19:57:26 +05:30
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">3</property>
|
|
|
|
</layout>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
</object>
|
|
|
|
</child>
|
2022-02-03 14:49:01 +05:30
|
|
|
</object> <!-- ./AdwPreferencesGroup -->
|
2019-10-04 22:16:23 +05:30
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
2022-02-03 14:49:01 +05:30
|
|
|
</object> <!-- ./GtkStack apn_settings_stack -->
|
|
|
|
</child>
|
2019-10-04 22:16:23 +05:30
|
|
|
</template>
|
|
|
|
|
|
|
|
<!-- A simple hack to create a radio button group -->
|
2021-12-19 19:57:26 +05:30
|
|
|
<object class="GtkCheckButton" id="apn_radio_button"/>
|
2019-10-04 22:16:23 +05:30
|
|
|
</interface>
|