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