gui/new_map_win.h
author deba
Thu, 01 Sep 2005 12:14:14 +0000
changeset 1672 85e30ec7c957
child 1737 dc821d2668c1
permissions -rw-r--r--
Bug fix.

Default assign operator should be
overrided by that calls the template
assign operator.
hegyi@1593
     1
// -*- C++ -*- //
hegyi@1593
     2
hegyi@1593
     3
#ifndef NEWMAPWIN_H
hegyi@1593
     4
#define NEWMAPWIN_H
hegyi@1593
     5
hegyi@1593
     6
class NewMapWin;
hegyi@1593
     7
hegyi@1593
     8
#include <all_include.h>
hegyi@1593
     9
#include <graph_displayer_canvas.h>
hegyi@1593
    10
#include <libgnomecanvasmm.h>
hegyi@1593
    11
#include <libgnomecanvasmm/polygon.h>
hegyi@1593
    12
hegyi@1593
    13
///This class is responsible for creating a window,
hegyi@1593
    14
///on which the parameters of a new map can be set.
hegyi@1593
    15
hegyi@1593
    16
class NewMapWin : public Gtk::Window
hegyi@1593
    17
{
hegyi@1593
    18
  ///The \ref GraphDisplayerCanvas on which the graph will be drawn.
hegyi@1593
    19
  ///It has to be known for this class, because
hegyi@1593
    20
  ///when a map is created
hegyi@1593
    21
  ///a function of the \ref GraphDisplayerCanvas will be called.
hegyi@1593
    22
  GraphDisplayerCanvas & gdc;
hegyi@1593
    23
hegyi@1593
    24
 public:
hegyi@1593
    25
  ///Constructor of NewMapWin creates the widgets shown in NewMapWin.
hegyi@1593
    26
  NewMapWin(const std::string& title, GraphDisplayerCanvas &);
hegyi@1593
    27
hegyi@1593
    28
hegyi@1593
    29
  ///Signal on button is connected to this function,
hegyi@1593
    30
  ///Therefore this function determines whether to
hegyi@1593
    31
  ///call the map/creatort function, and if yes, it
hegyi@1593
    32
  //tells it the attributes.(name, default value)
hegyi@1593
    33
  virtual void buttonPressed();
hegyi@1593
    34
hegyi@1593
    35
  virtual bool closeIfEscapeIsPressed(GdkEventKey*);
hegyi@1593
    36
hegyi@1593
    37
  Gtk::Entry name, default_value;
hegyi@1593
    38
hegyi@1593
    39
  Gtk::VBox vbox;
hegyi@1593
    40
hegyi@1593
    41
  Gtk::Button * button;
hegyi@1593
    42
hegyi@1593
    43
  Gtk::Table * table;
hegyi@1593
    44
  Gtk::Label * label;
hegyi@1593
    45
hegyi@1593
    46
  Gtk::RadioButton node, edge;
hegyi@1593
    47
};
hegyi@1593
    48
hegyi@1593
    49
#endif //NEWMAPWIN_H