Initializing adding new maps.
authorhegyi
Mon, 25 Jul 2005 10:33:03 +0000
changeset 15850e3ef435bdc3
parent 1584 cf4bc8d477f4
child 1586 1a8630f2e944
Initializing adding new maps.
gui/all_include.h
gui/graph_displayer_canvas-event.cc
gui/graph_displayer_canvas.h
gui/main_win.cc
     1.1 --- a/gui/all_include.h	Fri Jul 22 16:57:07 2005 +0000
     1.2 +++ b/gui/all_include.h	Mon Jul 25 10:33:03 2005 +0000
     1.3 @@ -22,7 +22,7 @@
     1.4  #define RANGE 3
     1.5  #define WIN_WIDTH 900
     1.6  #define WIN_HEIGHT 600
     1.7 -#define ALMOST_ONE 0.99999999999999
     1.8 +#define ALMOST_ONE 0.9999999999
     1.9  
    1.10  #ifndef MAIN_PART
    1.11  extern std::vector <std::string> edge_property_strings;
     2.1 --- a/gui/graph_displayer_canvas-event.cc	Fri Jul 22 16:57:07 2005 +0000
     2.2 +++ b/gui/graph_displayer_canvas-event.cc	Mon Jul 25 10:33:03 2005 +0000
     2.3 @@ -803,3 +803,13 @@
     2.4  
     2.5  }
     2.6  
     2.7 +void GraphDisplayerCanvas::addNewEdgeMap()
     2.8 +{
     2.9 +  std::cout << "Add New EdgeMap is not yet implemented." << std::endl;
    2.10 +}
    2.11 +
    2.12 +void GraphDisplayerCanvas::addNewNodeMap()
    2.13 +{
    2.14 +  std::cout << "Add New NodeMap is not yet implemented." << std::endl;
    2.15 +}
    2.16 +
     3.1 --- a/gui/graph_displayer_canvas.h	Fri Jul 22 16:57:07 2005 +0000
     3.2 +++ b/gui/graph_displayer_canvas.h	Mon Jul 25 10:33:03 2005 +0000
     3.3 @@ -109,6 +109,11 @@
     3.4    ///\return the actual tool in hand
     3.5    int getActualTool();
     3.6  
     3.7 +  ///creates a new Nodemap
     3.8 +  void addNewNodeMap();
     3.9 +  ///creates a new Edgemap
    3.10 +  void addNewEdgeMap();
    3.11 +
    3.12  private:
    3.13    ///Deletes the given element.
    3.14    void deleteItem(NodeIt);
     4.1 --- a/gui/main_win.cc	Fri Jul 22 16:57:07 2005 +0000
     4.2 +++ b/gui/main_win.cc	Mon Jul 25 10:33:03 2005 +0000
     4.3 @@ -49,6 +49,10 @@
     4.4        sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 4) );
     4.5    ag->add( Gtk::Action::create("EditNodeMap", Gtk::Stock::PREFERENCES),
     4.6        sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 5) );
     4.7 +  ag->add( Gtk::Action::create("AddEdgeMap", Gtk::Stock::NEW),
     4.8 +      sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::addNewEdgeMap ) );
     4.9 +  ag->add( Gtk::Action::create("AddNodeMap", Gtk::Stock::NEW),
    4.10 +      sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::addNewNodeMap ) );
    4.11  
    4.12    uim=Gtk::UIManager::create();
    4.13    uim->insert_action_group(ag);
    4.14 @@ -94,6 +98,8 @@
    4.15        "    <toolitem action='MoveItem' />"
    4.16        "    <toolitem action='EditEdgeMap' />"
    4.17        "    <toolitem action='EditNodeMap' />"
    4.18 +      "    <toolitem action='AddEdgeMap' />"
    4.19 +      "    <toolitem action='AddNodeMap' />"
    4.20        "  </toolbar>"
    4.21        "</ui>";
    4.22