gui/new_map_win.h
changeset 1861 5f204c7a1318
parent 1837 8dd6160ff699
child 1887 22fdc00894aa
equal deleted inserted replaced
4:36b1e00e2b13 5:a8dd82730fcc
     4 #define NEWMAPWIN_H
     4 #define NEWMAPWIN_H
     5 
     5 
     6 class NewMapWin;
     6 class NewMapWin;
     7 
     7 
     8 #include <all_include.h>
     8 #include <all_include.h>
     9 #include <main_win.h>
     9 #include <nbtab.h>
    10 #include <libgnomecanvasmm.h>
    10 #include <libgnomecanvasmm.h>
    11 #include <libgnomecanvasmm/polygon.h>
    11 #include <libgnomecanvasmm/polygon.h>
    12 #include <stack>
    12 #include <stack>
    13 
    13 
    14 ///This class is responsible for creating a window,
    14 ///This class is responsible for creating a window,
    15 ///on which the parameters of a new map can be set.
    15 ///on which the parameters of a new map can be set.
    16 
    16 
    17 class NewMapWin : public Gtk::Dialog
    17 class NewMapWin : public Gtk::Dialog
    18 {
    18 {
    19   MainWin & mainwin;
    19   NoteBookTab & mytab;
    20 
    20 
    21 public:
    21 public:
    22   struct tree_node
    22   struct tree_node
    23   {
    23   {
    24     char ch;
    24     char ch;
    25     tree_node * left_child;
    25     tree_node * left_child;
    26     tree_node * right_child;
    26     tree_node * right_child;
    27   };
    27   };
    28   
    28   
    29   ///Constructor of NewMapWin creates the widgets shown in NewMapWin.
    29   ///Constructor of NewMapWin creates the widgets shown in NewMapWin.
    30   NewMapWin(const std::string& title, MainWin &, bool itisedge=true, bool edgenode=true);
    30   NewMapWin(const std::string& title, NoteBookTab &, bool itisedge=true, bool edgenode=true);
    31   
    31   
    32   ///Signal on button is connected to this function,
    32   ///Signal on button is connected to this function,
    33   ///Therefore this function determines whether to
    33   ///Therefore this function determines whether to
    34   ///call the map/creatort function, and if yes, it
    34   ///call the map/creatort function, and if yes, it
    35   //tells it the attributes.(name, default value)
    35   //tells it the attributes.(name, default value)