Fix tar.gz build by removing legacy include to ltt directory
[lttv.git] / lttv / modules / gui / lttvwindow / lttvwindow / interface.c
1 /* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2003-2004 XangXiu Yang
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16 * MA 02111-1307, USA.
17 */
18
19 /*
20 * DO NOT EDIT THIS FILE - it is generated by Glade.
21 */
22
23 #ifdef HAVE_CONFIG_H
24 # include <config.h>
25 #endif
26
27 #include <sys/types.h>
28 #include <sys/stat.h>
29 #include <unistd.h>
30 #include <string.h>
31 #include <stdio.h>
32
33 #include <gdk/gdkkeysyms.h>
34 #include <gtk/gtk.h>
35
36 #include "callbacks.h"
37 #include "interface.h"
38 #include "support.h"
39
40 #define GLADE_HOOKUP_OBJECT(component,widget,name) \
41 g_object_set_data_full (G_OBJECT (component), name, \
42 gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
43
44 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
45 g_object_set_data (G_OBJECT (component), name, widget)
46
47 GtkWidget*
48 create_MWindow (void)
49 {
50 GtkWidget *MWindow;
51 GtkWidget *MVbox;
52 GtkWidget *MMenuBox;
53 GtkWidget *MenuMain;
54 GtkWidget *FileMenuTitle;
55 GtkWidget *FileMenuTitle_menu;
56 GtkWidget *FileMenuNewTitle;
57 GtkWidget *FileMenuNewTitle_menu;
58 // GtkWidget *EmptyTraceset;
59 GtkWidget *CloneTraceset;
60 GtkWidget *FileMenuNewSep;
61 GtkWidget *Tab;
62 // GtkWidget *OpenTraceset;
63 GtkWidget *Close;
64 GtkWidget *CloseTab;
65 GtkWidget *FileMenuSeparator1;
66 GtkWidget *AddTrace;
67 GtkWidget *RemoveTrace;
68 // GtkWidget *Save;
69 // GtkWidget *SaveAs;
70 GtkWidget *FileMenuSeparator2;
71 GtkWidget *Quit;
72 // GtkWidget *EditMenuTitle;
73 // GtkWidget *EditMenuTitle_menu;
74 // GtkWidget *Cut;
75 // GtkWidget *Copy;
76 // GtkWidget *Paste;
77 // GtkWidget *Delete;
78 GtkWidget *ViewMenuTitle;
79 GtkWidget *ViewMenuTitle_menu;
80 GtkWidget *ZoomIn;
81 GtkWidget *ZoomOut;
82 GtkWidget *ZoomExtended;
83 // GtkWidget *GoToTime;
84 // GtkWidget *ShowTimeFrame;
85 GtkWidget *ToolMenuTitle;
86 GtkWidget *ToolMenuTitle_menu;
87 GtkWidget *MoveViewerUp;
88 GtkWidget *MoveViewerDown;
89 GtkWidget *RemoveViewer;
90 GtkWidget *ToolMenuSeparator;
91 GtkWidget *Filter;
92 // GtkWidget *Facility;
93 GtkWidget *ToolMenuSeparator1;
94 // GtkWidget *insert_viewer_test;
95 GtkWidget *PluginMenuTitle;
96 GtkWidget *PluginMenuTitle_menu;
97 GtkWidget *LoadLibrary;
98 GtkWidget *UnloadLibrary;
99 GtkWidget *LoadModule;
100 GtkWidget *UnloadModule;
101 GtkWidget *AddLibrarySearchPath;
102 GtkWidget *RemoveLibrarySearchPath;
103 // GtkWidget *OptionMenuTitle;
104 // GtkWidget *OptionMenuTitle_menu;
105 // GtkWidget *Color;
106 // GtkWidget *OptMenuSeparator;
107 // GtkWidget *OpenFilter;
108 // GtkWidget *SaveConfiguration;
109 GtkWidget *HelpMenuTitle;
110 GtkWidget *HelpMenu;
111 GtkWidget *Content;
112 GtkWidget *HelpmenuSeparator;
113 GtkWidget *About;
114 GtkWidget *MToolbar1;
115 GtkWidget *tmp_toolbar_icon;
116 GtkWidget *tlbEmptyTraceset;
117 GtkWidget *tlbTab;
118 // GtkWidget *tlbOpenTraceset;
119 GtkWidget *tlbAddTrace;
120 GtkWidget *tlbRemoveTrace;
121 GtkWidget *tlbRedraw;
122 GtkWidget *tlbContinueProcessing;
123 GtkWidget *tlbStopProcessing;
124 // GtkWidget *tlbSave;
125 // GtkWidget *tlbSaveAs;
126 GtkWidget *tlbZoomIn;
127 GtkWidget *tlbZoomOut;
128 GtkWidget *tlbZoomExtended;
129 //GtkWidget *tlbGoToTime;
130 //GtkWidget *tlbShowTimeFrame;
131 GtkWidget *tlbMoveViewerUp;
132 GtkWidget *tlbMoveViewerDown;
133 GtkWidget *tlbRemoveViewer;
134 GtkWidget *MNotebook;
135 // GtkWidget *empty_notebook_page;
136 // GtkWidget *label1;
137 GtkWidget *MStatusbar;
138 GtkAccelGroup *accel_group;
139
140 accel_group = gtk_accel_group_new ();
141
142 MWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
143 gtk_widget_set_size_request (MWindow, 100, 50);
144 gtk_window_set_title (GTK_WINDOW (MWindow), "Linux Trace Toolkit Viewer");
145
146 /* making the window a size higher than 80% of the screen cause a gtk glitch
147 * where the window is automaticly going fullscreen but the widgets stay
148 * the normal size.
149 */
150 gtk_window_set_default_size (GTK_WINDOW (MWindow),
151 gdk_screen_width()*0.8, gdk_screen_height()*0.8);
152 gtk_window_set_icon(GTK_WINDOW(MWindow), create_pixbuf("lttng_logo.svg"));
153
154 MVbox = gtk_vbox_new (FALSE, 0);
155 gtk_widget_show (MVbox);
156 gtk_container_add (GTK_CONTAINER (MWindow), MVbox);
157
158 MMenuBox = gtk_hbox_new (FALSE, 0);
159 gtk_widget_show (MMenuBox);
160 gtk_box_pack_start (GTK_BOX (MVbox), MMenuBox, FALSE, FALSE, 0);
161
162 MenuMain = gtk_menu_bar_new ();
163 gtk_widget_show (MenuMain);
164 gtk_box_pack_start (GTK_BOX (MMenuBox), MenuMain, FALSE, FALSE, 0);
165
166 FileMenuTitle = gtk_menu_item_new_with_mnemonic ("_File");
167 gtk_widget_show (FileMenuTitle);
168 gtk_container_add (GTK_CONTAINER (MenuMain), FileMenuTitle);
169
170 FileMenuTitle_menu = gtk_menu_new ();
171 gtk_menu_item_set_submenu (GTK_MENU_ITEM (FileMenuTitle), FileMenuTitle_menu);
172
173 FileMenuNewTitle = gtk_menu_item_new_with_mnemonic ("New");
174 gtk_widget_show (FileMenuNewTitle);
175 gtk_container_add (GTK_CONTAINER (FileMenuTitle_menu), FileMenuNewTitle);
176
177 FileMenuNewTitle_menu = gtk_menu_new ();
178 gtk_menu_item_set_submenu (GTK_MENU_ITEM (FileMenuNewTitle), FileMenuNewTitle_menu);
179
180 // EmptyTraceset = gtk_menu_item_new_with_mnemonic ("Empty trace set");
181 // gtk_widget_show (EmptyTraceset);
182 // gtk_container_add (GTK_CONTAINER (FileMenuNewTitle_menu), EmptyTraceset);
183
184 // CloneTraceset = gtk_menu_item_new_with_mnemonic ("Clone trace set");
185 #ifdef BABEL_CLEANUP
186 CloneTraceset = gtk_menu_item_new_with_mnemonic ("New window");
187 gtk_widget_show (CloneTraceset);
188 gtk_container_add (GTK_CONTAINER (FileMenuNewTitle_menu), CloneTraceset);
189
190
191 FileMenuNewSep = gtk_menu_item_new ();
192 gtk_widget_show (FileMenuNewSep);
193 gtk_container_add (GTK_CONTAINER (FileMenuNewTitle_menu), FileMenuNewSep);
194 gtk_widget_set_sensitive (FileMenuNewSep, FALSE);
195 #endif
196 Tab = gtk_menu_item_new_with_mnemonic ("Tab");
197 gtk_widget_show (Tab);
198 gtk_container_add (GTK_CONTAINER (FileMenuNewTitle_menu), Tab);
199 /*
200 OpenTraceset = gtk_menu_item_new_with_mnemonic ("Open");
201 gtk_widget_show (OpenTraceset);
202 gtk_container_add (GTK_CONTAINER (FileMenuTitle_menu), OpenTraceset);
203 */
204 Close = gtk_menu_item_new_with_mnemonic ("Close");
205 gtk_widget_show (Close);
206 gtk_container_add (GTK_CONTAINER (FileMenuTitle_menu), Close);
207
208 CloseTab = gtk_menu_item_new_with_mnemonic ("Close Tab");
209 gtk_widget_show (CloseTab);
210 gtk_container_add (GTK_CONTAINER (FileMenuTitle_menu), CloseTab);
211
212 FileMenuSeparator1 = gtk_menu_item_new ();
213 gtk_widget_show (FileMenuSeparator1);
214 gtk_container_add (GTK_CONTAINER (FileMenuTitle_menu), FileMenuSeparator1);
215 gtk_widget_set_sensitive (FileMenuSeparator1, FALSE);
216
217 AddTrace = gtk_menu_item_new_with_mnemonic ("Add Trace");
218 gtk_widget_show (AddTrace);
219 gtk_container_add (GTK_CONTAINER (FileMenuTitle_menu), AddTrace);
220
221 RemoveTrace = gtk_menu_item_new_with_mnemonic ("Remove Trace");
222 gtk_widget_show (RemoveTrace);
223 gtk_container_add (GTK_CONTAINER (FileMenuTitle_menu), RemoveTrace);
224 /*
225 Save = gtk_menu_item_new_with_mnemonic ("Save");
226 gtk_widget_show (Save);
227 gtk_container_add (GTK_CONTAINER (FileMenuTitle_menu), Save);
228
229 SaveAs = gtk_menu_item_new_with_mnemonic ("Save As");
230 gtk_widget_show (SaveAs);
231 gtk_container_add (GTK_CONTAINER (FileMenuTitle_menu), SaveAs);
232 */
233 FileMenuSeparator2 = gtk_menu_item_new ();
234 gtk_widget_show (FileMenuSeparator2);
235 gtk_container_add (GTK_CONTAINER (FileMenuTitle_menu), FileMenuSeparator2);
236 gtk_widget_set_sensitive (FileMenuSeparator2, FALSE);
237
238 Quit = gtk_menu_item_new_with_mnemonic ("Quit");
239 gtk_widget_show (Quit);
240 gtk_container_add (GTK_CONTAINER (FileMenuTitle_menu), Quit);
241 /*
242 EditMenuTitle = gtk_menu_item_new_with_mnemonic ("_Edit");
243 gtk_widget_show (EditMenuTitle);
244 gtk_container_add (GTK_CONTAINER (MenuMain), EditMenuTitle);
245
246 EditMenuTitle_menu = gtk_menu_new ();
247 gtk_menu_item_set_submenu (GTK_MENU_ITEM (EditMenuTitle), EditMenuTitle_menu);
248
249 Cut = gtk_image_menu_item_new_from_stock ("gtk-cut", accel_group);
250 gtk_widget_show (Cut);
251 gtk_container_add (GTK_CONTAINER (EditMenuTitle_menu), Cut);
252
253 Copy = gtk_image_menu_item_new_from_stock ("gtk-copy", accel_group);
254 gtk_widget_show (Copy);
255 gtk_container_add (GTK_CONTAINER (EditMenuTitle_menu), Copy);
256
257 Paste = gtk_image_menu_item_new_from_stock ("gtk-paste", accel_group);
258 gtk_widget_show (Paste);
259 gtk_container_add (GTK_CONTAINER (EditMenuTitle_menu), Paste);
260
261 Delete = gtk_image_menu_item_new_from_stock ("gtk-delete", accel_group);
262 gtk_widget_show (Delete);
263 gtk_container_add (GTK_CONTAINER (EditMenuTitle_menu), Delete);
264 */
265 ViewMenuTitle = gtk_menu_item_new_with_mnemonic ("_View");
266 gtk_widget_show (ViewMenuTitle);
267 gtk_container_add (GTK_CONTAINER (MenuMain), ViewMenuTitle);
268
269 ViewMenuTitle_menu = gtk_menu_new ();
270 gtk_menu_item_set_submenu (GTK_MENU_ITEM (ViewMenuTitle), ViewMenuTitle_menu);
271
272 ZoomIn = gtk_menu_item_new_with_mnemonic ("Zoom in");
273 gtk_widget_show (ZoomIn);
274 gtk_container_add (GTK_CONTAINER (ViewMenuTitle_menu), ZoomIn);
275
276 ZoomOut = gtk_menu_item_new_with_mnemonic ("Zoom out");
277 gtk_widget_show (ZoomOut);
278 gtk_container_add (GTK_CONTAINER (ViewMenuTitle_menu), ZoomOut);
279
280 ZoomExtended = gtk_menu_item_new_with_mnemonic ("Zoom extended");
281 gtk_widget_show (ZoomExtended);
282 gtk_container_add (GTK_CONTAINER (ViewMenuTitle_menu), ZoomExtended);
283
284 /*
285 GoToTime = gtk_menu_item_new_with_mnemonic ("Go to time");
286 gtk_widget_show (GoToTime);
287 gtk_container_add (GTK_CONTAINER (ViewMenuTitle_menu), GoToTime);
288
289 ShowTimeFrame = gtk_menu_item_new_with_mnemonic ("Show time frame");
290 gtk_widget_show (ShowTimeFrame);
291 gtk_container_add (GTK_CONTAINER (ViewMenuTitle_menu), ShowTimeFrame);
292 */
293 ToolMenuTitle = gtk_menu_item_new_with_mnemonic ("Tools");
294 gtk_widget_show (ToolMenuTitle);
295 gtk_container_add (GTK_CONTAINER (MenuMain), ToolMenuTitle);
296
297 ToolMenuTitle_menu = gtk_menu_new ();
298 gtk_menu_item_set_submenu (GTK_MENU_ITEM (ToolMenuTitle), ToolMenuTitle_menu);
299
300 MoveViewerUp = gtk_menu_item_new_with_mnemonic ("Move viewer up");
301 gtk_widget_show (MoveViewerUp);
302 gtk_container_add (GTK_CONTAINER (ToolMenuTitle_menu), MoveViewerUp);
303
304 MoveViewerDown = gtk_menu_item_new_with_mnemonic ("Move viewer down");
305 gtk_widget_show (MoveViewerDown);
306 gtk_container_add (GTK_CONTAINER (ToolMenuTitle_menu), MoveViewerDown);
307
308 RemoveViewer = gtk_menu_item_new_with_mnemonic ("Remove viewer");
309 gtk_widget_show (RemoveViewer);
310 gtk_container_add (GTK_CONTAINER (ToolMenuTitle_menu), RemoveViewer);
311
312 ToolMenuSeparator = gtk_menu_item_new ();
313 gtk_widget_show (ToolMenuSeparator);
314 gtk_container_add (GTK_CONTAINER (ToolMenuTitle_menu), ToolMenuSeparator);
315 gtk_widget_set_sensitive (ToolMenuSeparator, FALSE);
316
317 Filter = gtk_menu_item_new_with_mnemonic ("Trace Filter Selector");
318 gtk_widget_show (Filter);
319 gtk_container_add (GTK_CONTAINER (ToolMenuTitle_menu), Filter);
320
321 // Facility = gtk_menu_item_new_with_mnemonic ("Facility Selector");
322 // gtk_widget_show (Facility);
323 // gtk_container_add (GTK_CONTAINER (ToolMenuTitle_menu), Facility);
324
325 ToolMenuSeparator1 = gtk_menu_item_new ();
326 gtk_widget_show (ToolMenuSeparator1);
327 gtk_container_add (GTK_CONTAINER (ToolMenuTitle_menu), ToolMenuSeparator1);
328 gtk_widget_set_sensitive (ToolMenuSeparator1, FALSE);
329
330 // insert_viewer_test = gtk_menu_item_new_with_mnemonic ("Insert viewer test");
331 // gtk_widget_show (insert_viewer_test);
332 // gtk_container_add (GTK_CONTAINER (ToolMenuTitle_menu), insert_viewer_test);
333
334 PluginMenuTitle = gtk_menu_item_new_with_mnemonic ("Plugins");
335 gtk_widget_show (PluginMenuTitle);
336 gtk_container_add (GTK_CONTAINER (MenuMain), PluginMenuTitle);
337
338 PluginMenuTitle_menu = gtk_menu_new ();
339 gtk_menu_item_set_submenu (GTK_MENU_ITEM (PluginMenuTitle), PluginMenuTitle_menu);
340
341 LoadLibrary = gtk_menu_item_new_with_mnemonic ("Load library");
342 gtk_widget_show (LoadLibrary);
343 gtk_container_add (GTK_CONTAINER (PluginMenuTitle_menu), LoadLibrary);
344
345 UnloadLibrary = gtk_menu_item_new_with_mnemonic ("Unload library");
346 gtk_widget_show (UnloadLibrary);
347 gtk_container_add (GTK_CONTAINER (PluginMenuTitle_menu), UnloadLibrary);
348
349 LoadModule = gtk_menu_item_new_with_mnemonic ("Load module");
350 gtk_widget_show (LoadModule);
351 gtk_container_add (GTK_CONTAINER (PluginMenuTitle_menu), LoadModule);
352
353 UnloadModule = gtk_menu_item_new_with_mnemonic ("Unload module");
354 gtk_widget_show (UnloadModule);
355 gtk_container_add (GTK_CONTAINER (PluginMenuTitle_menu), UnloadModule);
356
357 AddLibrarySearchPath = gtk_menu_item_new_with_mnemonic ("Add library search path");
358 gtk_widget_show (AddLibrarySearchPath);
359 gtk_container_add (GTK_CONTAINER (PluginMenuTitle_menu), AddLibrarySearchPath);
360
361 RemoveLibrarySearchPath = gtk_menu_item_new_with_mnemonic ("Remove library search path");
362 gtk_widget_show (RemoveLibrarySearchPath);
363 gtk_container_add (GTK_CONTAINER (PluginMenuTitle_menu), RemoveLibrarySearchPath);
364 /*
365 OptionMenuTitle = gtk_menu_item_new_with_mnemonic ("Options");
366 gtk_widget_show (OptionMenuTitle);
367 gtk_container_add (GTK_CONTAINER (MenuMain), OptionMenuTitle);
368
369 OptionMenuTitle_menu = gtk_menu_new ();
370 gtk_menu_item_set_submenu (GTK_MENU_ITEM (OptionMenuTitle), OptionMenuTitle_menu);
371
372 Color = gtk_menu_item_new_with_mnemonic ("Color");
373 gtk_widget_show (Color);
374 gtk_container_add (GTK_CONTAINER (OptionMenuTitle_menu), Color);
375
376 OptMenuSeparator = gtk_menu_item_new ();
377 gtk_widget_show (OptMenuSeparator);
378 gtk_container_add (GTK_CONTAINER (OptionMenuTitle_menu), OptMenuSeparator);
379 gtk_widget_set_sensitive (OptMenuSeparator, FALSE);
380
381 OpenFilter = gtk_menu_item_new_with_mnemonic ("Filter");
382 gtk_widget_show (OpenFilter);
383 gtk_container_add (GTK_CONTAINER (OptionMenuTitle_menu), OpenFilter);
384
385 SaveConfiguration = gtk_menu_item_new_with_mnemonic ("Save configuration");
386 gtk_widget_show (SaveConfiguration);
387 gtk_container_add (GTK_CONTAINER (OptionMenuTitle_menu), SaveConfiguration);
388 */
389
390 HelpMenuTitle = gtk_menu_item_new_with_mnemonic ("_Help");
391 gtk_widget_show (HelpMenuTitle);
392 gtk_container_add (GTK_CONTAINER (MenuMain), HelpMenuTitle);
393
394 HelpMenu = gtk_menu_new ();
395 gtk_menu_item_set_submenu (GTK_MENU_ITEM (HelpMenuTitle), HelpMenu);
396
397 Content = gtk_menu_item_new_with_mnemonic ("Content");
398 gtk_widget_show (Content);
399 gtk_container_add (GTK_CONTAINER (HelpMenu), Content);
400
401 HelpmenuSeparator = gtk_menu_item_new ();
402 gtk_widget_show (HelpmenuSeparator);
403 gtk_container_add (GTK_CONTAINER (HelpMenu), HelpmenuSeparator);
404 gtk_widget_set_sensitive (HelpmenuSeparator, FALSE);
405
406 About = gtk_menu_item_new_with_mnemonic ("About...");
407 gtk_widget_show (About);
408 gtk_container_add (GTK_CONTAINER (HelpMenu), About);
409
410 MToolbar1 = gtk_toolbar_new ();
411 gtk_widget_show (MToolbar1);
412 gtk_box_pack_start (GTK_BOX (MVbox), MToolbar1, FALSE, FALSE, 0);
413 gtk_toolbar_set_style (GTK_TOOLBAR (MToolbar1), GTK_TOOLBAR_ICONS);
414
415 #ifdef BABEL_CLEANUP
416 tmp_toolbar_icon = create_pixmap (MWindow, "filenew.png");
417 tlbEmptyTraceset = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
418 GTK_TOOLBAR_CHILD_BUTTON,
419 NULL,
420 "",
421 "New window", NULL,
422 //"New window with empty trace set", NULL,
423 tmp_toolbar_icon, NULL, NULL);
424 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
425 gtk_widget_show (tlbEmptyTraceset);
426 gtk_container_set_border_width (GTK_CONTAINER (tlbEmptyTraceset), 1);
427 #endif
428 tmp_toolbar_icon = create_pixmap (MWindow, "filenew.png");
429 tlbTab = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
430 GTK_TOOLBAR_CHILD_BUTTON,
431 NULL,
432 "",
433 "New tab", NULL,
434 tmp_toolbar_icon, NULL, NULL);
435 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
436 gtk_widget_show (tlbTab);
437 gtk_container_set_border_width (GTK_CONTAINER (tlbTab), 1);
438
439 /*
440 tmp_toolbar_icon = create_pixmap (MWindow, "fileopen.png");
441 tlbOpenTraceset = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
442 GTK_TOOLBAR_CHILD_BUTTON,
443 NULL,
444 "",
445 "open a trace set", NULL,
446 tmp_toolbar_icon, NULL, NULL);
447 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
448 gtk_widget_show (tlbOpenTraceset);
449 gtk_container_set_border_width (GTK_CONTAINER (tlbOpenTraceset), 1);
450 */
451 tmp_toolbar_icon = create_pixmap (MWindow, "edit_add_22.png");
452 tlbAddTrace = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
453 GTK_TOOLBAR_CHILD_BUTTON,
454 NULL,
455 "",
456 "Add a trace ", NULL,
457 tmp_toolbar_icon, NULL, NULL);
458 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
459 gtk_widget_show (tlbAddTrace);
460 gtk_container_set_border_width (GTK_CONTAINER (tlbAddTrace), 1);
461
462 tmp_toolbar_icon = create_pixmap (MWindow, "edit_remove_22.png");
463 tlbRemoveTrace = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
464 GTK_TOOLBAR_CHILD_BUTTON,
465 NULL,
466 "",
467 "Remove a trace", NULL,
468 tmp_toolbar_icon, NULL, NULL);
469 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
470 gtk_widget_show (tlbRemoveTrace);
471 gtk_container_set_border_width (GTK_CONTAINER (tlbRemoveTrace), 1);
472 /*
473 tmp_toolbar_icon = create_pixmap (MWindow, "filesave.png");
474 tlbSave = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
475 GTK_TOOLBAR_CHILD_BUTTON,
476 NULL,
477 "",
478 "save the current trace set", NULL,
479 tmp_toolbar_icon, NULL, NULL);
480 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
481 gtk_widget_show (tlbSave);
482 gtk_container_set_border_width (GTK_CONTAINER (tlbSave), 1);
483
484 tmp_toolbar_icon = create_pixmap (MWindow, "filesaveas.png");
485 tlbSaveAs = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
486 GTK_TOOLBAR_CHILD_BUTTON,
487 NULL,
488 "",
489 "save as ", NULL,
490 tmp_toolbar_icon, NULL, NULL);
491 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
492 gtk_widget_show (tlbSaveAs);
493 gtk_container_set_border_width (GTK_CONTAINER (tlbSaveAs), 1);
494 */
495 gtk_toolbar_append_space (GTK_TOOLBAR (MToolbar1));
496
497 /* Manually added by Mathieu Desnoyers */
498
499 tmp_toolbar_icon = create_pixmap (MWindow, "stock_refresh_24.png");
500 tlbRedraw = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
501 GTK_TOOLBAR_CHILD_BUTTON,
502 NULL,
503 "",
504 "Redraw", NULL,
505 tmp_toolbar_icon, NULL, NULL);
506 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
507 gtk_widget_show (tlbRedraw);
508 gtk_container_set_border_width (GTK_CONTAINER (tlbRedraw), 1);
509
510 tmp_toolbar_icon = create_pixmap (MWindow, "stock_redo_24.png");
511 tlbContinueProcessing = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
512 GTK_TOOLBAR_CHILD_BUTTON,
513 NULL,
514 "",
515 "Continue Processing", NULL,
516 tmp_toolbar_icon, NULL, NULL);
517 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
518 gtk_widget_show (tlbContinueProcessing);
519 gtk_container_set_border_width (GTK_CONTAINER (tlbContinueProcessing), 1);
520
521 tmp_toolbar_icon = create_pixmap (MWindow, "stock_stop_24.png");
522 tlbStopProcessing = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
523 GTK_TOOLBAR_CHILD_BUTTON,
524 NULL,
525 "",
526 "Stop Processing", NULL,
527 tmp_toolbar_icon, NULL, NULL);
528 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
529 gtk_widget_show (tlbStopProcessing);
530 gtk_container_set_border_width (GTK_CONTAINER (tlbStopProcessing), 1);
531 GLADE_HOOKUP_OBJECT (MWindow, tlbStopProcessing, "StopProcessingButton");
532
533
534 gtk_toolbar_append_space (GTK_TOOLBAR (MToolbar1));
535
536 tmp_toolbar_icon = create_pixmap (MWindow, "stock_zoom_in_24.png");
537 tlbZoomIn = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
538 GTK_TOOLBAR_CHILD_BUTTON,
539 NULL,
540 "",
541 "Zoom in", NULL,
542 tmp_toolbar_icon, NULL, NULL);
543 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
544 gtk_widget_show (tlbZoomIn);
545 gtk_container_set_border_width (GTK_CONTAINER (tlbZoomIn), 1);
546
547 tmp_toolbar_icon = create_pixmap (MWindow, "stock_zoom_out_24.png");
548 tlbZoomOut = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
549 GTK_TOOLBAR_CHILD_BUTTON,
550 NULL,
551 "",
552 "Zoom out", NULL,
553 tmp_toolbar_icon, NULL, NULL);
554 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
555 gtk_widget_show (tlbZoomOut);
556 gtk_container_set_border_width (GTK_CONTAINER (tlbZoomOut), 1);
557
558 tmp_toolbar_icon = create_pixmap (MWindow, "stock_zoom_fit_24.png");
559 tlbZoomExtended = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
560 GTK_TOOLBAR_CHILD_BUTTON,
561 NULL,
562 "",
563 "Zoom extended", NULL,
564 tmp_toolbar_icon, NULL, NULL);
565 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
566 gtk_widget_show (tlbZoomExtended);
567 gtk_container_set_border_width (GTK_CONTAINER (tlbZoomExtended), 1);
568
569 /*
570 tmp_toolbar_icon = create_pixmap (MWindow, "gtk-jump-to.png");
571 tlbGoToTime = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
572 GTK_TOOLBAR_CHILD_BUTTON,
573 NULL,
574 "",
575 "Go to time", NULL,
576 tmp_toolbar_icon, NULL, NULL);
577 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
578 gtk_widget_show (tlbGoToTime);
579 gtk_container_set_border_width (GTK_CONTAINER (tlbGoToTime), 1);
580
581 tmp_toolbar_icon = create_pixmap (MWindow, "mini-display.xpm");
582 tlbShowTimeFrame = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
583 GTK_TOOLBAR_CHILD_BUTTON,
584 NULL,
585 "",
586 "Show time frame", NULL,
587 tmp_toolbar_icon, NULL, NULL);
588 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
589 gtk_widget_show (tlbShowTimeFrame);
590 gtk_container_set_border_width (GTK_CONTAINER (tlbShowTimeFrame), 1);
591 */
592 gtk_toolbar_append_space (GTK_TOOLBAR (MToolbar1));
593
594 tmp_toolbar_icon = create_pixmap (MWindow, "1uparrow.png");
595 tlbMoveViewerUp = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
596 GTK_TOOLBAR_CHILD_BUTTON,
597 NULL,
598 "",
599 "Move up current viewer", NULL,
600 tmp_toolbar_icon, NULL, NULL);
601 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
602 gtk_widget_show (tlbMoveViewerUp);
603 gtk_container_set_border_width (GTK_CONTAINER (tlbMoveViewerUp), 1);
604
605 tmp_toolbar_icon = create_pixmap (MWindow, "1downarrow.png");
606 tlbMoveViewerDown = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
607 GTK_TOOLBAR_CHILD_BUTTON,
608 NULL,
609 "",
610 "Move down current viewer", NULL,
611 tmp_toolbar_icon, NULL, NULL);
612 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
613 gtk_widget_show (tlbMoveViewerDown);
614 gtk_container_set_border_width (GTK_CONTAINER (tlbMoveViewerDown), 1);
615
616 tmp_toolbar_icon = create_pixmap (MWindow, "remove.png");
617 tlbRemoveViewer = gtk_toolbar_append_element (GTK_TOOLBAR (MToolbar1),
618 GTK_TOOLBAR_CHILD_BUTTON,
619 NULL,
620 "",
621 "Delete current viewer", NULL,
622 tmp_toolbar_icon, NULL, NULL);
623 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (MToolbar1)->children)->data))->label), TRUE);
624 gtk_widget_show (tlbRemoveViewer);
625 gtk_container_set_border_width (GTK_CONTAINER (tlbRemoveViewer), 1);
626
627 gtk_toolbar_append_space (GTK_TOOLBAR (MToolbar1));
628
629 // MToolbar2 = gtk_toolbar_new ();
630 // gtk_widget_show (MToolbar2);
631 // gtk_box_pack_start (GTK_BOX (MVbox), MToolbar2, FALSE, FALSE, 0);
632 // gtk_toolbar_set_style (GTK_TOOLBAR (MToolbar2), GTK_TOOLBAR_ICONS);
633
634 MNotebook = gtk_notebook_new ();
635 gtk_widget_show (MNotebook);
636 gtk_notebook_set_show_tabs((GtkNotebook*)MNotebook, FALSE);
637 gtk_box_pack_start (GTK_BOX (MVbox), MNotebook, TRUE, TRUE, 0);
638
639 /*
640 empty_notebook_page = gtk_vbox_new (FALSE, 0);
641 gtk_widget_show (empty_notebook_page);
642 gtk_container_add (GTK_CONTAINER (MNotebook), empty_notebook_page);
643
644 label1 = gtk_label_new ("");
645 gtk_widget_show (label1);
646 gtk_notebook_set_tab_label (GTK_NOTEBOOK (MNotebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (MNotebook), 0), label1);
647 gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_LEFT);
648 */
649 MStatusbar = gtk_statusbar_new ();
650 gtk_widget_show (MStatusbar);
651 gtk_box_pack_start (GTK_BOX (MVbox), MStatusbar, FALSE, FALSE, 0);
652
653 g_signal_connect ((gpointer) MWindow, "destroy",
654 G_CALLBACK (on_MWindow_destroy),
655 NULL);
656 g_signal_connect ((gpointer) MWindow, "configure-event",
657 G_CALLBACK (on_MWindow_configure),
658 NULL);
659
660 // g_signal_connect ((gpointer) EmptyTraceset, "activate",
661 // G_CALLBACK (on_empty_traceset_activate),
662 // NULL);
663 #ifdef BABEL_CLEANUP
664 g_signal_connect ((gpointer) CloneTraceset, "activate",
665 G_CALLBACK (on_clone_traceset_activate),
666 NULL);
667 #endif
668 g_signal_connect ((gpointer) Tab, "activate",
669 G_CALLBACK (on_tab_activate),
670 NULL);
671 /*
672 g_signal_connect ((gpointer) OpenTraceset, "activate",
673 G_CALLBACK (on_open_activate),
674 NULL);
675 */
676 g_signal_connect ((gpointer) Close, "activate",
677 G_CALLBACK (on_close_activate),
678 NULL);
679 g_signal_connect ((gpointer) CloseTab, "activate",
680 G_CALLBACK (on_close_tab_activate),
681 NULL);
682 g_signal_connect ((gpointer) AddTrace, "activate",
683 G_CALLBACK (on_add_trace_activate),
684 NULL);
685 g_signal_connect ((gpointer) RemoveTrace, "activate",
686 G_CALLBACK (on_remove_trace_activate),
687 NULL);
688 /*
689 g_signal_connect ((gpointer) Save, "activate",
690 G_CALLBACK (on_save_activate),
691 NULL);
692 g_signal_connect ((gpointer) SaveAs, "activate",
693 G_CALLBACK (on_save_as_activate),
694 NULL);
695 */
696 g_signal_connect ((gpointer) Quit, "activate",
697 G_CALLBACK (on_quit_activate),
698 NULL);
699 /*
700 g_signal_connect ((gpointer) Cut, "activate",
701 G_CALLBACK (on_cut_activate),
702 NULL);
703 g_signal_connect ((gpointer) Copy, "activate",
704 G_CALLBACK (on_copy_activate),
705 NULL);
706 g_signal_connect ((gpointer) Paste, "activate",
707 G_CALLBACK (on_paste_activate),
708 NULL);
709 g_signal_connect ((gpointer) Delete, "activate",
710 G_CALLBACK (on_delete_activate),
711 NULL);
712 */
713 g_signal_connect ((gpointer) ZoomIn, "activate",
714 G_CALLBACK (on_zoom_in_activate),
715 NULL);
716 g_signal_connect ((gpointer) ZoomOut, "activate",
717 G_CALLBACK (on_zoom_out_activate),
718 NULL);
719 g_signal_connect ((gpointer) ZoomExtended, "activate",
720 G_CALLBACK (on_zoom_extended_activate),
721 NULL);
722 /*
723 g_signal_connect ((gpointer) GoToTime, "activate",
724 G_CALLBACK (on_go_to_time_activate),
725 NULL);
726 g_signal_connect ((gpointer) ShowTimeFrame, "activate",
727 G_CALLBACK (on_show_time_frame_activate),
728 NULL);
729 */
730 g_signal_connect ((gpointer) MoveViewerUp, "activate",
731 G_CALLBACK (on_move_viewer_up_activate),
732 NULL);
733 g_signal_connect ((gpointer) MoveViewerDown, "activate",
734 G_CALLBACK (on_move_viewer_down_activate),
735 NULL);
736 g_signal_connect ((gpointer) RemoveViewer, "activate",
737 G_CALLBACK (on_remove_viewer_activate),
738 NULL);
739 //g_signal_connect ((gpointer) Filter, "activate",
740 // G_CALLBACK (on_trace_filter_activate),
741 // NULL);
742 // g_signal_connect ((gpointer) Facility, "activate",
743 // G_CALLBACK (on_trace_facility_activate),
744 // NULL);
745 // g_signal_connect ((gpointer) insert_viewer_test, "activate",
746 // G_CALLBACK (on_insert_viewer_test_activate),
747 // NULL);
748 g_signal_connect ((gpointer) LoadLibrary, "activate",
749 G_CALLBACK (on_load_library_activate),
750 NULL);
751 g_signal_connect ((gpointer) UnloadLibrary, "activate",
752 G_CALLBACK (on_unload_library_activate),
753 NULL);
754 g_signal_connect ((gpointer) LoadModule, "activate",
755 G_CALLBACK (on_load_module_activate),
756 NULL);
757 g_signal_connect ((gpointer) UnloadModule, "activate",
758 G_CALLBACK (on_unload_module_activate),
759 NULL);
760 g_signal_connect ((gpointer) AddLibrarySearchPath, "activate",
761 G_CALLBACK (on_add_library_search_path_activate),
762 NULL);
763 g_signal_connect ((gpointer) RemoveLibrarySearchPath, "activate",
764 G_CALLBACK (on_remove_library_search_path_activate),
765 NULL);
766 /*
767 g_signal_connect ((gpointer) Color, "activate",
768 G_CALLBACK (on_color_activate),
769 NULL);
770 g_signal_connect ((gpointer) OpenFilter, "activate",
771 G_CALLBACK (on_filter_activate),
772 NULL);
773 g_signal_connect ((gpointer) SaveConfiguration, "activate",
774 G_CALLBACK (on_save_configuration_activate),
775 NULL);
776 */
777 g_signal_connect ((gpointer) Content, "activate",
778 G_CALLBACK (on_content_activate),
779 NULL);
780 g_signal_connect ((gpointer) About, "activate",
781 G_CALLBACK (on_about_activate),
782 NULL);
783 #ifdef BABEL_CLEANUP
784 g_signal_connect ((gpointer) tlbEmptyTraceset, "clicked",
785 G_CALLBACK (on_button_new_clicked),
786 NULL);
787 #endif
788 g_signal_connect ((gpointer) tlbTab, "clicked",
789 G_CALLBACK (on_button_new_tab_clicked),
790 NULL);
791 /*
792 g_signal_connect ((gpointer) tlbOpenTraceset, "clicked",
793 G_CALLBACK (on_button_open_clicked),
794 NULL);
795 */
796 g_signal_connect ((gpointer) tlbAddTrace, "clicked",
797 G_CALLBACK (on_button_add_trace_clicked),
798 NULL);
799 g_signal_connect ((gpointer) tlbRemoveTrace, "clicked",
800 G_CALLBACK (on_button_remove_trace_clicked),
801 NULL);
802 g_signal_connect ((gpointer) tlbRedraw, "clicked",
803 G_CALLBACK (on_button_redraw_clicked),
804 NULL);
805 g_signal_connect ((gpointer) tlbContinueProcessing, "clicked",
806 G_CALLBACK (on_button_continue_processing_clicked),
807 NULL);
808 g_signal_connect ((gpointer) tlbStopProcessing, "clicked",
809 G_CALLBACK (on_button_stop_processing_clicked),
810 NULL);
811 /*
812 g_signal_connect ((gpointer) tlbSave, "clicked",
813 G_CALLBACK (on_button_save_clicked),
814 NULL);
815 g_signal_connect ((gpointer) tlbSaveAs, "clicked",
816 G_CALLBACK (on_button_save_as_clicked),
817 NULL);
818 */
819 g_signal_connect ((gpointer) tlbZoomIn, "clicked",
820 G_CALLBACK (on_button_zoom_in_clicked),
821 NULL);
822 g_signal_connect ((gpointer) tlbZoomOut, "clicked",
823 G_CALLBACK (on_button_zoom_out_clicked),
824 NULL);
825 g_signal_connect ((gpointer) tlbZoomExtended, "clicked",
826 G_CALLBACK (on_button_zoom_extended_clicked),
827 NULL);
828 /*
829 g_signal_connect ((gpointer) tlbGoToTime, "clicked",
830 G_CALLBACK (on_button_go_to_time_clicked),
831 NULL);
832 g_signal_connect ((gpointer) tlbShowTimeFrame, "clicked",
833 G_CALLBACK (on_button_show_time_frame_clicked),
834 NULL);
835 */
836 g_signal_connect ((gpointer) tlbMoveViewerUp, "clicked",
837 G_CALLBACK (on_button_move_up_clicked),
838 NULL);
839 g_signal_connect ((gpointer) tlbMoveViewerDown, "clicked",
840 G_CALLBACK (on_button_move_down_clicked),
841 NULL);
842 g_signal_connect ((gpointer) tlbRemoveViewer, "clicked",
843 G_CALLBACK (on_button_delete_viewer_clicked),
844 NULL);
845 g_signal_connect ((gpointer) MNotebook, "switch_page",
846 G_CALLBACK (on_MNotebook_switch_page),
847 NULL);
848
849 /* Store pointers to all widgets, for use by lookup_widget(). */
850 GLADE_HOOKUP_OBJECT_NO_REF (MWindow, MWindow, "MWindow");
851 GLADE_HOOKUP_OBJECT (MWindow, MVbox, "MVbox");
852 GLADE_HOOKUP_OBJECT (MWindow, MMenuBox, "MMenuBox");
853 GLADE_HOOKUP_OBJECT (MWindow, MenuMain, "MenuMain");
854 GLADE_HOOKUP_OBJECT (MWindow, FileMenuTitle, "FileMenuTitle");
855 GLADE_HOOKUP_OBJECT (MWindow, FileMenuTitle_menu, "FileMenuTitle_menu");
856 GLADE_HOOKUP_OBJECT (MWindow, FileMenuNewTitle, "FileMenuNewTitle");
857 GLADE_HOOKUP_OBJECT (MWindow, FileMenuNewTitle_menu, "FileMenuNewTitle_menu");
858 // GLADE_HOOKUP_OBJECT (MWindow, EmptyTraceset, "EmptyTraceset");
859 #ifdef BABEL_CLEANUP
860 GLADE_HOOKUP_OBJECT (MWindow, CloneTraceset, "CloneTraceset");
861 GLADE_HOOKUP_OBJECT (MWindow, FileMenuNewSep, "FileMenuNewSep");
862 #endif
863 GLADE_HOOKUP_OBJECT (MWindow, Tab, "Tab");
864 // GLADE_HOOKUP_OBJECT (MWindow, OpenTraceset, "OpenTraceset");
865 GLADE_HOOKUP_OBJECT (MWindow, Close, "Close");
866 GLADE_HOOKUP_OBJECT (MWindow, CloseTab, "CloseTab");
867 GLADE_HOOKUP_OBJECT (MWindow, FileMenuSeparator1, "FileMenuSeparator1");
868 GLADE_HOOKUP_OBJECT (MWindow, AddTrace, "AddTrace");
869 GLADE_HOOKUP_OBJECT (MWindow, RemoveTrace, "RemoveTrace");
870 // GLADE_HOOKUP_OBJECT (MWindow, Save, "Save");
871 // GLADE_HOOKUP_OBJECT (MWindow, SaveAs, "SaveAs");
872 GLADE_HOOKUP_OBJECT (MWindow, FileMenuSeparator2, "FileMenuSeparator2");
873 GLADE_HOOKUP_OBJECT (MWindow, Quit, "Quit");
874 // GLADE_HOOKUP_OBJECT (MWindow, EditMenuTitle, "EditMenuTitle");
875 // GLADE_HOOKUP_OBJECT (MWindow, EditMenuTitle_menu, "EditMenuTitle_menu");
876 // GLADE_HOOKUP_OBJECT (MWindow, Cut, "Cut");
877 // GLADE_HOOKUP_OBJECT (MWindow, Copy, "Copy");
878 // GLADE_HOOKUP_OBJECT (MWindow, Paste, "Paste");
879 // GLADE_HOOKUP_OBJECT (MWindow, Delete, "Delete");
880 GLADE_HOOKUP_OBJECT (MWindow, ViewMenuTitle, "ViewMenuTitle");
881 GLADE_HOOKUP_OBJECT (MWindow, ViewMenuTitle_menu, "ViewMenuTitle_menu");
882 GLADE_HOOKUP_OBJECT (MWindow, ZoomIn, "ZoomIn");
883 GLADE_HOOKUP_OBJECT (MWindow, ZoomOut, "ZoomOut");
884 GLADE_HOOKUP_OBJECT (MWindow, ZoomExtended, "ZoomExtended");
885 // GLADE_HOOKUP_OBJECT (MWindow, GoToTime, "GoToTime");
886 // GLADE_HOOKUP_OBJECT (MWindow, ShowTimeFrame, "ShowTimeFrame");
887 GLADE_HOOKUP_OBJECT (MWindow, ToolMenuTitle, "ToolMenuTitle");
888 GLADE_HOOKUP_OBJECT (MWindow, ToolMenuTitle_menu, "ToolMenuTitle_menu");
889 GLADE_HOOKUP_OBJECT (MWindow, MoveViewerUp, "MoveViewerUp");
890 GLADE_HOOKUP_OBJECT (MWindow, MoveViewerDown, "MoveViewerDown");
891 GLADE_HOOKUP_OBJECT (MWindow, RemoveViewer, "RemoveViewer");
892 GLADE_HOOKUP_OBJECT (MWindow, ToolMenuSeparator, "ToolMenuSeparator");
893 GLADE_HOOKUP_OBJECT (MWindow, Filter, "Filter");
894 // GLADE_HOOKUP_OBJECT (MWindow, Facility, "Facility");
895 GLADE_HOOKUP_OBJECT (MWindow, ToolMenuSeparator1, "ToolMenuSeparator1");
896 // GLADE_HOOKUP_OBJECT (MWindow, insert_viewer_test, "insert_viewer_test");
897 GLADE_HOOKUP_OBJECT (MWindow, PluginMenuTitle, "PluginMenuTitle");
898 GLADE_HOOKUP_OBJECT (MWindow, PluginMenuTitle_menu, "PluginMenuTitle_menu");
899 GLADE_HOOKUP_OBJECT (MWindow, LoadLibrary, "LoadLibrary");
900 GLADE_HOOKUP_OBJECT (MWindow, UnloadLibrary, "UnloadLibrary");
901 GLADE_HOOKUP_OBJECT (MWindow, LoadModule, "LoadModule");
902 GLADE_HOOKUP_OBJECT (MWindow, UnloadModule, "UnloadModule");
903 GLADE_HOOKUP_OBJECT (MWindow, AddLibrarySearchPath, "AddLibrarySearchPath");
904 GLADE_HOOKUP_OBJECT (MWindow, RemoveLibrarySearchPath, "RemoveLibrarySearchPath");
905 // GLADE_HOOKUP_OBJECT (MWindow, OptionMenuTitle, "OptionMenuTitle");
906 // GLADE_HOOKUP_OBJECT (MWindow, OptionMenuTitle_menu, "OptionMenuTitle_menu");
907 // GLADE_HOOKUP_OBJECT (MWindow, Color, "Color");
908 // GLADE_HOOKUP_OBJECT (MWindow, OptMenuSeparator, "OptMenuSeparator");
909 // GLADE_HOOKUP_OBJECT (MWindow, OpenFilter, "OpenFilter");
910 // GLADE_HOOKUP_OBJECT (MWindow, SaveConfiguration, "SaveConfiguration");
911 GLADE_HOOKUP_OBJECT (MWindow, HelpMenuTitle, "HelpMenuTitle");
912 GLADE_HOOKUP_OBJECT (MWindow, HelpMenu, "HelpMenu");
913 GLADE_HOOKUP_OBJECT (MWindow, Content, "Content");
914 GLADE_HOOKUP_OBJECT (MWindow, HelpmenuSeparator, "HelpmenuSeparator");
915 GLADE_HOOKUP_OBJECT (MWindow, About, "About");
916 GLADE_HOOKUP_OBJECT (MWindow, MToolbar1, "MToolbar1");
917 #ifdef BABEL_CLEANUP
918 GLADE_HOOKUP_OBJECT (MWindow, tlbEmptyTraceset, "tlbEmptyTraceset");
919 #endif BABEL_CLEANUP
920 GLADE_HOOKUP_OBJECT (MWindow, tlbTab, "tlbTab");
921 // GLADE_HOOKUP_OBJECT (MWindow, tlbOpenTraceset, "tlbOpenTraceset");
922 GLADE_HOOKUP_OBJECT (MWindow, tlbAddTrace, "tlbAddTrace");
923 GLADE_HOOKUP_OBJECT (MWindow, tlbRemoveTrace, "tlbRemoveTrace");
924 // GLADE_HOOKUP_OBJECT (MWindow, tlbSave, "tlbSave");
925 // GLADE_HOOKUP_OBJECT (MWindow, tlbSaveAs, "tlbSaveAs");
926 GLADE_HOOKUP_OBJECT (MWindow, tlbZoomIn, "tlbZoomIn");
927 GLADE_HOOKUP_OBJECT (MWindow, tlbZoomOut, "tlbZoomOut");
928 GLADE_HOOKUP_OBJECT (MWindow, tlbZoomExtended, "tlbZoomExtended");
929 // GLADE_HOOKUP_OBJECT (MWindow, tlbGoToTime, "tlbGoToTime");
930 // GLADE_HOOKUP_OBJECT (MWindow, tlbShowTimeFrame, "tlbShowTimeFrame");
931 GLADE_HOOKUP_OBJECT (MWindow, tlbMoveViewerUp, "tlbMoveViewerUp");
932 GLADE_HOOKUP_OBJECT (MWindow, tlbMoveViewerDown, "tlbMoveViewerDown");
933 GLADE_HOOKUP_OBJECT (MWindow, tlbRemoveViewer, "tlbRemoveViewer");
934 // GLADE_HOOKUP_OBJECT (MWindow, MToolbar2, "MToolbar2");
935 GLADE_HOOKUP_OBJECT (MWindow, MNotebook, "MNotebook");
936 // GLADE_HOOKUP_OBJECT (MWindow, label1, "label1");
937 GLADE_HOOKUP_OBJECT (MWindow, MStatusbar, "MStatusbar");
938
939 gtk_window_add_accel_group (GTK_WINDOW (MWindow), accel_group);
940
941 return MWindow;
942 }
943
This page took 0.067776 seconds and 4 git commands to generate.