gui/nbtab.h
changeset 1855 c72636dcf0bd
child 1891 56a718d144c4
equal deleted inserted replaced
-1:000000000000 0:e5e77eb8573c
       
     1 // -*- C++ -*- //
       
     2 
       
     3 #ifndef NBTAB_H
       
     4 #define NBTAB_H
       
     5 
       
     6 class NoteBookTab;
       
     7 
       
     8 #include "mapstorage.h"
       
     9 #include "map_win.h"
       
    10 #include "graph_displayer_canvas.h"
       
    11 #include <libgnomecanvasmm.h>
       
    12 #include <libgnomecanvasmm/polygon.h>
       
    13 
       
    14 class NoteBookTab : public Gtk::VBox
       
    15 {
       
    16 public:
       
    17   NoteBookTab();
       
    18   
       
    19   MapStorage mapstorage;
       
    20     
       
    21   sigc::signal<void, std::string> signal_title;
       
    22 
       
    23   sigc::signal<void, std::string> signal_title_ch();
       
    24 
       
    25   sigc::signal<void, NoteBookTab *, bool> signal_newmap;
       
    26 
       
    27   sigc::signal<void, NoteBookTab *, bool> signal_newmap_needed();
       
    28 
       
    29   void readFile(const std::string &);
       
    30     
       
    31   ///The graph will be drawn on this \ref GraphDisplayerCanvas
       
    32   GraphDisplayerCanvas * gd_canvas;
       
    33 
       
    34   bool mapwinexists;
       
    35 
       
    36   MapWin * mapwin;
       
    37     
       
    38 public:
       
    39   ///Callback for 'FileNew' action.
       
    40   virtual void newFile();
       
    41   ///Callback for 'FileOpen' action.
       
    42   virtual void openFile();
       
    43   ///Callback for 'FileSave' action.
       
    44   virtual void saveFile();
       
    45   ///Callback for 'FileSaveAs' action.
       
    46   virtual void saveFileAs();
       
    47   ///Callback for 'Close' action.
       
    48   virtual void close();
       
    49 
       
    50   void propertyChange(bool, int, std::string);
       
    51   void popupNewMapWin(bool, int);
       
    52 
       
    53   std::string getActiveEdgeMap(int);
       
    54   std::string getActiveNodeMap(int);
       
    55 
       
    56   void registerNewEdgeMap(std::string);
       
    57   void registerNewNodeMap(std::string);
       
    58 
       
    59   void createMapWin(std::string);
       
    60   void closeMapWin();
       
    61 };
       
    62 
       
    63 #endif //NBTAB_H