equal
deleted
inserted
replaced
27 |
27 |
28 ///Changes the text of line attribute according to the given map. |
28 ///Changes the text of line attribute according to the given map. |
29 ///\param mapname is the name of the map which contains the new values |
29 ///\param mapname is the name of the map which contains the new values |
30 int changeText (std::string mapname); |
30 int changeText (std::string mapname); |
31 |
31 |
32 ///Changes the dot-pro-pixel to be able to show the whole graph. |
32 ///Callback for 'ViewZoomIn' action. |
33 int rezoom(); |
33 virtual void zoomIn(); |
|
34 ///Callback for 'ViewZoomOut' action. |
|
35 virtual void zoomOut(); |
|
36 ///Callback for 'ViewZoomFit' action. |
|
37 virtual void zoomFit(); |
|
38 ///Callback for 'ViewZoom100' action. |
|
39 virtual void zoom100(); |
|
40 ///Sets the scroll region of the convas to the bounding box of the graph. |
|
41 void updateScrollRegion(); |
34 |
42 |
35 protected: |
43 protected: |
36 |
44 |
37 //maximizing, minimizing, restoring window, etc. |
45 //maximizing, minimizing, restoring window, etc. |
38 virtual bool on_expose_event(GdkEventExpose *); |
46 virtual bool on_expose_event(GdkEventExpose *); |
73 ///this variable is needed, because |
81 ///this variable is needed, because |
74 ///1. we cannot query the item at he cursor as fast as it could not cause a Segmentation Fault |
82 ///1. we cannot query the item at he cursor as fast as it could not cause a Segmentation Fault |
75 ///2. we would like to handle only ony item per movement, therefore quering it is not a working solution |
83 ///2. we would like to handle only ony item per movement, therefore quering it is not a working solution |
76 Gnome::Canvas::Item * active_item; |
84 Gnome::Canvas::Item * active_item; |
77 |
85 |
78 |
86 static const int zoom_step = 5; |
79 }; |
87 }; |
80 |
88 |
81 #endif //GRAPH_DISPLAYER_CANVAS_H |
89 #endif //GRAPH_DISPLAYER_CANVAS_H |