anastasis-gtk

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

anastasis_gtk_auth_add_post.ui (12988B)


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