| 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 | #include <gtk/gtk.h> |
| 20 | #include <lttvwindow/common.h> |
| 21 | #include <lttvwindow/mainwindow.h> |
| 22 | |
| 23 | /* internal functions */ |
| 24 | |
| 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); |
| 30 | |
| 31 | /* callback functions*/ |
| 32 | |
| 33 | void |
| 34 | on_empty_traceset_activate (GtkMenuItem *menuitem, |
| 35 | gpointer user_data); |
| 36 | |
| 37 | void |
| 38 | on_clone_traceset_activate (GtkMenuItem *menuitem, |
| 39 | gpointer user_data); |
| 40 | |
| 41 | void |
| 42 | on_tab_activate (GtkMenuItem *menuitem, |
| 43 | gpointer user_data); |
| 44 | |
| 45 | void |
| 46 | on_open_activate (GtkMenuItem *menuitem, |
| 47 | gpointer user_data); |
| 48 | |
| 49 | void |
| 50 | on_close_activate (GtkMenuItem *menuitem, |
| 51 | gpointer user_data); |
| 52 | |
| 53 | void |
| 54 | on_close_tab_activate (GtkMenuItem *menuitem, |
| 55 | gpointer user_data); |
| 56 | |
| 57 | void |
| 58 | on_add_trace_activate (GtkMenuItem *menuitem, |
| 59 | gpointer user_data); |
| 60 | |
| 61 | void |
| 62 | on_remove_trace_activate (GtkMenuItem *menuitem, |
| 63 | gpointer user_data); |
| 64 | |
| 65 | void |
| 66 | on_save_activate (GtkMenuItem *menuitem, |
| 67 | gpointer user_data); |
| 68 | |
| 69 | void |
| 70 | on_save_as_activate (GtkMenuItem *menuitem, |
| 71 | gpointer user_data); |
| 72 | |
| 73 | void |
| 74 | on_quit_activate (GtkMenuItem *menuitem, |
| 75 | gpointer user_data); |
| 76 | |
| 77 | void |
| 78 | on_cut_activate (GtkMenuItem *menuitem, |
| 79 | gpointer user_data); |
| 80 | |
| 81 | void |
| 82 | on_copy_activate (GtkMenuItem *menuitem, |
| 83 | gpointer user_data); |
| 84 | |
| 85 | void |
| 86 | on_paste_activate (GtkMenuItem *menuitem, |
| 87 | gpointer user_data); |
| 88 | |
| 89 | void |
| 90 | on_delete_activate (GtkMenuItem *menuitem, |
| 91 | gpointer user_data); |
| 92 | |
| 93 | void |
| 94 | on_zoom_in_activate (GtkMenuItem *menuitem, |
| 95 | gpointer user_data); |
| 96 | |
| 97 | void |
| 98 | on_zoom_out_activate (GtkMenuItem *menuitem, |
| 99 | gpointer user_data); |
| 100 | |
| 101 | void |
| 102 | on_zoom_extended_activate (GtkMenuItem *menuitem, |
| 103 | gpointer user_data); |
| 104 | |
| 105 | void |
| 106 | on_go_to_time_activate (GtkMenuItem *menuitem, |
| 107 | gpointer user_data); |
| 108 | |
| 109 | void |
| 110 | on_show_time_frame_activate (GtkMenuItem *menuitem, |
| 111 | gpointer user_data); |
| 112 | |
| 113 | void |
| 114 | on_move_viewer_up_activate (GtkMenuItem *menuitem, |
| 115 | gpointer user_data); |
| 116 | |
| 117 | void |
| 118 | on_move_viewer_down_activate (GtkMenuItem *menuitem, |
| 119 | gpointer user_data); |
| 120 | |
| 121 | void |
| 122 | on_remove_viewer_activate (GtkMenuItem *menuitem, |
| 123 | gpointer user_data); |
| 124 | |
| 125 | void |
| 126 | on_trace_filter_activate (GtkMenuItem *menuitem, |
| 127 | gpointer user_data); |
| 128 | |
| 129 | void |
| 130 | on_trace_facility_activate (GtkMenuItem *menuitem, |
| 131 | gpointer user_data); |
| 132 | |
| 133 | void |
| 134 | on_load_module_activate (GtkMenuItem *menuitem, |
| 135 | gpointer user_data); |
| 136 | |
| 137 | void |
| 138 | on_unload_module_activate (GtkMenuItem *menuitem, |
| 139 | gpointer user_data); |
| 140 | |
| 141 | void |
| 142 | on_add_module_search_path_activate (GtkMenuItem *menuitem, |
| 143 | gpointer user_data); |
| 144 | |
| 145 | void |
| 146 | on_color_activate (GtkMenuItem *menuitem, |
| 147 | gpointer user_data); |
| 148 | |
| 149 | void |
| 150 | on_filter_activate (GtkMenuItem *menuitem, |
| 151 | gpointer user_data); |
| 152 | |
| 153 | void |
| 154 | on_save_configuration_activate (GtkMenuItem *menuitem, |
| 155 | gpointer user_data); |
| 156 | |
| 157 | void |
| 158 | on_content_activate (GtkMenuItem *menuitem, |
| 159 | gpointer user_data); |
| 160 | |
| 161 | void |
| 162 | on_about_activate (GtkMenuItem *menuitem, |
| 163 | gpointer user_data); |
| 164 | |
| 165 | void |
| 166 | on_button_new_clicked (GtkButton *button, |
| 167 | gpointer user_data); |
| 168 | void |
| 169 | on_button_new_tab_clicked (GtkButton *button, |
| 170 | gpointer user_data); |
| 171 | void |
| 172 | on_button_open_clicked (GtkButton *button, |
| 173 | gpointer user_data); |
| 174 | |
| 175 | void |
| 176 | on_button_add_trace_clicked (GtkButton *button, |
| 177 | gpointer user_data); |
| 178 | |
| 179 | void |
| 180 | on_button_remove_trace_clicked (GtkButton *button, |
| 181 | gpointer user_data); |
| 182 | |
| 183 | void |
| 184 | on_button_save_clicked (GtkButton *button, |
| 185 | gpointer user_data); |
| 186 | |
| 187 | void |
| 188 | on_button_save_as_clicked (GtkButton *button, |
| 189 | gpointer user_data); |
| 190 | |
| 191 | void |
| 192 | on_button_zoom_in_clicked (GtkButton *button, |
| 193 | gpointer user_data); |
| 194 | |
| 195 | void |
| 196 | on_button_zoom_out_clicked (GtkButton *button, |
| 197 | gpointer user_data); |
| 198 | |
| 199 | void |
| 200 | on_button_zoom_extended_clicked (GtkButton *button, |
| 201 | gpointer user_data); |
| 202 | |
| 203 | void |
| 204 | on_button_go_to_time_clicked (GtkButton *button, |
| 205 | gpointer user_data); |
| 206 | |
| 207 | void |
| 208 | on_button_show_time_frame_clicked (GtkButton *button, |
| 209 | gpointer user_data); |
| 210 | |
| 211 | void |
| 212 | on_button_move_up_clicked (GtkButton *button, |
| 213 | gpointer user_data); |
| 214 | |
| 215 | void |
| 216 | on_button_move_down_clicked (GtkButton *button, |
| 217 | gpointer user_data); |
| 218 | |
| 219 | void |
| 220 | on_button_delete_viewer_clicked (GtkButton *button, |
| 221 | gpointer user_data); |
| 222 | |
| 223 | void |
| 224 | on_MWindow_destroy (GtkObject *object, |
| 225 | gpointer user_data); |
| 226 | |
| 227 | gboolean |
| 228 | on_MWindow_configure (GtkWidget *widget, |
| 229 | GdkEventConfigure *event, |
| 230 | gpointer user_data); |
| 231 | |
| 232 | void |
| 233 | on_insert_viewer_test_activate (GtkMenuItem *menuitem, |
| 234 | gpointer user_data); |
| 235 | |
| 236 | void |
| 237 | insertViewTest(GtkMenuItem *menuitem, gpointer user_data); |
| 238 | |
| 239 | void |
| 240 | on_MNotebook_switch_page (GtkNotebook *notebook, |
| 241 | GtkNotebookPage *page, |
| 242 | guint page_num, |
| 243 | gpointer user_data); |