X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Ftime_selection.h;h=413cb75de6ee6bc30819f28656554ff98488dfed;hb=4e411dfd7bab6793426979fe005faf2435c0df0d;hp=1783e160468076f4054793b847be17ded3099e97;hpb=2e8f80e37a7d20deb3f138cd72c26f8c6de9d1ab;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 (); };