COIN-OR::LEMON - Graph Library

Changeset 1468:d0ccb2fdeeff in lemon-0.x for gui/graph_displayer_canvas.h


Ignore:
Timestamp:
06/10/05 13:58:03 (15 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1948
Message:

Hopefully, node creation works well, after a small structural consideration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/graph_displayer_canvas.h

    r1442 r1468  
    4141  void updateScrollRegion();
    4242
     43  ///This function changes the tool in the graph-editor's hand
     44  void changeEditorialTool(int);
     45
    4346protected:
    4447
     
    5255  ///of the canvas
    5356  bool event_handler(GdkEvent* e, Node n);
     57
     58  ///actual event handler
     59  ///
     60  ///Actual event handler should be stored, to be able to disconnect it and later reconnect it.
     61  sigc::connection actual_handler;
     62
     63  ///event handler for the case when move-tool is active
     64  bool move_event_handler(GdkEvent*);
     65  ///event handler for the case when create_node-tool is active
     66  bool create_node_event_handler(GdkEvent*);
     67  ///event handler for the case when create_edge-tool is active
     68  bool create_edge_event_handler(GdkEvent*);
    5469
    5570  ///The graph, on which we work
     
    8398  ///2. we would like to handle only ony item per movement, therefore quering it is not a working solution
    8499  Gnome::Canvas::Item * active_item;
     100  Graph::NodeIt active_node;
    85101
    86102  static const int zoom_step = 5;
Note: See TracChangeset for help on using the changeset viewer.