chatview.ui 4.19 KB
Newer Older
1 2 3 4 5
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.10"/>
  <template class="ChatView" parent="GtkBox">
    <property name="orientation">vertical</property>
Stepan Salenikovich's avatar
Stepan Salenikovich committed
6 7 8 9 10 11 12 13

    <!-- chat info (only show for out of call conversations) -->
    <child>
      <object class="GtkBox" id="hbox_chat_info">
        <property name="visible">False</property>
        <property name="no-show-all">True</property>
        <property name="orientation">horizontal</property>
        <property name="spacing">5</property>
14 15 16 17
        <child>
          <object class="GtkButton" id="button_close_chatview">
            <property name="image">image_back_arrow</property>
            <property name="visible">True</property>
18
            <property name="relief">none</property>
19 20 21 22 23 24 25 26
            <property name="tooltip-text" translatable="yes">Hide chat view</property>
            <child internal-child="accessible">
              <object class="AtkObject" id="button_close_chatview-atkobject">
                <property name="AtkObject::accessible-name" translatable="yes">Hide chat view</property>
              </object>
            </child>
          </object>
        </child>
Stepan Salenikovich's avatar
Stepan Salenikovich committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
        <child>
          <object class="GtkLabel" id="label_peer">
            <property name="visible">True</property>
            <property name="selectable">True</property>
            <property name="ellipsize">end</property>
            <attributes>
              <attribute name="weight" value="bold"/>
            </attributes>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
          </packing>
        </child>
        <child>
          <object class="GtkComboBox" id="combobox_cm">
43
            <property name="visible">True</property>
Stepan Salenikovich's avatar
Stepan Salenikovich committed
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
            <property name="popup-fixed-width">False</property>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
            <property name="pack-type">end</property>
          </packing>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <!-- end of chat info -->

60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
    <!-- start of chat text view -->
    <child>
      <object class="GtkScrolledWindow" id="scrolledwindow_chat">
        <property name="visible">True</property>
        <child>
          <object class="GtkTextView" id="textview_chat">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="editable">False</property>
            <property name="wrap-mode">word-char</property>
            <property name="left-margin">5</property>
            <property name="right-margin">5</property>
            <property name="height-request">50</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">True</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <!-- end of chat text view -->
Stepan Salenikovich's avatar
Stepan Salenikovich committed
82

83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
    <!-- start of chat entry -->
    <child>
      <object class="GtkBox" id="hbox_chat_input">
        <property name="visible">True</property>
        <property name="orientation">horizontal</property>
        <child>
          <object class="GtkEntry" id="entry_chat_input">
            <property name="visible">True</property>
          </object>
          <packing>
            <property name="expand">True</property>
            <property name="fill">True</property>
          </packing>
        </child>
        <child>
          <object class="GtkButton" id="button_chat_input">
            <property name="visible">True</property>
            <property name="label" translatable="yes">Send</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
Stepan Salenikovich's avatar
Stepan Salenikovich committed
109 110
    <!-- end of chat entry -->

111
  </template>
112 113 114 115 116

  <object class="GtkImage" id="image_back_arrow">
    <property name="visible">True</property>
    <property name="icon-name">go-previous-symbolic</property>
  </object>
117
</interface>