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.
23 #include "geany.h" /* necessary for interface.c */
26 G_MODULE_EXPORT gboolean
27 on_exit_clicked (GtkWidget
*widget
, gpointer gdata
);
30 on_new1_activate (GtkMenuItem
*menuitem
,
34 on_save1_activate (GtkMenuItem
*menuitem
,
38 on_save_as1_activate (GtkMenuItem
*menuitem
,
42 on_quit1_activate (GtkMenuItem
*menuitem
,
46 on_info1_activate (GtkMenuItem
*menuitem
,
50 on_open1_activate (GtkMenuItem
*menuitem
,
54 on_change_font1_activate (GtkMenuItem
*menuitem
,
58 on_toolbutton_close_clicked (GtkAction
*action
,
62 on_toolbutton_close_all_clicked (GtkAction
*action
,
66 on_save_all1_activate (GtkMenuItem
*menuitem
,
70 on_close1_activate (GtkMenuItem
*menuitem
,
74 on_close_all1_activate (GtkMenuItem
*menuitem
,
78 on_crlf_activate (GtkCheckMenuItem
*menuitem
,
82 on_lf_activate (GtkCheckMenuItem
*menuitem
,
86 on_cr_activate (GtkCheckMenuItem
*menuitem
,
90 on_replace_tabs_activate (GtkMenuItem
*menuitem
,
94 on_toolbutton_search_clicked (GtkAction
*action
,
97 G_MODULE_EXPORT gboolean
98 toolbar_popup_menu (GtkWidget
*widget
,
99 GdkEventButton
*event
,
103 on_hide_toolbar1_activate (GtkMenuItem
*menuitem
,
107 on_undo1_activate (GtkMenuItem
*menuitem
,
111 on_redo1_activate (GtkMenuItem
*menuitem
,
115 on_cut1_activate (GtkMenuItem
*menuitem
,
119 on_copy1_activate (GtkMenuItem
*menuitem
,
123 on_paste1_activate (GtkMenuItem
*menuitem
,
127 on_delete1_activate (GtkMenuItem
*menuitem
,
131 on_zoom_in1_activate (GtkMenuItem
*menuitem
,
135 on_zoom_out1_activate (GtkMenuItem
*menuitem
,
139 on_toolbar_search_entry_changed (GtkAction
*action
,
144 on_toolbar_search_entry_activate (GtkAction
*action
,
149 on_toggle_case1_activate (GtkMenuItem
*menuitem
,
153 on_fullscreen1_activate (GtkMenuItem
*menuitem
,
157 on_show_toolbar1_toggled (GtkCheckMenuItem
*checkmenuitem
,
161 on_fullscreen1_toggled (GtkCheckMenuItem
*checkmenuitem
,
165 on_markers_margin1_toggled (GtkCheckMenuItem
*checkmenuitem
,
169 on_invisible1_activate (GtkMenuItem
*menuitem
,
173 on_find_usage1_activate (GtkMenuItem
*menuitem
,
177 on_show_messages_window1_toggled (GtkCheckMenuItem
*checkmenuitem
,
181 on_menu_color_schemes_activate (GtkImageMenuItem
*imagemenuitem
,
185 on_construct_completion1_activate (GtkMenuItem
*menuitem
,
189 on_count_words1_activate (GtkMenuItem
*menuitem
,
193 on_preferences1_activate (GtkMenuItem
*menuitem
,
197 on_normal_size1_activate (GtkMenuItem
*menuitem
,
201 on_edit1_activate (GtkMenuItem
*menuitem
,
205 on_show_color_chooser1_activate (GtkMenuItem
*menuitem
,
209 on_find1_activate (GtkMenuItem
*menuitem
,
213 on_find_next1_activate (GtkMenuItem
*menuitem
,
217 on_find_previous1_activate (GtkMenuItem
*menuitem
,
220 on_find_nextsel1_activate (GtkMenuItem
*menuitem
,
223 on_find_prevsel1_activate (GtkMenuItem
*menuitem
,
227 on_replace1_activate (GtkMenuItem
*menuitem
,
231 on_find_in_files1_activate (GtkMenuItem
*menuitem
,
235 on_toolbutton_new_clicked (GtkAction
*action
,
239 on_toolbutton_open_clicked (GtkAction
*action
,
243 on_toolbutton_save_clicked (GtkAction
*action
,
247 on_toolbutton_quit_clicked (GtkAction
*action
,
251 on_toolbutton_preferences_clicked (GtkAction
*action
,
255 on_toolbutton_reload_clicked (GtkAction
*action
,
259 on_go_to_line_activate (GtkMenuItem
*menuitem
,
263 on_help1_activate (GtkMenuItem
*menuitem
,
267 on_toolbutton_compile_clicked (GtkAction
*action
,
271 on_website1_activate (GtkMenuItem
*menuitem
,
275 on_help_menu_item_donate_activate(GtkMenuItem
*item
, gpointer user_data
);
278 on_help_menu_item_wiki_activate(GtkMenuItem
*item
, gpointer user_data
);
281 on_help_menu_item_bug_report_activate(GtkMenuItem
*item
, gpointer user_data
);
284 on_line_wrapping1_toggled (GtkCheckMenuItem
*checkmenuitem
,
288 on_comments_function_activate (GtkMenuItem
*menuitem
,
292 on_comments_multiline_activate (GtkMenuItem
*menuitem
,
296 on_comments_changelog_activate (GtkMenuItem
*menuitem
,
300 on_comments_gpl_activate (GtkMenuItem
*menuitem
,
304 on_comments_fileheader_activate (GtkMenuItem
*menuitem
,
308 on_insert_include_activate (GtkMenuItem
*menuitem
,
312 on_custom_date_dialog_response (GtkDialog
*dialog
,
317 on_custom_date_entry_activate (GtkEntry
*entry
,
321 on_insert_date_activate (GtkMenuItem
*menuitem
,
325 on_set_file_readonly1_toggled (GtkCheckMenuItem
*checkmenuitem
,
329 on_tv_notebook_switch_page (GtkNotebook
*notebook
,
330 GtkNotebookPage
*page
,
335 on_help_shortcuts1_activate (GtkMenuItem
*menuitem
,
340 on_file_properties_activate (GtkMenuItem
*menuitem
,
344 on_show_line_numbers1_toggled (GtkCheckMenuItem
*checkmenuitem
,
348 on_use_auto_indentation1_toggled (GtkCheckMenuItem
*checkmenuitem
,
354 on_menu_fold_all1_activate (GtkMenuItem
*menuitem
,
358 on_menu_unfold_all1_activate (GtkMenuItem
*menuitem
,
362 on_toolbutton_goto_entry_activate (GtkAction
*action
, const gchar
*text
, gpointer user_data
);
365 on_toolbutton_goto_clicked (GtkAction
*action
,
369 on_toolbutton_run_clicked (GtkAction
*action
,
373 on_notebook1_switch_page_after (GtkNotebook
*notebook
,
374 GtkNotebookPage
*page
,
379 on_menu_remove_indicators1_activate (GtkMenuItem
*menuitem
,
383 on_reload_as_activate (GtkMenuItem
*menuitem
,
387 on_print1_activate (GtkMenuItem
*menuitem
,
391 on_menu_select_all1_activate (GtkMenuItem
*menuitem
,
395 on_menu_show_sidebar1_toggled (GtkCheckMenuItem
*checkmenuitem
,
399 on_menu_write_unicode_bom1_toggled (GtkCheckMenuItem
*checkmenuitem
,
403 on_menu_comment_line1_activate (GtkMenuItem
*menuitem
,
407 on_menu_uncomment_line1_activate (GtkMenuItem
*menuitem
,
411 on_menu_increase_indent1_activate (GtkMenuItem
*menuitem
,
415 on_menu_decrease_indent1_activate (GtkMenuItem
*menuitem
,
419 on_menu_toggle_line_commentation1_activate
420 (GtkMenuItem
*menuitem
,
424 on_next_message1_activate (GtkMenuItem
*menuitem
,
429 on_menu_comments_multiline_activate (GtkMenuItem
*menuitem
,
433 on_menu_comments_gpl_activate (GtkMenuItem
*menuitem
,
437 on_menu_insert_include_activate (GtkMenuItem
*menuitem
,
441 on_menu_insert_date_activate (GtkMenuItem
*menuitem
,
445 on_menu_comments_bsd_activate (GtkMenuItem
*menuitem
,
449 on_comments_bsd_activate (GtkMenuItem
*menuitem
,
453 on_project_new1_activate (GtkMenuItem
*menuitem
,
457 on_project_open1_activate (GtkMenuItem
*menuitem
,
461 on_project_close1_activate (GtkMenuItem
*menuitem
,
465 on_project_properties1_activate (GtkMenuItem
*menuitem
,
469 on_menu_project1_activate (GtkMenuItem
*menuitem
,
473 on_menu_open_selected_file1_activate (GtkMenuItem
*menuitem
,
477 on_remove_markers1_activate (GtkMenuItem
*menuitem
,
481 on_load_tags1_activate (GtkMenuItem
*menuitem
,
485 on_context_action1_activate (GtkMenuItem
*menuitem
,
489 on_menu_toggle_all_additional_widgets1_activate
490 (GtkMenuItem
*menuitem
,
493 on_back_activate (GtkMenuItem
*menuitem
,
497 on_forward_activate (GtkMenuItem
*menuitem
,
501 on_file1_activate (GtkMenuItem
*menuitem
,
504 G_MODULE_EXPORT gboolean
505 on_motion_event (GtkWidget
*widget
,
506 GdkEventMotion
*event
,
510 on_tv_notebook_switch_page_after (GtkNotebook
*notebook
,
511 GtkNotebookPage
*page
,
516 on_tabs1_activate (GtkCheckMenuItem
*menuitem
,
520 on_spaces1_activate (GtkCheckMenuItem
*menuitem
,
525 on_strip_trailing_spaces1_activate (GtkMenuItem
*menuitem
,
529 on_page_setup1_activate (GtkMenuItem
*menuitem
,
532 G_MODULE_EXPORT gboolean
533 on_escape_key_press_event (GtkWidget
*widget
,
538 on_line_breaking1_activate (GtkMenuItem
*menuitem
,
543 on_replace_spaces_activate (GtkMenuItem
*menuitem
,
547 on_previous_message1_activate (GtkMenuItem
*menuitem
,
551 on_search1_activate (GtkMenuItem
*menuitem
,
555 on_close_other_documents1_activate (GtkMenuItem
*menuitem
,
559 on_menu_reload_configuration1_activate (GtkMenuItem
*menuitem
,
563 on_find_document_usage1_activate (GtkMenuItem
*menuitem
,
567 on_tabs_and_spaces1_activate (GtkCheckMenuItem
*menuitem
,
570 on_debug_messages1_activate (GtkMenuItem
*menuitem
,
574 on_menu_show_white_space1_toggled (GtkCheckMenuItem
*checkmenuitem
,
578 on_menu_show_line_endings1_toggled (GtkCheckMenuItem
*checkmenuitem
,
582 on_menu_show_indentation_guides1_toggled
583 (GtkCheckMenuItem
*checkmenuitem
,
587 on_send_selection_to_vte1_activate (GtkMenuItem
*menuitem
,
590 G_MODULE_EXPORT gboolean
591 on_window_state_event (GtkWidget
*widget
,
592 GdkEventWindowState
*event
,
596 on_customize_toolbar1_activate (GtkMenuItem
*menuitem
,
600 on_button_customize_toolbar_clicked (GtkButton
*button
,
604 on_cut_current_lines1_activate (GtkMenuItem
*menuitem
,
608 on_copy_current_lines1_activate (GtkMenuItem
*menuitem
,
612 on_delete_current_lines1_activate (GtkMenuItem
*menuitem
,
616 on_duplicate_line_or_selection1_activate
617 (GtkMenuItem
*menuitem
,
621 on_select_current_lines1_activate (GtkMenuItem
*menuitem
,
625 on_select_current_paragraph1_activate (GtkMenuItem
*menuitem
,
629 on_insert_alternative_white_space1_activate
630 (GtkMenuItem
*menuitem
,
634 on_go_to_next_marker1_activate (GtkMenuItem
*menuitem
,
638 on_go_to_previous_marker1_activate (GtkMenuItem
*menuitem
,
642 on_reflow_lines_block1_activate (GtkMenuItem
*menuitem
,
646 on_transpose_current_line1_activate (GtkMenuItem
*menuitem
,
650 on_smart_line_indent1_activate (GtkMenuItem
*menuitem
,
654 on_plugin_preferences1_activate (GtkMenuItem
*menuitem
,
658 on_goto_tag_definition1 (GtkMenuItem
*menuitem
,
662 on_goto_tag_declaration1 (GtkMenuItem
*menuitem
,
666 on_indent_width_activate (GtkMenuItem
*menuitem
,
670 on_reset_indentation1_activate (GtkMenuItem
*menuitem
,
675 on_mark_all1_activate (GtkMenuItem
*menuitem
,
679 on_detect_type_from_file_activate (GtkMenuItem
*menuitem
,
683 on_detect_width_from_file_activate (GtkMenuItem
*menuitem
,