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