X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Ftime_selection.h;h=413cb75de6ee6bc30819f28656554ff98488dfed;hb=30a698f42e3ee6be5a63ea1143413cf8329f444e;hp=1783e160468076f4054793b847be17ded3099e97;hpb=87726495c30f90554b5204b5385d17274a8fe93e;p=ardour.git diff --git a/gtk2_ardour/time_selection.h b/gtk2_ardour/time_selection.h index 1783e16046..413cb75de6 100644 --- a/gtk2_ardour/time_selection.h +++ b/gtk2_ardour/time_selection.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2000-2007 Paul Davis + Copyright (C) 2000-2007 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,36 +21,22 @@ #define __ardour_gtk_time_selection_h__ #include -#include +#include "ardour/types.h" namespace ARDOUR { class RouteGroup; } -class TimeAxisView; +class TimeSelection : public std::list +{ +public: + ARDOUR::AudioRange& operator[](uint32_t); -struct TimeSelection : public std::list { - - /* if (track == 0 && group == 0) then it applies to all - tracks. + ARDOUR::framepos_t start(); + ARDOUR::framepos_t end_frame(); + ARDOUR::framepos_t length(); - if (track != 0 && group == 0) then it applies just to - that track. - - if (group != 0) then it applies to all tracks in - the group. - */ - - TimeAxisView* track; - ARDOUR::RouteGroup* group; - - ARDOUR::AudioRange& operator[](uint32_t); - - nframes_t start(); - nframes_t end_frame(); - nframes_t length(); - - bool consolidate (); + bool consolidate (); };