mapstorage.h
changeset 184 4e8704aae278
parent 177 40f3006fba2e
child 191 af2ed974ab68
     1.1 --- a/mapstorage.h	Thu Dec 28 15:31:39 2006 +0000
     1.2 +++ b/mapstorage.h	Wed Jan 10 14:37:46 2007 +0000
     1.3 @@ -25,6 +25,8 @@
     1.4  #include "xymap.h"
     1.5  #include <libgnomecanvasmm.h>
     1.6  
     1.7 +class NoteBookTab;
     1.8 +
     1.9  ///class MapStorage handles NodeMaps and EdgeMaps.
    1.10  
    1.11  ///Class MapStorage is responsible for storing
    1.12 @@ -38,10 +40,17 @@
    1.13  ///\todo too many things are public!!
    1.14  class MapStorage
    1.15  {
    1.16 +private:
    1.17 +  std::string background_file_name;
    1.18 +  bool background_set;
    1.19 +  double background_scaling;
    1.20 +  NoteBookTab& mytab;
    1.21  public:
    1.22 -  enum value {DOUBLE, STRING};
    1.23 -  enum type {NORMAL, GUI};
    1.24 -
    1.25 +  void setBackground(const std::string& file_name);
    1.26 +  const std::string& getBackgroundFilename();
    1.27 +  bool isBackgroundSet();
    1.28 +  double getBackgroundScaling();
    1.29 +  void setBackgroundScaling(double scaling);
    1.30    ///The graph for which the datas are stored.
    1.31    Graph graph;
    1.32    /// the coordinates of the nodes
    1.33 @@ -122,7 +131,7 @@
    1.34  
    1.35    ///Its all activity is initializing default values
    1.36    ///for different visualization attributes.
    1.37 -  MapStorage();
    1.38 +  MapStorage(NoteBookTab& tab);
    1.39  
    1.40    ///Destructor of MapStorage
    1.41