COIN-OR::LEMON - Graph Library

Changeset 162:aaa517c9dc23 in glemon-0.x


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

Dijkstra in GUI.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r160 r162  
    4545        gettext.h \
    4646        design_win.h \
    47         design_win.cc
     47        design_win.cc \
     48        dijkstrabox.h \
     49        dijkstrabox.cc
    4850
    4951glemon_CXXFLAGS = $(GTK_CFLAGS) $(LEMON_CFLAGS)
  • algobox.cc

    r116 r162  
    8282      //update_cbt(eml, *(edgemapcbts[i]));
    8383    }
     84  signal_maplist_updated.emit();
    8485}
    8586
  • algobox.h

    r125 r162  
    4545  ///In that case will be this signal emitted.
    4646  sigc::signal<void, std::string, bool> signal_newmapwin_need;
     47
     48  ///Signal emitted when maplists are updated after tab change
     49  sigc::signal<void> signal_maplist_updated;
     50
    4751
    4852protected:
     
    97101  ///Emitted if user wants to create a new map for inpuit or output.
    98102  sigc::signal<void, std::string, bool> signal_newmapwin_needed(){return signal_newmapwin_need;};
     103
     104  sigc::signal<void> signal_upon_maplist_updated(){return signal_maplist_updated;};
    99105
    100106  ///Emits signal that requires list of maps for the recently selected \ref NoteBookTab.
  • algowin.cc

    r114 r162  
    11#include <algowin.h>
    22#include <kruskalbox.h>
     3#include <dijkstrabox.h>
    34
    45sigc::signal<void, AlgoWin *> AlgoWin::signal_closing()
     
    3940      ab=new KruskalBox(tabnames);
    4041      set_title("Kruskal Algorithm");
     42      break;
     43    case 2:
     44      ab=new DijkstraBox(tabnames);
     45      set_title("Dijkstra Algorithm");
    4146      break;
    4247    default:
  • main_win.cc

    r160 r162  
    108108  ag->add( Gtk::Action::create("AlgoKruskal", _("_Kruskal")),
    109109           sigc::bind( sigc::mem_fun ( *this, &MainWin::createAlgoWin ), 1) );
     110  ag->add( Gtk::Action::create("AlgoDijkstra", _("_Dijkstra")),
     111           sigc::bind( sigc::mem_fun ( *this, &MainWin::createAlgoWin ), 2) );
    110112
    111113  Gtk::RadioAction::Group tool_group;
     
    160162      "      <menuitem action='AlgoGeneral'/>"
    161163      "      <menuitem action='AlgoKruskal'/>"
     164      "      <menuitem action='AlgoDijkstra'/>"
    162165      "    </menu>"
    163166      "  </menubar>"
Note: See TracChangeset for help on using the changeset viewer.