chatview.ui 3.44 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 14 15 16 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

    <!-- 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>
        <property name="border-width">5</property>
        <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">
            <property name="visible">False</property>
            <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 -->

48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
    <!-- 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
70

71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
    <!-- 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
97 98
    <!-- end of chat entry -->

99 100
  </template>
</interface>