COIN-OR::LEMON - Graph Library

Changeset 37:1dc5b49457c0 in glemon-0.x


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

Initializing adding new maps.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • all_include.h

    r36 r37  
    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
  • graph_displayer_canvas-event.cc

    r35 r37  
    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
  • graph_displayer_canvas.h

    r35 r37  
    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.
  • main_win.cc

    r32 r37  
    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.