anastasis-gtk

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

anastasis_gtk_auth_add_sms.ui (7794B)


      1 <?xml version='1.0' encoding='UTF-8'?>
      2 <!-- Created with Cambalache 0.94.1 -->
      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 <interface>
     23   <!-- interface-name anastasis_gtk_auth_add_sms.ui -->
     24   <requires lib="gtk" version="4.0"/>
     25   <object class="GtkDialog" id="anastasis_gtk_b_sms_dialog">
     26     <property name="default-widget">anastasis_gtk_b_sms_dialog_btn_ok</property>
     27     <signal name="response" handler="anastasis_gtk_b_sms_dialog_response_cb"/>
     28     <child internal-child="content_area">
     29       <object class="GtkBox">
     30         <property name="orientation">vertical</property>
     31         <property name="spacing">2</property>
     32         <child>
     33           <object class="GtkBox">
     34             <property name="margin-bottom">5</property>
     35             <property name="margin-top">5</property>
     36             <property name="orientation">vertical</property>
     37             <property name="vexpand">0</property>
     38             <child>
     39               <object class="GtkLabel" id="explainer_label">
     40                 <property name="label" translatable="yes">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                 <property name="margin-bottom">20</property>
     45                 <property name="margin-end">20</property>
     46                 <property name="margin-start">20</property>
     47                 <property name="margin-top">20</property>
     48                 <attributes>
     49                   <attribute name="weight" value="medium"/>
     50                 </attributes>
     51               </object>
     52             </child>
     53             <child>
     54               <object class="GtkBox">
     55                 <property name="halign">start</property>
     56                 <property name="margin-bottom">55</property>
     57                 <property name="margin-end">25</property>
     58                 <property name="margin-start">25</property>
     59                 <property name="margin-top">5</property>
     60                 <property name="orientation">vertical</property>
     61                 <property name="vexpand">1</property>
     62                 <child>
     63                   <object class="GtkLabel">
     64                     <property name="halign">start</property>
     65                     <property name="label" translatable="yes">Mobile number:</property>
     66                     <property name="margin-bottom">5</property>
     67                     <property name="margin-top">5</property>
     68                   </object>
     69                 </child>
     70                 <child>
     71                   <object class="GtkEntry" id="anastasis_gtk_b_sms_dialog_phonenumber_entry">
     72                     <property name="activates-default">1</property>
     73                     <property name="focusable">1</property>
     74                     <property name="hexpand">1</property>
     75                     <property name="input-purpose">phone</property>
     76                     <property name="placeholder-text" translatable="yes">+41123456789</property>
     77                     <property name="primary-icon-name">dialog-password</property>
     78                     <property name="text" translatable="yes">+</property>
     79                     <property name="width-chars">24</property>
     80                     <signal name="changed" handler="anastasis_gtk_b_sms_dialog_phonenumber_entry_changed_cb"/>
     81                   </object>
     82                 </child>
     83                 <child>
     84                   <object class="GtkLabel" id="phone_number_format_explainer_label">
     85                     <property name="label" translatable="yes">Enter mobile number including +CC international dialing prefix.</property>
     86                     <property name="margin-end">20</property>
     87                     <property name="margin-start">20</property>
     88                     <attributes>
     89                       <attribute name="scale" value="0.80000000000000004"/>
     90                     </attributes>
     91                   </object>
     92                 </child>
     93               </object>
     94             </child>
     95           </object>
     96         </child>
     97       </object>
     98     </child>
     99     <child type="titlebar">
    100       <object class="GtkLabel">
    101         <property name="label" translatable="yes">Configure SMS</property>
    102       </object>
    103     </child>
    104     <child internal-child="action_area">
    105       <object class="GtkBox">
    106         <property name="can-focus">0</property>
    107         <property name="halign">end</property>
    108         <property name="homogeneous">1</property>
    109         <property name="margin-bottom">5</property>
    110         <property name="margin-top">5</property>
    111         <property name="spacing">6</property>
    112         <child>
    113           <object class="GtkButton" id="anastasis_gtk_b_sms_dialog_btn_cancel">
    114             <property name="child">
    115               <object class="GtkBox">
    116                 <property name="halign">center</property>
    117                 <property name="spacing">2</property>
    118                 <child>
    119                   <object class="GtkImage">
    120                     <property name="icon-name">gtk-cancel</property>
    121                   </object>
    122                 </child>
    123                 <child>
    124                   <object class="GtkLabel">
    125                     <property name="label" translatable="yes">_Cancel</property>
    126                     <property name="mnemonic-widget">anastasis_gtk_b_sms_dialog_btn_cancel</property>
    127                     <property name="use-underline">1</property>
    128                   </object>
    129                 </child>
    130               </object>
    131             </property>
    132             <property name="margin-end">5</property>
    133             <property name="margin-start">5</property>
    134           </object>
    135         </child>
    136         <child>
    137           <object class="GtkButton" id="anastasis_gtk_b_sms_dialog_btn_ok">
    138             <property name="child">
    139               <object class="GtkBox">
    140                 <property name="halign">center</property>
    141                 <property name="spacing">2</property>
    142                 <child>
    143                   <object class="GtkImage">
    144                     <property name="icon-name">gtk-ok</property>
    145                   </object>
    146                 </child>
    147                 <child>
    148                   <object class="GtkLabel">
    149                     <property name="label" translatable="yes">_OK</property>
    150                     <property name="mnemonic-widget">anastasis_gtk_b_sms_dialog_btn_ok</property>
    151                     <property name="use-underline">1</property>
    152                   </object>
    153                 </child>
    154               </object>
    155             </property>
    156             <property name="margin-end">5</property>
    157             <property name="margin-start">5</property>
    158             <property name="sensitive">0</property>
    159           </object>
    160         </child>
    161       </object>
    162     </child>
    163     <action-widgets>
    164       <action-widget response="-6">anastasis_gtk_b_sms_dialog_btn_cancel</action-widget>
    165       <action-widget response="-5">anastasis_gtk_b_sms_dialog_btn_ok</action-widget>
    166     </action-widgets>
    167     <action-widgets>
    168       <action-widget response="-6">anastasis_gtk_b_sms_dialog_btn_cancel</action-widget>
    169       <action-widget response="-5">anastasis_gtk_b_sms_dialog_btn_ok</action-widget>
    170     </action-widgets>
    171   </object>
    172 </interface>