graph_displayer_canvas.h
branchgui
changeset 11 09b2a893fc9d
parent 9 0bb1675306cb
child 13 0b2281cc1e32
equal deleted inserted replaced
4:aea782d6fff5 5:c6740f99023e
    94 
    94 
    95   ///Remembers which Gnome::Canvas::Item was pressed.
    95   ///Remembers which Gnome::Canvas::Item was pressed.
    96   ///this variable is needed, because
    96   ///this variable is needed, because
    97   ///1. we cannot query the item at he cursor as fast as it could not cause a Segmentation Fault
    97   ///1. we cannot query the item at he cursor as fast as it could not cause a Segmentation Fault
    98   ///2. we would like to handle only ony item per movement, therefore quering it is not a working solution
    98   ///2. we would like to handle only ony item per movement, therefore quering it is not a working solution
    99   Gnome::Canvas::Item * active_item;
    99   Gnome::Canvas::Item * active_item, * target_item;
   100   Graph::NodeIt active_node;
   100   Graph::NodeIt active_node;
       
   101   Graph::EdgeIt active_edge;
   101 
   102 
   102   static const int zoom_step = 5;
   103   static const int zoom_step = 5;
   103 };
   104 };
   104 
   105 
   105 #endif //GRAPH_DISPLAYER_CANVAS_H
   106 #endif //GRAPH_DISPLAYER_CANVAS_H