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