COIN-OR::LEMON - Graph Library

Changeset 1819:fd82adfbe905 in lemon-0.x for gui/map_win.h


Ignore:
Timestamp:
11/21/05 13:07:05 (18 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2368
Message:

Reorganizing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/map_win.h

    r1733 r1819  
    1010#include "mapstorage.h"
    1111#include "new_map_win.h"
    12 #include "mapselector.h"
    1312#include <libgnomecanvasmm.h>
    1413#include <libgnomecanvasmm/polygon.h>
     
    1918class MapWin : public Gtk::Window
    2019{
     20
     21  class MapSelector : public Gtk::HBox
     22  {
     23  protected:
     24    GraphDisplayerCanvas & gdc;
     25    ///The \ref MapStorage in which the visualizable maps are stored
     26    MapStorage & ms;
     27    NewMapWin & nmw;
     28
     29    int id;
     30
     31    bool itisedge;
     32
     33    bool default_state;
     34
     35    bool set_new_map;
     36
     37    Gtk::ComboBoxText cbt;
     38
     39    Gtk::Button * newbut, * defbut;
     40
     41    Gtk::HBox hbox;
     42
     43    Gtk::Label * label;
     44
     45    Node node_to_update;
     46    Edge edge_to_update;
     47
     48
     49  public:
     50
     51    MapSelector(GraphDisplayerCanvas &, MapStorage &, NewMapWin &, int, bool);
     52
     53    void update_list();
     54
     55    ///If a radiobutton is clicked, this function determines
     56    ///which button was that and after that calls the
     57    ///appropriate function of the \ref GraphDisplayerCanvas
     58    ///to change the visible values of that attribute.
     59    virtual void comboChanged();
     60
     61    virtual void new_but_pressed();
     62
     63    virtual void reset();
     64
     65    virtual void update(Node node);
     66    virtual void update(Edge edge);
     67
     68    Glib::ustring get_active_text();
     69    void set_active_text(Glib::ustring);
     70    void append_text(Glib::ustring);
     71  };
     72
     73
     74
    2175protected:
    2276  ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
Note: See TracChangeset for help on using the changeset viewer.