2007-04-26 16:54:31 -04:00
|
|
|
/*
|
2020-09-26 11:14:59 -04:00
|
|
|
Copyright (C) 2000-2020 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
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
2007-04-26 16:54:31 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
#ifndef __ardour_gtk_time_selection_h__
|
|
|
|
#define __ardour_gtk_time_selection_h__
|
|
|
|
|
|
|
|
#include <list>
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "ardour/types.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
namespace ARDOUR {
|
|
|
|
class RouteGroup;
|
|
|
|
}
|
|
|
|
|
2020-09-26 11:14:59 -04:00
|
|
|
class TimeSelection : public std::list<ARDOUR::TimelineRange>
|
2009-12-13 16:27:19 -05:00
|
|
|
{
|
|
|
|
public:
|
2020-09-26 11:14:59 -04:00
|
|
|
ARDOUR::TimelineRange & operator[](uint32_t);
|
2011-06-01 13:00:29 -04:00
|
|
|
|
2020-09-26 11:14:59 -04:00
|
|
|
ARDOUR::samplepos_t start_sample() const;
|
2020-07-20 18:39:03 -04:00
|
|
|
ARDOUR::samplepos_t end_sample() const;
|
2020-09-26 11:14:59 -04:00
|
|
|
ARDOUR::samplepos_t length_samples() const;
|
|
|
|
|
|
|
|
Temporal::timepos_t start_time() const;
|
|
|
|
Temporal::timepos_t end_time() const;
|
|
|
|
Temporal::timecnt_t length() const;
|
2011-06-01 13:00:29 -04:00
|
|
|
|
2020-10-19 14:37:54 -04:00
|
|
|
void set (Temporal::timepos_t const &, Temporal::timepos_t const &);
|
|
|
|
|
2009-12-13 16:27:19 -05:00
|
|
|
bool consolidate ();
|
2005-09-25 14:42:24 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __ardour_gtk_time_selection_h__ */
|