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