map_win.h
author hegyi
Thu, 12 Jan 2006 13:28:54 +0000
branchgui
changeset 121 637c12cbd64c
parent 112 3689cb170d3e
child 123 a3781bff1032
permissions -rw-r--r--
Documentation of NoteBookTab. Redundant function parameters are removed from other classes as well.
     1 // -*- C++ -*- //
     2 
     3 #ifndef MAP_WIN_H
     4 #define MAP_WIN_H
     5 
     6 class MapWin;
     7 
     8 #include <all_include.h>
     9 #include <nbtab.h>
    10 #include <mapselector.h>
    11 #include <libgnomecanvasmm.h>
    12 #include <libgnomecanvasmm/polygon.h>
    13 
    14 ///This class is responsible for creating a window,
    15 ///on which the visualization attributes can be
    16 ///assigned to maps.
    17 class MapWin : public Gtk::Window
    18 {
    19 protected:
    20   NoteBookTab & mytab;
    21 
    22   Gtk::Table * table;
    23   
    24   MapSelector ** e_combo_array, ** n_combo_array;
    25 
    26   Gtk::Label * label;
    27 
    28   Gtk::VBox vbox;
    29 
    30 public:
    31   ///Constructor of MapWin creates the widgets shown in MapWin.
    32   MapWin(const std::string& title, std::vector<std::string>, std::vector<std::string>, NoteBookTab & mw);
    33 
    34   ~MapWin();
    35 
    36   virtual bool on_delete_event(GdkEventAny *);
    37 
    38   void nodeMapChanged(std::string, int);
    39 
    40   void edgeMapChanged(std::string, int);
    41 
    42   void newMapWinNeeded(bool);
    43 
    44   ///This function inserts name of the new edgemap in the list in the combo box
    45   void registerNewEdgeMap(std::string);
    46 
    47   ///This function inserts name of the new nodemap in the list in the combo box
    48   void registerNewNodeMap(std::string);
    49 
    50   virtual bool closeIfEscapeIsPressed(GdkEventKey*);
    51 
    52   void update(std::vector<std::string>, std::vector<std::string>);
    53 };
    54 
    55 #endif //MAP_WIN_H