Fixed wrong use of g_error()
[dia.git] / app / commands.h
blob659ace16e6eb9de65e43f3a5f4979f9fd657620d
1 /* Dia -- an diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 #ifndef COMMANDS_H
19 #define COMMANDS_H
21 #include <gtk/gtk.h>
23 void file_quit_callback(gpointer data, guint action, GtkWidget *widget);
24 void file_pagesetup_callback(gpointer data, guint action, GtkWidget *widget);
25 void file_print_callback(gpointer data, guint action, GtkWidget *widget);
26 void file_close_callback(gpointer data, guint action, GtkWidget *widget);
27 void file_new_callback(gpointer data, guint action, GtkWidget *widget);
28 void file_preferences_callback(gpointer data, guint action, GtkWidget *widget);
30 void help_manual_callback(gpointer data, guint action, GtkWidget *widget);
31 void help_about_callback(gpointer data, guint action, GtkWidget *widget);
33 void edit_copy_callback(gpointer data, guint action, GtkWidget *widget);
34 void edit_cut_callback(gpointer data, guint action, GtkWidget *widget);
35 void edit_paste_callback(gpointer data, guint action, GtkWidget *widget);
36 void edit_duplicate_callback(gpointer data, guint action, GtkWidget *widget);
37 void edit_delete_callback(gpointer data, guint action, GtkWidget *widget);
38 void edit_undo_callback(gpointer data, guint action, GtkWidget *widget);
39 void edit_redo_callback(gpointer data, guint action, GtkWidget *widget);
40 void edit_paste_text_callback(gpointer data, guint action, GtkWidget *widget);
41 void edit_copy_text_callback(gpointer data, guint action, GtkWidget *widget);
42 void edit_cut_text_callback(gpointer data, guint action, GtkWidget *widget);
44 void received_selection_handler(GtkWidget *widget, GtkSelectionData *selection,
45 gpointer data);
46 void get_selection_handler(GtkWidget *widget, GtkSelectionData *selection,
47 gpointer data);
49 void view_zoom_in_callback(gpointer data, guint action, GtkWidget *widget);
50 void view_zoom_out_callback(gpointer data, guint action, GtkWidget *widget);
52 void view_zoom_set_callback(gpointer data, guint action, GtkWidget *widget);
54 void view_unfullscreen(void);
55 void view_fullscreen_callback(gpointer data, guint action, GtkWidget *widget);
57 void view_aa_callback(gpointer data, guint action, GtkWidget *widget);
58 void view_visible_grid_callback (gpointer data, guint action,
59 GtkWidget *widget);
60 void view_snap_to_grid_callback (gpointer data, guint action,
61 GtkWidget *widget);
62 void view_snap_to_objects_callback(gpointer data, guint action,
63 GtkWidget *widget);
64 void view_toggle_rulers_callback(gpointer data, guint action,
65 GtkWidget *widget);
66 void view_show_cx_pts_callback (gpointer data, guint action,
67 GtkWidget *widget);
69 void view_new_view_callback(gpointer data, guint action, GtkWidget *widget);
70 void view_show_all_callback(gpointer data, guint action, GtkWidget *widget);
71 void view_redraw_callback(gpointer data, guint action, GtkWidget *widget);
72 void view_diagram_properties_callback(gpointer data, guint action,
73 GtkWidget *widget);
75 void objects_place_over_callback(gpointer data, guint action,
76 GtkWidget *widget);
77 void objects_place_under_callback(gpointer data, guint action,
78 GtkWidget *widget);
79 void objects_place_up_callback(gpointer data, guint action,
80 GtkWidget *widget);
81 void objects_place_down_callback(gpointer data, guint action,
82 GtkWidget *widget);
83 void objects_parent_callback(gpointer data, guint action, GtkWidget *widget);
84 void objects_unparent_callback(gpointer data, guint action, GtkWidget *widget);
85 void objects_unparent_children_callback(gpointer data, guint action, GtkWidget *widget);
86 void objects_group_callback(gpointer data, guint action, GtkWidget *widget);
87 void objects_ungroup_callback(gpointer data, guint action, GtkWidget *widget);
89 void dialogs_properties_callback(gpointer data, guint action,
90 GtkWidget *widget);
91 void dialogs_layers_callback(gpointer data, guint action, GtkWidget *widget);
93 void objects_align_h_callback(gpointer data, guint action, GtkWidget *widget);
94 void objects_align_v_callback(gpointer data, guint action, GtkWidget *widget);
96 #endif /* COMMANDS_H */