25 #ifndef GCHEMPAINT_VIEW_H
26 #define GCHEMPAINT_VIEW_H
51 #define GCHEMPAINT_ATOM_NAME "application/x-gchempaint"
52 extern GtkTargetEntry
const targets[];
176 bool OnKeyPress (GtkWidget* w, GdkEventKey* event);
205 void OnReceive (GtkClipboard* clipboard, GtkSelectionData* selection_data);
228 void ExportImage (std::string
const &filename,
const char* type,
int resolution = -1);
255 void Zoom (
double zoom);
271 void Render (cairo_t *cr);
295 GtkWidget* m_pWidget;
296 std::list<GtkWidget*> m_Widgets;
297 PangoFontDescription* m_PangoFontDesc, *m_PangoSmallFontDesc;
298 double m_dFontHeight;
299 gchar* m_sFontName, *m_sSmallFontName;
300 int m_width, m_height;
301 double m_lastx, m_lasty;
303 GtkUIManager *m_UIManager;
334 void on_receive (GtkClipboard *clipboard, GtkSelectionData *selection_data,
View * pView);
338 #endif // GCHEMPAINT_VIEW_H