gui/new_map_win.h
author deba
Wed, 26 Oct 2005 10:50:47 +0000
changeset 1741 7a98fe2ed989
parent 1593 a8a007f1c01c
child 1814 0f02ced2e2ba
permissions -rw-r--r--
Some modifications on shortest path algoritms:
- heap traits
- checked execution
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@1737
    35
  virtual void showByPreChoose(bool);
hegyi@1737
    36
hegyi@1593
    37
  virtual bool closeIfEscapeIsPressed(GdkEventKey*);
hegyi@1593
    38
hegyi@1593
    39
  Gtk::Entry name, default_value;
hegyi@1593
    40
hegyi@1593
    41
  Gtk::VBox vbox;
hegyi@1593
    42
hegyi@1593
    43
  Gtk::Button * button;
hegyi@1593
    44
hegyi@1593
    45
  Gtk::Table * table;
hegyi@1593
    46
  Gtk::Label * label;
hegyi@1593
    47
hegyi@1593
    48
  Gtk::RadioButton node, edge;
hegyi@1593
    49
};
hegyi@1593
    50
hegyi@1593
    51
#endif //NEWMAPWIN_H