anastasis-gtk

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

anastasis_gtk_challenge_question.ui (7190B)


      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_c_question_dialog">
     24     <property name="default-widget">anastasis_gtk_c_question_dialog_btn_ok</property>
     25     <signal name="response" handler="anastasis_gtk_c_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="anastasis_gtk_c_question_error_label">
     32             <property name="visible">0</property>
     33             <property name="label">ERROR MESSAGE (SET DYNAMICALLY BY PROGRAM)</property>
     34             <attributes>
     35               <attribute name="weight" value="bold"></attribute>
     36               <attribute name="foreground" value="#a5a51d1d2d2d"></attribute>
     37             </attributes>
     38             <property name="margin-top">5</property>
     39             <property name="margin-bottom">5</property>
     40           </object>
     41         </child>
     42         <child>
     43           <object class="GtkBox">
     44             <property name="orientation">vertical</property>
     45             <child>
     46               <object class="GtkSeparator"/>
     47             </child>
     48             <child>
     49               <object class="GtkBox">
     50                 <property name="margin-top">5</property>
     51                 <property name="margin-bottom">5</property>
     52                 <child>
     53                   <object class="GtkLabel">
     54                     <property name="label" translatable="1">Security question:</property>
     55                     <property name="margin-start">5</property>
     56                     <property name="margin-end">5</property>
     57                   </object>
     58                 </child>
     59                 <child>
     60                   <object class="GtkLabel" id="security_question_label">
     61                     <property name="label">SET DYNAMICALLY BY PROGRAM</property>
     62                     <attributes>
     63                       <attribute name="style" value="italic"></attribute>
     64                     </attributes>
     65                   </object>
     66                 </child>
     67               </object>
     68             </child>
     69             <child>
     70               <object class="GtkSeparator"/>
     71             </child>
     72           </object>
     73         </child>
     74         <child>
     75           <object class="GtkBox">
     76             <property name="margin-top">5</property>
     77             <property name="margin-bottom">5</property>
     78             <child>
     79               <object class="GtkLabel">
     80                 <property name="label" translatable="1">Answer:</property>
     81                 <property name="margin-start">5</property>
     82                 <property name="margin-end">5</property>
     83               </object>
     84             </child>
     85             <child>
     86               <object class="GtkEntry" id="anastasis_gtk_c_question_dialog_answer_entry">
     87                 <property name="focusable">1</property>
     88                 <property name="hexpand">1</property>
     89                 <property name="activates-default">1</property>
     90                 <property name="width-chars">60</property>
     91                 <property name="primary-icon-name">dialog-password</property>
     92                 <signal name="changed" handler="anastasis_gtk_c_question_dialog_answer_entry_changed_cb" swapped="no"/>
     93                 <property name="margin-start">5</property>
     94                 <property name="margin-end">5</property>
     95               </object>
     96             </child>
     97           </object>
     98         </child>
     99       </object>
    100     </child>
    101     <action-widgets>
    102       <action-widget response="-6">anastasis_gtk_b_question_dialog_btn_cancel</action-widget>
    103       <action-widget response="-5">anastasis_gtk_c_question_dialog_btn_ok</action-widget>
    104     </action-widgets>
    105     <child type="titlebar">
    106       <object class="GtkLabel">
    107         <property name="label" translatable="1">Solve secuity question challenge</property>
    108       </object>
    109     </child>
    110     <action-widgets>
    111       <action-widget response="-6">anastasis_gtk_b_question_dialog_btn_cancel</action-widget>
    112       <action-widget response="-5">anastasis_gtk_c_question_dialog_btn_ok</action-widget>
    113     </action-widgets>
    114     <child internal-child="action_area">
    115       <object class="GtkBox">
    116         <property name="can-focus">0</property>
    117         <property name="homogeneous">1</property>
    118         <property name="spacing">6</property>
    119         <property name="halign">end</property>
    120         <child>
    121           <object class="GtkButton" id="anastasis_gtk_b_question_dialog_btn_cancel">
    122             <property name="focusable">1</property>
    123             <property name="child">
    124               <object class="GtkBox">
    125                 <property name="spacing">2</property>
    126                 <property name="halign">center</property>
    127                 <child>
    128                   <object class="GtkImage">
    129                     <property name="icon-name">gtk-cancel</property>
    130                   </object>
    131                 </child>
    132                 <child>
    133                   <object class="GtkLabel">
    134                     <property name="label" translatable="1">_Cancel</property>
    135                     <property name="use-underline">1</property>
    136                     <property name="mnemonic-widget">anastasis_gtk_b_question_dialog_btn_cancel</property>
    137                   </object>
    138                 </child>
    139               </object>
    140             </property>
    141           </object>
    142         </child>
    143         <child>
    144           <object class="GtkButton" id="anastasis_gtk_c_question_dialog_btn_ok">
    145             <property name="sensitive">0</property>
    146             <property name="child">
    147               <object class="GtkBox">
    148                 <property name="spacing">2</property>
    149                 <property name="halign">center</property>
    150                 <child>
    151                   <object class="GtkImage">
    152                     <property name="icon-name">gtk-ok</property>
    153                   </object>
    154                 </child>
    155                 <child>
    156                   <object class="GtkLabel">
    157                     <property name="label" translatable="1">_OK</property>
    158                     <property name="use-underline">1</property>
    159                     <property name="mnemonic-widget">anastasis_gtk_c_question_dialog_btn_ok</property>
    160                   </object>
    161                 </child>
    162               </object>
    163             </property>
    164           </object>
    165         </child>
    166       </object>
    167     </child>
    168   </object>
    169 </interface>
    170