21 |
21 |
22 class NoteBookTab; |
22 class NoteBookTab; |
23 |
23 |
24 #include "mapstorage.h" |
24 #include "mapstorage.h" |
25 #include "map_win.h" |
25 #include "map_win.h" |
|
26 //#include "eps_win.h" |
|
27 class EpsWin; |
26 #include "design_win.h" |
28 #include "design_win.h" |
27 #include "graph_displayer_canvas.h" |
29 #include "graph_displayer_canvas.h" |
28 #include <libgnomecanvasmm.h> |
30 #include <libgnomecanvasmm.h> |
29 #include <libgnomecanvasmm/polygon.h> |
31 #include <libgnomecanvasmm/polygon.h> |
30 |
32 |
95 bool mapwinexists; |
97 bool mapwinexists; |
96 |
98 |
97 ///Indicates whether the \ref DesignWin is opened or not. See \ref designwin. |
99 ///Indicates whether the \ref DesignWin is opened or not. See \ref designwin. |
98 bool designwinexists; |
100 bool designwinexists; |
99 |
101 |
|
102 ///Indicates whether the \ref EpsWin is opened or not. See \ref epswin. |
|
103 bool epswinexists; |
|
104 |
100 ///Address of the only \ref MapWin that the \ref NoteBookTab can open. |
105 ///Address of the only \ref MapWin that the \ref NoteBookTab can open. |
101 |
106 |
102 ///Only one of this window can be opened at the same time (\ref mapwinexists), |
107 ///Only one of this window can be opened at the same time (\ref mapwinexists), |
103 ///because there is no need for more, one per tab is enough. |
108 ///because there is no need for more, one per tab is enough. |
104 ///There won1t be benefit of more than one, but it would be |
109 ///There won1t be benefit of more than one, but it would be |
110 ///Only one of this window can be opened at the same time (\ref designwinexists), |
115 ///Only one of this window can be opened at the same time (\ref designwinexists), |
111 ///because there is no need for more, one per tab is enough. |
116 ///because there is no need for more, one per tab is enough. |
112 ///There won't be benefit of more than one, but it would be |
117 ///There won't be benefit of more than one, but it would be |
113 ///more complicated to synchronize them. |
118 ///more complicated to synchronize them. |
114 DesignWin * designwin; |
119 DesignWin * designwin; |
|
120 |
|
121 ///Address of the only \ref EpsWin that the \ref NoteBookTab can open. |
|
122 |
|
123 ///Only one of this window can be opened at the same time (\ref epswinexists), |
|
124 ///because there is no need for more, one per tab is enough. |
|
125 ///There won't be benefit of more than one. |
|
126 EpsWin * epswin; |
115 |
127 |
116 public: |
128 public: |
117 ///Callback for 'FileNew' action. |
129 ///Callback for 'FileNew' action. |
118 virtual void newFile(); |
130 virtual void newFile(); |
119 ///Callback for 'FileOpen' action. |
131 ///Callback for 'FileOpen' action. |
183 |
195 |
184 ///See also |
196 ///See also |
185 ///\ref mapwin. |
197 ///\ref mapwin. |
186 void createDesignWin(std::string); |
198 void createDesignWin(std::string); |
187 |
199 |
|
200 ///Pops up a window, that can dump graph to EPS |
|
201 |
|
202 ///Different parameters can be set here. |
|
203 void createExportToEPSWin(std::string); |
|
204 |
188 ///Closes and deregistrates the \ref MapWin of \ref NoteBookTab. |
205 ///Closes and deregistrates the \ref MapWin of \ref NoteBookTab. |
189 |
206 |
190 ///See also |
207 ///See also |
191 ///\ref mapwin. |
208 ///\ref mapwin. |
192 void closeMapWin(); |
209 void closeMapWin(); |
193 |
210 |
|
211 ///Closes and deregistrates the \ref DesignWin of \ref NoteBookTab. |
|
212 |
|
213 ///See also |
|
214 ///\ref designwin. |
194 bool closeDesignWin(GdkEventAny *); |
215 bool closeDesignWin(GdkEventAny *); |
|
216 |
|
217 ///Closes and deregistrates the \ref EpsWin of \ref NoteBookTab. |
|
218 |
|
219 ///See also |
|
220 ///\ref epswin. |
|
221 void closeEpsWin(); |
195 |
222 |
196 ///Sets node representation settings |
223 ///Sets node representation settings |
197 void setView(bool, bool, double, double); |
224 void setView(bool, bool, double, double); |
198 |
225 |
199 ///Gets node representation settings |
226 ///Gets node representation settings |
200 void getView(bool &, bool &, double&, double&); |
227 void getView(bool &, bool &, double&, double&); |
201 |
228 |
202 ///Let the graph redesign, based on gravity and edge elasticity. |
229 ///Let the graph redesign, based on gravity and edge elasticity. |
203 void reDesignGraph(); |
230 void reDesignGraph(); |
|
231 |
|
232 ///Lets Mapstorage export the graph to EPS |
|
233 void exportGraphToEPS(std::vector<bool>, std::string); |
204 |
234 |
205 ///\ref MapWin calls this function when it updates the maplist in comboboxes. |
235 ///\ref MapWin calls this function when it updates the maplist in comboboxes. |
206 void active_maps_needed(); |
236 void active_maps_needed(); |
207 |
237 |
208 private: |
238 private: |