anastasis-gtk

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

anastasis_gtk_auth_add_post.ui (12963B)


      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_post_dialog">
     24     <property name="focus-widget">anastasis_gtk_b_post_dialog_full_name_entry</property>
     25     <property name="default-widget">anastasis_gtk_b_post_dialog_btn_ok</property>
     26     <signal name="response" handler="anastasis_gtk_b_post_dialog_response_cb" swapped="no"/>
     27     <child internal-child="content_area">
     28       <object class="GtkBox">
     29         <property name="orientation">vertical</property>
     30         <property name="spacing">2</property>
     31         <child>
     32           <object class="GtkBox">
     33             <property name="orientation">vertical</property>
     34             <property name="spacing">5</property>
     35             <property name="vexpand">0</property>
     36             <child>
     37               <object class="GtkLabel">
     38                 <property name="label" translatable="1">For postal letter authentication, you need to
     39 provide a postal address. When recovering
     40 your secret, you will be asked to enter the
     41 code you will receive in a letter to that
     42 address.</property>
     43                 <attributes>
     44                   <attribute name="weight" value="medium"></attribute>
     45                 </attributes>
     46                 <property name="margin-top">25</property>
     47                 <property name="margin-bottom">25</property>
     48               </object>
     49             </child>
     50             <child>
     51               <object class="GtkSeparator"/>
     52             </child>
     53             <child>
     54               <object class="GtkBox">
     55                 <property name="vexpand">1</property>
     56                 <property name="margin-start">20</property>
     57                 <property name="margin-end">20</property>
     58                 <property name="orientation">vertical</property>
     59                 <property name="margin-top">5</property>
     60                 <property name="margin-bottom">5</property>
     61                 <child>
     62                   <object class="GtkLabel">
     63                     <property name="valign">center</property>
     64                     <property name="halign">start</property>
     65                     <property name="label" translatable="1">_Name</property>
     66                     <property name="use-underline">1</property>
     67                     <property name="margin-top">5</property>
     68                     <property name="margin-bottom">5</property>
     69                   </object>
     70                 </child>
     71                 <child>
     72                   <object class="GtkEntry" id="anastasis_gtk_b_post_dialog_full_name_entry">
     73                     <property name="vexpand">1</property>
     74                     <property name="focusable">1</property>
     75                     <property name="hexpand">1</property>
     76                     <property name="activates-default">1</property>
     77                     <signal name="changed" handler="anastasis_gtk_b_post_dialog_entry_changed_cb" swapped="no"/>
     78                     <property name="margin-top">5</property>
     79                     <property name="margin-bottom">5</property>
     80                   </object>
     81                 </child>
     82               </object>
     83             </child>
     84             <child>
     85               <object class="GtkBox">
     86                 <property name="margin-start">20</property>
     87                 <property name="margin-end">20</property>
     88                 <property name="orientation">vertical</property>
     89                 <property name="margin-top">5</property>
     90                 <property name="margin-bottom">5</property>
     91                 <property name="vexpand">0</property>
     92                 <child>
     93                   <object class="GtkLabel">
     94                     <property name="halign">start</property>
     95                     <property name="label" translatable="1">_Street and number</property>
     96                     <property name="use-underline">1</property>
     97                     <property name="margin-top">5</property>
     98                     <property name="margin-bottom">5</property>
     99                   </object>
    100                 </child>
    101                 <child>
    102                   <object class="GtkEntry" id="anastasis_gtk_b_post_dialog_street_entry">
    103                     <property name="vexpand">1</property>
    104                     <property name="focusable">1</property>
    105                     <property name="hexpand">1</property>
    106                     <property name="activates-default">1</property>
    107                     <signal name="changed" handler="anastasis_gtk_b_post_dialog_entry_changed_cb" swapped="no"/>
    108                     <property name="margin-top">5</property>
    109                     <property name="margin-bottom">5</property>
    110                   </object>
    111                 </child>
    112               </object>
    113             </child>
    114             <child>
    115               <object class="GtkBox">
    116                 <property name="margin-start">20</property>
    117                 <property name="margin-end">20</property>
    118                 <property name="orientation">vertical</property>
    119                 <property name="margin-top">5</property>
    120                 <property name="margin-bottom">5</property>
    121                 <property name="vexpand">0</property>
    122                 <child>
    123                   <object class="GtkLabel">
    124                     <property name="halign">start</property>
    125                     <property name="label" translatable="1">_City or town</property>
    126                     <property name="use-underline">1</property>
    127                     <property name="margin-top">5</property>
    128                     <property name="margin-bottom">5</property>
    129                   </object>
    130                 </child>
    131                 <child>
    132                   <object class="GtkEntry" id="anastasis_gtk_b_post_dialog_city_entry">
    133                     <property name="vexpand">1</property>
    134                     <property name="focusable">1</property>
    135                     <property name="hexpand">1</property>
    136                     <property name="activates-default">1</property>
    137                     <signal name="changed" handler="anastasis_gtk_b_post_dialog_entry_changed_cb" swapped="no"/>
    138                     <property name="margin-top">5</property>
    139                     <property name="margin-bottom">5</property>
    140                   </object>
    141                 </child>
    142               </object>
    143             </child>
    144             <child>
    145               <object class="GtkBox">
    146                 <property name="margin-start">20</property>
    147                 <property name="margin-end">20</property>
    148                 <property name="orientation">vertical</property>
    149                 <property name="margin-top">5</property>
    150                 <property name="margin-bottom">5</property>
    151                 <property name="vexpand">0</property>
    152                 <child>
    153                   <object class="GtkLabel">
    154                     <property name="halign">start</property>
    155                     <property name="label" translatable="1">_Postcode</property>
    156                     <property name="use-underline">1</property>
    157                     <property name="margin-top">5</property>
    158                     <property name="margin-bottom">5</property>
    159                   </object>
    160                 </child>
    161                 <child>
    162                   <object class="GtkEntry" id="anastasis_gtk_b_post_dialog_postcode_entry">
    163                     <property name="vexpand">1</property>
    164                     <property name="focusable">1</property>
    165                     <property name="hexpand">1</property>
    166                     <property name="activates-default">1</property>
    167                     <signal name="changed" handler="anastasis_gtk_b_post_dialog_entry_changed_cb" swapped="no"/>
    168                     <property name="margin-top">5</property>
    169                     <property name="margin-bottom">5</property>
    170                   </object>
    171                 </child>
    172               </object>
    173             </child>
    174             <child>
    175               <object class="GtkBox">
    176                 <property name="margin-start">20</property>
    177                 <property name="margin-end">20</property>
    178                 <property name="margin-bottom">45</property>
    179                 <property name="orientation">vertical</property>
    180                 <property name="margin-top">5</property>
    181                 <property name="vexpand">0</property>
    182                 <child>
    183                   <object class="GtkLabel">
    184                     <property name="halign">start</property>
    185                     <property name="label" translatable="1">Countr_y</property>
    186                     <property name="use-underline">1</property>
    187                     <property name="margin-top">5</property>
    188                     <property name="margin-bottom">5</property>
    189                   </object>
    190                 </child>
    191                 <child>
    192                   <object class="GtkEntry" id="anastasis_gtk_b_post_dialog_country_entry">
    193                     <property name="vexpand">1</property>
    194                     <property name="focusable">1</property>
    195                     <property name="hexpand">1</property>
    196                     <property name="activates-default">1</property>
    197                     <signal name="changed" handler="anastasis_gtk_b_post_dialog_entry_changed_cb" swapped="no"/>
    198                     <property name="margin-top">5</property>
    199                     <property name="margin-bottom">5</property>
    200                   </object>
    201                 </child>
    202               </object>
    203             </child>
    204           </object>
    205         </child>
    206       </object>
    207     </child>
    208     <action-widgets>
    209       <action-widget response="-6">anastasis_gtk_b_post_dialog_btn_cancel</action-widget>
    210       <action-widget response="-5">anastasis_gtk_b_post_dialog_btn_ok</action-widget>
    211     </action-widgets>
    212     <child type="titlebar">
    213       <object class="GtkLabel">
    214         <property name="label" translatable="1">Configure postal letter</property>
    215       </object>
    216     </child>
    217     <action-widgets>
    218       <action-widget response="-6">anastasis_gtk_b_post_dialog_btn_cancel</action-widget>
    219       <action-widget response="-5">anastasis_gtk_b_post_dialog_btn_ok</action-widget>
    220     </action-widgets>
    221     <child internal-child="action_area">
    222       <object class="GtkBox">
    223         <property name="can-focus">0</property>
    224         <property name="homogeneous">1</property>
    225         <property name="spacing">6</property>
    226         <property name="halign">end</property>
    227         <child>
    228           <object class="GtkButton" id="anastasis_gtk_b_post_dialog_btn_cancel">
    229             <property name="child">
    230               <object class="GtkBox">
    231                 <property name="spacing">2</property>
    232                 <property name="halign">center</property>
    233                 <child>
    234                   <object class="GtkImage">
    235                     <property name="icon-name">gtk-cancel</property>
    236                   </object>
    237                 </child>
    238                 <child>
    239                   <object class="GtkLabel">
    240                     <property name="label" translatable="1">_Cancel</property>
    241                     <property name="use-underline">1</property>
    242                     <property name="mnemonic-widget">anastasis_gtk_b_post_dialog_btn_cancel</property>
    243                   </object>
    244                 </child>
    245               </object>
    246             </property>
    247           </object>
    248         </child>
    249         <child>
    250           <object class="GtkButton" id="anastasis_gtk_b_post_dialog_btn_ok">
    251             <property name="sensitive">0</property>
    252             <property name="child">
    253               <object class="GtkBox">
    254                 <property name="spacing">2</property>
    255                 <property name="halign">center</property>
    256                 <child>
    257                   <object class="GtkImage">
    258                     <property name="icon-name">gtk-ok</property>
    259                   </object>
    260                 </child>
    261                 <child>
    262                   <object class="GtkLabel">
    263                     <property name="label" translatable="1">_OK</property>
    264                     <property name="use-underline">1</property>
    265                     <property name="mnemonic-widget">anastasis_gtk_b_post_dialog_btn_ok</property>
    266                   </object>
    267                 </child>
    268               </object>
    269             </property>
    270           </object>
    271         </child>
    272       </object>
    273     </child>
    274   </object>
    275 </interface>
    276