1.1 --- a/nbtab.h Mon Oct 09 08:06:31 2006 +0000
1.2 +++ b/nbtab.h Thu Oct 12 11:39:29 2006 +0000
1.3 @@ -7,6 +7,7 @@
1.4
1.5 #include "mapstorage.h"
1.6 #include "map_win.h"
1.7 +#include "design_win.h"
1.8 #include "graph_displayer_canvas.h"
1.9 #include <libgnomecanvasmm.h>
1.10 #include <libgnomecanvasmm/polygon.h>
1.11 @@ -77,6 +78,9 @@
1.12 ///Indicates whether the \ref MapWin is opened or not. See \ref mapwin.
1.13 bool mapwinexists;
1.14
1.15 + ///Indicates whether the \ref DesignWin is opened or not. See \ref designwin.
1.16 + bool designwinexists;
1.17 +
1.18 ///Address of the only \ref MapWin that the \ref NoteBookTab can open.
1.19
1.20 ///Only one of this window can be opened at the same time (\ref mapwinexists),
1.21 @@ -85,6 +89,14 @@
1.22 ///more complicated to synchronize them.
1.23 MapWin * mapwin;
1.24
1.25 + ///Address of the only \ref DesignWin that the \ref NoteBookTab can open.
1.26 +
1.27 + ///Only one of this window can be opened at the same time (\ref designwinexists),
1.28 + ///because there is no need for more, one per tab is enough.
1.29 + ///There won't be benefit of more than one, but it would be
1.30 + ///more complicated to synchronize them.
1.31 + DesignWin * designwin;
1.32 +
1.33 public:
1.34 ///Callback for 'FileNew' action.
1.35 virtual void newFile();
1.36 @@ -151,17 +163,33 @@
1.37 ///\ref mapwin.
1.38 void createMapWin(std::string);
1.39
1.40 + ///Pops up and registrates the \ref DesignWin of \ref NoteBookTab.
1.41 +
1.42 + ///See also
1.43 + ///\ref mapwin.
1.44 + void createDesignWin(std::string);
1.45 +
1.46 ///Closes and deregistrates the \ref MapWin of \ref NoteBookTab.
1.47
1.48 ///See also
1.49 ///\ref mapwin.
1.50 void closeMapWin();
1.51
1.52 + bool closeDesignWin(GdkEventAny *);
1.53 +
1.54 ///Sets node representation settings
1.55 void setView(bool, bool, double, double);
1.56
1.57 ///Gets node representation settings
1.58 void getView(bool &, bool &, double&, double&);
1.59 +
1.60 + void reDesignGraph();
1.61 +
1.62 + void attraction_ch(double);
1.63 +
1.64 + void propulsation_ch(double);
1.65 +
1.66 + void iteration_ch(int);
1.67 };
1.68
1.69 #endif //NBTAB_H