anastasis-gtk

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

anastasis_gtk_challenge_question.ui (7242B)


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