<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.10"/>
  <template class="CurrentCallView" parent="GtkBox">
    <property name="visible">True</property>

    <!-- start of Paned container which splits the video/controls and the chat -->
    <child>
      <object class="GtkPaned" id="paned_call">
        <property name="visible">True</property>
        <property name="can_focus">True</property>

        <!-- video widget goes in this frame -->
        <child>
          <object class="GtkFrame" id="frame_video">
            <property name="visible">False</property>
            <property name="shadow-type">GTK_SHADOW_NONE</property>
            <property name="height-request">150</property>
            <property name="width-request">200</property>
          </object>
          <packing>
            <property name="shrink">False</property>
            <property name="resize">True</property>
          </packing>
        </child>
        <!-- end of video widget frame -->

        <!-- chat widget goes in this frame -->
        <child>
          <object class="GtkFrame" id="frame_chat">
            <property name="width-request">300</property>
            <property name="visible">False</property>
            <property name="shadow-type">GTK_SHADOW_NONE</property>
          </object>
          <packing>
            <property name="shrink">False</property>
            <property name="resize">True</property>
          </packing>
        </child>
        <!-- end of chat frame -->

      </object>
      <packing>
        <property name="expand">True</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <!-- end of Paned container -->
  </template>

  <!-- vertical box which contains smartInfo -->
  <object class="GtkBox" id="vbox_call_smartInfo">
    <style>
      <class name="smartinfo-block-style"/>
    </style>
    <property name="visible">True</property>
    <property name="spacing">5</property>
    <property name="valign">start</property>
    <property name="orientation">vertical</property>
    <child>
      <object class="GtkLabel" id="label_smartinfo_general_information">
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="selectable">True</property>
        <property name="ellipsize">end</property>
        <property name="halign">start</property>
        <attributes>
          <attribute name="scale" value="1"/>
          <attribute name="weight" value="bold"/>
        </attributes>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <child>
      <!-- horizontal box which contains smartInfo -->
      <object class="GtkBox" id="hbox_call_smartInfo">
        <property name="visible">True</property>
        <property name="hexpand">True</property>
        <property name="spacing">10</property>
        <property name="border-width">10</property>
        <child>
          <object class="GtkLabel" id="label_smartinfo_description">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="selectable">True</property>
            <property name="ellipsize">end</property>
            <property name="halign">start</property>
            <attributes>
              <attribute name="scale" value="1"/>
              <attribute name="weight" value="bold"/>
            </attributes>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
          </packing>
        </child>
        <child>
          <object class="GtkLabel" id="label_smartinfo_value">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="selectable">True</property>
            <property name="ellipsize">end</property>
            <property name="halign">start</property>
            <attributes>
              <attribute name="scale" value="1"/>
              <attribute name="weight" value="bold"/>
            </attributes>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
          </packing>
        </child>
      </object>
      <!-- end of horizontal box which contains smartInfo -->
    </child>
  </object>
  <!-- end of the vertical box which contains smartInfo -->

  <!-- box which contains peer image and name and call status -->
  <object class="GtkBox" id="hbox_call_info">
    <property name="visible">True</property>
    <property name="hexpand">True</property>
    <property name="spacing">10</property>
    <property name="border-width">10</property>
    <property name="valign">center</property>
    <child>
      <object class="GtkImage" id="image_peer">
        <property name="visible">True</property>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>

    <!-- box which contains peer name and uri (if different) -->
    <child>
      <object class="GtkBox" id="vbox_peer_identity">
        <property name="visible">True</property>
        <property name="spacing">5</property>
        <property name="valign">center</property>
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkLabel" id="label_name">
            <property name="visible">False</property>
            <property name="can_focus">True</property>
            <property name="selectable">True</property>
            <property name="ellipsize">end</property>
            <property name="halign">start</property>
            <attributes>
              <attribute name="scale" value="1.25"/>
              <attribute name="foreground" value="#ffffff"/>
            </attributes>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
          </packing>
        </child>
        <child>
          <object class="GtkLabel" id="label_bestId">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="selectable">True</property>
            <property name="halign">start</property>
            <property name="ellipsize">end</property>
            <attributes>
              <attribute name="foreground" value="#ffffff"/>
            </attributes>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
          </packing>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <!-- end of box which contains peer name and uri -->
    <child>
      <object class="GtkBox" id="hbox_remote_info">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="halign">center</property>
        <property name="valign">start</property>
        <property name="hexpand">True</property>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>

    <!-- call status box -->
    <child>
      <object class="GtkBox" id="hbox_call_status">
        <property name="visible">True</property>
        <property name="spacing">10</property>
        <property name="valign">start</property>
        <child>
          <object class="GtkLabel" id="label_status">
            <property name="visible">True</property>
            <property name="ellipsize">end</property>
            <attributes>
              <attribute name="foreground" value="#ffffffffffff"/>
            </attributes>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
          </packing>
        </child>
        <child>
          <object class="GtkLabel" id="label_duration">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="selectable">True</property>
            <property name="ellipsize">end</property>
            <attributes>
              <attribute name="foreground" value="#ffffffffffff"/>
            </attributes>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
          </packing>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
        <property name="pack-type">end</property>
      </packing>
    </child>
    <!-- end of call status box -->
  </object>
  <!-- end of box which contains peer image and name -->

  <!-- box which contains remoteInfo -->
  <object class="GtkBox" id="border_remote_info">
    <style>
      <class name="remote-recording-block-style"/>
    </style>
    <property name="visible">True</property>
    <property name="can_focus">False</property>
    <property name="halign">center</property>
    <property name="valign">start</property>
    <property name="orientation">horizontal</property>
    <child>
      <object class="GtkLabel" id="label_remoteRecord_information">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
      </object>
    </child>
  </object>
  <!-- end of box which contains remoteInfo -->


  <!-- call control button box -->
  <object class="GtkBox" id="hbox_call_controls">
    <property name="visible">True</property>
    <property name="spacing">15</property>
    <property name="border-width">10</property>
    <child>
      <object class="GtkButton" id="button_hangup">
        <style>
          <class name="hangup-button-style"/>
        </style>
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
        <property name="width-request">48</property>
        <property name="height-request">48</property>
        <property name="action-name">app.hangup</property>
        <property name="has_tooltip">True</property>
        <property name="tooltip-text" translatable="yes">End this call</property>
        <property name="image">image_end</property>
        <child internal-child="accessible">
          <object class="AtkObject" id="button_hangup-atkobject">
            <property name="AtkObject::accessible-name" translatable="yes">End call</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <child>
      <object class="GtkToggleButton" id="togglebutton_add_participant">
        <style>
          <class name="call-button"/>
        </style>
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
        <property name="width-request">48</property>
        <property name="height-request">48</property>
        <property name="has_tooltip">True</property>
        <property name="tooltip-text" translatable="yes">Add participant</property>
        <property name="image">image_add_participant</property>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <child>
      <object class="GtkToggleButton" id="togglebutton_transfer">
        <style>
          <class name="call-button"/>
        </style>
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
        <property name="width-request">48</property>
        <property name="height-request">48</property>
        <property name="has_tooltip">True</property>
        <property name="tooltip-text" translatable="yes">Toggle transfer</property>
        <property name="image">image_transfer</property>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <child>
      <object class="GtkToggleButton" id="togglebutton_hold">
        <style>
          <class name="call-button"/>
        </style>
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
        <property name="width-request">48</property>
        <property name="height-request">48</property>
        <property name="has_tooltip">True</property>
        <property name="tooltip-text" translatable="yes">Toggle hold</property>
        <property name="image">image_pause</property>
        <child internal-child="accessible">
          <object class="AtkObject" id="togglebutton_hold-atkobject">
            <property name="AtkObject::accessible-name" translatable="yes">Hold</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <child>
      <object class="GtkToggleButton" id="togglebutton_muteaudio">
        <style>
          <class name="can-be-disabled"/>
          <class name="call-button"/>
        </style>
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
        <property name="width-request">48</property>
        <property name="height-request">48</property>
        <property name="has_tooltip">True</property>
        <property name="tooltip-text" translatable="yes">Toggle mute audio</property>
        <property name="image">image_mute_audio</property>
        <child internal-child="accessible">
          <object class="AtkObject" id="togglebutton_muteaudio-atkobject">
            <property name="AtkObject::accessible-name" translatable="yes">Hold</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <child>
      <object class="GtkToggleButton" id="togglebutton_mutevideo">
        <style>
          <class name="call-button"/>
          <class name="can-be-disabled"/>
        </style>
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
        <property name="width-request">48</property>
        <property name="height-request">48</property>
        <property name="has_tooltip">True</property>
        <property name="tooltip-text" translatable="yes">Toggle mute video</property>
        <property name="image">image_mute_video</property>
        <child internal-child="accessible">
          <object class="AtkObject" id="togglebutton_mutevideo-atkobject">
            <property name="AtkObject::accessible-name" translatable="yes">Mute video</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <child>
      <object class="GtkToggleButton" id="togglebutton_record">
        <style>
          <class name="call-button"/>
          <class name="record-button"/>
        </style>
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="width-request">48</property>
        <property name="height-request">48</property>
        <property name="has_tooltip">True</property>
        <property name="image">image_record</property>
        <property name="tooltip-text" translatable="yes">Toggle recording</property>
        <child internal-child="accessible">
          <object class="AtkObject" id="togglebutton_record-atkobject">
            <property name="AtkObject::accessible-name" translatable="yes">Record</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <child>
      <object class="GtkToggleButton" id="togglebutton_activate_plugin">
        <style>
          <class name="call-button"/>
        </style>
        <property name="visible">False</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
        <property name="width-request">48</property>
        <property name="height-request">48</property>
        <property name="has_tooltip">True</property>
        <!-- <property name="tooltip-text" translatable="yes">Plugin</property> -->
        <property name="image">image_activate_plugin</property>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <child>
      <object class="GtkScaleButton" id="scalebutton_quality">
        <style>
          <class name="call-button"/>
        </style>
        <property name="visible">True</property>
        <property name="sensitive">True</property>
        <property name="can_focus">True</property>
        <property name="width-request">48</property>
        <property name="height-request">48</property>
        <property name="has_tooltip">True</property>
        <property name="relief">normal</property>
        <property name="tooltip-text" translatable="yes">Adjust outgoing video quality</property>
        <property name="image">image_quality</property>
        <property name="adjustment">adjustment_quality</property>
        <child internal-child="accessible">
          <object class="AtkObject" id="scalebutton_quality-atkobject">
            <property name="AtkObject::accessible-name" translatable="yes">Video quality</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
    <child>
      <object class="GtkToggleButton" id="togglebutton_chat">
        <style>
          <class name="call-button"/>
        </style>
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="width-request">48</property>
        <property name="height-request">48</property>
        <property name="has_tooltip">True</property>
        <property name="tooltip-text" translatable="yes">Toggle show chat</property>
        <property name="image">image_chat</property>
        <child internal-child="accessible">
          <object class="AtkObject" id="togglebutton_chat-atkobject">
            <property name="AtkObject::accessible-name" translatable="yes">Chat</property>
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
  </object>
  <!-- end of call control button box -->

  <object class="GtkImage" id="image_chat">
    <property name="visible">True</property>
    <property name="resource">/net/jami/JamiGnome/chat</property>
    <child internal-child="accessible">
      <object class="AtkObject" id="image_chat-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Chat</property>
      </object>
    </child>
  </object>
  <object class="GtkImage" id="image_view">
    <property name="visible">True</property>
    <property name="resource">/net/jami/JamiGnome/view</property>
    <child internal-child="accessible">
      <object class="AtkObject" id="image_view-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">View</property>
      </object>
    </child>
  </object>
  <object class="GtkImage" id="image_mute_audio">
    <property name="visible">True</property>
    <property name="resource">/net/jami/JamiGnome/mute_audio</property>
    <child internal-child="accessible">
      <object class="AtkObject" id="image_mute_audio-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Mute audio</property>
      </object>
    </child>
  </object>
  <object class="GtkImage" id="image_mute_video">
    <property name="visible">True</property>
    <property name="resource">/net/jami/JamiGnome/mute_video</property>
    <child internal-child="accessible">
      <object class="AtkObject" id="image_mute_video-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Mute video</property>
      </object>
    </child>
  </object>
  <object class="GtkImage" id="image_pause">
    <property name="visible">True</property>
    <property name="resource">/net/jami/JamiGnome/pause</property>
    <child internal-child="accessible">
      <object class="AtkObject" id="image_pause-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Hold</property>
      </object>
    </child>
  </object>
  <object class="GtkImage" id="image_add_participant">
    <property name="visible">True</property>
    <property name="resource">/net/jami/JamiGnome/invite_white</property>
    <child internal-child="accessible">
      <object class="AtkObject" id="image_add_participant-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Add participant</property>
      </object>
    </child>
  </object>
  <object class="GtkImage" id="image_activate_plugin">
    <property name="visible">True</property>
    <property name="resource">/net/jami/JamiGnome/plugin_white</property>
    <child internal-child="accessible">
      <object class="AtkObject" id="image_activate_plugin-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Activate Plugin</property>
      </object>
    </child>
  </object>
  <object class="GtkImage" id="image_transfer">
    <property name="visible">True</property>
    <property name="resource">/net/jami/JamiGnome/transfer</property>
    <child internal-child="accessible">
      <object class="AtkObject" id="image_transfer-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Transfer</property>
      </object>
    </child>
  </object>
  <object class="GtkImage" id="image_end">
    <property name="visible">True</property>
    <property name="resource">/net/jami/JamiGnome/call_end</property>
    <child internal-child="accessible">
      <object class="AtkObject" id="image_end-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">End call</property>
      </object>
    </child>
  </object>
  <object class="GtkImage" id="image_quality">
    <property name="visible">True</property>
    <property name="resource">/net/jami/JamiGnome/quality</property>
    <child internal-child="accessible">
      <object class="AtkObject" id="image_quality-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Video quality</property>
      </object>
    </child>
  </object>
  <object class="GtkImage" id="image_record">
    <property name="visible">True</property>
    <property name="resource">/net/jami/JamiGnome/record</property>
    <child internal-child="accessible">
      <object class="AtkObject" id="image_record-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Record</property>
      </object>
    </child>
  </object>
  <object class="GtkAdjustment" id="adjustment_quality">
    <property name="lower">0</property>
    <property name="upper">100</property>
    <property name="value">50</property>
    <property name="step_increment">1</property>
    <property name="page_increment">10</property>
  </object>
  <object class="GtkPopover" id="siptransfer_popover">
    <property name="can_focus">False</property>
    <property name="height_request">300</property>
    <child>
      <object class="GtkBox">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkLabel">
            <property name="visible">False</property>
            <property name="halign">center</property>
            <property name="label" translatable="yes">Transfer to</property>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
            <property name="position">0</property>
          </packing>
        </child>
        <child>
          <object class="GtkSearchEntry" id="siptransfer_filter_entry">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="primary_icon_name">edit-find-symbolic</property>
            <property name="primary_icon_activatable">False</property>
            <property name="primary_icon_sensitive">False</property>
            <style>
              <class name="search-entry-style"/>
            </style>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
            <property name="position">1</property>
          </packing>
        </child>
        <child>
          <object class="GtkScrolledWindow">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="shadow_type">in</property>
            <child>
              <object class="GtkListBox" id="list_conversations">
                <property name="visible">True</property>
                <property name="can_focus">True</property>
              </object>
              <packing>
                <property name="expand">True</property>
                <property name="fill">True</property>
                <property name="position">0</property>
              </packing>
            </child>
          </object>
          <packing>
            <property name="expand">True</property>
            <property name="fill">True</property>
            <property name="position">2</property>
          </packing>
        </child>
      </object>
    </child>
  </object>
  <object class="GtkPopover" id="add_participant_popover">
    <property name="can_focus">False</property>
    <property name="height_request">400</property>
    <property name="width_request">300</property>
    <child>
      <object class="GtkBox">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkLabel">
            <property name="visible">False</property>
            <property name="halign">center</property>
            <property name="label" translatable="yes">Add</property>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
            <property name="position">0</property>
          </packing>
        </child>
        <child>
          <object class="GtkSearchEntry" id="conversation_filter_entry">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="primary_icon_name">edit-find-symbolic</property>
            <property name="primary_icon_activatable">False</property>
            <property name="primary_icon_sensitive">False</property>
            <style>
              <class name="search-entry-style"/>
            </style>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
            <property name="position">1</property>
          </packing>
        </child>
        <child>
          <object class="GtkScrolledWindow">
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="shadow_type">in</property>
            <child>
              <object class="GtkListBox" id="list_conversations_invite">
                <property name="visible">True</property>
                <property name="can_focus">True</property>
              </object>
              <packing>
                <property name="expand">True</property>
                <property name="fill">True</property>
                <property name="position">0</property>
              </packing>
            </child>
          </object>
          <packing>
            <property name="expand">True</property>
            <property name="fill">True</property>
            <property name="position">2</property>
          </packing>
        </child>
      </object>
    </child>
  </object>

  <object class="GtkPopover" id="activate_plugin_popover">
    <property name="can_focus">False</property>
    <property name="height_request">200</property>
    <property name="width_request">300</property>
    <child>
      <object class="GtkBox">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="orientation">vertical</property>
        <property name="spacing">10</property>
        <child>
          <object class="GtkLabel">
            <property name="visible">True</property>
            <property name="halign">center</property>
            <property name="label" translatable="yes">Choose plugin</property>
          </object>
        </child>
        <child>
          <object class="GtkScrolledWindow">
            <property name="visible">True</property>
              <property name="can_focus">True</property>
              <property name="shadow_type">in</property>
              <property name="min_content_height">200</property>
              <property name="halign">fill</property>
            <child>
              <object class="GtkListBox" id="list_media_handlers_available">
                <property name="visible">True</property>
                <property name="can_focus">True</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>
