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 <lttvwindow/mainwindow.h>
22 /* internal functions */
24 void create_new_window(GtkWidget
* widget
, gpointer user_data
, gboolean clone
);
25 void insert_menu_toolbar_item(MainWindow
* mw
, gpointer user_data
);
26 MainWindow
*construct_main_window(MainWindow
* parent
);
27 void main_window_free(MainWindow
* mw
);
28 void main_window_destructor(MainWindow
* mw
);
30 void create_main_window_with_trace_list(GSList
*traces
);
32 void insert_viewer_wrap(GtkWidget
*menuitem
, gpointer user_data
);
33 gboolean
execute_events_requests(Tab
*tab
);
36 /* callback functions*/
39 on_empty_traceset_activate (GtkMenuItem
*menuitem
,
43 on_clone_traceset_activate (GtkMenuItem
*menuitem
,
47 on_tab_activate (GtkMenuItem
*menuitem
,
51 on_open_activate (GtkMenuItem
*menuitem
,
55 on_close_activate (GtkMenuItem
*menuitem
,
59 on_close_tab_X_clicked (GtkWidget
*widget
,
63 on_close_tab_activate (GtkWidget
*widget
,
67 on_add_trace_activate (GtkMenuItem
*menuitem
,
71 on_remove_trace_activate (GtkMenuItem
*menuitem
,
75 on_save_activate (GtkMenuItem
*menuitem
,
79 on_save_as_activate (GtkMenuItem
*menuitem
,
83 on_quit_activate (GtkMenuItem
*menuitem
,
87 on_cut_activate (GtkMenuItem
*menuitem
,
91 on_copy_activate (GtkMenuItem
*menuitem
,
95 on_paste_activate (GtkMenuItem
*menuitem
,
99 on_delete_activate (GtkMenuItem
*menuitem
,
103 on_zoom_in_activate (GtkMenuItem
*menuitem
,
107 on_zoom_out_activate (GtkMenuItem
*menuitem
,
111 on_zoom_extended_activate (GtkMenuItem
*menuitem
,
115 on_go_to_time_activate (GtkMenuItem
*menuitem
,
119 on_show_time_frame_activate (GtkMenuItem
*menuitem
,
123 on_move_viewer_up_activate (GtkMenuItem
*menuitem
,
127 on_move_viewer_down_activate (GtkMenuItem
*menuitem
,
131 on_remove_viewer_activate (GtkMenuItem
*menuitem
,
135 on_trace_filter_activate (GtkMenuItem
*menuitem
,
139 on_trace_facility_activate (GtkMenuItem
*menuitem
,
143 on_load_library_activate (GtkMenuItem
*menuitem
,
147 on_unload_library_activate (GtkMenuItem
*menuitem
,
152 on_load_module_activate (GtkMenuItem
*menuitem
,
156 on_unload_module_activate (GtkMenuItem
*menuitem
,
160 on_add_library_search_path_activate (GtkMenuItem
*menuitem
,
163 on_remove_library_search_path_activate (GtkMenuItem
*menuitem
,
167 on_color_activate (GtkMenuItem
*menuitem
,
171 on_filter_activate (GtkMenuItem
*menuitem
,
175 on_save_configuration_activate (GtkMenuItem
*menuitem
,
179 on_content_activate (GtkMenuItem
*menuitem
,
183 on_about_activate (GtkMenuItem
*menuitem
,
187 on_button_new_clicked (GtkButton
*button
,
190 on_button_new_tab_clicked (GtkButton
*button
,
193 on_button_open_clicked (GtkButton
*button
,
197 on_button_add_trace_clicked (GtkButton
*button
,
201 on_button_remove_trace_clicked (GtkButton
*button
,
204 on_button_redraw_clicked (GtkButton
*button
,
208 on_button_continue_processing_clicked (GtkButton
*button
,
212 on_button_stop_processing_clicked (GtkButton
*button
,
216 on_button_save_clicked (GtkButton
*button
,
220 on_button_save_as_clicked (GtkButton
*button
,
224 on_button_zoom_in_clicked (GtkButton
*button
,
228 on_button_zoom_out_clicked (GtkButton
*button
,
232 on_button_zoom_extended_clicked (GtkButton
*button
,
236 on_button_go_to_time_clicked (GtkButton
*button
,
240 on_button_show_time_frame_clicked (GtkButton
*button
,
244 on_button_move_up_clicked (GtkButton
*button
,
248 on_button_move_down_clicked (GtkButton
*button
,
252 on_button_delete_viewer_clicked (GtkButton
*button
,
256 on_MWindow_destroy (GtkWidget
*widget
,
260 on_MWindow_configure (GtkWidget
*widget
,
261 GdkEventConfigure
*event
,
265 on_MWindow_expose (GtkWidget
*widget
,
266 GdkEventExpose
*event
,
269 on_MWindow_after (GtkWidget
*widget
,
276 on_insert_viewer_test_activate (GtkMenuItem
*menuitem
,
280 insertViewTest(GtkMenuItem
*menuitem
, gpointer user_data
);
283 on_MNotebook_switch_page (GtkNotebook
*notebook
,
284 GtkNotebookPage
*page
,
290 on_MEntry1_value_changed (GtkSpinButton
*spinbutton
,
293 on_MEntry2_value_changed (GtkSpinButton
*spinbutton
,
296 on_MEntry3_value_changed (GtkSpinButton
*spinbutton
,
299 on_MEntry4_value_changed (GtkSpinButton
*spinbutton
,
302 on_MEntry5_value_changed (GtkSpinButton
*spinbutton
,
305 on_MEntry6_value_changed (GtkSpinButton
*spinbutton
,
309 void time_change_manager (Tab
*tab
,
310 TimeWindow new_time_window
);
312 void current_time_change_manager (Tab
*tab
,
313 LttTime new_current_time
);
315 gboolean
execute_time_requests(MainWindow
* mw
);