incomingcallview.ui 8.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.10"/>
  <template class="IncomingCallView" parent="GtkBox">
    <property name="visible">True</property>
    <property name="can_focus">False</property>
    <property name="orientation">vertical</property>
    <property name="valign">center</property>
    <!-- info scroll -->
    <child>
      <object class="GtkScrolledWindow" id="scrolledwindow_incoming_info">
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="shadow_type">none</property>
15 16
        <!-- for now, disable scrolling, display everything -->
        <property name="vscrollbar_policy">never</property>
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
        <property name="hscrollbar_policy">never</property>
        <!-- info viewport -->
        <child>
          <object class="GtkViewport" id="viewport_incoming_info">
            <property name="visible">True</property>
            <property name="can_focus">False</property>
            <!-- info vbox -->
            <child>
              <object class="GtkBox" id="vbox_incoming_info">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="halign">center</property>
                <property name="border_width">15</property>
                <property name="orientation">vertical</property>
                <property name="spacing">15</property>
                <!-- image of contact -->
                <child>
                  <object class="GtkImage" id="image_incoming">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="halign">center</property>
                    <property name="xpad">10</property>
                    <property name="ypad">10</property>
                  </object>
                  <packing>
                    <property name="expand">False</property>
                    <property name="fill">True</property>
                  </packing>
                </child>
                <!-- end image of contact -->
                <!-- name or other identity of contact -->
                <child>
49
                  <object class="GtkLabel" id="label_name">
50
                    <property name="visible">True</property>
51
                    <property name="can_focus">True</property>
52
                    <property name="halign">center</property>
53
                    <property name="selectable">True</property>
54
                    <property name="ellipsize">end</property>
55 56 57 58 59 60 61 62 63 64
                    <attributes>
                      <attribute name="scale" value="1.5"/>
                    </attributes>
                  </object>
                  <packing>
                    <property name="expand">False</property>
                    <property name="fill">True</property>
                  </packing>
                </child>
                <!-- end name or other identity of contact -->
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
                <!-- uri of contact -->
                <child>
                  <object class="GtkLabel" id="label_uri">
                    <property name="visible">False</property>
                    <property name="can_focus">True</property>
                    <property name="halign">center</property>
                    <property name="selectable">True</property>
                    <property name="ellipsize">end</property>
                    <style>
                      <class name="dim-label"/>
                    </style>
                  </object>
                  <packing>
                    <property name="expand">False</property>
                    <property name="fill">True</property>
                  </packing>
                </child>
                <!-- end uri of contact -->
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
                <!-- call initialization progress -->
                <child>
                  <object class="GtkSpinner" id="spinner_status">
                    <property name="visible">False</property>
                    <property name="can_focus">False</property>
                    <property name="active">True</property>
                    <property name="height-request">25</property>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="placeholder">
                    <property name="visible">False</property>
                    <property name="can_focus">False</property>
                    <property name="height-request">25</property>
                  </object>
                </child>
                <!-- end of call initialization progress -->
100
                <!-- call state info -->
101
                <child>
102 103 104 105
                  <object class="GtkLabel" id="label_status">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="label" translatable="yes">Incoming...</property>
106
                    <property name="ellipsize">end</property>
107 108 109
                    <style>
                      <class name="dim-label"/>
                    </style>
110
                  </object>
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
                </child>
              </object>
            </child>
            <!-- end info vbox -->
          </object>
        </child>
        <!-- end info viewport -->
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <!-- end info scroll -->
    <!-- hbox action bar -->
    <child>
      <object class="GtkBox" id="hbox_action_bar">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="orientation">horizontal</property>
        <property name="spacing">20</property>
        <property name="border_width">20</property>
        <!-- <property name="margin_bottom">100</property> -->
        <!-- accept button -->
        <child>
          <object class="GtkButton" id="button_accept_incoming">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="label" translatable="yes">   Accept</property>
            <property name="image">image_accept</property>
            <property name="action-name">app.accept</property>
          </object>
          <packing>
            <property name="expand">True</property>
            <property name="fill">True</property>
          </packing>
        </child>
        <!-- end accept button -->
        <!-- reject button -->
        <child>
          <object class="GtkButton" id="button_reject_incoming">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="label" translatable="yes">   Reject</property>
            <property name="image">image_reject</property>
156
            <property name="action-name">app.hangup</property>
157 158 159 160 161 162 163
          </object>
          <packing>
            <property name="expand">True</property>
            <property name="fill">True</property>
          </packing>
        </child>
        <!-- end reject button -->
164 165 166 167 168 169 170
        <!-- end button -->
        <child>
          <object class="GtkButton" id="button_end_call">
            <property name="visible">False</property>
            <property name="can_focus">True</property>
            <property name="label" translatable="yes">   Hang-up</property>
            <property name="image">image_hangup</property>
171
            <property name="action-name">app.hangup</property>
172 173 174 175 176 177 178
          </object>
          <packing>
            <property name="expand">True</property>
            <property name="fill">True</property>
          </packing>
        </child>
        <!-- end end button -->
179 180 181 182 183 184 185 186 187 188 189 190
      </object>
    </child>
    <!-- end hbox action bar -->
  </template>
  <object class="GtkImage" id="image_accept">
    <property name="visible">True</property>
    <property name="resource">/cx/ring/RingGnome/accept</property>
  </object>
  <object class="GtkImage" id="image_reject">
    <property name="visible">True</property>
    <property name="resource">/cx/ring/RingGnome/reject</property>
  </object>
191 192 193 194
  <object class="GtkImage" id="image_hangup">
    <property name="visible">True</property>
    <property name="resource">/cx/ring/RingGnome/reject</property>
  </object>
195
</interface>