anastasis-gtk

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

anastasis_gtk_auth_add_question.ui (12708B)


      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_question_dialog">
     24     <property name="default-widget">anastasis_gtk_b_question_dialog_btn_ok</property>
     25     <signal name="response" handler="anastasis_gtk_b_question_dialog_response_cb" swapped="no"/>
     26     <child internal-child="content_area">
     27       <object class="GtkBox">
     28         <property name="orientation">vertical</property>
     29         <property name="spacing">2</property>
     30         <child>
     31           <object class="GtkLabel" id="instruction_label">
     32             <property name="label" translatable="1">For security question authentication, you need to provide a question and its answer. 
     33 When recovering your secret, you will be shown the question and you will need to type 
     34 the answer exactly as you typed it here.</property>
     35             <attributes>
     36               <attribute name="weight" value="medium"></attribute>
     37             </attributes>
     38             <property name="margin-top">20</property>
     39             <property name="margin-bottom">20</property>
     40           </object>
     41         </child>
     42         <child>
     43           <object class="GtkBox" id="question_vbox">
     44             <property name="orientation">vertical</property>
     45             <property name="margin-top">15</property>
     46             <property name="margin-bottom">15</property>
     47             <child>
     48               <object class="GtkSeparator"/>
     49             </child>
     50             <child>
     51               <object class="GtkBox">
     52                 <property name="margin-start">20</property>
     53                 <property name="margin-end">20</property>
     54                 <property name="orientation">vertical</property>
     55                 <property name="margin-top">15</property>
     56                 <property name="margin-bottom">15</property>
     57                 <child>
     58                   <object class="GtkBox">
     59                     <property name="orientation">vertical</property>
     60                     <property name="margin-top">5</property>
     61                     <property name="margin-bottom">5</property>
     62                     <child>
     63                       <object class="GtkLabel">
     64                         <property name="halign">start</property>
     65                         <property name="label" translatable="1">Security _question</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_question_dialog_question_entry">
     73                         <property name="focusable">1</property>
     74                         <property name="hexpand">1</property>
     75                         <property name="activates-default">1</property>
     76                         <property name="width-chars">60</property>
     77                         <property name="primary-icon-name">dialog-question</property>
     78                         <signal name="changed" handler="anastasis_gtk_b_question_dialog_question_entry_changed_cb" swapped="no"/>
     79                         <property name="margin-top">5</property>
     80                         <property name="margin-bottom">5</property>
     81                       </object>
     82                     </child>
     83                   </object>
     84                 </child>
     85                 <child>
     86                   <object class="GtkBox" id="private_hbox">
     87                     <property name="margin-start">10</property>
     88                     <property name="margin-end">10</property>
     89                     <child>
     90                       <object class="GtkLabel" id="privacy_label">
     91                         <property name="halign">center</property>
     92                         <property name="label" translatable="1">This stays private</property>
     93                         <property name="margin-start">10</property>
     94                         <property name="margin-end">10</property>
     95                       </object>
     96                     </child>
     97                     <child>
     98                       <object class="GtkPicture" id="blindfold_image">
     99                         <property name="halign">center</property>
    100                         <property name="width-request">24</property>
    101                         <property name="height-request">24</property>
    102                         <property name="file">noun_blindfold_3574196.svg</property>
    103                         <property name="margin-start">1</property>
    104                         <property name="margin-end">1</property>
    105                         <property name="can-shrink">0</property>
    106                         <property name="content-fit">scale-down</property>
    107                       </object>
    108                     </child>
    109                   </object>
    110                 </child>
    111                 <child>
    112                   <placeholder/>
    113                 </child>
    114               </object>
    115             </child>
    116             <child>
    117               <object class="GtkSeparator"/>
    118             </child>
    119           </object>
    120         </child>
    121         <child>
    122           <object class="GtkBox" id="answer_vbox">
    123             <property name="margin-start">20</property>
    124             <property name="margin-end">20</property>
    125             <property name="margin-bottom">65</property>
    126             <property name="orientation">vertical</property>
    127             <property name="margin-top">15</property>
    128             <child>
    129               <object class="GtkBox">
    130                 <property name="orientation">vertical</property>
    131                 <property name="margin-top">5</property>
    132                 <property name="margin-bottom">5</property>
    133                 <child>
    134                   <object class="GtkLabel">
    135                     <property name="halign">start</property>
    136                     <property name="label" translatable="1">_Answer</property>
    137                     <property name="use-underline">1</property>
    138                     <property name="margin-top">5</property>
    139                     <property name="margin-bottom">5</property>
    140                   </object>
    141                 </child>
    142                 <child>
    143                   <object class="GtkEntry" id="anastasis_gtk_b_question_dialog_answer_entry">
    144                     <property name="focusable">1</property>
    145                     <property name="hexpand">1</property>
    146                     <property name="activates-default">1</property>
    147                     <property name="width-chars">60</property>
    148                     <property name="primary-icon-name">dialog-password</property>
    149                     <signal name="changed" handler="anastasis_gtk_b_question_dialog_answer_entry_changed_cb" swapped="no"/>
    150                     <property name="margin-top">5</property>
    151                     <property name="margin-bottom">5</property>
    152                   </object>
    153                 </child>
    154                 <child>
    155                   <object class="GtkLabel" id="case_sensitivity_label">
    156                     <property name="label" translatable="1">Note that the answer is case-sensitive and must be entered
    157 in exactly the same way (punctuation, spaces) during recovery.</property>
    158                     <attributes>
    159                       <attribute name="scale" value="0.80000000000000004"></attribute>
    160                     </attributes>
    161                   </object>
    162                 </child>
    163               </object>
    164             </child>
    165             <child>
    166               <object class="GtkBox" id="private_hbox1">
    167                 <property name="margin-start">10</property>
    168                 <property name="margin-end">10</property>
    169                 <child>
    170                   <object class="GtkLabel" id="privacy_label1">
    171                     <property name="halign">center</property>
    172                     <property name="label" translatable="1">This stays private</property>
    173                     <property name="margin-start">10</property>
    174                     <property name="margin-end">10</property>
    175                   </object>
    176                 </child>
    177                 <child>
    178                   <object class="GtkPicture" id="blindfold_image1">
    179                     <property name="halign">center</property>
    180                     <property name="width-request">24</property>
    181                     <property name="height-request">24</property>
    182                     <property name="file">noun_blindfold_3574196.svg</property>
    183                     <property name="margin-start">1</property>
    184                     <property name="margin-end">1</property>
    185                     <property name="can-shrink">0</property>
    186                     <property name="content-fit">scale-down</property>
    187                   </object>
    188                 </child>
    189               </object>
    190             </child>
    191             <child>
    192               <placeholder/>
    193             </child>
    194           </object>
    195         </child>
    196       </object>
    197     </child>
    198     <action-widgets>
    199       <action-widget response="-6">anastasis_gtk_b_question_dialog_btn_cancel</action-widget>
    200       <action-widget response="-5">anastasis_gtk_b_question_dialog_btn_ok</action-widget>
    201     </action-widgets>
    202     <child type="titlebar">
    203       <object class="GtkLabel">
    204         <property name="label" translatable="1">Configure security question</property>
    205       </object>
    206     </child>
    207     <action-widgets>
    208       <action-widget response="-6">anastasis_gtk_b_question_dialog_btn_cancel</action-widget>
    209       <action-widget response="-5">anastasis_gtk_b_question_dialog_btn_ok</action-widget>
    210     </action-widgets>
    211     <child internal-child="action_area">
    212       <object class="GtkBox">
    213         <property name="can-focus">0</property>
    214         <property name="homogeneous">1</property>
    215         <property name="spacing">6</property>
    216         <property name="halign">end</property>
    217         <child>
    218           <object class="GtkButton" id="anastasis_gtk_b_question_dialog_btn_cancel">
    219             <property name="margin-start">5</property>
    220             <property name="margin-end">5</property>
    221             <property name="child">
    222               <object class="GtkBox">
    223                 <property name="spacing">2</property>
    224                 <property name="halign">center</property>
    225                 <child>
    226                   <object class="GtkImage">
    227                     <property name="icon-name">gtk-cancel</property>
    228                   </object>
    229                 </child>
    230                 <child>
    231                   <object class="GtkLabel">
    232                     <property name="label" translatable="1">_Cancel</property>
    233                     <property name="use-underline">1</property>
    234                     <property name="mnemonic-widget">anastasis_gtk_b_question_dialog_btn_cancel</property>
    235                   </object>
    236                 </child>
    237               </object>
    238             </property>
    239           </object>
    240         </child>
    241         <child>
    242           <object class="GtkButton" id="anastasis_gtk_b_question_dialog_btn_ok">
    243             <property name="sensitive">0</property>
    244             <property name="margin-start">5</property>
    245             <property name="margin-end">5</property>
    246             <property name="child">
    247               <object class="GtkBox">
    248                 <property name="spacing">2</property>
    249                 <property name="halign">center</property>
    250                 <child>
    251                   <object class="GtkImage">
    252                     <property name="icon-name">gtk-ok</property>
    253                   </object>
    254                 </child>
    255                 <child>
    256                   <object class="GtkLabel">
    257                     <property name="label" translatable="1">_OK</property>
    258                     <property name="use-underline">1</property>
    259                     <property name="mnemonic-widget">anastasis_gtk_b_question_dialog_btn_ok</property>
    260                   </object>
    261                 </child>
    262               </object>
    263             </property>
    264           </object>
    265         </child>
    266       </object>
    267     </child>
    268   </object>
    269 </interface>
    270