gui/graph_displayer_canvas.h
changeset 1579 ed7da82bbecf
parent 1562 73c3f5d0079c
child 1585 0e3ef435bdc3
equal deleted inserted replaced
16:14d6628b48b5 17:55475ecb766f
    95 
    95 
    96 public:
    96 public:
    97   ///Moves the text to new place
    97   ///Moves the text to new place
    98   void textReposition(xy<double>);
    98   void textReposition(xy<double>);
    99   ///Activates an edge belonging to a BrokenEdge
    99   ///Activates an edge belonging to a BrokenEdge
       
   100   ///
       
   101   ///After we have activated an edge this way,
       
   102   ///the GDC object will know, which edge is under forming
       
   103   ///therefore it can redraw the necessarz elementy on the canvas,
       
   104   ///for example the text belonging to the \ref BrokenEdge can be
       
   105   ///redrawn (\ref textReposition).
   100   void toggleEdgeActivity(BrokenEdge*, bool);
   106   void toggleEdgeActivity(BrokenEdge*, bool);
   101 
   107 
   102 public:
   108 public:
   103   ///\return the actual tool in hand
   109   ///\return the actual tool in hand
   104   int getActualTool();
   110   int getActualTool();
   155   ///1. we cannot query the item at he cursor as fast as it could not cause a Segmentation Fault
   161   ///1. we cannot query the item at he cursor as fast as it could not cause a Segmentation Fault
   156   ///2. we would like to handle only ony item per movement, therefore quering it is not a working solution
   162   ///2. we would like to handle only ony item per movement, therefore quering it is not a working solution
   157   Gnome::Canvas::Item * active_item, * target_item;
   163   Gnome::Canvas::Item * active_item, * target_item;
   158   Graph::NodeIt active_node;
   164   Graph::NodeIt active_node;
   159   Graph::EdgeIt active_edge;
   165   Graph::EdgeIt active_edge;
       
   166   Graph::EdgeIt forming_edge;
       
   167 
       
   168   std::string nodemap_to_edit, edgemap_to_edit;
   160 
   169 
   161   static const int zoom_step = 5;
   170   static const int zoom_step = 5;
   162 
   171 
   163   ///We need to store mapwin, to be able to ask the appropriate values for properties of new items.
   172   ///We need to store mapwin, to be able to ask the appropriate values for properties of new items.
   164   MapWin * mapwin;
   173   MapWin * mapwin;