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="CcWwanSimLockDialog" 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="modal">True</property>
|
|
|
|
<property name="title" translatable="yes">SIM Lock</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
|
|
|
|
<child type="titlebar">
|
|
|
|
<object class="GtkHeaderBar">
|
2021-12-19 19:57:26 +05:30
|
|
|
<child type="end">
|
2019-10-04 22:16:23 +05:30
|
|
|
<object class="GtkStack" id="button_stack">
|
|
|
|
|
|
|
|
<child>
|
2021-12-19 19:57:26 +05:30
|
|
|
<object class="GtkStackPage">
|
2019-10-04 22:16:23 +05:30
|
|
|
<property name="name">next</property>
|
2021-12-19 19:57:26 +05:30
|
|
|
<!-- Next Button -->
|
|
|
|
<property name="child">
|
|
|
|
<object class="GtkButton" id="next_button">
|
|
|
|
<property name="sensitive">False</property>
|
|
|
|
<property name="use-underline">True</property>
|
|
|
|
<property name="label" translatable="yes">_Next</property>
|
|
|
|
<signal name="clicked" handler="cc_wwan_pin_next_clicked_cb" swapped="yes"/>
|
|
|
|
<style>
|
|
|
|
<class name="suggested-action"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
</object>
|
2019-10-04 22:16:23 +05:30
|
|
|
</child>
|
|
|
|
|
|
|
|
<child>
|
2021-12-19 19:57:26 +05:30
|
|
|
<object class="GtkStackPage">
|
2019-10-04 22:16:23 +05:30
|
|
|
<property name="name">apply</property>
|
2021-12-19 19:57:26 +05:30
|
|
|
<!-- Apply button -->
|
|
|
|
<property name="child">
|
|
|
|
<object class="GtkButton" id="apply_button">
|
|
|
|
<property name="use-underline">True</property>
|
|
|
|
<signal name="clicked" handler="cc_wwan_pin_apply_clicked_cb" swapped="yes"/>
|
|
|
|
<style>
|
|
|
|
<class name="suggested-action"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
</object>
|
2019-10-04 22:16:23 +05:30
|
|
|
</child>
|
|
|
|
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
2021-12-19 19:57:26 +05:30
|
|
|
<child>
|
2019-10-04 22:16:23 +05:30
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="width-request">340</property>
|
|
|
|
<property name="height-request">360</property>
|
|
|
|
|
|
|
|
<child>
|
2021-12-19 19:57:26 +05:30
|
|
|
<object class="AdwClamp">
|
2019-10-04 22:16:23 +05:30
|
|
|
<property name="margin-top">32</property>
|
|
|
|
<property name="margin-bottom">32</property>
|
|
|
|
<property name="margin-start">18</property>
|
|
|
|
<property name="margin-end">18</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkOverlay">
|
|
|
|
<child type="overlay">
|
|
|
|
<object class="GtkRevealer" id="notification_revealer">
|
|
|
|
<property name="halign">center</property>
|
|
|
|
<property name="valign">start</property>
|
2021-12-19 19:57:26 +05:30
|
|
|
<property name="child">
|
2019-10-04 22:16:23 +05:30
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="spacing">12</property>
|
|
|
|
<style>
|
2021-12-19 19:57:26 +05:30
|
|
|
<class name="frame"/>
|
|
|
|
<class name="app-notification"/>
|
2019-10-04 22:16:23 +05:30
|
|
|
</style>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="notification_label">
|
2021-12-19 19:57:26 +05:30
|
|
|
<property name="wrap">True</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
<property name="wrap-mode">word-char</property>
|
2021-12-19 19:57:26 +05:30
|
|
|
<property name="use-markup">True</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton">
|
2022-01-03 18:39:19 +05:30
|
|
|
<property name="icon-name">window-close-symbolic</property>
|
2021-12-19 19:57:26 +05:30
|
|
|
<accessibility>
|
|
|
|
<property name="label" translatable="yes">Close</property>
|
|
|
|
</accessibility>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
2021-12-19 19:57:26 +05:30
|
|
|
</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
2021-12-19 19:57:26 +05:30
|
|
|
<property name="child">
|
2019-10-04 22:16:23 +05:30
|
|
|
<object class="GtkStack" id="pin_settings_stack">
|
|
|
|
<property name="transition-type">slide-left</property>
|
|
|
|
|
|
|
|
<child>
|
2021-12-19 19:57:26 +05:30
|
|
|
<object class="GtkStackPage">
|
|
|
|
<property name="name">pin-settings</property>
|
|
|
|
<property name="child">
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="orientation">vertical</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
|
2021-12-19 19:57:26 +05:30
|
|
|
<!-- SIM Lock Switch -->
|
2019-10-04 22:16:23 +05:30
|
|
|
<child>
|
2021-12-19 19:57:26 +05:30
|
|
|
<object class="GtkListBox">
|
|
|
|
<property name="selection-mode">none</property>
|
|
|
|
<property name="margin-bottom">18</property>
|
|
|
|
<style>
|
|
|
|
<class name="frame"/>
|
|
|
|
</style>
|
|
|
|
<child>
|
|
|
|
<object class="CcListRow" id="lock_row">
|
|
|
|
<property name="show-switch">True</property>
|
|
|
|
<property name="use-underline">True</property>
|
|
|
|
<property name="title" translatable="yes">_Lock SIM with PIN</property>
|
|
|
|
<signal name="notify::active" handler="cc_wwan_sim_lock_changed_cb" swapped="yes"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<child>
|
2021-12-19 19:57:26 +05:30
|
|
|
<object class="GtkGrid" id="lock_change_grid">
|
|
|
|
<property name="visible">False</property>
|
|
|
|
<property name="row-spacing">18</property>
|
|
|
|
<property name="column-spacing">12</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
|
2021-12-19 19:57:26 +05:30
|
|
|
<!-- SIM Lock Change Title -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="lock_change_title">
|
|
|
|
<property name="label" translatable="yes">Change PIN</property>
|
|
|
|
<property name="margin-bottom">9</property>
|
|
|
|
<property name="xalign">0.0</property>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="weight" value="bold"></attribute>
|
|
|
|
</attributes>
|
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">0</property>
|
|
|
|
<property name="column-span">2</property>
|
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- PIN Entry -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label">New PIN</property>
|
|
|
|
<property name="halign">end</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">1</property>
|
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkEntry" id="new_pin_entry">
|
|
|
|
<property name="visibility">False</property>
|
|
|
|
<property name="input-purpose">password</property>
|
|
|
|
<property name="input-hints">no-emoji</property>
|
|
|
|
<property name="max-length">8</property>
|
|
|
|
<property name="max-width-chars">32</property>
|
|
|
|
<signal name="notify::text" handler="cc_wwan_pin_entry_changed_cb" swapped="yes"/>
|
|
|
|
<signal name="insert-text" handler="cc_wwan_pin_entry_text_inserted_cb" swapped="yes"/>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">1</property>
|
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="label">Confirm</property>
|
|
|
|
<property name="halign">end</property>
|
|
|
|
<layout>
|
|
|
|
<property name="column">0</property>
|
|
|
|
<property name="row">2</property>
|
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<!-- Confirm PIN Entry -->
|
|
|
|
<child>
|
|
|
|
<object class="GtkEntry" id="pin_confirm_entry">
|
|
|
|
<property name="visibility">False</property>
|
|
|
|
<property name="input-purpose">password</property>
|
|
|
|
<property name="input-hints">no-emoji</property>
|
|
|
|
<property name="max-length">8</property>
|
|
|
|
<property name="max-width-chars">32</property>
|
|
|
|
<signal name="notify::text" handler="cc_wwan_pin_entry_changed_cb" swapped="yes"/>
|
|
|
|
<signal name="insert-text" handler="cc_wwan_pin_entry_changed_cb" swapped="yes"/>
|
|
|
|
<layout>
|
|
|
|
<property name="column">1</property>
|
|
|
|
<property name="row">2</property>
|
|
|
|
</layout>
|
|
|
|
</object>
|
|
|
|
</child>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
2021-12-19 19:57:26 +05:30
|
|
|
|
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
|
|
|
|
<child>
|
|
|
|
<object class="GtkStackPage">
|
|
|
|
<property name="name">pin-entry</property>
|
|
|
|
<property name="child">
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="halign">center</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
<child>
|
2021-12-19 19:57:26 +05:30
|
|
|
<object class="GtkImage">
|
|
|
|
<property name="pixel-size">128</property>
|
|
|
|
<property name="icon-name">dialog-password-symbolic</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2021-12-19 19:57:26 +05:30
|
|
|
<object class="GtkLabel" id="">
|
|
|
|
<property name="label" translatable="yes">Enter current PIN to change SIM lock settings</property>
|
|
|
|
<property name="margin-bottom">24</property>
|
|
|
|
<property name="halign">center</property>
|
|
|
|
<style>
|
|
|
|
<class name="dim-label"/>
|
|
|
|
</style>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
2021-12-19 19:57:26 +05:30
|
|
|
<object class="GtkEntry" id="pin_entry">
|
|
|
|
<property name="visibility">False</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
<property name="input-purpose">password</property>
|
|
|
|
<property name="input-hints">no-emoji</property>
|
|
|
|
<property name="max-length">8</property>
|
|
|
|
<property name="max-width-chars">32</property>
|
2021-12-19 19:57:26 +05:30
|
|
|
<signal name="notify::text" handler="cc_wwan_pin_entered_cb" swapped="yes"/>
|
|
|
|
<signal name="insert-text" handler="cc_wwan_pin_entry_text_inserted_cb" swapped="yes"/>
|
|
|
|
<signal name="activate" handler="cc_wwan_pin_apply_clicked_cb" swapped="yes"/>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
2021-12-19 19:57:26 +05:30
|
|
|
</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
2021-12-19 19:57:26 +05:30
|
|
|
</object>
|
|
|
|
</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child> <!-- ./internal-child -->
|
|
|
|
|
|
|
|
<child type="action">
|
|
|
|
<object class="GtkButton" id="cancel_button">
|
2021-12-19 19:57:26 +05:30
|
|
|
<property name="use-underline">True</property>
|
2019-10-04 22:16:23 +05:30
|
|
|
<property name="label" translatable="yes">_Cancel</property>
|
|
|
|
<signal name="clicked" handler="gtk_widget_hide" swapped="yes"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<action-widgets>
|
|
|
|
<action-widget response="cancel">cancel_button</action-widget>
|
|
|
|
</action-widgets>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</interface>
|