43 #ifndef GTKFRAMEWINDOW_HPP
44 #define GTKFRAMEWINDOW_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 );
88 void configure(
void );
89 void delete_window(
void );
91 void menuitem_tool_change( GtkToolButton *button );
92 void menuitem_preferences( GtkMenuItem *menuitem );
94 void frame_draw(
void );
96 static gboolean window_delete_signal( GtkWidget *widget,
97 GdkEventExpose *event,
100 static void menuitem_quit_signal( GtkMenuItem *menuitem,
102 static void menuitem_tool_change_signal( GtkToolButton *button,
104 static void menuitem_hardcopy_signal( GtkToolButton *button,
106 static void menuitem_zoom_fit_signal( GtkToolButton *button,
108 static void menuitem_preferences_signal( GtkMenuItem *menuitem,
111 static gboolean darea_configure_signal( GtkWidget *widget,
112 GdkEventConfigure *event,
114 static gboolean darea_draw_signal( GtkWidget *widget,
117 static gboolean darea_button_signal( GtkWidget *widget,
118 GdkEventButton *event,
120 static gboolean darea_motion_signal( GtkWidget *widget,
121 GdkEventMotion *event,
123 static gboolean darea_enter_signal( GtkWidget *widget,
124 GdkEventCrossing *event,
126 static gboolean darea_leave_signal( GtkWidget *widget,
127 GdkEventCrossing *event,
138 GtkWidget *_menu_file;
140 GtkWidget *_statusbar;
142 GtkToolItem *_radioitem;
150 virtual void zoom_fit(
void );
157 virtual std::string
track_text(
double x,
double y );
159 void draw( cairo_t *cairo );
160 void expose(
int x,
int y,
int width,
int height );
168 virtual void *build_preferences( GtkWidget *notebook );
169 virtual void read_preferences( GtkWidget *notebook,
void *pdata );
171 void draw_and_expose(
void );
GTK Plotter class.
Definition: gtkplotter.hpp:66
virtual std::string track_text(double x, double y)
Function which providies tracking text at (x,y)
Definition: gtkframewindow.cpp:324
virtual ~GTKFrameWindow()
Destructor.
Definition: gtkframewindow.cpp:236
Base class for interactive plotters.
Definition: gtkwindow.hpp:49
Base for three dimensional plottable graphs.
General purpose plotter frame for cairographics surfaces.
Definition: frame.hpp:107
Base class for interactive plotters.
Definition: gtkframewindow.hpp:61