gui/graph_displayer_canvas.h
changeset 1474 75c6d2eb187a
parent 1468 d0ccb2fdeeff
child 1485 3a1c6678fa23
equal deleted inserted replaced
4:d6b2ffc4503b 5:9d6861c90940
    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