2005-09-25 14:42:24 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2007-2009 David Robillard <d@drobilla.net>
|
|
|
|
* Copyright (C) 2007-2017 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2016-2017 Robin Gareus <robin@gareus.org>
|
|
|
|
*
|
|
|
|
* 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.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2024-09-25 20:38:59 -04:00
|
|
|
#pragma once
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#include <vector>
|
2024-10-19 09:54:24 -04:00
|
|
|
|
|
|
|
#include "pbd/property_basics.h"
|
2009-12-19 15:26:31 -05:00
|
|
|
#include "pbd/signals.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2007-06-27 16:23:48 -04:00
|
|
|
#include "processor_selection.h"
|
2011-11-04 13:53:21 -04:00
|
|
|
#include "route_ui_selection.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2017-05-05 07:31:49 -04:00
|
|
|
namespace ARDOUR {
|
|
|
|
class SessionHandlePtr;
|
|
|
|
}
|
|
|
|
|
|
|
|
class AxisViewProvider;
|
|
|
|
|
|
|
|
class RouteProcessorSelection : public ProcessorSelection
|
2005-09-25 14:42:24 -04:00
|
|
|
{
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
2016-07-06 13:37:30 -04:00
|
|
|
AxisViewSelection axes;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2017-05-05 07:31:49 -04:00
|
|
|
RouteProcessorSelection (ARDOUR::SessionHandlePtr&, AxisViewProvider&);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void clear ();
|
|
|
|
bool empty();
|
|
|
|
|
2016-07-06 13:37:30 -04:00
|
|
|
void set (AxisView*);
|
2017-07-12 00:55:44 -04:00
|
|
|
void add (AxisView*, bool with_groups = false);
|
|
|
|
void remove (AxisView*, bool with_groups = false);
|
2017-05-05 07:31:49 -04:00
|
|
|
bool selected (AxisView*);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void clear_routes ();
|
|
|
|
|
2017-05-05 07:31:49 -04:00
|
|
|
void presentation_info_changed (PBD::PropertyChange const & what_changed);
|
2009-12-17 13:24:23 -05:00
|
|
|
|
2017-07-01 15:11:14 -04:00
|
|
|
private:
|
2017-05-05 07:31:49 -04:00
|
|
|
ARDOUR::SessionHandlePtr& shp;
|
|
|
|
AxisViewProvider& avp;
|
2016-07-06 13:37:30 -04:00
|
|
|
void removed (AxisView*);
|
2017-11-23 05:29:07 -05:00
|
|
|
|
|
|
|
RouteProcessorSelection& operator= (const RouteProcessorSelection& other);
|
|
|
|
RouteProcessorSelection (RouteProcessorSelection const&);
|
2005-09-25 14:42:24 -04:00
|
|
|
};
|
|
|
|
|
2011-11-15 14:33:09 -05:00
|
|
|
bool operator==(const RouteProcessorSelection& a, const RouteProcessorSelection& b);
|
2005-09-25 14:42:24 -04:00
|
|
|
|