COIN-OR::LEMON - Graph Library

Changeset 1502:371aba7d61ca in lemon-0.x for gui


Ignore:
Timestamp:
06/17/05 16:20:49 (15 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1983
Message:

Three commits, one after the other! 81 is my, 82 is my fiancee's, 83 is my younger sister's birthyear :) In this commit Alpar's wish came true: editorial buttons are now available directly on toolbar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/main_win.cc

    r1468 r1502  
    3838      sigc::mem_fun(*this, &MainWin::showEditorials));
    3939
     40  ag->add( Gtk::Action::create("CreateNode", Gtk::Stock::NO),
     41      sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 1) );
     42  ag->add( Gtk::Action::create("CreateEdge", Gtk::Stock::REMOVE),
     43      sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 2) );
     44  ag->add( Gtk::Action::create("EraseItem", Gtk::Stock::DELETE),
     45      sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 3) );
     46  ag->add( Gtk::Action::create("MoveItem", Gtk::Stock::CONVERT),
     47      sigc::bind( sigc::mem_fun ( this->gd_canvas, &GraphDisplayerCanvas::changeEditorialTool ), 0) );
     48
    4049  uim=Gtk::UIManager::create();
    4150  uim->insert_action_group(ag);
     
    7584      "    <toolitem action='ViewZoomFit' />"
    7685      "    <toolitem action='ViewZoom100' />"
     86      "    <separator />"
     87      "    <toolitem action='CreateNode' />"
     88      "    <toolitem action='CreateEdge' />"
     89      "    <toolitem action='EraseItem' />"
     90      "    <toolitem action='MoveItem' />"
    7791      "  </toolbar>"
    7892      "</ui>";
Note: See TracChangeset for help on using the changeset viewer.