1 /* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2003-2004 XangXiu Yang
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;
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.
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,
20 #include <lttvgui/common.h>
21 #include <lttvgui/mainwindow.h>
23 /* internal functions */
25 void create_new_window(GtkWidget
* widget
, gpointer user_data
, gboolean clone
);
26 void insert_menu_toolbar_item(MainWindow
* mw
, gpointer user_data
);
27 void construct_main_window(MainWindow
* parent
);
28 void main_window_free(MainWindow
* mw
);
29 void main_window_destructor(MainWindow
* mw
);
31 /* callback functions*/
34 on_empty_traceset_activate (GtkMenuItem
*menuitem
,
38 on_clone_traceset_activate (GtkMenuItem
*menuitem
,
42 on_tab_activate (GtkMenuItem
*menuitem
,
46 on_open_activate (GtkMenuItem
*menuitem
,
50 on_close_activate (GtkMenuItem
*menuitem
,
54 on_close_tab_activate (GtkMenuItem
*menuitem
,
58 on_add_trace_activate (GtkMenuItem
*menuitem
,
62 on_remove_trace_activate (GtkMenuItem
*menuitem
,
66 on_save_activate (GtkMenuItem
*menuitem
,
70 on_save_as_activate (GtkMenuItem
*menuitem
,
74 on_quit_activate (GtkMenuItem
*menuitem
,
78 on_cut_activate (GtkMenuItem
*menuitem
,
82 on_copy_activate (GtkMenuItem
*menuitem
,
86 on_paste_activate (GtkMenuItem
*menuitem
,
90 on_delete_activate (GtkMenuItem
*menuitem
,
94 on_zoom_in_activate (GtkMenuItem
*menuitem
,
98 on_zoom_out_activate (GtkMenuItem
*menuitem
,
102 on_zoom_extended_activate (GtkMenuItem
*menuitem
,
106 on_go_to_time_activate (GtkMenuItem
*menuitem
,
110 on_show_time_frame_activate (GtkMenuItem
*menuitem
,
114 on_move_viewer_up_activate (GtkMenuItem
*menuitem
,
118 on_move_viewer_down_activate (GtkMenuItem
*menuitem
,
122 on_remove_viewer_activate (GtkMenuItem
*menuitem
,
126 on_trace_filter_activate (GtkMenuItem
*menuitem
,
130 on_trace_facility_activate (GtkMenuItem
*menuitem
,
134 on_load_module_activate (GtkMenuItem
*menuitem
,
138 on_unload_module_activate (GtkMenuItem
*menuitem
,
142 on_add_module_search_path_activate (GtkMenuItem
*menuitem
,
146 on_color_activate (GtkMenuItem
*menuitem
,
150 on_filter_activate (GtkMenuItem
*menuitem
,
154 on_save_configuration_activate (GtkMenuItem
*menuitem
,
158 on_content_activate (GtkMenuItem
*menuitem
,
162 on_about_activate (GtkMenuItem
*menuitem
,
166 on_button_new_clicked (GtkButton
*button
,
169 on_button_new_tab_clicked (GtkButton
*button
,
172 on_button_open_clicked (GtkButton
*button
,
176 on_button_add_trace_clicked (GtkButton
*button
,
180 on_button_remove_trace_clicked (GtkButton
*button
,
184 on_button_save_clicked (GtkButton
*button
,
188 on_button_save_as_clicked (GtkButton
*button
,
192 on_button_zoom_in_clicked (GtkButton
*button
,
196 on_button_zoom_out_clicked (GtkButton
*button
,
200 on_button_zoom_extended_clicked (GtkButton
*button
,
204 on_button_go_to_time_clicked (GtkButton
*button
,
208 on_button_show_time_frame_clicked (GtkButton
*button
,
212 on_button_move_up_clicked (GtkButton
*button
,
216 on_button_move_down_clicked (GtkButton
*button
,
220 on_button_delete_viewer_clicked (GtkButton
*button
,
224 on_MWindow_destroy (GtkObject
*object
,
228 on_MWindow_configure (GtkWidget
*widget
,
229 GdkEventConfigure
*event
,
233 on_insert_viewer_test_activate (GtkMenuItem
*menuitem
,
237 insertViewTest(GtkMenuItem
*menuitem
, gpointer user_data
);
240 on_MNotebook_switch_page (GtkNotebook
*notebook
,
241 GtkNotebookPage
*page
,
This page took 0.033447 seconds and 4 git commands to generate.