currentcallview.ui 26.1 KB
Newer Older
Stepan Salenikovich's avatar
Stepan Salenikovich committed
1 2 3 4 5
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="3.10"/>
  <template class="CurrentCallView" parent="GtkBox">
    <property name="visible">True</property>
6

7
    <!-- start of Paned container which splits the video/controls and the chat -->
Stepan Salenikovich's avatar
Stepan Salenikovich committed
8
    <child>
9
      <object class="GtkPaned" id="paned_call">
Stepan Salenikovich's avatar
Stepan Salenikovich committed
10
        <property name="visible">True</property>
11 12
        <property name="can_focus">True</property>

13
        <!-- video widget goes in this frame -->
Stepan Salenikovich's avatar
Stepan Salenikovich committed
14
        <child>
15 16 17 18 19
          <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>
20 21 22 23 24 25
          </object>
          <packing>
            <property name="shrink">False</property>
            <property name="resize">True</property>
          </packing>
        </child>
26
        <!-- end of video widget frame -->
27

28
        <!-- chat widget goes in this frame -->
29
        <child>
30
          <object class="GtkFrame" id="frame_chat">
31
            <property name="width-request">300</property>
32
            <property name="visible">False</property>
33
            <property name="shadow-type">GTK_SHADOW_NONE</property>
Stepan Salenikovich's avatar
Stepan Salenikovich committed
34 35
          </object>
          <packing>
36
            <property name="shrink">False</property>
37
            <property name="resize">True</property>
Stepan Salenikovich's avatar
Stepan Salenikovich committed
38 39
          </packing>
        </child>
40 41
        <!-- end of chat frame -->

Stepan Salenikovich's avatar
Stepan Salenikovich committed
42 43
      </object>
      <packing>
44
        <property name="expand">True</property>
Stepan Salenikovich's avatar
Stepan Salenikovich committed
45 46 47
        <property name="fill">True</property>
      </packing>
    </child>
48
    <!-- end of Paned container -->
Stepan Salenikovich's avatar
Stepan Salenikovich committed
49
  </template>
50

Olivier Gregoire's avatar
Olivier Gregoire committed
51 52
  <!-- vertical box which contains smartInfo -->
  <object class="GtkBox" id="vbox_call_smartInfo">
53 54 55
    <style>
      <class name="smartinfo-block-style"/>
    </style>
Olivier Gregoire's avatar
Olivier Gregoire committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
    <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>
78 79 80 81 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 109 110 111 112 113 114 115 116 117 118 119 120
      <!-- 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>
Olivier Gregoire's avatar
Olivier Gregoire committed
121 122 123
  </object>
  <!-- end of the vertical box which contains smartInfo -->

124 125 126 127 128 129
  <!-- 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>
130
    <property name="valign">center</property>
131 132 133 134 135 136 137 138 139
    <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>
140 141

    <!-- box which contains peer name and uri (if different) -->
142
    <child>
143
      <object class="GtkBox" id="vbox_peer_identity">
144
        <property name="visible">True</property>
145
        <property name="spacing">5</property>
146
        <property name="valign">center</property>
147 148 149
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkLabel" id="label_name">
150
            <property name="visible">False</property>
151 152 153 154 155 156
            <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"/>
157
              <attribute name="foreground" value="#ffffff"/>
158 159 160 161 162 163 164 165
            </attributes>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
          </packing>
        </child>
        <child>
Nicolas Jager's avatar
Nicolas Jager committed
166
          <object class="GtkLabel" id="label_bestId">
167
            <property name="visible">True</property>
168 169
            <property name="can_focus">True</property>
            <property name="selectable">True</property>
170
            <property name="halign">start</property>
171 172
            <property name="ellipsize">end</property>
            <attributes>
173
              <attribute name="foreground" value="#ffffff"/>
174 175 176 177 178 179 180
            </attributes>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
          </packing>
        </child>
181 182 183 184 185 186
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
187
    <!-- end of box which contains peer name and uri -->
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233

    <!-- 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 -->

234
  <!-- call control button box -->
235 236 237 238 239 240
  <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">
241 242 243
        <style>
          <class name="hangup-button-style"/>
        </style>
244 245 246
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
247 248
        <property name="width-request">48</property>
        <property name="height-request">48</property>
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
        <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>
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
    <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>
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301
    <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>
302 303
    <child>
      <object class="GtkToggleButton" id="togglebutton_hold">
304 305 306
        <style>
          <class name="call-button"/>
        </style>
307 308 309
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
310 311
        <property name="width-request">48</property>
        <property name="height-request">48</property>
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327
        <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">
328 329 330 331
        <style>
          <class name="can-be-disabled"/>
          <class name="call-button"/>
        </style>
332 333 334
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
335 336
        <property name="width-request">48</property>
        <property name="height-request">48</property>
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352
        <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">
353 354 355 356
        <style>
          <class name="call-button"/>
          <class name="can-be-disabled"/>
        </style>
357 358 359
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="receives_default">True</property>
360 361
        <property name="width-request">48</property>
        <property name="height-request">48</property>
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377
        <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">
378 379 380 381
        <style>
          <class name="call-button"/>
          <class name="record-button"/>
        </style>
382 383
        <property name="visible">True</property>
        <property name="can_focus">True</property>
384 385
        <property name="width-request">48</property>
        <property name="height-request">48</property>
386 387
        <property name="has_tooltip">True</property>
        <property name="image">image_record</property>
388
        <property name="tooltip-text" translatable="yes">Toggle recording</property>
389 390
        <child internal-child="accessible">
          <object class="AtkObject" id="togglebutton_record-atkobject">
391
            <property name="AtkObject::accessible-name" translatable="yes">Record</property>
392 393 394 395 396 397 398 399
          </object>
        </child>
      </object>
      <packing>
        <property name="expand">False</property>
        <property name="fill">True</property>
      </packing>
    </child>
400 401
    <child>
      <object class="GtkScaleButton" id="scalebutton_quality">
402 403 404
        <style>
          <class name="call-button"/>
        </style>
405
        <property name="visible">True</property>
406
        <property name="sensitive">True</property>
407
        <property name="can_focus">True</property>
408 409
        <property name="width-request">48</property>
        <property name="height-request">48</property>
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425
        <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>
426 427
    <child>
      <object class="GtkToggleButton" id="togglebutton_chat">
428 429 430
        <style>
          <class name="call-button"/>
        </style>
431 432
        <property name="visible">True</property>
        <property name="can_focus">True</property>
433 434
        <property name="width-request">48</property>
        <property name="height-request">48</property>
435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451
        <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 -->

452 453
  <object class="GtkImage" id="image_chat">
    <property name="visible">True</property>
454
    <property name="resource">/net/jami/JamiGnome/chat</property>
455 456 457 458 459
    <child internal-child="accessible">
      <object class="AtkObject" id="image_chat-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Chat</property>
      </object>
    </child>
460 461 462
  </object>
  <object class="GtkImage" id="image_mute_audio">
    <property name="visible">True</property>
463
    <property name="resource">/net/jami/JamiGnome/mute_audio</property>
464 465 466 467 468
    <child internal-child="accessible">
      <object class="AtkObject" id="image_mute_audio-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Mute audio</property>
      </object>
    </child>
469 470 471
  </object>
  <object class="GtkImage" id="image_mute_video">
    <property name="visible">True</property>
472
    <property name="resource">/net/jami/JamiGnome/mute_video</property>
473 474 475 476 477
    <child internal-child="accessible">
      <object class="AtkObject" id="image_mute_video-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Mute video</property>
      </object>
    </child>
478 479 480
  </object>
  <object class="GtkImage" id="image_pause">
    <property name="visible">True</property>
481
    <property name="resource">/net/jami/JamiGnome/pause</property>
482 483 484 485 486
    <child internal-child="accessible">
      <object class="AtkObject" id="image_pause-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Hold</property>
      </object>
    </child>
487
  </object>
488 489 490 491 492 493 494 495 496
  <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>
497 498
  <object class="GtkImage" id="image_transfer">
    <property name="visible">True</property>
499
    <property name="resource">/net/jami/JamiGnome/transfer</property>
500 501 502 503 504 505
    <child internal-child="accessible">
      <object class="AtkObject" id="image_transfer-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Transfer</property>
      </object>
    </child>
  </object>
506 507
  <object class="GtkImage" id="image_end">
    <property name="visible">True</property>
508
    <property name="resource">/net/jami/JamiGnome/call_end</property>
509 510 511 512 513
    <child internal-child="accessible">
      <object class="AtkObject" id="image_end-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">End call</property>
      </object>
    </child>
514
  </object>
515 516
  <object class="GtkImage" id="image_quality">
    <property name="visible">True</property>
517
    <property name="resource">/net/jami/JamiGnome/quality</property>
518 519 520 521 522 523
    <child internal-child="accessible">
      <object class="AtkObject" id="image_quality-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Video quality</property>
      </object>
    </child>
  </object>
524 525
  <object class="GtkImage" id="image_record">
    <property name="visible">True</property>
526
    <property name="resource">/net/jami/JamiGnome/record</property>
527 528 529 530 531 532
    <child internal-child="accessible">
      <object class="AtkObject" id="image_record-atkobject">
        <property name="AtkObject::accessible-description" translatable="yes">Record</property>
      </object>
    </child>
  </object>
533 534 535 536 537 538 539
  <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>
540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602
  <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>
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666
  <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>
Stepan Salenikovich's avatar
Stepan Salenikovich committed
667
</interface>