anastasis-gtk

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

anastasis_gtk_auth_add_totp.glade (13251B)


      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: Belen Pena, Christian Grothoff, Dennis Neufeld
     22 
     23 -->
     24 <interface domain="">
     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 Belen Pena, Christian Grothoff, Dennis Neufeld -->
     31   <object class="GtkDialog" id="anastasis_gtk_b_totp_dialog">
     32     <property name="can-focus">False</property>
     33     <property name="type-hint">dialog</property>
     34     <signal name="response" handler="anastasis_gtk_b_totp_dialog_response_cb" swapped="no"/>
     35     <child internal-child="vbox">
     36       <object class="GtkBox">
     37         <property name="can-focus">False</property>
     38         <property name="orientation">vertical</property>
     39         <property name="spacing">2</property>
     40         <child internal-child="action_area">
     41           <object class="GtkButtonBox">
     42             <property name="can-focus">False</property>
     43             <property name="layout-style">end</property>
     44             <child>
     45               <object class="GtkButton" id="anastasis_gtk_b_totp_dialog_btn_cancel">
     46                 <property name="label">gtk-cancel</property>
     47                 <property name="visible">True</property>
     48                 <property name="can-focus">False</property>
     49                 <property name="receives-default">False</property>
     50                 <property name="use-stock">True</property>
     51                 <property name="always-show-image">True</property>
     52               </object>
     53               <packing>
     54                 <property name="expand">True</property>
     55                 <property name="fill">True</property>
     56                 <property name="position">0</property>
     57               </packing>
     58             </child>
     59             <child>
     60               <object class="GtkButton" id="anastasis_gtk_b_totp_dialog_btn_ok">
     61                 <property name="label">gtk-ok</property>
     62                 <property name="visible">True</property>
     63                 <property name="sensitive">False</property>
     64                 <property name="can-focus">False</property>
     65                 <property name="can-default">True</property>
     66                 <property name="has-default">True</property>
     67                 <property name="receives-default">False</property>
     68                 <property name="use-stock">True</property>
     69                 <property name="always-show-image">True</property>
     70               </object>
     71               <packing>
     72                 <property name="expand">True</property>
     73                 <property name="fill">True</property>
     74                 <property name="position">1</property>
     75               </packing>
     76             </child>
     77           </object>
     78           <packing>
     79             <property name="expand">False</property>
     80             <property name="fill">False</property>
     81             <property name="position">0</property>
     82           </packing>
     83         </child>
     84         <child>
     85           <object class="GtkBox">
     86             <property name="visible">True</property>
     87             <property name="can-focus">False</property>
     88             <property name="orientation">vertical</property>
     89             <child>
     90               <object class="GtkLabel" id="explainer_label">
     91                 <property name="name">explainer_label</property>
     92                 <property name="visible">True</property>
     93                 <property name="can-focus">False</property>
     94                 <property name="label" translatable="yes">For TOTP authentication, you need to set a name for the TOTP secret.
     95 Then, you must scan the generated QR code with your TOTP App to
     96 import the TOTP secret it into your TOTP App.</property>
     97                 <property name="use-markup">True</property>
     98               </object>
     99               <packing>
    100                 <property name="expand">False</property>
    101                 <property name="fill">True</property>
    102                 <property name="padding">20</property>
    103                 <property name="position">0</property>
    104               </packing>
    105             </child>
    106             <child>
    107               <object class="GtkBox">
    108                 <property name="visible">True</property>
    109                 <property name="can-focus">False</property>
    110                 <property name="margin-bottom">50</property>
    111                 <property name="orientation">vertical</property>
    112                 <child>
    113                   <object class="GtkLabel">
    114                     <property name="visible">True</property>
    115                     <property name="can-focus">False</property>
    116                     <property name="halign">start</property>
    117                     <property name="margin-start">25</property>
    118                     <property name="margin-end">25</property>
    119                     <property name="label" translatable="yes">TOTP Name</property>
    120                   </object>
    121                   <packing>
    122                     <property name="expand">False</property>
    123                     <property name="fill">False</property>
    124                     <property name="padding">5</property>
    125                     <property name="position">0</property>
    126                   </packing>
    127                 </child>
    128                 <child>
    129                   <object class="GtkEntry" id="anastasis_gtk_b_totp_dialog_name_entry">
    130                     <property name="visible">True</property>
    131                     <property name="can-focus">True</property>
    132                     <property name="has-focus">True</property>
    133                     <property name="margin-start">25</property>
    134                     <property name="margin-end">25</property>
    135                     <property name="hexpand">True</property>
    136                     <property name="activates-default">True</property>
    137                     <property name="width-chars">36</property>
    138                     <property name="text" translatable="yes">Anastasis</property>
    139                     <property name="primary-icon-stock">gtk-info</property>
    140                     <property name="input-purpose">name</property>
    141                     <signal name="changed" handler="anastasis_gtk_b_totp_dialog_name_entry_changed_cb" swapped="no"/>
    142                   </object>
    143                   <packing>
    144                     <property name="expand">True</property>
    145                     <property name="fill">True</property>
    146                     <property name="padding">5</property>
    147                     <property name="position">1</property>
    148                   </packing>
    149                 </child>
    150                 <child>
    151                   <object class="GtkImage" id="qr_image">
    152                     <property name="name">qr_image</property>
    153                     <property name="visible">True</property>
    154                     <property name="can-focus">False</property>
    155                     <property name="halign">center</property>
    156                     <property name="margin-start">25</property>
    157                     <property name="margin-end">25</property>
    158                     <property name="margin-top">25</property>
    159                     <property name="margin-bottom">25</property>
    160                     <property name="stock">gtk-missing-image</property>
    161                     <property name="icon_size">6</property>
    162                   </object>
    163                   <packing>
    164                     <property name="expand">False</property>
    165                     <property name="fill">False</property>
    166                     <property name="padding">5</property>
    167                     <property name="position">2</property>
    168                   </packing>
    169                 </child>
    170               </object>
    171               <packing>
    172                 <property name="expand">False</property>
    173                 <property name="fill">False</property>
    174                 <property name="padding">5</property>
    175                 <property name="position">1</property>
    176               </packing>
    177             </child>
    178             <child>
    179               <object class="GtkBox">
    180                 <property name="visible">True</property>
    181                 <property name="can-focus">False</property>
    182                 <property name="orientation">vertical</property>
    183                 <child>
    184                   <object class="GtkLabel">
    185                     <property name="visible">True</property>
    186                     <property name="can-focus">False</property>
    187                     <property name="halign">start</property>
    188                     <property name="margin-start">10</property>
    189                     <property name="margin-end">10</property>
    190                     <property name="label" translatable="yes">Confirm that your TOTP App works by entering the current 8-digit TOTP code here:</property>
    191                   </object>
    192                   <packing>
    193                     <property name="expand">False</property>
    194                     <property name="fill">True</property>
    195                     <property name="padding">5</property>
    196                     <property name="position">0</property>
    197                   </packing>
    198                 </child>
    199                 <child>
    200                   <object class="GtkEntry" id="totp_entry">
    201                     <property name="visible">True</property>
    202                     <property name="can-focus">True</property>
    203                     <property name="tooltip-text" translatable="yes">Enter the 8-digit TOTP code. Valid for 30s.</property>
    204                     <property name="max-length">9</property>
    205                     <property name="activates-default">True</property>
    206                     <property name="max-width-chars">9</property>
    207                     <property name="primary-icon-stock">gtk-dialog-question</property>
    208                     <property name="placeholder-text" translatable="yes">00000000</property>
    209                     <property name="input-purpose">number</property>
    210                     <signal name="changed" handler="totp_entry_changed_cb" swapped="no"/>
    211                   </object>
    212                   <packing>
    213                     <property name="expand">False</property>
    214                     <property name="fill">True</property>
    215                     <property name="padding">5</property>
    216                     <property name="position">1</property>
    217                   </packing>
    218                 </child>
    219                 <child>
    220                   <object class="GtkLabel" id="google_label">
    221                     <property name="visible">True</property>
    222                     <property name="can-focus">False</property>
    223                     <property name="halign">start</property>
    224                     <property name="margin-start">20</property>
    225                     <property name="margin-end">20</property>
    226                     <property name="label" translatable="yes">We note that Google's implementation of TOTP is incomplete and will not work. We recommend using FreeOTP+.</property>
    227                     <attributes>
    228                       <attribute name="scale" value="0.80000000000000004"/>
    229                     </attributes>
    230                   </object>
    231                   <packing>
    232                     <property name="expand">False</property>
    233                     <property name="fill">True</property>
    234                     <property name="position">2</property>
    235                   </packing>
    236                 </child>
    237               </object>
    238               <packing>
    239                 <property name="expand">False</property>
    240                 <property name="fill">True</property>
    241                 <property name="position">2</property>
    242               </packing>
    243             </child>
    244           </object>
    245           <packing>
    246             <property name="expand">False</property>
    247             <property name="fill">True</property>
    248             <property name="padding">5</property>
    249             <property name="position">1</property>
    250           </packing>
    251         </child>
    252       </object>
    253     </child>
    254     <action-widgets>
    255       <action-widget response="-6">anastasis_gtk_b_totp_dialog_btn_cancel</action-widget>
    256       <action-widget response="-5">anastasis_gtk_b_totp_dialog_btn_ok</action-widget>
    257     </action-widgets>
    258     <child type="titlebar">
    259       <object class="GtkLabel">
    260         <property name="visible">True</property>
    261         <property name="can-focus">False</property>
    262         <property name="label" translatable="yes">Configure TOTP</property>
    263       </object>
    264     </child>
    265     <action-widgets>
    266       <action-widget response="-6">anastasis_gtk_b_totp_dialog_btn_cancel</action-widget>
    267       <action-widget response="-5">anastasis_gtk_b_totp_dialog_btn_ok</action-widget>
    268     </action-widgets>
    269   </object>
    270 </interface>