blob: adfffffb435d38b4194db624b582a627a4c23b04 [file] [log] [blame]
Stepan Salenikovich434b88f2015-02-19 17:49:08 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!-- not recommended to open in Glade as it might not support some wdigets and delete them -->
3<interface>
4 <requires lib="gtk+" version="3.10"/>
5 <template class="RingMainWindow" parent="GtkApplicationWindow">
6 <property name="can_focus">False</property>
7 <property name="show_menubar">False</property>
Stepan Salenikovichb79ed572015-08-11 10:52:07 -04008 <property name="default-width">400</property>
9 <property name="default-height">300</property>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -050010 <!-- header definition -->
11 <child type="titlebar">
12 <object class="GtkHeaderBar" id="header">
13 <property name="visible">True</property>
14 <property name="show-close-button">True</property>
15 <!-- main menu button -->
16 <child>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -040017 <object class="GtkMenuButton" id="ring_menu">
Stepan Salenikovich434b88f2015-02-19 17:49:08 -050018 <property name="visible">True</property>
19 <property name="direction">none</property>
Stepan Salenikovich69771842015-02-24 18:11:45 -050020 <property name="tooltip_text" translatable="yes">Menu</property>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -050021 <style>
22 <class name="image-button"/>
23 </style>
24 <child>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -040025 <object class="GtkImage" id="image_ring">
Stepan Salenikovich434b88f2015-02-19 17:49:08 -050026 <property name="visible">True</property>
27 </object>
28 </child>
29 </object>
30 <packing>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -040031 <property name="pack-type">GTK_PACK_START</property>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -050032 </packing>
33 </child>
34 <!-- end main menu button -->
Stepan Salenikovich64505672015-09-24 10:46:07 -040035 <!-- title box with where settings appear -->
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -050036 <child type="title">
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -040037 <object class="GtkBox" id="hbox_title">
Stepan Salenikovich434b88f2015-02-19 17:49:08 -050038 <property name="visible">True</property>
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -050039 <property name="orientation">horizontal</property>
40 <property name="can_focus">False</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -040041 <!-- hbox settings -->
42 <child>
43 <object class="GtkBox" id="hbox_settings">
44 <!-- start out as being not visible -->
45 <property name="visible">False</property>
46 <property name="orientation">horizontal</property>
47 <property name="can_focus">False</property>
48 <style>
49 <class name="linked"/>
50 </style>
51 <!-- general settings -->
52 <child>
53 <object class="GtkRadioButton" id="radiobutton_general_settings">
54 <property name="label" translatable="yes">General</property>
Stepan Salenikovichde896112015-05-11 16:46:33 -040055 <property name="visible">True</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -040056 <property name="image">image_general_settings</property>
57 <property name="draw_indicator">False</property>
58 </object>
59 </child>
60 <!-- end general settings -->
Stepan Salenikovich5d3506e2015-03-30 11:01:29 -040061 <!-- media settings -->
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -040062 <child>
Stepan Salenikovich5d3506e2015-03-30 11:01:29 -040063 <object class="GtkRadioButton" id="radiobutton_media_settings">
64 <property name="label" translatable="yes">Media</property>
Stepan Salenikovichf903d1b2015-03-25 14:51:45 -040065 <property name="visible">True</property>
Stepan Salenikovich5d3506e2015-03-30 11:01:29 -040066 <property name="image">image_media_settings</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -040067 <property name="draw_indicator">False</property>
68 <property name="group">radiobutton_general_settings</property>
69 </object>
70 </child>
Stepan Salenikovich5d3506e2015-03-30 11:01:29 -040071 <!-- end media settings -->
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -040072 <!-- account settings -->
73 <child>
74 <object class="GtkRadioButton" id="radiobutton_account_settings">
75 <property name="label" translatable="yes">Accounts</property>
76 <property name="visible">True</property>
77 <property name="image">image_account_settings</property>
78 <property name="draw_indicator">False</property>
79 <property name="group">radiobutton_general_settings</property>
80 </object>
81 </child>
82 <!-- end account settings -->
83 </object>
84 </child>
85 <!-- end hbox settings -->
86 </object>
87 </child>
88 <!-- end titel box with search or settings -->
89 <!-- button settings -->
90 <child>
91 <object class="GtkButton" id="ring_settings">
92 <property name="visible">True</property>
93 <property name="tooltip_text" translatable="yes">Settings</property>
94 <child>
95 <object class="GtkImage" id="image_settings">
96 <property name="visible">True</property>
97 </object>
98 </child>
99 </object>
100 <packing>
101 <property name="pack-type">GTK_PACK_END</property>
102 </packing>
103 </child>
104 <!-- end button settings -->
105 </object>
106 </child>
107 <!-- end header definition -->
108 <child>
109 <object class="GtkStack" id="stack_main_view">
110 <property name="visible">True</property>
111 <property name="transition-type">GTK_STACK_TRANSITION_TYPE_SLIDE_UP</property>
112 <property name="transition-duration">400</property>
113 </object>
114 </child>
115 </template>
116 <!-- main call view -->
117 <object class="GtkBox" id="vbox_call_view">
118 <property name="visible">True</property>
119 <property name="can_focus">False</property>
120 <!-- <property name="border_width">5</property> -->
121 <property name="orientation">vertical</property>
122 <child>
123 <!-- start of Paned container -->
124 <object class="GtkPaned" id="paned_main">
125 <property name="visible">True</property>
126 <property name="can_focus">True</property>
Stepan Salenikovich82b1acf2015-05-12 12:33:51 -0400127 <property name="position-set">True</property>
128 <!-- TODO: save the user set position of the pane -->
129 <property name="position">350</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400130 <child>
Stepan Salenikovichbbb10d82015-05-13 12:26:44 -0400131 <object class="GtkBox" id="vbox_left_pane">
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400132 <property name="visible">True</property>
133 <property name="can_focus">False</property>
134 <property name="orientation">vertical</property>
Stepan Salenikovich64505672015-09-24 10:46:07 -0400135 <!-- hbox search -->
136 <child>
137 <object class="GtkBox" id="hbox_search">
138 <property name="visible">True</property>
139 <property name="orientation">horizontal</property>
140 <property name="can_focus">False</property>
Stepan Salenikovichf058aeb2015-09-24 14:46:09 -0400141 <property name="border_width">10</property>
Stepan Salenikovich64505672015-09-24 10:46:07 -0400142 <style>
143 <class name="linked"/>
144 </style>
145 <child>
146 <object class="GtkSearchEntry" id="search_entry">
147 <property name="visible">True</property>
148 <property name="xalign">0.5</property>
149 <property name="truncate-multiline">True</property>
150 <property name="max-length">256</property>
Stepan Salenikovich9c6cb5a2015-09-24 11:12:02 -0400151 <property name="placeholder-text" translatable="yes">Search contacts or enter number</property>
Stepan Salenikovich64505672015-09-24 10:46:07 -0400152 </object>
153 <packing>
154 <property name="expand">True</property>
155 <property name="fill">True</property>
156 </packing>
157 </child>
158 <child>
159 <object class="GtkButton" id="button_placecall">
160 <property name="image">image_call</property>
161 <property name="visible">True</property>
162 </object>
163 </child>
164 <child>
165 <object class="GtkButton" id="button_addcontact">
166 <property name="image">image_contact</property>
167 <!-- TODO: make visible when feature ready -->
168 <property name="visible">False</property>
169 </object>
170 </child>
171 </object>
172 <packing>
173 <property name="expand">False</property>
174 <property name="fill">True</property>
175 </packing>
176 </child>
177 <!-- end hbox search -->
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400178 <!-- calls view will get put here programatically -->
179 <!-- start notebook with favorites, contacts, history -->
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400180 <child>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400181 <object class="GtkNotebook" id="notebook_contacts">
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400182 <property name="visible">True</property>
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400183 <property name="can_focus">True</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400184 <property name="show-border">False</property>
185 <property name="tab-pos">bottom</property>
186 <!-- frequent contacts -->
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400187 <child>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400188 <object class="GtkScrolledWindow" id="scrolled_window_frequent">
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400189 <property name="visible">True</property>
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400190 </object>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400191 <packing>
192 <property name="position">0</property>
193 </packing>
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400194 </child>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400195 <child type="tab">
196 <object class="GtkLabel" id="tab_label_frequent">
197 <property name="label" translatable="yes">Frequent</property>
198 </object>
199 <packing>
200 <property name="position">0</property>
201 </packing>
202 </child>
203 <!-- end frequent contacts -->
204 <!-- contacts list -->
205 <child>
206 <object class="GtkScrolledWindow" id="scrolled_window_contacts">
207 <property name="visible">True</property>
208 </object>
209 <packing>
210 <property name="position">1</property>
211 </packing>
212 </child>
213 <child type="tab">
214 <object class="GtkLabel" id="tab_label_contacts">
215 <property name="label" translatable="yes">Contacts</property>
216 </object>
217 <packing>
218 <property name="position">1</property>
219 </packing>
220 </child>
221 <!-- end contacts list -->
222 <!-- history -->
223 <child>
224 <object class="GtkScrolledWindow" id="scrolled_window_history">
225 <property name="visible">True</property>
226 </object>
227 <packing>
228 <property name="position">2</property>
229 </packing>
230 </child>
231 <child type="tab">
232 <object class="GtkLabel" id="tab_label_history">
233 <property name="label" translatable="yes">History</property>
234 </object>
235 <packing>
236 <property name="position">2</property>
237 </packing>
238 </child>
239 <!-- end history -->
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -0500240 </object>
241 <packing>
242 <property name="expand">True</property>
243 <property name="fill">True</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400244 <property name="position">2</property>
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -0500245 </packing>
246 </child>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400247 <!-- end notebook with favorites, contacts, history -->
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500248 </object>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500249 <packing>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400250 <property name="resize">False</property>
251 <property name="shrink">False</property>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500252 </packing>
253 </child>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400254 <!-- right side of pane -->
255 <child>
256 <object class="GtkBox" id="vbox_right">
257 <property name="visible">True</property>
258 <property name="can_focus">False</property>
259 <property name="orientation">vertical</property>
260 <!-- main display object -->
261 <child>
262 <object class="GtkStack" id="stack_call_view">
263 <property name="visible">True</property>
264 <property name="transition-type">GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT</property>
265 <property name="transition-duration">300</property>
266 </object>
267 <packing>
268 <property name="expand">True</property>
269 <property name="fill">True</property>
270 </packing>
271 </child>
272 <!-- end of main display object -->
Stepan Salenikovich5eab3032015-03-28 10:50:51 -0400273 <!-- ring hash location -->
274 <child>
275 <object class="GtkBox" id="hbox_ring_hash">
276 <property name="visible">True</property>
277 <property name="can_focus">False</property>
278 <property name="orientation">horizontal</property>
Stepan Salenikovichea932de2015-08-11 10:25:44 -0400279 <property name="margin_left">10</property>
280 <property name="margin_right">10</property>
281 <property name="margin_top">10</property>
282 <property name="margin_bottom">5</property>
Stepan Salenikovich5eab3032015-03-28 10:50:51 -0400283 <property name="halign">center</property>
284 <child>
285 <object class="GtkLabel" id="label_your_ring_id">
286 <property name="visible">True</property>
287 <property name="can_focus">False</property>
288 <property name="label" translatable="yes">Your Ring ID: </property>
289 </object>
290 </child>
291 <child>
Stepan Salenikovich2ea27302015-03-31 10:28:46 -0400292 <object class="GtkLabel" id="label_ring_id">
Stepan Salenikovich5eab3032015-03-28 10:50:51 -0400293 <property name="visible">True</property>
294 <property name="can_focus">True</property>
Stepan Salenikovich2ea27302015-03-31 10:28:46 -0400295 <property name="use-markup">True</property>
296 <property name="selectable">True</property>
Stepan Salenikovichea932de2015-08-11 10:25:44 -0400297 <property name="ellipsize">end</property>
Stepan Salenikovich2ea27302015-03-31 10:28:46 -0400298 <property name="label" translatable="yes">&lt;span fgcolor="gray"&gt;fetching Ring ID...&lt;/span&gt;</property>
Stepan Salenikovich5eab3032015-03-28 10:50:51 -0400299 </object>
300 <packing>
Stepan Salenikovich5eab3032015-03-28 10:50:51 -0400301 <property name="fill">True</property>
302 </packing>
303 </child>
304 </object>
305 <packing>
306 <property name="fill">True</property>
307 </packing>
308 </child>
309 <!-- end ring hash location -->
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400310 </object>
311 <packing>
312 <property name="shrink">False</property>
313 </packing>
314 </child>
315 <!-- end of right side of pane -->
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500316 </object>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400317 <!-- end of Paned container -->
318 <packing>
319 <property name="expand">True</property>
320 <property name="fill">True</property>
321 <property name="position">1</property>
322 </packing>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500323 </child>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400324 </object>
325 <!-- end main call view -->
Stepan Salenikovichb8e41272015-03-27 14:31:54 -0400326 <!-- account creation 1 -->
327 <object class="GtkBox" id="account_creation_1">
328 <property name="visible">True</property>
329 <property name="can_focus">False</property>
330 <property name="valign">center</property>
331 <property name="orientation">vertical</property>
332 <property name="spacing">30</property>
333 <property name="border_width">30</property>
334 <child>
335 <object class="GtkBox" id="hbox_account_creation_title">
336 <property name="visible">True</property>
337 <property name="can_focus">False</property>
338 <property name="halign">center</property>
339 <child>
340 <object class="GtkLabel" id="label_welcome">
341 <property name="visible">True</property>
342 <property name="can_focus">False</property>
343 <property name="label" translatable="yes">Welcome to </property>
344 <attributes>
345 <attribute name="scale" value="4"/>
346 </attributes>
347 </object>
348 </child>
349 <child>
350 <object class="GtkImage" id="image_ring_logo">
351 <property name="visible">True</property>
352 </object>
353 </child>
354 </object>
355 </child>
356 <child>
357 <object class="GtkLabel" id="label_enter_alias">
358 <property name="visible">True</property>
359 <property name="can_focus">False</property>
360 <property name="label" translatable="yes">Enter your alias to get started:</property>
361 </object>
362 </child>
363 <child>
364 <object class="GtkEntry" id="entry_alias">
365 <property name="visible">True</property>
366 <property name="can_focus">True</property>
367 <property name="can_default">True</property>
368 <property name="has_default">True</property>
369 <property name="xalign">0.5</property>
370 </object>
371 </child>
372 <child>
373 <object class="GtkLabel" id="label_generating_account">
374 <!-- starts out as invisible -->
375 <property name="visible">False</property>
376 <property name="can_focus">False</property>
377 <property name="label" translatable="yes">Generating your Ring account...</property>
378 </object>
379 </child>
380 <child>
381 <object class="GtkSpinner" id="spinner_generating_account">
382 <!-- starts out as invisible -->
383 <property name="visible">False</property>
384 <property name="can_focus">False</property>
385 <property name="active">True</property>
386 <property name="height_request">50</property>
387 </object>
388 </child>
389 <child>
390 <object class="GtkButton" id="button_account_creation_next">
391 <property name="label" translatable="yes">Next</property>
392 <property name="visible">True</property>
393 <property name="can_focus">True</property>
394 <property name="halign">end</property>
395 <!-- disabled until an alias is entered -->
396 <property name="sensitive">False</property>
397 </object>
398 </child>
399 </object>
400 <!-- end account creation step 1 -->
401 <!-- account creation step 2 -->
402 <object class="GtkBox" id="account_creation_2">
403 <property name="visible">True</property>
404 <property name="can_focus">False</property>
405 <property name="valign">center</property>
406 <property name="orientation">vertical</property>
407 <property name="spacing">30</property>
408 <property name="border_width">30</property>
409 <child>
410 <object class="GtkLabel" id="label_account_created">
411 <property name="visible">True</property>
412 <property name="can_focus">False</property>
413 <property name="label" translatable="yes">Your Ring account has been created with the following Ring ID:</property>
414 </object>
415 </child>
416 <child>
417 <object class="GtkEntry" id="entry_hash">
418 <property name="visible">True</property>
419 <property name="can_focus">True</property>
420 <property name="editable">False</property>
421 <property name="xalign">0.5</property>
422 </object>
423 </child>
424 <child>
425 <object class="GtkLabel" id="label_share_hash">
426 <property name="visible">True</property>
427 <property name="can_focus">False</property>
428 <property name="label" translatable="yes">Share it with your friends so they can contact you via Ring!</property>
429 </object>
430 </child>
431 <child>
432 <object class="GtkButton" id="button_account_creation_done">
433 <property name="label" translatable="yes">Done</property>
434 <property name="visible">True</property>
435 <property name="can_focus">True</property>
436 <property name="halign">end</property>
437 </object>
438 </child>
439 </object>
440 <!-- end account creation step 2 -->
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500441 <!-- some images -->
442 <object class="GtkImage" id="image_contacts">
443 <property name="visible">True</property>
444 <property name="resource">/cx/ring/RingGnome/addressbook_small</property>
445 </object>
446 <object class="GtkImage" id="image_history">
447 <property name="visible">True</property>
448 <property name="resource">/cx/ring/RingGnome/history_small</property>
449 </object>
450 <object class="GtkImage" id="image_presence">
451 <property name="visible">True</property>
452 <property name="resource">/cx/ring/RingGnome/users_small</property>
453 </object>
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -0500454 <object class="GtkImage" id="image_call">
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500455 <property name="visible">True</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400456 <property name="icon-name">call-start-symbolic</property>
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -0500457 </object>
458 <object class="GtkImage" id="image_contact">
459 <property name="visible">True</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400460 <property name="icon-name">avatar-default-symbolic</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400461 </object>
462 <object class="GtkImage" id="image_general_settings">
463 <property name="visible">True</property>
464 <property name="icon-name">preferences-system-symbolic</property>
465 <property name="icon-size">3</property>
466 </object>
Stepan Salenikovich5d3506e2015-03-30 11:01:29 -0400467 <object class="GtkImage" id="image_media_settings">
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400468 <property name="visible">True</property>
Stepan Salenikovich5d3506e2015-03-30 11:01:29 -0400469 <property name="icon-name">applications-multimedia-symbolic</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400470 <property name="icon-size">3</property>
471 </object>
472 <object class="GtkImage" id="image_account_settings">
473 <property name="visible">True</property>
474 <property name="icon-name">user-info-symbolic</property>
475 <property name="icon-size">3</property>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500476 </object>
477</interface>