graph_displayer_canvas.h
branchgui
changeset 21 44bb92014108
parent 20 a3bd39d50930
child 25 c45a34eaa118
     1.1 --- a/graph_displayer_canvas.h	Thu Jun 16 18:58:15 2005 +0000
     1.2 +++ b/graph_displayer_canvas.h	Fri Jun 17 12:25:53 2005 +0000
     1.3 @@ -3,6 +3,8 @@
     1.4  #ifndef GRAPH_DISPLAYER_CANVAS_H
     1.5  #define GRAPH_DISPLAYER_CANVAS_H
     1.6  
     1.7 +class GraphDisplayerCanvas;
     1.8 +
     1.9  #include <all_include.h>
    1.10  #include <mapstorage.h>
    1.11  #include <broken_edge.h>
    1.12 @@ -69,7 +71,14 @@
    1.13    bool create_edge_event_handler(GdkEvent*);
    1.14    ///event handler for the case when eraser-tool is active
    1.15    bool eraser_event_handler(GdkEvent*);
    1.16 +  ///event handler for the case when eraser-tool is active
    1.17 +  bool edge_map_edit_event_handler(GdkEvent*);
    1.18  
    1.19 +public:
    1.20 +  ///\return the actual tool in hand
    1.21 +  int get_actual_tool();
    1.22 +
    1.23 +private:
    1.24    ///Deletes the given element.
    1.25    void delete_item(NodeIt);
    1.26    ///Deletes the given element.
    1.27 @@ -77,6 +86,8 @@
    1.28    ///Deletes the given element.
    1.29    void delete_item(Graph::Edge);
    1.30  
    1.31 +private:
    1.32 +
    1.33    ///The graph, on which we work
    1.34    Graph g;
    1.35  
    1.36 @@ -98,6 +109,9 @@
    1.37    ///Indicates whether the button of mouse is pressed or not
    1.38    int isbutton;
    1.39  
    1.40 +  ///Stores the actual tool in hand
    1.41 +  int actual_tool;
    1.42 +
    1.43    ///At this location was the mousebutton pressed.
    1.44    ///It helps to calculate the distance of dragging.
    1.45    double clicked_x, clicked_y;