anastasis-gtk

Demonstrator GUI for Anastasis
Log | Files | Refs | README | LICENSE

anastasis_gtk_auth_add_sms.ui (7731B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3 Copyright (C) 2019-2021 Anastasis SARL
      4 
      5 This file is part of anastasis-gtk.
      6 
      7 anastasis-gtk is free software: you can redistribute it and/or modify
      8 it under the terms of the GNU General Public License as published by
      9 the Free Software Foundation, either version 3 of the License, or
     10 (at your option) any later version.
     11 
     12 anastasis-gtk is distributed in the hope that it will be useful,
     13 but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 GNU General Public License for more details.
     16 
     17 You should have received a copy of the GNU General Public License
     18 along with anastasis-gtk.  If not, see <http://www.gnu.org/licenses/>.
     19 
     20 Author: Christian Grothoff-->
     21 <interface>
     22   <requires lib="gtk" version="4.0"/>
     23   <object class="GtkDialog" id="anastasis_gtk_b_sms_dialog">
     24     <property name="default-widget">anastasis_gtk_b_sms_dialog_btn_ok</property>
     25     <signal name="response" handler="anastasis_gtk_b_sms_dialog_response_cb" swapped="no"/>
     26     <child internal-child="content_area">
     27       <object class="GtkBox">
     28         <property name="orientation">vertical</property>
     29         <property name="spacing">2</property>
     30         <child>
     31           <object class="GtkBox">
     32             <property name="orientation">vertical</property>
     33             <property name="margin-top">5</property>
     34             <property name="margin-bottom">5</property>
     35             <property name="vexpand">0</property>
     36             <child>
     37               <object class="GtkLabel" id="explainer_label">
     38                 <property name="margin-start">20</property>
     39                 <property name="margin-end">20</property>
     40                 <property name="label" translatable="1">For SMS authentication, you need to
     41 provide a mobile number. When recovering
     42 your secret, you will be asked to enter the
     43 code you will receive by SMS.</property>
     44                 <attributes>
     45                   <attribute name="weight" value="medium"></attribute>
     46                 </attributes>
     47                 <property name="margin-top">20</property>
     48                 <property name="margin-bottom">20</property>
     49               </object>
     50             </child>
     51             <child>
     52               <object class="GtkBox">
     53                 <property name="vexpand">1</property>
     54                 <property name="halign">start</property>
     55                 <property name="margin-start">25</property>
     56                 <property name="margin-end">25</property>
     57                 <property name="margin-bottom">55</property>
     58                 <property name="orientation">vertical</property>
     59                 <property name="margin-top">5</property>
     60                 <child>
     61                   <object class="GtkLabel">
     62                     <property name="halign">start</property>
     63                     <property name="label" translatable="1">Mobile number:</property>
     64                     <property name="margin-top">5</property>
     65                     <property name="margin-bottom">5</property>
     66                   </object>
     67                 </child>
     68                 <child>
     69                   <object class="GtkEntry" id="anastasis_gtk_b_sms_dialog_phonenumber_entry">
     70                     <property name="focusable">1</property>
     71                     <property name="hexpand">1</property>
     72                     <property name="activates-default">1</property>
     73                     <property name="width-chars">24</property>
     74                     <property name="text" translatable="1">+</property>
     75                     <property name="primary-icon-name">dialog-password</property>
     76                     <property name="placeholder-text" translatable="1">+41123456789</property>
     77                     <property name="input-purpose">phone</property>
     78                     <signal name="changed" handler="anastasis_gtk_b_sms_dialog_phonenumber_entry_changed_cb" swapped="no"/>
     79                   </object>
     80                 </child>
     81                 <child>
     82                   <object class="GtkLabel" id="phone_number_format_explainer_label">
     83                     <property name="margin-start">20</property>
     84                     <property name="margin-end">20</property>
     85                     <property name="label" translatable="1">Enter mobile number including +CC international dialing prefix.</property>
     86                     <attributes>
     87                       <attribute name="scale" value="0.80000000000000004"></attribute>
     88                     </attributes>
     89                   </object>
     90                 </child>
     91               </object>
     92             </child>
     93           </object>
     94         </child>
     95       </object>
     96     </child>
     97     <action-widgets>
     98       <action-widget response="-6">anastasis_gtk_b_sms_dialog_btn_cancel</action-widget>
     99       <action-widget response="-5">anastasis_gtk_b_sms_dialog_btn_ok</action-widget>
    100     </action-widgets>
    101     <child type="titlebar">
    102       <object class="GtkLabel">
    103         <property name="label" translatable="1">Configure SMS</property>
    104       </object>
    105     </child>
    106     <action-widgets>
    107       <action-widget response="-6">anastasis_gtk_b_sms_dialog_btn_cancel</action-widget>
    108       <action-widget response="-5">anastasis_gtk_b_sms_dialog_btn_ok</action-widget>
    109     </action-widgets>
    110     <child internal-child="action_area">
    111       <object class="GtkBox">
    112         <property name="can-focus">0</property>
    113         <child>
    114           <object class="GtkButton" id="anastasis_gtk_b_sms_dialog_btn_cancel">
    115             <property name="margin-start">5</property>
    116             <property name="margin-end">5</property>
    117             <property name="child">
    118               <object class="GtkBox">
    119                 <property name="spacing">2</property>
    120                 <property name="halign">center</property>
    121                 <child>
    122                   <object class="GtkImage">
    123                     <property name="icon-name">gtk-cancel</property>
    124                   </object>
    125                 </child>
    126                 <child>
    127                   <object class="GtkLabel">
    128                     <property name="label" translatable="1">_Cancel</property>
    129                     <property name="use-underline">1</property>
    130                     <property name="mnemonic-widget">anastasis_gtk_b_sms_dialog_btn_cancel</property>
    131                   </object>
    132                 </child>
    133               </object>
    134             </property>
    135           </object>
    136         </child>
    137         <child>
    138           <object class="GtkButton" id="anastasis_gtk_b_sms_dialog_btn_ok">
    139             <property name="sensitive">0</property>
    140             <property name="margin-start">5</property>
    141             <property name="margin-end">5</property>
    142             <property name="child">
    143               <object class="GtkBox">
    144                 <property name="spacing">2</property>
    145                 <property name="halign">center</property>
    146                 <child>
    147                   <object class="GtkImage">
    148                     <property name="icon-name">gtk-ok</property>
    149                   </object>
    150                 </child>
    151                 <child>
    152                   <object class="GtkLabel">
    153                     <property name="label" translatable="1">_OK</property>
    154                     <property name="use-underline">1</property>
    155                     <property name="mnemonic-widget">anastasis_gtk_b_sms_dialog_btn_ok</property>
    156                   </object>
    157                 </child>
    158               </object>
    159             </property>
    160           </object>
    161         </child>
    162         <property name="margin-top">5</property>
    163         <property name="margin-bottom">5</property>
    164         <property name="homogeneous">1</property>
    165         <property name="spacing">6</property>
    166         <property name="halign">end</property>
    167       </object>
    168     </child>
    169   </object>
    170 </interface>
    171