blob: a78a44f4d15f50cd793beb109640765fc09b2f9f [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>
145 </object>
146 <packing>
147 <property name="expand">True</property>
148 <property name="fill">True</property>
149 </packing>
150 </child>
151 <child>
152 <object class="GtkButton" id="button_placecall">
153 <property name="image">image_call</property>
154 <property name="visible">True</property>
Stepan Salenikovich42265832015-10-29 16:07:32 -0400155 <property name="relief">none</property>
Stepan Salenikovich64505672015-09-24 10:46:07 -0400156 </object>
157 </child>
158 <child>
159 <object class="GtkButton" id="button_addcontact">
160 <property name="image">image_contact</property>
161 <!-- TODO: make visible when feature ready -->
162 <property name="visible">False</property>
163 </object>
164 </child>
165 </object>
166 <packing>
167 <property name="expand">False</property>
168 <property name="fill">True</property>
169 </packing>
170 </child>
171 <!-- end hbox search -->
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400172 <!-- calls view will get put here programatically -->
173 <!-- start notebook with favorites, contacts, history -->
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400174 <child>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400175 <object class="GtkNotebook" id="notebook_contacts">
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400176 <property name="visible">True</property>
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400177 <property name="can_focus">True</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400178 <property name="show-border">False</property>
179 <property name="tab-pos">bottom</property>
Stepan Salenikovichb9167f02015-10-27 10:51:58 -0400180 <property name="scrollable">True</property>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400181 <!-- "smart view" -->
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400182 <child>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400183 <object class="GtkScrolledWindow" id="scrolled_window_smartview">
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400184 <property name="visible">True</property>
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400185 </object>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400186 <packing>
187 <property name="position">0</property>
188 </packing>
Stepan Salenikovich7c71bfe2015-05-13 18:08:09 -0400189 </child>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400190 <child type="tab">
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400191 <object class="GtkLabel" id="tab_label_smartview">
192 <property name="label" translatable="yes">Conversations</property>
Stepan Salenikovichd48a7422015-09-25 15:28:55 -0400193 <property name="hexpand">True</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400194 </object>
195 <packing>
196 <property name="position">0</property>
197 </packing>
198 </child>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400199 <!-- end "smart view" -->
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400200 <!-- contacts list -->
201 <child>
202 <object class="GtkScrolledWindow" id="scrolled_window_contacts">
203 <property name="visible">True</property>
204 </object>
205 <packing>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400206 <property name="position">2</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400207 </packing>
208 </child>
209 <child type="tab">
210 <object class="GtkLabel" id="tab_label_contacts">
211 <property name="label" translatable="yes">Contacts</property>
Stepan Salenikovichd48a7422015-09-25 15:28:55 -0400212 <property name="hexpand">True</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400213 </object>
214 <packing>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400215 <property name="position">2</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400216 </packing>
217 </child>
218 <!-- end contacts list -->
219 <!-- history -->
220 <child>
221 <object class="GtkScrolledWindow" id="scrolled_window_history">
222 <property name="visible">True</property>
223 </object>
224 <packing>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400225 <property name="position">3</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400226 </packing>
227 </child>
228 <child type="tab">
229 <object class="GtkLabel" id="tab_label_history">
230 <property name="label" translatable="yes">History</property>
Stepan Salenikovichd48a7422015-09-25 15:28:55 -0400231 <property name="hexpand">True</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400232 </object>
233 <packing>
Stepan Salenikovich2f8b4492015-09-21 17:10:36 -0400234 <property name="position">3</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400235 </packing>
236 </child>
237 <!-- end history -->
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -0500238 </object>
239 <packing>
240 <property name="expand">True</property>
241 <property name="fill">True</property>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400242 <property name="position">2</property>
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -0500243 </packing>
244 </child>
Stepan Salenikovicha7a19bc2015-09-24 16:16:28 -0400245 <!-- end notebook with favorites, contacts, history -->
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500246 </object>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500247 <packing>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400248 <property name="resize">False</property>
Stepan Salenikovichce9660d2015-10-27 11:17:45 -0400249 <property name="shrink">True</property>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500250 </packing>
251 </child>
Stepan Salenikovichf1157332015-11-09 11:32:30 -0500252 <!-- right side of pane, where the call will be inserted -->
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400253 <child>
Stepan Salenikovichf1157332015-11-09 11:32:30 -0500254 <object class="GtkFrame" id="frame_call">
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400255 <property name="visible">True</property>
Stepan Salenikovichf1157332015-11-09 11:32:30 -0500256 <property name="shadow-type">GTK_SHADOW_NONE</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400257 </object>
258 <packing>
Stepan Salenikovichce9660d2015-10-27 11:17:45 -0400259 <property name="shrink">True</property>
260 <property name="resize">True</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400261 </packing>
262 </child>
263 <!-- end of right side of pane -->
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500264 </object>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400265 <!-- end of Paned container -->
266 <packing>
267 <property name="expand">True</property>
268 <property name="fill">True</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400269 </packing>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500270 </child>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400271 </object>
272 <!-- end main call view -->
Stepan Salenikovichb8e41272015-03-27 14:31:54 -0400273 <!-- account creation 1 -->
274 <object class="GtkBox" id="account_creation_1">
275 <property name="visible">True</property>
276 <property name="can_focus">False</property>
277 <property name="valign">center</property>
278 <property name="orientation">vertical</property>
279 <property name="spacing">30</property>
280 <property name="border_width">30</property>
281 <child>
282 <object class="GtkBox" id="hbox_account_creation_title">
283 <property name="visible">True</property>
284 <property name="can_focus">False</property>
285 <property name="halign">center</property>
286 <child>
287 <object class="GtkLabel" id="label_welcome">
288 <property name="visible">True</property>
289 <property name="can_focus">False</property>
290 <property name="label" translatable="yes">Welcome to </property>
291 <attributes>
292 <attribute name="scale" value="4"/>
293 </attributes>
294 </object>
295 </child>
296 <child>
297 <object class="GtkImage" id="image_ring_logo">
298 <property name="visible">True</property>
299 </object>
300 </child>
301 </object>
302 </child>
303 <child>
304 <object class="GtkLabel" id="label_enter_alias">
305 <property name="visible">True</property>
306 <property name="can_focus">False</property>
307 <property name="label" translatable="yes">Enter your alias to get started:</property>
308 </object>
309 </child>
310 <child>
311 <object class="GtkEntry" id="entry_alias">
312 <property name="visible">True</property>
313 <property name="can_focus">True</property>
314 <property name="can_default">True</property>
315 <property name="has_default">True</property>
316 <property name="xalign">0.5</property>
317 </object>
318 </child>
319 <child>
320 <object class="GtkLabel" id="label_generating_account">
321 <!-- starts out as invisible -->
322 <property name="visible">False</property>
323 <property name="can_focus">False</property>
324 <property name="label" translatable="yes">Generating your Ring account...</property>
325 </object>
326 </child>
327 <child>
328 <object class="GtkSpinner" id="spinner_generating_account">
329 <!-- starts out as invisible -->
330 <property name="visible">False</property>
331 <property name="can_focus">False</property>
332 <property name="active">True</property>
333 <property name="height_request">50</property>
334 </object>
335 </child>
336 <child>
337 <object class="GtkButton" id="button_account_creation_next">
338 <property name="label" translatable="yes">Next</property>
339 <property name="visible">True</property>
340 <property name="can_focus">True</property>
341 <property name="halign">end</property>
Stepan Salenikovichb8e41272015-03-27 14:31:54 -0400342 </object>
343 </child>
344 </object>
345 <!-- end account creation step 1 -->
346 <!-- account creation step 2 -->
347 <object class="GtkBox" id="account_creation_2">
348 <property name="visible">True</property>
349 <property name="can_focus">False</property>
350 <property name="valign">center</property>
351 <property name="orientation">vertical</property>
352 <property name="spacing">30</property>
353 <property name="border_width">30</property>
354 <child>
355 <object class="GtkLabel" id="label_account_created">
356 <property name="visible">True</property>
357 <property name="can_focus">False</property>
358 <property name="label" translatable="yes">Your Ring account has been created with the following Ring ID:</property>
359 </object>
360 </child>
361 <child>
362 <object class="GtkEntry" id="entry_hash">
363 <property name="visible">True</property>
364 <property name="can_focus">True</property>
365 <property name="editable">False</property>
366 <property name="xalign">0.5</property>
367 </object>
368 </child>
369 <child>
370 <object class="GtkLabel" id="label_share_hash">
371 <property name="visible">True</property>
372 <property name="can_focus">False</property>
373 <property name="label" translatable="yes">Share it with your friends so they can contact you via Ring!</property>
374 </object>
375 </child>
376 <child>
377 <object class="GtkButton" id="button_account_creation_done">
378 <property name="label" translatable="yes">Done</property>
379 <property name="visible">True</property>
380 <property name="can_focus">True</property>
381 <property name="halign">end</property>
382 </object>
383 </child>
384 </object>
385 <!-- end account creation step 2 -->
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500386 <!-- some images -->
387 <object class="GtkImage" id="image_contacts">
388 <property name="visible">True</property>
389 <property name="resource">/cx/ring/RingGnome/addressbook_small</property>
390 </object>
391 <object class="GtkImage" id="image_history">
392 <property name="visible">True</property>
393 <property name="resource">/cx/ring/RingGnome/history_small</property>
394 </object>
395 <object class="GtkImage" id="image_presence">
396 <property name="visible">True</property>
397 <property name="resource">/cx/ring/RingGnome/users_small</property>
398 </object>
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -0500399 <object class="GtkImage" id="image_call">
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500400 <property name="visible">True</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400401 <property name="icon-name">call-start-symbolic</property>
Stepan Salenikovich45d25aa2015-02-20 17:39:09 -0500402 </object>
403 <object class="GtkImage" id="image_contact">
404 <property name="visible">True</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400405 <property name="icon-name">avatar-default-symbolic</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400406 </object>
407 <object class="GtkImage" id="image_general_settings">
408 <property name="visible">True</property>
409 <property name="icon-name">preferences-system-symbolic</property>
410 <property name="icon-size">3</property>
411 </object>
Stepan Salenikovich5d3506e2015-03-30 11:01:29 -0400412 <object class="GtkImage" id="image_media_settings">
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400413 <property name="visible">True</property>
Stepan Salenikovich5d3506e2015-03-30 11:01:29 -0400414 <property name="icon-name">applications-multimedia-symbolic</property>
Stepan Salenikovich2d63d5e2015-03-22 23:23:54 -0400415 <property name="icon-size">3</property>
416 </object>
417 <object class="GtkImage" id="image_account_settings">
418 <property name="visible">True</property>
419 <property name="icon-name">user-info-symbolic</property>
420 <property name="icon-size">3</property>
Stepan Salenikovich434b88f2015-02-19 17:49:08 -0500421 </object>
422</interface>