1.1 --- a/graph_displayer_canvas.h Fri May 27 10:34:20 2005 +0000
1.2 +++ b/graph_displayer_canvas.h Wed Jun 01 23:30:13 2005 +0000
1.3 @@ -29,8 +29,16 @@
1.4 ///\param mapname is the name of the map which contains the new values
1.5 int changeText (std::string mapname);
1.6
1.7 - ///Changes the dot-pro-pixel to be able to show the whole graph.
1.8 - int rezoom();
1.9 + ///Callback for 'ViewZoomIn' action.
1.10 + virtual void zoomIn();
1.11 + ///Callback for 'ViewZoomOut' action.
1.12 + virtual void zoomOut();
1.13 + ///Callback for 'ViewZoomFit' action.
1.14 + virtual void zoomFit();
1.15 + ///Callback for 'ViewZoom100' action.
1.16 + virtual void zoom100();
1.17 + ///Sets the scroll region of the convas to the bounding box of the graph.
1.18 + void updateScrollRegion();
1.19
1.20 protected:
1.21
1.22 @@ -75,7 +83,7 @@
1.23 ///2. we would like to handle only ony item per movement, therefore quering it is not a working solution
1.24 Gnome::Canvas::Item * active_item;
1.25
1.26 -
1.27 + static const int zoom_step = 5;
1.28 };
1.29
1.30 #endif //GRAPH_DISPLAYER_CANVAS_H