messenger-gtk

Gtk+3 graphical user interfaces for GNUnet Messenger
Log | Files | Refs | Submodules | README | LICENSE

new_contact.ui (10124B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!-- Generated with glade 3.40.0 
      3 
      4 Copyright (C) 2021‑‑2025 GNUnet e.V.
      5 
      6 GNUnet is free software: you can redistribute it and/or modify it
      7 under the terms of the GNU Affero General Public License as published
      8 by the Free Software Foundation, either version 3 of the License,
      9 or (at your option) any later version.
     10 
     11 GNUnet is distributed in the hope that it will be useful, but
     12 WITHOUT ANY WARRANTY; without even the implied warranty of
     13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14 Affero General Public License for more details.
     15 
     16 You should have received a copy of the GNU Affero General Public License
     17 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     18 
     19 SPDX-License-Identifier: AGPL3.0-or-later
     20 Author: Tobias Frisch
     21 
     22 -->
     23 <interface>
     24   <requires lib="gtk+" version="3.24"/>
     25   <object class="GtkListStore" id="camera_list_store">
     26     <columns>
     27       <!-- column-name name -->
     28       <column type="gchararray"/>
     29       <!-- column-name description -->
     30       <column type="gchararray"/>
     31     </columns>
     32   </object>
     33   <object class="GtkDialog" id="new_contact_dialog">
     34     <property name="title" translatable="yes">New Contact</property>
     35     <property name="modal">1</property>
     36     <property name="default-width">400</property>
     37     <property name="default-height">350</property>
     38     <property name="type-hint">dialog</property>
     39     <child internal-child="vbox">
     40       <object class="GtkBox">
     41         <property name="orientation">vertical</property>
     42         <property name="spacing">2</property>
     43         <child internal-child="action_area">
     44           <object class="GtkButtonBox">
     45             <property name="layout-style">end</property>
     46             <child>
     47               <object class="GtkButton" id="cancel_button">
     48                 <property name="label" translatable="yes">Cancel</property>
     49                 <property name="visible">1</property>
     50                 <property name="can-focus">1</property>
     51                 <property name="receives-default">1</property>
     52               </object>
     53               <packing>
     54                 <property name="expand">1</property>
     55               </packing>
     56             </child>
     57             <child>
     58               <object class="GtkButton" id="confirm_button">
     59                 <property name="label" translatable="yes">Accept</property>
     60                 <property name="visible">1</property>
     61                 <property name="can-focus">1</property>
     62                 <property name="receives-default">1</property>
     63               </object>
     64               <packing>
     65                 <property name="expand">1</property>
     66                 <property name="position">1</property>
     67               </packing>
     68             </child>
     69           </object>
     70           <packing>
     71             <property name="fill">0</property>
     72           </packing>
     73         </child>
     74         <child>
     75           <object class="GtkBox">
     76             <property name="visible">1</property>
     77             <property name="margin-start">8</property>
     78             <property name="margin-end">8</property>
     79             <property name="margin-bottom">8</property>
     80             <property name="orientation">vertical</property>
     81             <property name="spacing">4</property>
     82             <child>
     83               <object class="GtkRevealer" id="camera_combo_box_revealer">
     84                 <property name="visible">1</property>
     85                 <property name="margin-start">8</property>
     86                 <property name="margin-end">8</property>
     87                 <property name="margin-bottom">8</property>
     88                 <child>
     89                   <object class="GtkComboBox" id="camera_combo_box">
     90                     <property name="width-request">250</property>
     91                     <property name="visible">1</property>
     92                     <property name="halign">center</property>
     93                     <property name="model">camera_list_store</property>
     94                     <child>
     95                       <object class="GtkCellRendererText"/>
     96                       <attributes>
     97                         <attribute name="text">1</attribute>
     98                       </attributes>
     99                     </child>
    100                   </object>
    101                 </child>
    102               </object>
    103             </child>
    104             <child>
    105               <object class="GtkStack" id="preview_stack">
    106                 <property name="visible">1</property>
    107                 <child>
    108                   <object class="GtkBox" id="loading_box">
    109                     <property name="visible">1</property>
    110                     <property name="halign">center</property>
    111                     <property name="valign">center</property>
    112                     <property name="orientation">vertical</property>
    113                     <property name="spacing">8</property>
    114                     <child>
    115                       <object class="GtkSpinner">
    116                         <property name="width-request">64</property>
    117                         <property name="height-request">64</property>
    118                         <property name="visible">1</property>
    119                         <property name="active">1</property>
    120                       </object>
    121                     </child>
    122                   </object>
    123                   <packing>
    124                     <property name="name">loading_page</property>
    125                   </packing>
    126                 </child>
    127                 <child>
    128                   <object class="GtkBox" id="fail_box">
    129                     <property name="visible">1</property>
    130                     <property name="halign">center</property>
    131                     <property name="valign">center</property>
    132                     <property name="orientation">vertical</property>
    133                     <property name="spacing">8</property>
    134                     <child>
    135                       <object class="GtkImage">
    136                         <property name="visible">1</property>
    137                         <property name="pixel-size">64</property>
    138                         <property name="icon-name">action-unavailable-symbolic</property>
    139                         <property name="icon-size">3</property>
    140                       </object>
    141                     </child>
    142                     <child>
    143                       <object class="GtkLabel">
    144                         <property name="visible">1</property>
    145                         <property name="label" translatable="yes">Connection to camera failed!</property>
    146                       </object>
    147                       <packing>
    148                         <property name="position">1</property>
    149                       </packing>
    150                     </child>
    151                   </object>
    152                   <packing>
    153                     <property name="name">page_fail</property>
    154                     <property name="position">1</property>
    155                   </packing>
    156                 </child>
    157                 <child>
    158                   <object class="GtkBox" id="no_camera_box">
    159                     <property name="visible">1</property>
    160                     <property name="halign">center</property>
    161                     <property name="valign">center</property>
    162                     <property name="orientation">vertical</property>
    163                     <property name="spacing">8</property>
    164                     <child>
    165                       <object class="GtkImage">
    166                         <property name="visible">1</property>
    167                         <property name="pixel-size">64</property>
    168                         <property name="icon-name">camera-photo-symbolic</property>
    169                         <property name="icon-size">3</property>
    170                       </object>
    171                     </child>
    172                     <child>
    173                       <object class="GtkLabel">
    174                         <property name="visible">1</property>
    175                         <property name="label" translatable="yes">No camera found!</property>
    176                       </object>
    177                       <packing>
    178                         <property name="position">1</property>
    179                       </packing>
    180                     </child>
    181                   </object>
    182                   <packing>
    183                     <property name="name">page_none</property>
    184                     <property name="position">2</property>
    185                   </packing>
    186                 </child>
    187                 <child>
    188                   <object class="GtkBox" id="video_box">
    189                     <property name="height-request">250</property>
    190                     <property name="visible">1</property>
    191                     <property name="orientation">vertical</property>
    192                   </object>
    193                   <packing>
    194                     <property name="name">page_drawing</property>
    195                     <property name="position">3</property>
    196                   </packing>
    197                 </child>
    198               </object>
    199               <packing>
    200                 <property name="expand">1</property>
    201                 <property name="position">1</property>
    202               </packing>
    203             </child>
    204             <child>
    205               <object class="GtkEntry" id="id_entry">
    206                 <property name="width-request">250</property>
    207                 <property name="visible">1</property>
    208                 <property name="can-focus">1</property>
    209               </object>
    210               <packing>
    211                 <property name="pack-type">end</property>
    212                 <property name="position">2</property>
    213               </packing>
    214             </child>
    215             <child>
    216               <object class="GtkLabel">
    217                 <property name="visible">1</property>
    218                 <property name="label" translatable="yes">ID:</property>
    219                 <property name="xalign">0</property>
    220               </object>
    221               <packing>
    222                 <property name="pack-type">end</property>
    223                 <property name="position">3</property>
    224               </packing>
    225             </child>
    226           </object>
    227           <packing>
    228             <property name="expand">1</property>
    229             <property name="position">1</property>
    230           </packing>
    231         </child>
    232       </object>
    233     </child>
    234   </object>
    235 </interface>