X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fselection.h;h=abae6832ccfe2cc75f2777be45bc0be4cc636ba3;hb=f42183985c65e1e12f19e9246dee90b8e7e44a34;hp=36e44354212b70f1d202ac5fed44f5f1c807bd5e;hpb=6c61179fe09af2f5366d50f10aadbf5f83438087;p=r2c2.git diff --git a/source/designer/selection.h b/source/designer/selection.h index 36e4435..abae683 100644 --- a/source/designer/selection.h +++ b/source/designer/selection.h @@ -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 SELECTION_H_ #define SELECTION_H_ @@ -8,11 +15,13 @@ class Selection { public: - typedef std::set TrackSet; - sigc::signal signal_changed; - const TrackSet &get_tracks() const { return tracks; } +private: + std::set tracks; + +public: + const std::set &get_tracks() const { return tracks; } Marklin::Track *get_track() const; unsigned size() const { return tracks.size(); } void clear(); @@ -21,8 +30,6 @@ public: void toggle_track(Marklin::Track *); void select_more(); void select_linked(); -private: - TrackSet tracks; }; #endif