]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/layout.h
Support using a mesh as a background
[r2c2.git] / source / libmarklin / layout.h
index d1844dee66bd5f387ff79fc7f2e1664c03536898..ae03cef6f30a2ca970656f7a6a9662255595ef9d 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
 #ifndef LIBMARKLIN_LAYOUT_H_
 #define LIBMARKLIN_LAYOUT_H_
 
@@ -24,23 +31,27 @@ public:
                void track(unsigned);
        };
 
+private:
+       Catalogue   &catalogue;
+       std::string filename;
+       std::string base;
+       std::set<Track *> tracks;
+       //RouteSeq    routes;
+
+public:
        sigc::signal<void, Track &> signal_track_added;
        sigc::signal<void, Track &> signal_track_removed;
 
        Layout(Catalogue &);
+       ~Layout();
+
+       const std::string &get_base() const { return base; }
        const std::set<Track *> &get_tracks() const { return tracks; }
        void  add_track(Track &);
        void  remove_track(Track &);
        void  check_links();
        void  load(const std::string &);
        int   save(const std::string &);
-       ~Layout();
-private:
-       Catalogue   &catalogue;
-       std::string filename;
-       std::string base;
-       std::set<Track *> tracks;
-       //RouteSeq    routes;
 };
 
 } // namespace Marklin