blob: 3f73fcc0dc23febd8e1688be10b054be7787b9fb [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 Salenikovichab0f5be2016-02-05 15:16:35 -05008 <property name="default-width">700</property>
9 <property name="default-height">450</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 <!-- TODO: save the user set position of the pane -->
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400128 <child>
Stepan Salenikovichbbb10d82015-05-13 12:26:44 -0400129 <object class="GtkBox" id="vbox_left_pane">
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400130 <property name="visible">True</property>
131 <property name="can_focus">False</property>
132 <property name="orientation">vertical</property>
Stepan Salenikovich64505672015-09-24 10:46:07 -0400133 <!-- hbox search -->
134 <child>
135 <object class="GtkBox" id="hbox_search">
136 <property name="visible">True</property>
137 <property name="orientation">horizontal</property>
138 <property name="can_focus">False</property>
Stepan Salenikovich64505672015-09-24 10:46:07 -0400139 <child>
140 <object class="GtkSearchEntry" id="search_entry">
141 <property name="visible">True</property>
142 <property name="xalign">0.5</property>
143 <property name="truncate-multiline">True</property>
144 <property name="max-length">256</property>
Stepan Salenikovichee068bc2016-02-12 12:38:30 -0500145 <!-- ensure a min height (this is the natural height in adwiata)-->
146 <property name="height-request">34></property>
Stepan Salenikovich64505672015-09-24 10:46:07 -0400147 </object>
148 <packing>
149 <property name="expand">True</property>
150 <property name="fill">True</property>
151 </packing>
152 </child>
153 <child>
154 <object class="GtkButton" id="button_placecall">
155 <property name="image">image_call</property>
156 <property name="visible">True</property>
Stepan Salenikovich42265832015-10-29 16:07:32 -0400157 <property name="relief">none</property>
Stepan Salenikovich64505672015-09-24 10:46:07 -0400158 </object>
159 </child>
160 <child>
161 <object class="GtkButton" id="button_addcontact">
162 <property name="image">image_contact</property>
163 <!-- TODO: make visible when feature ready -->
164 <property name="visible">False</property>
165 </object>
166 </child>
167 </object>
168 <packing>
169 <property name="expand">False</property>
170 <property name="fill">True</property>
171 </packing>
172 </child>
173 <!-- end hbox search -->
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400174 <!-- calls view will get put here programatically -->
175 <!-- start notebook with favorites, contacts, history -->
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400176 <child>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400177 <object class="GtkNotebook" id="notebook_contacts">
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400178 <property name="visible">True</property>
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400179 <property name="can_focus">True</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400180 <property name="show-border">False</property>
181 <property name="tab-pos">bottom</property>
Stepan Salenikovichb9167f02015-10-27 10:51:58 -0400182 <property name="scrollable">True</property>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400183 <!-- "smart view" -->
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400184 <child>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400185 <object class="GtkScrolledWindow" id="scrolled_window_smartview">
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400186 <property name="visible">True</property>
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400187 </object>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400188 <packing>
189 <property name="position">0</property>
190 </packing>
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400191 </child>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400192 <child type="tab">
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400193 <object class="GtkLabel" id="tab_label_smartview">
194 <property name="label" translatable="yes">Conversations</property>
Stepan Salenikovichd48a7422015-09-25 15:28:55 -0400195 <property name="hexpand">True</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400196 </object>
197 <packing>
198 <property name="position">0</property>
199 </packing>
200 </child>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400201 <!-- end "smart view" -->
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400202 <!-- contacts list -->
203 <child>
204 <object class="GtkScrolledWindow" id="scrolled_window_contacts">
205 <property name="visible">True</property>
206 </object>
207 <packing>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400208 <property name="position">2</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400209 </packing>
210 </child>
211 <child type="tab">
212 <object class="GtkLabel" id="tab_label_contacts">
213 <property name="label" translatable="yes">Contacts</property>
Stepan Salenikovichd48a7422015-09-25 15:28:55 -0400214 <property name="hexpand">True</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400215 </object>
216 <packing>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400217 <property name="position">2</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400218 </packing>
219 </child>
220 <!-- end contacts list -->
221 <!-- history -->
222 <child>
223 <object class="GtkScrolledWindow" id="scrolled_window_history">
224 <property name="visible">True</property>
225 </object>
226 <packing>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400227 <property name="position">3</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400228 </packing>
229 </child>
230 <child type="tab">
231 <object class="GtkLabel" id="tab_label_history">
232 <property name="label" translatable="yes">History</property>
Stepan Salenikovichd48a7422015-09-25 15:28:55 -0400233 <property name="hexpand">True</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400234 </object>
235 <packing>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400236 <property name="position">3</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400237 </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>
Stepan Salenikovichce9660d2015-10-27 11:17:45 -0400251 <property name="shrink">True</property>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500252 </packing>
253 </child>
Stepan Salenikovichf1157332015-11-09 11:32:30 -0500254 <!-- right side of pane, where the call will be inserted -->
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400255 <child>
Stepan Salenikovichf1157332015-11-09 11:32:30 -0500256 <object class="GtkFrame" id="frame_call">
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400257 <property name="visible">True</property>
Stepan Salenikovichf1157332015-11-09 11:32:30 -0500258 <property name="shadow-type">GTK_SHADOW_NONE</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400259 </object>
260 <packing>
Stepan Salenikovichce9660d2015-10-27 11:17:45 -0400261 <property name="shrink">True</property>
262 <property name="resize">True</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400263 </packing>
264 </child>
265 <!-- end of right side of pane -->
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500266 </object>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400267 <!-- end of Paned container -->
268 <packing>
269 <property name="expand">True</property>
270 <property name="fill">True</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400271 </packing>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500272 </child>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400273 </object>
274 <!-- end main call view -->
Stepan Salenikovichb8e41272015-03-27 14:31:54 -0400275 <!-- account creation 1 -->
276 <object class="GtkBox" id="account_creation_1">
277 <property name="visible">True</property>
278 <property name="can_focus">False</property>
279 <property name="valign">center</property>
280 <property name="orientation">vertical</property>
281 <property name="spacing">30</property>
282 <property name="border_width">30</property>
283 <child>
284 <object class="GtkBox" id="hbox_account_creation_title">
285 <property name="visible">True</property>
286 <property name="can_focus">False</property>
287 <property name="halign">center</property>
288 <child>
289 <object class="GtkLabel" id="label_welcome">
290 <property name="visible">True</property>
291 <property name="can_focus">False</property>
292 <property name="label" translatable="yes">Welcome to </property>
293 <attributes>
294 <attribute name="scale" value="4"/>
295 </attributes>
296 </object>
297 </child>
298 <child>
299 <object class="GtkImage" id="image_ring_logo">
300 <property name="visible">True</property>
301 </object>
302 </child>
303 </object>
304 </child>
305 <child>
306 <object class="GtkLabel" id="label_enter_alias">
307 <property name="visible">True</property>
308 <property name="can_focus">False</property>
309 <property name="label" translatable="yes">Enter your alias to get started:</property>
310 </object>
311 </child>
312 <child>
313 <object class="GtkEntry" id="entry_alias">
314 <property name="visible">True</property>
315 <property name="can_focus">True</property>
316 <property name="can_default">True</property>
317 <property name="has_default">True</property>
318 <property name="xalign">0.5</property>
319 </object>
320 </child>
321 <child>
322 <object class="GtkLabel" id="label_generating_account">
323 <!-- starts out as invisible -->
324 <property name="visible">False</property>
325 <property name="can_focus">False</property>
326 <property name="label" translatable="yes">Generating your Ring account...</property>
327 </object>
328 </child>
329 <child>
330 <object class="GtkSpinner" id="spinner_generating_account">
331 <!-- starts out as invisible -->
332 <property name="visible">False</property>
333 <property name="can_focus">False</property>
334 <property name="active">True</property>
335 <property name="height_request">50</property>
336 </object>
337 </child>
338 <child>
339 <object class="GtkButton" id="button_account_creation_next">
340 <property name="label" translatable="yes">Next</property>
341 <property name="visible">True</property>
342 <property name="can_focus">True</property>
343 <property name="halign">end</property>
Stepan Salenikovichb8e41272015-03-27 14:31:54 -0400344 </object>
345 </child>
346 </object>
347 <!-- end account creation step 1 -->
348 <!-- account creation step 2 -->
349 <object class="GtkBox" id="account_creation_2">
350 <property name="visible">True</property>
351 <property name="can_focus">False</property>
352 <property name="valign">center</property>
353 <property name="orientation">vertical</property>
354 <property name="spacing">30</property>
355 <property name="border_width">30</property>
356 <child>
357 <object class="GtkLabel" id="label_account_created">
358 <property name="visible">True</property>
359 <property name="can_focus">False</property>
360 <property name="label" translatable="yes">Your Ring account has been created with the following Ring ID:</property>
361 </object>
362 </child>
363 <child>
364 <object class="GtkEntry" id="entry_hash">
365 <property name="visible">True</property>
366 <property name="can_focus">True</property>
367 <property name="editable">False</property>
368 <property name="xalign">0.5</property>
369 </object>
370 </child>
371 <child>
372 <object class="GtkLabel" id="label_share_hash">
373 <property name="visible">True</property>
374 <property name="can_focus">False</property>
375 <property name="label" translatable="yes">Share it with your friends so they can contact you via Ring!</property>
376 </object>
377 </child>
378 <child>
379 <object class="GtkButton" id="button_account_creation_done">
380 <property name="label" translatable="yes">Done</property>
381 <property name="visible">True</property>
382 <property name="can_focus">True</property>
383 <property name="halign">end</property>
384 </object>
385 </child>
386 </object>
387 <!-- end account creation step 2 -->
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500388 <!-- some images -->
389 <object class="GtkImage" id="image_contacts">
390 <property name="visible">True</property>
391 <property name="resource">/cx/ring/RingGnome/addressbook_small</property>
392 </object>
393 <object class="GtkImage" id="image_history">
394 <property name="visible">True</property>
395 <property name="resource">/cx/ring/RingGnome/history_small</property>
396 </object>
397 <object class="GtkImage" id="image_presence">
398 <property name="visible">True</property>
399 <property name="resource">/cx/ring/RingGnome/users_small</property>
400 </object>
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -0500401 <object class="GtkImage" id="image_call">
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500402 <property name="visible">True</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400403 <property name="icon-name">call-start-symbolic</property>
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -0500404 </object>
405 <object class="GtkImage" id="image_contact">
406 <property name="visible">True</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400407 <property name="icon-name">avatar-default-symbolic</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400408 </object>
409 <object class="GtkImage" id="image_general_settings">
410 <property name="visible">True</property>
411 <property name="icon-name">preferences-system-symbolic</property>
412 <property name="icon-size">3</property>
413 </object>
Stepan Salenikovich5d3506e2015-03-30 11:01:29 -0400414 <object class="GtkImage" id="image_media_settings">
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400415 <property name="visible">True</property>
Stepan Salenikovich5d3506e2015-03-30 11:01:29 -0400416 <property name="icon-name">applications-multimedia-symbolic</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400417 <property name="icon-size">3</property>
418 </object>
419 <object class="GtkImage" id="image_account_settings">
420 <property name="visible">True</property>
421 <property name="icon-name">user-info-symbolic</property>
422 <property name="icon-size">3</property>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500423 </object>
424</interface>