PageRenderTime 33ms CodeModel.GetById 8ms app.highlight 21ms RepoModel.GetById 1ms app.codeStats 0ms

/cssed-0.4.0/src/callbacks.h

#
C++ Header | 278 lines | 218 code | 14 blank | 46 comment | 0 complexity | f9bdc5589ebf99a71d80b1953d6bd4eb MD5 | raw file
  1/*  cssed (c) Iago Rubio 2003, 2005 - A tiny CSS editor.
  2 *
  3 *  This program is free software; you can redistribute it and/or modify
  4 *  it under the terms of the GNU General Public License as published by
  5 *  the Free Software Foundation; either version 2 of the License, or
  6 *  (at your option) any later version.
  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 Library 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, MA 02111-1307, USA.
 16 */
 17
 18
 19void on_menu_new_activate (GtkMenuItem * menuitem, gpointer user_data);
 20void on_menu_open_activate (GtkMenuItem * menuitem, gpointer user_data);
 21#ifdef GTK_ATLEAST_2_4 // gtk file chooser don't let you paste a path
 22void on_menu_open_path_activate (GtkMenuItem * menuitem, gpointer user_data);
 23#endif
 24void on_menu_close_activate (GtkMenuItem * menuitem, gpointer user_data);
 25void on_menu_save_all_activate (GtkMenuItem * menuitem, gpointer user_data);
 26void on_menu_close_all_activate (GtkMenuItem * menuitem, gpointer user_data);
 27void on_menu_revert_to_saved_activate (GtkMenuItem * menuitem, gpointer user_data);
 28void on_menu_save_activate (GtkMenuItem * menuitem, gpointer user_data);
 29void on_menu_save_as_activate (GtkMenuItem * menuitem, gpointer user_data);
 30void on_menu_quit_activate (GtkMenuItem * menuitem, gpointer user_data);
 31void on_menu_undo_activate (GtkMenuItem * menuitem, gpointer user_data);
 32void on_menu_redo_activate (GtkMenuItem * menuitem, gpointer user_data);
 33void on_menu_search_activate (GtkMenuItem * menuitem, gpointer user_data);
 34void on_menu_replace_activate (GtkMenuItem * menuitem, gpointer user_data);
 35void on_menu_cut_activate (GtkMenuItem * menuitem, gpointer user_data);
 36void on_menu_copy_activate (GtkMenuItem * menuitem, gpointer user_data);
 37void on_menu_paste_activate (GtkMenuItem * menuitem, gpointer user_data);
 38void on_menu_delete_activate (GtkMenuItem * menuitem, gpointer user_data);
 39void on_menu_preferences_activate (GtkMenuItem * menuitem, gpointer user_data);
 40void on_menu_view_toolbar_toggled (GtkCheckMenuItem * checkmenuitem, gpointer user_data);
 41void on_menu_about_activate (GtkMenuItem * menuitem, gpointer user_data);
 42#ifdef WITH_HELP_MENUS
 43#ifdef DARWIN
 44void on_menu_cssed_website_with_safari_activate (GtkMenuItem * menuitem, gpointer user_data);
 45void on_menu_cssed_website_with_firefox_activate (GtkMenuItem * menuitem, gpointer user_data);
 46#endif
 47void on_menu_cssed_website_with_mozilla_activate (GtkMenuItem * menuitem, gpointer user_data);
 48void on_menu_cssed_website_with_galeon_activate (GtkMenuItem * menuitem, gpointer user_data);
 49void on_menu_cssed_website_with_dillo_activate (GtkMenuItem * menuitem, gpointer user_data);
 50void on_menu_cssed_website_with_gnome_activate (GtkMenuItem * menuitem, gpointer user_data);
 51#ifdef DARWIN
 52void on_menu_cssed_doc_online_with_safari_activate (GtkMenuItem * menuitem, gpointer user_data);
 53void on_menu_cssed_doc_online_with_firefox_activate (GtkMenuItem * menuitem, gpointer user_data);
 54#endif
 55void on_menu_cssed_doc_online_with_mozilla_activate (GtkMenuItem * menuitem, gpointer user_data);
 56void on_menu_cssed_doc_online_with_galeon_activate (GtkMenuItem * menuitem, gpointer user_data);
 57void on_menu_cssed_doc_online_with_dillo_activate (GtkMenuItem * menuitem, gpointer user_data);
 58void on_menu_cssed_doc_online_with_gnome_activate (GtkMenuItem * menuitem, gpointer user_data);
 59#endif /* #ifdef WITH_HELP_MENUS */
 60void on_menu_cssed_help_activate     (GtkMenuItem *menuitem, gpointer user_data);
 61void on_errordialog_okbutton_clicked (GtkButton * button, gpointer user_data);
 62void on_button_toolbar_open_clicked (GtkButton * button, gpointer user_data);
 63void on_button_toolbar_new_clicked (GtkButton * button, gpointer user_data);
 64void on_button_toolbar_close_clicked (GtkButton * button, gpointer user_data);
 65void on_button_toolbar_search_clicked (GtkButton * button, gpointer user_data);
 66void on_button_toolbar_replace_clicked (GtkButton * button, gpointer user_data);
 67void on_button_toolbar_copy_clicked (GtkButton * button, gpointer user_data);
 68void on_button_toolbar_paste_clicked (GtkButton * button, gpointer user_data);
 69void on_button_color_clicked (GtkButton * button, gpointer user_data);
 70void on_button_toolbar_save_clicked (GtkButton * button, gpointer user_data);
 71void on_button_toolbar_save_as_clicked (GtkButton * button, gpointer user_data);
 72void on_button_toolbar_cut_clicked (GtkButton * button, gpointer user_data);
 73void on_button_next_clicked (GtkButton * button, gpointer user_data);
 74void on_button_prev_clicked (GtkButton * button, gpointer user_data);
 75void on_button_undo_clicked (GtkButton * button, gpointer user_data);
 76void on_button_redo_clicked (GtkButton * button, gpointer user_data);
 77void on_button_zoom_in_clicked (GtkButton * button, gpointer user_data);
 78void on_button_zoom_out_clicked (GtkButton * button, gpointer user_data);
 79void on_button_zoom_off_clicked (GtkButton * button, gpointer user_data);
 80void on_button_preferences_clicked (GtkButton * button, gpointer user_data);
 81
 82void on_button_hide_side_clicked (GtkButton * button, gpointer user_data);
 83void on_button_show_side_clicked (GtkButton * button, gpointer user_data);
 84void on_button_hide_footer_clicked (GtkButton * button, gpointer user_data);
 85void on_button_show_footer_clicked (GtkButton * button, gpointer user_data);
 86
 87void on_button_border_all_clicked (GtkButton * button, gpointer user_data);
 88void on_button_margin_all_clicked (GtkButton * button, gpointer user_data);
 89void on_button_padding_all_clicked (GtkButton * button, gpointer user_data);
 90void on_button_box_properties_clicked (GtkButton * button,  gpointer user_data);
 91void on_button_sel_wizard_clicked (GtkButton * button, gpointer user_data);
 92void on_button_col_wizard_clicked (GtkButton * button, gpointer user_data);
 93void on_button_font_clicked (GtkButton * button, gpointer user_data);
 94void on_button_scan_selector_clicked (GtkButton * button, gpointer user_data);
 95void on_button_doc_info_clicked (GtkButton * button, gpointer user_data);
 96void on_button_clean_output_clicked (GtkButton * button, gpointer user_data);
 97void on_button_validate_clicked (GtkButton * button, gpointer user_data);
 98void on_button_validate_dump_clicked (GtkButton * button, gpointer user_data);
 99/*
100void on_save_fileselection_ok_button_clicked (GtkButton * button, gpointer user_data);
101void on_save_as_fileselection_ok_button_clicked (GtkButton * button, gpointer user_data);
102*/
103void on_window_destroy (GtkObject * object, gpointer user_data);
104gboolean on_window_delete_event (GtkWidget * widget, GdkEvent * event,gpointer user_data);
105void cssed_error_message (gchar * title, gchar * message, ...);
106void on_color_selection_ok_button_clicked (GtkButton * button, gpointer user_data);
107void on_color_selection_help_button_clicked (GtkButton * button, gpointer user_data);
108void on_dialog_search_help_button_clicked (GtkButton * button, gpointer user_data);
109void on_dialog_replace_help_button_clicked (GtkButton * button, gpointer user_data);
110void on_search_backwards_checkbox_toggled  (GtkToggleButton *togglebutton,  gpointer user_data);
111void on_search_dialog_find_button_clicked (GtkButton * button, gpointer user_data);
112void on_dialog_replace_search_button_clicked (GtkButton * button, gpointer user_data);
113void on_dialog_replace_apply_button_clicked (GtkButton * button, gpointer user_data);
114void on_menu_line_numbers_toggled (GtkCheckMenuItem * checkmenuitem, gpointer user_data);
115void on_menu_line_wrapping_toggled (GtkCheckMenuItem * checkmenuitem, gpointer user_data);
116void on_menu_line_endings_toggled (GtkCheckMenuItem * checkmenuitem, gpointer user_data);
117void on_menu_view_white_spaces_toggled (GtkCheckMenuItem * checkmenuitem, gpointer user_data);
118void on_menu_document_activate (GtkMenuItem * checkmenuitem, gpointer user_data);
119void on_menu_eol_mode_activate (GtkMenuItem * checkmenuitem, gpointer user_data);
120void on_menu_eol_mode_cr_activate (GtkMenuItem * checkmenuitem, gpointer user_data);
121void on_menu_eol_mode_lf_activate (GtkMenuItem * checkmenuitem, gpointer user_data);
122void on_menu_eol_mode_crlf_activate (GtkMenuItem * checkmenuitem, gpointer user_data);
123void on_menu_eol_convert_cr_activate (GtkMenuItem * checkmenuitem, gpointer user_data);
124void on_menu_eol_convert_lf_activate (GtkMenuItem * checkmenuitem, gpointer user_data);
125void on_menu_eol_convert_crlf_activate (GtkMenuItem * checkmenuitem, gpointer user_data);
126void on_menu_item_autocompletion_toggled (GtkCheckMenuItem * checkmenuitem, gpointer user_data);
127void on_menu_item_folding_toggled (GtkCheckMenuItem * checkmenuitem, gpointer user_data);
128void on_menuitem_folding_unfoldall_activate (GtkMenuItem * menuitem, gpointer user_data);
129void on_menu_item_font_activate (GtkMenuItem * menuitem, gpointer user_data);
130void on_menu_item_flag_red_activate( GtkMenuItem *menuitem, gpointer user_data);
131void on_menu_item_flag_white_activate ( GtkMenuItem *menuitem, gpointer user_data);
132void on_menu_item_flag_blue_activate ( GtkMenuItem *menuitem, gpointer user_data);
133void on_menu_item_flag_yellow_activate ( GtkMenuItem *menuitem, gpointer user_data);
134void on_menu_item_flag_green_activate ( GtkMenuItem *menuitem, gpointer user_data);
135void on_menu_item_flag_clear_activate( GtkMenuItem *menuitem, gpointer user_data);
136void on_menu_item_document_goto_start_activate(GtkMenuItem *menuitem, gpointer user_data);
137void on_menu_item_document_goto_end_activate(GtkMenuItem *menuitem, gpointer user_data);
138void on_menu_item_document_goto_line_activate(GtkMenuItem *menuitem, gpointer user_data);
139void on_menu_item_document_list_current_activate ( GtkMenuItem *menuitem, gpointer user_data);
140void on_menu_item_document_list_new_activate ( GtkMenuItem *menuitem, gpointer user_data);
141void on_menu_item_document_list_open_activate ( GtkMenuItem *menuitem, gpointer user_data);
142void on_menuitem_fonding_foldall_activate (GtkMenuItem * menuitem, gpointer user_data);
143/*
144void on_menuitem_highlighting_text_activate (GtkMenuItem * menuitem, gpointer user_data);
145void on_menuitem_highlighting_css_activate (GtkMenuItem * menuitem, gpointer user_data);
146void on_menuitem_highlighting_html_activate(GtkMenuItem * menuitem, gpointer user_data);
147void on_menuitem_highlighting_sh_activate(GtkMenuItem * menuitem, gpointer user_data);	
148void on_menuitem_highlighting_c_activate(GtkMenuItem * menuitem, gpointer user_data);
149void on_menuitem_highlighting_sql_activate(GtkMenuItem * menuitem, gpointer user_data);
150void on_menuitem_highlighting_apache_conf_activate(GtkMenuItem * menuitem, gpointer user_data);
151void on_menuitem_highlighting_perl_activate(GtkMenuItem * menuitem, gpointer user_data);		  
152void on_menuitem_highlighting_python_activate(GtkMenuItem * menuitem, gpointer user_data);
153void on_menuitem_highlighting_xml_activate(GtkMenuItem * menuitem, gpointer user_data);
154void on_menuitem_highlighting_diff_activate(GtkMenuItem * menuitem, gpointer user_data);
155void on_menuitem_highlighting_make_activate(GtkMenuItem * menuitem, gpointer user_data);
156void on_menuitem_highlighting_html_activate(GtkMenuItem * menuitem, gpointer user_data);
157*/	
158void on_menuitem_encoding_default_activate	(GtkMenuItem * menuitem, gpointer user_data);
159void on_menuitem_encoding_utf8_activate(GtkMenuItem * menuitem, gpointer user_data);
160void on_menuitem_encoding_dbcs_activate(GtkMenuItem * menuitem, gpointer user_data);	
161void on_menuitem_charset_ansi_activate(GtkMenuItem * menuitem, gpointer user_data);
162void on_menuitem_charset_easteurope_activate(GtkMenuItem * menuitem, gpointer user_data);
163void on_menuitem_charset_gb2312_activate(GtkMenuItem * menuitem, gpointer user_data);
164void on_menuitem_charset_hangul_activate(GtkMenuItem * menuitem, gpointer user_data);
165void on_menuitem_charset_shiftjis_activate(GtkMenuItem * menuitem, gpointer user_data);  
166void on_menuitem_selector_wizard_activate (GtkMenuItem * menuitem, gpointer user_data);
167void on_menuitem_color_wizard_activate (GtkMenuItem * menuitem, gpointer user_data);
168void on_menuitem_box_wizard_activate (GtkMenuItem * menuitem, gpointer user_data);
169//void on_menu_item_autocompletion_activate     (GtkCheckMenuItem *menuitem,            gpointer user_data);
170void on_menu_scan_selector_activate (GtkMenuItem * menuitem, gpointer user_data);
171void on_menu_doc_info_activate (GtkMenuItem * menuitem, gpointer user_data);
172void on_menu_utils_validate_activate (GtkMenuItem * menuitem, gpointer user_data);
173void on_menu_utils_validate_only_activate (GtkMenuItem * menuitem, gpointer user_data);
174//#ifdef WITH_PLUGINS						  
175void on_plugins_load_activate(GtkMenuItem * menuitem, gpointer user_data);
176//#endif	  
177void on_menu_utils_cleanoutput_activate (GtkMenuItem * menuitem, gpointer user_data);
178void on_menu_autocompletion_activate (GtkMenuItem * menuitem, gpointer user_data);
179void on_show_footer_panel_activate (GtkMenuItem * menuitem, gpointer user_data);
180void on_hide_footer_panel_activate (GtkMenuItem * menuitem, gpointer user_data);
181void on_show_side_panel_activate (GtkMenuItem * menuitem, gpointer user_data);
182void on_hide_side_panel_activate (GtkMenuItem * menuitem, gpointer user_data);
183
184void
185on_output_list_row_activated (	GtkTreeView * treeview, 
186								GtkTreePath * path,
187			      				GtkTreeViewColumn * col, 
188								gpointer user_data );
189
190void
191on_doc_scanner_row_activated ( 	GtkTreeView * treeview, 
192								GtkTreePath * path,
193			      				GtkTreeViewColumn * col,
194								gpointer user_data );
195
196void
197on_doc_scanner_col_numbers_clicked      (GtkTreeViewColumn *treeviewcolumn,
198                                            gpointer user_data);
199void
200on_doc_scanner_col_styles_clicked      (GtkTreeViewColumn *treeviewcolumn,
201                                            gpointer user_data);
202void
203on_doc_scanner_col_file_clicked      (GtkTreeViewColumn *treeviewcolumn,
204                                            gpointer user_data);
205void
206on_doc_scanner_col_path_clicked      (GtkTreeViewColumn *treeviewcolumn,
207                                            gpointer user_data);
208
209void
210on_treeview_css_properties_row_activated (GtkTreeView * treeview,
211					  			GtkTreePath * path,
212					  			GtkTreeViewColumn * col,
213					  			gpointer user_data);
214void on_treeview_css_current_row_activated (GtkTreeView * treeview,
215					    		GtkTreePath * path,
216					    		GtkTreeViewColumn * col,
217					    		gpointer user_data);
218void on_current_css_render_values_edited (GtkCellRendererText * cell,
219					  			gchar * path_string,
220					  			gchar * new_text,
221					  			gpointer user_data);
222void on_notebook_docs_switch_page (GtkNotebook * notebook,
223					  			GtkNotebookPage * page, guint page_num,
224					  			gpointer user_data);
225
226void
227popmenu_autocomp_activate_cb (GtkMenuItem * menuitem, gpointer user_data);
228void
229popmenu_autocomp_event_after_cb (	GtkWidget * widget,
230					  				GdkEvent * event, 
231									gpointer user_data);
232/* file selector funcs */
233void file_selector_close (GtkDialog * dialog, gpointer user_data);
234
235void
236file_selector_cancel_button_clicked (GtkButton * button, gpointer user_data);
237
238/* testing here editor event for the selector scanner and autocompletion lists */
239gboolean
240on_editor_key_press_event (	GtkWidget * widget, 
241							GdkEventKey * event,
242					  		gpointer user_data);
243
244gboolean
245on_editor_button_press_event(GtkWidget *widget, GdkEventButton *event,
246                                                gpointer user_data);
247												
248void on_pop_menu_undo_activate(GtkMenuItem *menuitem, gpointer user_data);	
249void on_pop_menu_redo_activate(GtkMenuItem *menuitem, gpointer user_data);	
250void on_pop_menu_cut_activate(GtkMenuItem *menuitem, gpointer user_data);	
251void on_pop_menu_copy_activate(GtkMenuItem *menuitem, gpointer user_data);	
252void on_pop_menu_paste_activate(GtkMenuItem *menuitem, gpointer user_data);	
253void on_pop_menu_delete_activate(GtkMenuItem *menuitem, gpointer user_data);	
254void on_pop_menu_search_activate(GtkMenuItem *menuitem, gpointer user_data);	
255void on_pop_menu_replace_activate(GtkMenuItem *menuitem, gpointer user_data);	
256void on_pop_menu_selectall_activate(GtkMenuItem *menuitem, gpointer user_data);
257void on_pop_menu_editcolor_activate(GtkMenuItem *menuitem, gpointer user_data);
258void on_editor_grab_focus (GtkWidget * widget, gpointer user_data);
259// new scanner button
260void on_document_scanner_button_clicked (GtkButton *button, gpointer user_data);
261void on_document_scanner_button_append_clicked(GtkButton *button, gpointer user_data);
262void on_document_scanner_button_clean_clicked(GtkButton *button, gpointer user_data);
263#ifdef WITH_TERMINAL
264/* terminal child exited callback */
265void
266on_vte_terminal_child_exited (VteTerminal * vteterminal, gpointer user_data);
267#endif
268/*
269void // PANEDBUG
270on_handle_position_changed (GObject *pane, GParamSpec *pspec, gpointer data);
271*/
272gboolean
273document_scanner_treeview_search_equal_func (GtkTreeModel *model,
274                                             gint column,
275                                             const gchar *key,
276                                             GtkTreeIter *iter,
277                                             gpointer search_data);
278