equal
deleted
inserted
replaced
33 class NewMapWin : public Gtk::Dialog |
33 class NewMapWin : public Gtk::Dialog |
34 { |
34 { |
35 ///The \ref NoteBookTab in which the new map has to be placed. |
35 ///The \ref NoteBookTab in which the new map has to be placed. |
36 NoteBookTab & mytab; |
36 NoteBookTab & mytab; |
37 |
37 |
|
38 MapType map_type; |
|
39 Gtk::Label lblType; |
|
40 Gtk::ComboBoxText cbType; |
|
41 |
|
42 Gtk::Label lblErrorMsg; |
|
43 void setErrorMsg(const Glib::ustring& msg); |
|
44 |
|
45 std::vector<double>* evaluate_expr(const std::string polishform, bool itisedge); |
|
46 |
38 public: |
47 public: |
39 |
48 |
40 ///Struct to be able to evaluate expressions. |
49 ///Struct to be able to evaluate expressions. |
41 |
50 |
42 ///Initial values of map elements can be given |
51 ///Initial values of map elements can be given |
57 |
66 |
58 ///Constructor of NewMapWin. |
67 ///Constructor of NewMapWin. |
59 |
68 |
60 ///It creates the widgets shown in |
69 ///It creates the widgets shown in |
61 ///NewMapWin. |
70 ///NewMapWin. |
62 NewMapWin(const std::string& title, NoteBookTab &, bool itisedge=true, bool edgenode=true); |
71 NewMapWin(const std::string& title, NoteBookTab &, bool itisedge=true, bool edgenode=true, MapType type = ALL); |
63 |
72 |
64 ///Callback function for OK button. It creates the map. |
73 ///Callback function for OK button. It creates the map. |
65 |
74 |
66 ///This function determines whether the input is correct: |
75 ///This function determines whether the input is correct: |
67 ///the name of new map must not be already used, the expression |
76 ///the name of new map must not be already used, the expression |