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