COIN-OR::LEMON - Graph Library

Changeset 94:adfdc2f70548 in glemon-0.x for map_win.h


Ignore:
Timestamp:
11/29/05 20:31:58 (18 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2389
Message:

Structure of GUI is now more clear-cut than before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • map_win.h

    r90 r94  
    66class MapWin;
    77
    8 #include "all_include.h"
    9 #include "graph_displayer_canvas.h"
    10 #include "mapstorage.h"
    11 #include "new_map_win.h"
     8#include <all_include.h>
     9#include <main_win.h>
    1210#include <libgnomecanvasmm.h>
    1311#include <libgnomecanvasmm/polygon.h>
     
    2220  {
    2321  protected:
    24     GraphDisplayerCanvas & gdc;
    25     ///The \ref MapStorage in which the visualizable maps are stored
    26     MapStorage & ms;
     22    sigc::signal<void, std::string> signal_cbt;
     23    sigc::signal<void, bool> signal_newmapwin;
    2724
    2825    int id;
     
    4239    Gtk::Label * label;
    4340
    44     Node node_to_update;
    45     Edge edge_to_update;
    46 
    47 
    4841  public:
    4942
    50     MapSelector(GraphDisplayerCanvas &, MapStorage &, int, bool);
     43    MapSelector(std::vector<std::string>, int, bool);
    5144
    52     void update_list();
     45    sigc::signal<void, std::string> signal_cbt_ch();
     46    sigc::signal<void, bool> signal_newmapwin_needed();
     47
     48    void update_list( std::vector<std::string> );
    5349
    5450    ///If a radiobutton is clicked, this function determines
     
    6258    virtual void reset();
    6359
    64     virtual void update(Node node);
    65     virtual void update(Edge edge);
    66 
    6760    Glib::ustring get_active_text();
    6861    void set_active_text(Glib::ustring);
     
    7366
    7467protected:
    75   ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
    76   ///It has to be known for this class, because
    77   ///when a map assigned to a certain attribute
    78   ///a function of the \ref GraphDisplayerCanvas will be called.
    79   GraphDisplayerCanvas & gdc;
    80 
    81   ///The \ref MapStorage in which the visualizable maps are stored
    82   MapStorage & ms;
     68  MainWin & mainwin;
    8369
    8470  Gtk::Table * table;
     
    9278public:
    9379  ///Constructor of MapWin creates the widgets shown in MapWin.
    94   MapWin(const std::string& title, MapStorage &, GraphDisplayerCanvas &);
     80  MapWin(const std::string& title, std::vector<std::string>, std::vector<std::string>, MainWin & mw);
    9581
    96   ///This function is created to set the appropriate maps on the newly created node
    97   void updateNode(Graph::Node);
     82  void nodeMapChanged(std::string, int);
    9883
    99   ///This function is created to set the appropriate maps on the newly created edge
    100   void updateEdge(Graph::Edge);
     84  void edgeMapChanged(std::string, int);
     85
     86  void newMapWinNeeded(bool, int);
    10187
    10288  ///This function inserts name of the new edgemap in the list in the combo box
     
    10894  virtual bool closeIfEscapeIsPressed(GdkEventKey*);
    10995
    110   void update();
     96  void update(std::vector<std::string>, std::vector<std::string>);
    11197};
    11298
Note: See TracChangeset for help on using the changeset viewer.