nbtab.h
changeset 164 70e3c3646283
parent 157 7e6ad28aeb9e
child 172 fc1e478697d3
equal deleted inserted replaced
4:da463cdb3565 5:ad6ac35f7c6a
     5 
     5 
     6 class NoteBookTab;
     6 class NoteBookTab;
     7 
     7 
     8 #include "mapstorage.h"
     8 #include "mapstorage.h"
     9 #include "map_win.h"
     9 #include "map_win.h"
       
    10 #include "design_win.h"
    10 #include "graph_displayer_canvas.h"
    11 #include "graph_displayer_canvas.h"
    11 #include <libgnomecanvasmm.h>
    12 #include <libgnomecanvasmm.h>
    12 #include <libgnomecanvasmm/polygon.h>
    13 #include <libgnomecanvasmm/polygon.h>
    13 
    14 
    14 ///One tab in the Notebook that is placed in the main window (\ref MainWin).
    15 ///One tab in the Notebook that is placed in the main window (\ref MainWin).
    75   GraphDisplayerCanvas * gd_canvas;
    76   GraphDisplayerCanvas * gd_canvas;
    76 
    77 
    77   ///Indicates whether the \ref MapWin is opened or not. See \ref mapwin.
    78   ///Indicates whether the \ref MapWin is opened or not. See \ref mapwin.
    78   bool mapwinexists;
    79   bool mapwinexists;
    79 
    80 
       
    81   ///Indicates whether the \ref DesignWin is opened or not. See \ref designwin.
       
    82   bool designwinexists;
       
    83 
    80   ///Address of the only \ref MapWin that the \ref NoteBookTab can open.
    84   ///Address of the only \ref MapWin that the \ref NoteBookTab can open.
    81 
    85 
    82   ///Only one of this window can be opened at the same time (\ref mapwinexists), 
    86   ///Only one of this window can be opened at the same time (\ref mapwinexists), 
    83   ///because there is no need for more, one per tab is enough.
    87   ///because there is no need for more, one per tab is enough.
    84   ///There won1t be benefit of more than one, but it would be
    88   ///There won1t be benefit of more than one, but it would be
    85   ///more complicated to synchronize them.
    89   ///more complicated to synchronize them.
    86   MapWin * mapwin;
    90   MapWin * mapwin;
    87     
    91     
       
    92   ///Address of the only \ref DesignWin that the \ref NoteBookTab can open.
       
    93 
       
    94   ///Only one of this window can be opened at the same time (\ref designwinexists), 
       
    95   ///because there is no need for more, one per tab is enough.
       
    96   ///There won't be benefit of more than one, but it would be
       
    97   ///more complicated to synchronize them.
       
    98   DesignWin * designwin;
       
    99 
    88 public:
   100 public:
    89   ///Callback for 'FileNew' action.
   101   ///Callback for 'FileNew' action.
    90   virtual void newFile();
   102   virtual void newFile();
    91   ///Callback for 'FileOpen' action.
   103   ///Callback for 'FileOpen' action.
    92   virtual void openFile();
   104   virtual void openFile();
   149   
   161   
   150   ///See also
   162   ///See also
   151   ///\ref mapwin.
   163   ///\ref mapwin.
   152   void createMapWin(std::string);
   164   void createMapWin(std::string);
   153 
   165 
       
   166   ///Pops up and registrates the \ref DesignWin of \ref NoteBookTab.
       
   167   
       
   168   ///See also
       
   169   ///\ref mapwin.
       
   170   void createDesignWin(std::string);
       
   171 
   154   ///Closes and deregistrates the \ref MapWin of \ref NoteBookTab.
   172   ///Closes and deregistrates the \ref MapWin of \ref NoteBookTab.
   155   
   173   
   156   ///See also
   174   ///See also
   157   ///\ref mapwin.
   175   ///\ref mapwin.
   158   void closeMapWin();
   176   void closeMapWin();
   159 
   177 
       
   178   bool closeDesignWin(GdkEventAny *);
       
   179 
   160   ///Sets node representation settings
   180   ///Sets node representation settings
   161   void setView(bool, bool, double, double);
   181   void setView(bool, bool, double, double);
   162 
   182 
   163   ///Gets node representation settings
   183   ///Gets node representation settings
   164   void getView(bool &, bool &, double&, double&);
   184   void getView(bool &, bool &, double&, double&);
       
   185 
       
   186   void reDesignGraph();
       
   187 
       
   188   void attraction_ch(double);
       
   189 
       
   190   void propulsation_ch(double);
       
   191 
       
   192   void iteration_ch(int);
   165 };
   193 };
   166 
   194 
   167 #endif //NBTAB_H
   195 #endif //NBTAB_H