gui/map_win.h
author hegyi
Fri, 06 Jan 2006 16:07:08 +0000
changeset 1884 9c061834b33b
parent 1849 a4d1362397fe
child 1891 56a718d144c4
permissions -rw-r--r--
In algorithm window maps can be selected and reated through MapSelector widget.
ladanyi@1442
     1
// -*- C++ -*- //
ladanyi@1442
     2
ladanyi@1442
     3
#ifndef MAP_WIN_H
ladanyi@1442
     4
#define MAP_WIN_H
ladanyi@1442
     5
hegyi@1512
     6
class MapWin;
hegyi@1512
     7
hegyi@1837
     8
#include <all_include.h>
hegyi@1849
     9
#include <nbtab.h>
hegyi@1882
    10
#include <mapselector.h>
ladanyi@1442
    11
#include <libgnomecanvasmm.h>
ladanyi@1442
    12
#include <libgnomecanvasmm/polygon.h>
ladanyi@1442
    13
ladanyi@1442
    14
///This class is responsible for creating a window,
ladanyi@1442
    15
///on which the visualization attributes can be
ladanyi@1442
    16
///assigned to maps.
ladanyi@1442
    17
class MapWin : public Gtk::Window
ladanyi@1442
    18
{
ladanyi@1442
    19
protected:
hegyi@1849
    20
  NoteBookTab & mytab;
ladanyi@1442
    21
hegyi@1512
    22
  Gtk::Table * table;
ladanyi@1442
    23
  
hegyi@1731
    24
  MapSelector ** e_combo_array, ** n_combo_array;
ladanyi@1442
    25
hegyi@1446
    26
  Gtk::Label * label;
ladanyi@1442
    27
hegyi@1512
    28
  Gtk::VBox vbox;
hegyi@1512
    29
ladanyi@1442
    30
public:
ladanyi@1442
    31
  ///Constructor of MapWin creates the widgets shown in MapWin.
hegyi@1849
    32
  MapWin(const std::string& title, std::vector<std::string>, std::vector<std::string>, NoteBookTab & mw);
ladanyi@1442
    33
hegyi@1838
    34
  ~MapWin();
hegyi@1838
    35
hegyi@1838
    36
  virtual bool on_delete_event(GdkEventAny *);
hegyi@1838
    37
hegyi@1837
    38
  void nodeMapChanged(std::string, int);
hegyi@1512
    39
hegyi@1837
    40
  void edgeMapChanged(std::string, int);
hegyi@1837
    41
hegyi@1837
    42
  void newMapWinNeeded(bool, int);
hegyi@1512
    43
hegyi@1586
    44
  ///This function inserts name of the new edgemap in the list in the combo box
hegyi@1586
    45
  void registerNewEdgeMap(std::string);
hegyi@1586
    46
hegyi@1586
    47
  ///This function inserts name of the new nodemap in the list in the combo box
hegyi@1586
    48
  void registerNewNodeMap(std::string);
hegyi@1586
    49
hegyi@1524
    50
  virtual bool closeIfEscapeIsPressed(GdkEventKey*);
hegyi@1586
    51
hegyi@1837
    52
  void update(std::vector<std::string>, std::vector<std::string>);
ladanyi@1442
    53
};
ladanyi@1442
    54
ladanyi@1442
    55
#endif //MAP_WIN_H