anastasis-gtk

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

anastasis_gtk_user_sure.ui (7229B)


      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_user_sure.ui -->
     24   <requires lib="gtk" version="4.0"/>
     25   <object class="GtkDialog" id="anastasis_gtk_user_sure_dialog">
     26     <property name="default-widget">anastasis_gtk_c_code_dialog_btn_ok</property>
     27     <property name="focus-widget">anastasis_gtk_c_code_dialog_btn_ok</property>
     28     <signal name="response" handler="anastasis_gtk_user_sure_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" id="anastasis_gtk_c_challenge_box">
     35             <property name="margin-bottom">20</property>
     36             <property name="margin-top">20</property>
     37             <child>
     38               <object class="GtkLabel" id="anastasis_gtk_sure_title_label">
     39                 <property name="halign">center</property>
     40                 <property name="label" translatable="yes">You must not forget the exact information you have entered!</property>
     41                 <property name="margin-end">20</property>
     42                 <property name="margin-start">20</property>
     43                 <attributes>
     44                   <attribute name="weight" value="bold"/>
     45                   <attribute name="scale" value="1.2"/>
     46                 </attributes>
     47               </object>
     48             </child>
     49           </object>
     50         </child>
     51         <child>
     52           <object class="GtkBox">
     53             <property name="orientation">vertical</property>
     54             <child>
     55               <object class="GtkSeparator"/>
     56             </child>
     57             <child>
     58               <object class="GtkBox">
     59                 <property name="margin-bottom">20</property>
     60                 <property name="margin-top">20</property>
     61                 <child>
     62                   <object class="GtkLabel" id="anastasis_gtk_sure_instructions_label">
     63                     <property name="label" translatable="yes">Your personal information is used to define the location where
     64 recovery information about your secret will be safely stored. 
     65 
     66 If you forget what you have entered or if there is any spelling 
     67 mistake, you will be unable to recover your secret.</property>
     68                     <property name="margin-end">20</property>
     69                     <property name="margin-start">20</property>
     70                     <attributes>
     71                       <attribute name="scale" value="1.1000000000000001"/>
     72                     </attributes>
     73                   </object>
     74                 </child>
     75               </object>
     76             </child>
     77             <child>
     78               <object class="GtkSeparator"/>
     79             </child>
     80           </object>
     81         </child>
     82       </object>
     83     </child>
     84     <child type="titlebar">
     85       <object class="GtkLabel" id="anastasis_gtk_c_code_dialog_label">
     86         <property name="label" translatable="yes">Are you sure?</property>
     87       </object>
     88     </child>
     89     <child internal-child="action_area">
     90       <object class="GtkBox">
     91         <property name="can-focus">0</property>
     92         <property name="hexpand">1</property>
     93         <property name="homogeneous">1</property>
     94         <property name="margin-bottom">20</property>
     95         <property name="margin-top">20</property>
     96         <property name="spacing">6</property>
     97         <child>
     98           <object class="GtkButton" id="anastasis_gtk_c_code_dialog_btn_cancel">
     99             <property name="child">
    100               <object class="GtkBox">
    101                 <property name="halign">center</property>
    102                 <property name="spacing">2</property>
    103                 <child>
    104                   <object class="GtkImage" id="image1">
    105                     <property name="icon-name">go-previous</property>
    106                   </object>
    107                 </child>
    108                 <child>
    109                   <object class="GtkLabel">
    110                     <property name="label">Go back, I want to check something</property>
    111                   </object>
    112                 </child>
    113               </object>
    114             </property>
    115             <property name="focusable">1</property>
    116             <property name="receives-default">1</property>
    117           </object>
    118         </child>
    119         <child>
    120           <object class="GtkSeparator">
    121             <property name="opacity">0</property>
    122           </object>
    123         </child>
    124         <child>
    125           <object class="GtkButton" id="anastasis_gtk_print_details_button">
    126             <property name="focusable">1</property>
    127             <property name="label">Save as PDF</property>
    128             <property name="receives-default">1</property>
    129             <property name="tooltip-text" translatable="yes">Save entered personal details to a PDF file</property>
    130             <signal name="clicked" handler="anastasis_gtk_print_details_button_clicked_cb"/>
    131           </object>
    132         </child>
    133         <child>
    134           <object class="GtkSeparator">
    135             <property name="opacity">0</property>
    136           </object>
    137         </child>
    138         <child>
    139           <object class="GtkButton" id="anastasis_gtk_c_code_dialog_btn_ok">
    140             <property name="child">
    141               <object class="GtkBox">
    142                 <property name="halign">center</property>
    143                 <property name="spacing">2</property>
    144                 <child>
    145                   <object class="GtkImage" id="image2">
    146                     <property name="icon-name">gtk-ok</property>
    147                   </object>
    148                 </child>
    149                 <child>
    150                   <object class="GtkLabel">
    151                     <property name="label">I am sure!</property>
    152                   </object>
    153                 </child>
    154               </object>
    155             </property>
    156             <property name="margin-end">10</property>
    157             <property name="margin-start">10</property>
    158             <property name="receives-default">1</property>
    159           </object>
    160         </child>
    161       </object>
    162     </child>
    163     <action-widgets>
    164       <action-widget response="-6">anastasis_gtk_c_code_dialog_btn_cancel</action-widget>
    165       <action-widget response="-5">anastasis_gtk_c_code_dialog_btn_ok</action-widget>
    166     </action-widgets>
    167     <action-widgets>
    168       <action-widget response="-6">anastasis_gtk_c_code_dialog_btn_cancel</action-widget>
    169       <action-widget response="-5">anastasis_gtk_c_code_dialog_btn_ok</action-widget>
    170     </action-widgets>
    171   </object>
    172 </interface>