cropper

annotate callbacks.h @ 14:da18f2d4f92f

removed all buttons and stuff from the window; cleaned up
author meillo@marmaro.de
date Thu, 04 Mar 2010 18:31:28 +0100
parents 13bc21684b8a
children
rev   line source
meillo@4 1 #ifndef _CALLBACKS_H_
meillo@4 2 #define _CALLBACKS_H_
meillo@4 3
meillo@0 4 #include <gtk/gtk.h>
meillo@0 5
meillo@3 6 double ratio;
meillo@0 7
meillo@14 8 void crop(void);
meillo@14 9 gboolean on_key_press(GtkWidget* window, GdkEventKey* pKey, gpointer userdata);
meillo@14 10 void on_cropper_window_create(GtkObject* object, gpointer user_data);
meillo@14 11 void on_cropper_window_destroy(GtkObject* object, gpointer user_data);
meillo@14 12
meillo@14 13
meillo@14 14
meillo@4 15 /*
meillo@14 16 gboolean on_cropper_window_delete_event(GtkWidget* widget, GdkEvent *event, gpointer user_data);
meillo@14 17
meillo@14 18 void on_zoom_in_button_clicked(GtkObject* object, gpointer user_data);
meillo@14 19 void on_zoom_out_button_clicked(GtkObject* object, gpointer user_data);
meillo@14 20 void on_zoom_100_button_clicked(GtkObject* object, gpointer user_data);
meillo@14 21 void on_zoom_fit_button_clicked(GtkObject* object, gpointer user_data);
meillo@14 22
meillo@2 23 void on_ratio_none_activate(GtkMenuItem* menuitem, gpointer user_data);
meillo@2 24 void on_ratio_square_activate(GtkMenuItem* menuitem, gpointer user_data);
meillo@2 25 void on_ratio_4x3_activate(GtkMenuItem* menuitem, gpointer user_data);
meillo@2 26 void on_ratio_3x2_activate(GtkMenuItem* menuitem, gpointer user_data);
meillo@2 27 void on_ratio_custom_activate(GtkMenuItem* menuitem, gpointer user_data);
meillo@0 28
meillo@11 29 static void ratio_optionmenu_changed_cb(GtkOptionMenu* optionmenu, gpointer unser_data);
meillo@11 30 static void ratio_value_changed_cb(GtkSpinButton* spin, gpointer unser_data);
meillo@11 31 static void ratio_swap_button_cb(GtkButton* button, gpointer unser_data);
meillo@4 32
meillo@2 33 void on_ratio_w_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data);
meillo@2 34 void on_ratio_w_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data);
meillo@2 35 void on_ratio_h_spinbutton_change_value(GtkSpinButton* spinbutton, GtkScrollType scroll, gpointer user_data);
meillo@2 36 void on_ratio_h_spinbutton_value_changed(GtkSpinButton* spinbutton, gpointer user_data);
meillo@2 37 void on_ratio_swap_button_clicked(GtkButton* button, gpointer user_data);
meillo@4 38 */
meillo@4 39
meillo@13 40
meillo@4 41 #endif