diff -r e099638ff236 -r b7c36be1e35c graph_displayer_canvas.h --- a/graph_displayer_canvas.h Fri May 27 10:34:20 2005 +0000 +++ b/graph_displayer_canvas.h Wed Jun 01 23:30:13 2005 +0000 @@ -29,8 +29,16 @@ ///\param mapname is the name of the map which contains the new values int changeText (std::string mapname); - ///Changes the dot-pro-pixel to be able to show the whole graph. - int rezoom(); + ///Callback for 'ViewZoomIn' action. + virtual void zoomIn(); + ///Callback for 'ViewZoomOut' action. + virtual void zoomOut(); + ///Callback for 'ViewZoomFit' action. + virtual void zoomFit(); + ///Callback for 'ViewZoom100' action. + virtual void zoom100(); + ///Sets the scroll region of the convas to the bounding box of the graph. + void updateScrollRegion(); protected: @@ -75,7 +83,7 @@ ///2. we would like to handle only ony item per movement, therefore quering it is not a working solution Gnome::Canvas::Item * active_item; - + static const int zoom_step = 5; }; #endif //GRAPH_DISPLAYER_CANVAS_H