43 #ifndef GTKFRAMEWINDOW_HPP
44 #define GTKFRAMEWINDOW_HPP 1
66 GtkWidget *_trackwindow;
67 GtkWidget *_tracklabel;
70 cairo_surface_t *_surface;
72 void hardcopy(
void );
73 void move(
int action,
double x,
double y );
74 void track(
int action,
double x,
double y );
75 void zoom_out(
double x,
double y );
76 void zoom_in(
double x,
double y );
77 void zoom_window(
int action,
double x,
double y );
79 void darea_motion( GdkEventMotion *event );
80 void darea_enter( GdkEventCrossing *event );
81 void darea_leave( GdkEventCrossing *event );
82 void darea_button( GdkEventButton *event );
84 void configure(
void );
85 void delete_window(
void );
87 void menuitem_tool_change( GtkToolButton *button );
88 void menuitem_preferences( GtkMenuItem *menuitem );
90 void frame_draw(
void );
92 static gboolean window_delete_signal( GtkWidget *widget,
93 GdkEventExpose *event,
96 static void menuitem_quit_signal( GtkMenuItem *menuitem,
98 static void menuitem_tool_change_signal( GtkToolButton *button,
100 static void menuitem_hardcopy_signal( GtkToolButton *button,
102 static void menuitem_zoom_fit_signal( GtkToolButton *button,
104 static void menuitem_preferences_signal( GtkMenuItem *menuitem,
107 static gboolean darea_configure_signal( GtkWidget *widget,
108 GdkEventConfigure *event,
110 static gboolean darea_draw_signal( GtkWidget *widget,
113 static gboolean darea_button_signal( GtkWidget *widget,
114 GdkEventButton *event,
116 static gboolean darea_motion_signal( GtkWidget *widget,
117 GdkEventMotion *event,
119 static gboolean darea_enter_signal( GtkWidget *widget,
120 GdkEventCrossing *event,
122 static gboolean darea_leave_signal( GtkWidget *widget,
123 GdkEventCrossing *event,
134 GtkWidget *_menu_file;
136 GtkWidget *_statusbar;
138 GtkToolItem *_radioitem;
150 virtual void zoom_fit(
void );
157 virtual std::string
track_text(
double x,
double y );
159 void draw( cairo_t *cairo );
168 virtual void *build_preferences( GtkWidget *notebook );
169 virtual void read_preferences( GtkWidget *notebook,
void *pdata );
171 void draw_and_expose(
void );
General purpose plotter frame for cairographics surfaces.
Definition: frame.hpp:107
Base class for interactive plotters.
Definition: gtkframewindow.hpp:61
int _end[2]
Tool specific coordinates.
Definition: gtkframewindow.hpp:144
int _draw_action
Flag for toll specific draw actions.
Definition: gtkframewindow.hpp:146
virtual std::string track_text(double x, double y)
Function which providies tracking text at (x,y)
Definition: gtkframewindow.cpp:343
virtual ~GTKFrameWindow()
Destructor.
Definition: gtkframewindow.cpp:237
int _start[2]
Tool specific coordinates.
Definition: gtkframewindow.hpp:143
int _tool
Selected tool.
Definition: gtkframewindow.hpp:145
GTK Plotter class.
Definition: gtkplotter.hpp:66
Base class for interactive plotters.
Definition: gtkwindow.hpp:49
Base for three dimensional plottable graphs.