2 * callbacks.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef GEANY_CALLBACKS_H
23 #define GEANY_CALLBACKS_H 1
25 #include "gtkcompat.h"
29 /* Defined in auto-generated code in signalconn.c */
30 void callbacks_connect(GtkBuilder
*builder
);
32 extern gboolean ignore_callback
;
34 void on_new1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
36 void on_save1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
38 void on_save_as1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
40 void on_quit1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
42 void on_open1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
44 void on_save_all1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
46 void on_close1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
48 void on_close_all1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
50 void on_replace_tabs_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
52 void on_toolbutton_search_clicked(GtkAction
*action
, gpointer user_data
);
54 gboolean
toolbar_popup_menu(GtkWidget
*widget
, GdkEventButton
*event
, gpointer user_data
);
56 void on_undo1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
58 void on_redo1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
60 void on_cut1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
62 void on_copy1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
64 void on_paste1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
66 void on_delete1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
68 void on_zoom_in1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
70 void on_zoom_out1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
72 void on_toolbar_search_entry_changed(GtkAction
*action
, const gchar
*text
, gpointer user_data
);
74 void on_toolbar_search_entry_activate(GtkAction
*action
, const gchar
*text
, gpointer user_data
);
76 void on_toggle_case1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
78 void on_find_usage1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
80 void on_preferences1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
82 void on_normal_size1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
84 void on_show_color_chooser1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
86 void on_find1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
88 void on_find_next1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
90 void on_find_previous1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
92 void on_find_nextsel1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
94 void on_find_prevsel1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
96 void on_replace1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
98 void on_find_in_files1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
100 void on_toolbutton_reload_clicked(GtkAction
*action
, gpointer user_data
);
102 void on_go_to_line_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
104 void on_help1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
106 void on_toolbutton_compile_clicked(GtkAction
*action
, gpointer user_data
);
108 void on_line_wrapping1_toggled(GtkCheckMenuItem
*checkmenuitem
, gpointer user_data
);
110 void on_toolbutton_goto_entry_activate(GtkAction
*action
, const gchar
*text
, gpointer user_data
);
112 void on_toolbutton_goto_clicked(GtkAction
*action
, gpointer user_data
);
114 void on_toolbutton_run_clicked(GtkAction
*action
, gpointer user_data
);
116 void on_menu_remove_indicators1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
118 void on_print1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
120 void on_menu_select_all1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
122 void on_menu_show_sidebar1_toggled(GtkCheckMenuItem
*checkmenuitem
, gpointer user_data
);
124 void on_menu_comment_line1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
126 void on_menu_uncomment_line1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
128 void on_menu_increase_indent1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
130 void on_menu_decrease_indent1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
132 void on_menu_toggle_line_commentation1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
134 void on_next_message1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
136 void on_project_new1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
138 void on_project_open1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
140 void on_project_close1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
142 void on_project_properties1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
144 void on_menu_open_selected_file1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
146 void on_remove_markers1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
148 void on_context_action1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
150 void on_menu_toggle_all_additional_widgets1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
152 void on_toolbutton_back_activate(GtkAction
*action
, gpointer user_data
);
154 void on_toolbutton_forward_activate(GtkAction
*action
, gpointer user_data
);
156 gboolean
on_motion_event(GtkWidget
*widget
, GdkEventMotion
*event
, gpointer user_data
);
158 gboolean
on_escape_key_press_event(GtkWidget
*widget
, GdkEventKey
*event
, gpointer user_data
);
160 void on_line_breaking1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
162 void on_replace_spaces_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
164 void on_previous_message1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
166 void on_close_other_documents1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
168 void on_find_document_usage1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
170 void on_send_selection_to_vte1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
172 void on_plugin_preferences1_activate(GtkMenuItem
*menuitem
, gpointer user_data
);
176 #endif /* GEANY_CALLBACKS_H */