44 #define GTKWINDOW_HPP 1
66 GtkWidget *_trackwindow;
67 GtkWidget *_tracklabel;
70 cairo_surface_t *_surface;
76 void hardcopy(
void );
77 void move(
int action,
double x,
double y );
78 void track(
int action,
double x,
double y );
79 void zoom_out(
double x,
double y );
80 void zoom_in(
double x,
double y );
81 void zoom_window(
int action,
double x,
double y );
83 void darea_motion( GdkEventMotion *event );
84 void darea_enter( GdkEventCrossing *event );
85 void darea_leave( GdkEventCrossing *event );
86 void darea_button( GdkEventButton *event );
87 void configure(
void );
88 void derea_button( GdkEventButton *event );
89 void delete_window(
void );
90 void menuitem_tool_change( GtkToolButton *button );
91 void menuitem_preferences( GtkMenuItem *menuitem );
93 static gboolean window_delete_signal( GtkWidget *widget,
94 GdkEventExpose *event,
97 static void menuitem_quit_signal( GtkMenuItem *menuitem,
99 static void menuitem_tool_change_signal( GtkToolButton *button,
101 static void menuitem_hardcopy_signal( GtkToolButton *button,
103 static void menuitem_zoom_fit_signal( GtkToolButton *button,
105 static void menuitem_preferences_signal( GtkMenuItem *menuitem,
108 static gboolean darea_configure_signal( GtkWidget *widget,
109 GdkEventConfigure *event,
111 static gboolean darea_expose_signal( GtkWidget *widget,
112 GdkEventExpose *event,
114 static gboolean darea_button_signal( GtkWidget *widget,
115 GdkEventButton *event,
117 static gboolean darea_motion_signal( GtkWidget *widget,
118 GdkEventMotion *event,
120 static gboolean darea_enter_signal( GtkWidget *widget,
121 GdkEventCrossing *event,
123 static gboolean darea_leave_signal( GtkWidget *widget,
124 GdkEventCrossing *event,
154 virtual std::string
track_text(
double x,
double y );
156 void expose(
int x,
int y,
int width,
int height );