anastasis-gtk

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

anastasis_gtk_auth_add_sms.glade (9685B)


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