COIN-OR::LEMON - Graph Library

Changeset 1585:0e3ef435bdc3 in lemon-0.x


Ignore:
Timestamp:
07/25/05 12:33:03 (14 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2088
Message:

Initializing adding new maps.

Location:
gui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • gui/all_include.h

    r1581 r1585  
    2323#define WIN_WIDTH 900
    2424#define WIN_HEIGHT 600
    25 #define ALMOST_ONE 0.99999999999999
     25#define ALMOST_ONE 0.9999999999
    2626
    2727#ifndef MAIN_PART
  • gui/graph_displayer_canvas-event.cc

    r1579 r1585  
    804804}
    805805
     806void GraphDisplayerCanvas::addNewEdgeMap()
     807{
     808  std::cout << "Add New EdgeMap is not yet implemented." << std::endl;
     809}
     810
     811void GraphDisplayerCanvas::addNewNodeMap()
     812{
     813  std::cout << "Add New NodeMap is not yet implemented." << std::endl;
     814}
     815
  • gui/graph_displayer_canvas.h

    r1579 r1585  
    110110  int getActualTool();
    111111
     112  ///creates a new Nodemap
     113  void addNewNodeMap();
     114  ///creates a new Edgemap
     115  void addNewEdgeMap();
     116
    112117private:
    113118  ///Deletes the given element.
  • gui/main_win.cc

    r1550 r1585  
    5050  ag->add( Gtk::Action::create("EditNodeMap", Gtk::Stock::PREFERENCES),
    5151      sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 5) );
     52  ag->add( Gtk::Action::create("AddEdgeMap", Gtk::Stock::NEW),
     53      sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::addNewEdgeMap ) );
     54  ag->add( Gtk::Action::create("AddNodeMap", Gtk::Stock::NEW),
     55      sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::addNewNodeMap ) );
    5256
    5357  uim=Gtk::UIManager::create();
     
    9599      "    <toolitem action='EditEdgeMap' />"
    96100      "    <toolitem action='EditNodeMap' />"
     101      "    <toolitem action='AddEdgeMap' />"
     102      "    <toolitem action='AddNodeMap' />"
    97103      "  </toolbar>"
    98104      "</ui>";
Note: See TracChangeset for help on using the changeset viewer.