anastasis-gtk

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

anastasis_gtk_challenge_code.ui (8252B)


      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_challenge_code.ui -->
     24   <requires lib="gtk" version="4.0"/>
     25   <object class="GtkDialog" id="anastasis_gtk_c_code_dialog">
     26     <signal name="response" handler="anastasis_gtk_c_code_dialog_response_cb"/>
     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="GtkLabel" id="anastasis_gtk_c_code_error_label">
     33             <property name="label">ERROR MESSAGE (SET DYNAMICALLY BY PROGRAM)</property>
     34             <property name="margin-bottom">5</property>
     35             <property name="margin-top">5</property>
     36             <property name="visible">0</property>
     37             <attributes>
     38               <attribute name="weight" value="bold"/>
     39               <attribute name="foreground" value="#a5a51d1d2d2d"/>
     40             </attributes>
     41           </object>
     42         </child>
     43         <child>
     44           <object class="GtkBox" id="anastasis_gtk_c_challenge_box">
     45             <child>
     46               <object class="GtkLabel" id="anastasis_gtk_c_challenge_pre_label">
     47                 <property name="halign">center</property>
     48                 <property name="label" translatable="yes">Challenge:</property>
     49                 <property name="margin-end">5</property>
     50                 <property name="margin-start">5</property>
     51               </object>
     52             </child>
     53             <child>
     54               <object class="GtkLabel" id="anastasis_gtk_c_challenge_label">
     55                 <property name="label">SET DYNAMICALLY BY PROGRAM</property>
     56                 <attributes>
     57                   <attribute name="style" value="italic"/>
     58                 </attributes>
     59               </object>
     60             </child>
     61           </object>
     62         </child>
     63         <child>
     64           <object class="GtkBox">
     65             <property name="orientation">vertical</property>
     66             <child>
     67               <object class="GtkSeparator"/>
     68             </child>
     69             <child>
     70               <object class="GtkBox">
     71                 <property name="margin-bottom">5</property>
     72                 <property name="margin-top">5</property>
     73                 <child>
     74                   <object class="GtkLabel">
     75                     <property name="label" translatable="yes">Code sent to:</property>
     76                     <property name="margin-end">5</property>
     77                     <property name="margin-start">5</property>
     78                   </object>
     79                 </child>
     80                 <child>
     81                   <object class="GtkLabel" id="challenge_instructions_label">
     82                     <property name="label">SET DYNAMICALLY BY PROGRAM</property>
     83                     <attributes>
     84                       <attribute name="style" value="italic"/>
     85                     </attributes>
     86                   </object>
     87                 </child>
     88               </object>
     89             </child>
     90             <child>
     91               <object class="GtkSeparator"/>
     92             </child>
     93           </object>
     94         </child>
     95         <child>
     96           <object class="GtkBox">
     97             <property name="margin-bottom">5</property>
     98             <property name="margin-top">5</property>
     99             <child>
    100               <object class="GtkLabel">
    101                 <property name="label" translatable="yes">Enter the code:</property>
    102                 <property name="margin-end">5</property>
    103                 <property name="margin-start">5</property>
    104               </object>
    105             </child>
    106             <child>
    107               <object class="GtkEntry" id="anastasis_gtk_c_code_entry">
    108                 <property name="focusable">1</property>
    109                 <property name="hexpand">1</property>
    110                 <property name="margin-end">5</property>
    111                 <property name="margin-start">5</property>
    112                 <property name="placeholder-text">A-</property>
    113                 <property name="primary-icon-name">dialog-password</property>
    114                 <property name="text">A-</property>
    115                 <property name="width-chars">24</property>
    116                 <signal name="changed" handler="anastasis_gtk_c_code_dialog_answer_entry_changed_cb"/>
    117                 <signal name="insert-text" handler="anastasis_gtk_pin_autocomplete_insert_text"/>
    118               </object>
    119             </child>
    120           </object>
    121         </child>
    122       </object>
    123     </child>
    124     <child type="titlebar">
    125       <object class="GtkLabel" id="anastasis_gtk_c_code_dialog_label">
    126         <property name="label" translatable="yes">Security token challenge</property>
    127       </object>
    128     </child>
    129     <child internal-child="action_area">
    130       <object class="GtkBox">
    131         <property name="can-focus">0</property>
    132         <property name="halign">end</property>
    133         <property name="homogeneous">1</property>
    134         <property name="spacing">6</property>
    135         <child>
    136           <object class="GtkButton" id="anastasis_gtk_c_code_dialog_btn_cancel">
    137             <property name="child">
    138               <object class="GtkBox">
    139                 <property name="halign">center</property>
    140                 <property name="spacing">2</property>
    141                 <child>
    142                   <object class="GtkImage">
    143                     <property name="icon-name">gtk-cancel</property>
    144                   </object>
    145                 </child>
    146                 <child>
    147                   <object class="GtkLabel">
    148                     <property name="label" translatable="yes">_Cancel</property>
    149                     <property name="mnemonic-widget">anastasis_gtk_c_code_dialog_btn_cancel</property>
    150                     <property name="use-underline">1</property>
    151                   </object>
    152                 </child>
    153               </object>
    154             </property>
    155             <property name="focusable">1</property>
    156             <property name="receives-default">1</property>
    157           </object>
    158         </child>
    159         <child>
    160           <object class="GtkButton" id="anastasis_gtk_c_code_dialog_btn_ok">
    161             <property name="child">
    162               <object class="GtkBox">
    163                 <property name="halign">center</property>
    164                 <property name="spacing">2</property>
    165                 <child>
    166                   <object class="GtkImage">
    167                     <property name="icon-name">gtk-ok</property>
    168                   </object>
    169                 </child>
    170                 <child>
    171                   <object class="GtkLabel">
    172                     <property name="label" translatable="yes">_OK</property>
    173                     <property name="mnemonic-widget">anastasis_gtk_c_code_dialog_btn_ok</property>
    174                     <property name="use-underline">1</property>
    175                   </object>
    176                 </child>
    177               </object>
    178             </property>
    179             <property name="receives-default">1</property>
    180             <property name="sensitive">0</property>
    181           </object>
    182         </child>
    183       </object>
    184     </child>
    185     <action-widgets>
    186       <action-widget response="-6">anastasis_gtk_c_code_dialog_btn_cancel</action-widget>
    187       <action-widget response="-5">anastasis_gtk_c_code_dialog_btn_ok</action-widget>
    188     </action-widgets>
    189     <action-widgets>
    190       <action-widget response="-6">anastasis_gtk_c_code_dialog_btn_cancel</action-widget>
    191       <action-widget response="-5">anastasis_gtk_c_code_dialog_btn_ok</action-widget>
    192     </action-widgets>
    193   </object>
    194 </interface>