anastasis-gtk

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

anastasis_gtk_challenge_totp.ui (7181B)


      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_totp.ui -->
     24   <requires lib="gtk" version="4.0"/>
     25   <object class="GtkDialog" id="anastasis_gtk_c_totp_dialog">
     26     <signal name="response" handler="anastasis_gtk_c_totp_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_totp_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">
     45             <property name="orientation">vertical</property>
     46             <child>
     47               <object class="GtkSeparator"/>
     48             </child>
     49             <child>
     50               <object class="GtkBox">
     51                 <property name="margin-bottom">5</property>
     52                 <property name="margin-top">5</property>
     53                 <child>
     54                   <object class="GtkLabel">
     55                     <property name="label" translatable="yes">Please look up TOTP under:</property>
     56                     <property name="margin-end">5</property>
     57                     <property name="margin-start">5</property>
     58                   </object>
     59                 </child>
     60                 <child>
     61                   <object class="GtkLabel" id="challenge_instructions_label">
     62                     <property name="label">SET DYNAMICALLY BY PROGRAM</property>
     63                     <attributes>
     64                       <attribute name="style" value="italic"/>
     65                     </attributes>
     66                   </object>
     67                 </child>
     68               </object>
     69             </child>
     70             <child>
     71               <object class="GtkSeparator"/>
     72             </child>
     73           </object>
     74         </child>
     75         <child>
     76           <object class="GtkBox">
     77             <property name="margin-bottom">5</property>
     78             <property name="margin-top">5</property>
     79             <child>
     80               <object class="GtkLabel">
     81                 <property name="label" translatable="yes">Enter the PIN:</property>
     82                 <property name="margin-end">5</property>
     83                 <property name="margin-start">5</property>
     84               </object>
     85             </child>
     86             <child>
     87               <object class="GtkEntry" id="anastasis_gtk_c_totp_entry">
     88                 <property name="focusable">1</property>
     89                 <property name="hexpand">1</property>
     90                 <property name="margin-end">5</property>
     91                 <property name="margin-start">5</property>
     92                 <property name="primary-icon-name">dialog-password</property>
     93                 <property name="width-chars">24</property>
     94                 <signal name="changed" handler="anastasis_gtk_c_totp_dialog_answer_entry_changed_cb"/>
     95               </object>
     96             </child>
     97           </object>
     98         </child>
     99       </object>
    100     </child>
    101     <child type="titlebar">
    102       <object class="GtkLabel" id="anastasis_gtk_c_totp_dialog_label">
    103         <property name="label" translatable="yes">TOTP challenge</property>
    104       </object>
    105     </child>
    106     <child internal-child="action_area">
    107       <object class="GtkBox">
    108         <property name="can-focus">0</property>
    109         <property name="halign">end</property>
    110         <property name="homogeneous">1</property>
    111         <property name="spacing">6</property>
    112         <child>
    113           <object class="GtkButton" id="anastasis_gtk_c_totp_dialog_btn_cancel">
    114             <property name="child">
    115               <object class="GtkBox">
    116                 <property name="halign">center</property>
    117                 <property name="spacing">2</property>
    118                 <child>
    119                   <object class="GtkImage">
    120                     <property name="icon-name">gtk-cancel</property>
    121                   </object>
    122                 </child>
    123                 <child>
    124                   <object class="GtkLabel">
    125                     <property name="label" translatable="yes">_Cancel</property>
    126                     <property name="mnemonic-widget">anastasis_gtk_c_totp_dialog_btn_cancel</property>
    127                     <property name="use-underline">1</property>
    128                   </object>
    129                 </child>
    130               </object>
    131             </property>
    132             <property name="focusable">1</property>
    133             <property name="receives-default">1</property>
    134           </object>
    135         </child>
    136         <child>
    137           <object class="GtkButton" id="anastasis_gtk_c_totp_dialog_btn_ok">
    138             <property name="child">
    139               <object class="GtkBox">
    140                 <property name="halign">center</property>
    141                 <property name="spacing">2</property>
    142                 <child>
    143                   <object class="GtkImage">
    144                     <property name="icon-name">gtk-ok</property>
    145                   </object>
    146                 </child>
    147                 <child>
    148                   <object class="GtkLabel">
    149                     <property name="label" translatable="yes">_OK</property>
    150                     <property name="mnemonic-widget">anastasis_gtk_c_totp_dialog_btn_ok</property>
    151                     <property name="use-underline">1</property>
    152                   </object>
    153                 </child>
    154               </object>
    155             </property>
    156             <property name="receives-default">1</property>
    157             <property name="sensitive">0</property>
    158           </object>
    159         </child>
    160       </object>
    161     </child>
    162     <action-widgets>
    163       <action-widget response="-6">anastasis_gtk_c_totp_dialog_btn_cancel</action-widget>
    164       <action-widget response="-5">anastasis_gtk_c_totp_dialog_btn_ok</action-widget>
    165     </action-widgets>
    166     <action-widgets>
    167       <action-widget response="-6">anastasis_gtk_c_totp_dialog_btn_cancel</action-widget>
    168       <action-widget response="-5">anastasis_gtk_c_totp_dialog_btn_ok</action-widget>
    169     </action-widgets>
    170   </object>
    171 </interface>