2009-05-07 13:31:18 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2009-2011 David Robillard <d@drobilla.net>
|
|
|
|
* Copyright (C) 2009 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2014-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.
|
|
|
|
*/
|
2009-05-07 13:31:18 -04:00
|
|
|
|
2024-09-25 20:38:59 -04:00
|
|
|
#pragma once
|
2009-05-07 13:31:18 -04:00
|
|
|
|
|
|
|
#include "gain_meter.h"
|
|
|
|
#include "panner_ui.h"
|
2011-11-18 19:56:35 -05:00
|
|
|
#include "ardour_window.h"
|
2009-05-07 13:31:18 -04:00
|
|
|
|
|
|
|
namespace ARDOUR {
|
|
|
|
class Return;
|
|
|
|
class IOProcessor;
|
|
|
|
}
|
|
|
|
|
|
|
|
class IOSelector;
|
|
|
|
|
2011-06-01 13:00:29 -04:00
|
|
|
class ReturnUI : public Gtk::HBox
|
2009-05-07 13:31:18 -04:00
|
|
|
{
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
2023-02-16 18:33:28 -05:00
|
|
|
ReturnUI (Gtk::Window *,std::shared_ptr<ARDOUR::Return>, ARDOUR::Session*);
|
2009-05-07 13:31:18 -04:00
|
|
|
~ReturnUI();
|
|
|
|
|
|
|
|
void update ();
|
|
|
|
void fast_update ();
|
|
|
|
|
|
|
|
IOSelector* io;
|
|
|
|
|
2023-02-16 18:33:28 -05:00
|
|
|
std::shared_ptr<ARDOUR::Return>& retrn() { return _return; }
|
2009-05-07 13:31:18 -04:00
|
|
|
|
2017-07-01 15:11:14 -04:00
|
|
|
private:
|
2023-02-16 18:33:28 -05:00
|
|
|
std::shared_ptr<ARDOUR::Return> _return;
|
2009-05-07 13:31:18 -04:00
|
|
|
GainMeter _gpm;
|
|
|
|
Gtk::VBox _vbox;
|
|
|
|
Gtk::VBox _hbox;
|
|
|
|
|
|
|
|
sigc::connection screen_update_connection;
|
|
|
|
sigc::connection fast_screen_update_connection;
|
2009-12-19 15:26:31 -05:00
|
|
|
PBD::ScopedConnection input_change_connection;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2009-05-07 13:31:18 -04:00
|
|
|
void ins_changed (ARDOUR::IOChange, void*);
|
|
|
|
};
|
|
|
|
|
2011-11-18 19:56:35 -05:00
|
|
|
class ReturnUIWindow : public ArdourWindow
|
2009-05-07 13:31:18 -04:00
|
|
|
{
|
|
|
|
public:
|
2023-02-16 18:33:28 -05:00
|
|
|
ReturnUIWindow(std::shared_ptr<ARDOUR::Return>, ARDOUR::Session*);
|
2009-05-07 13:31:18 -04:00
|
|
|
~ReturnUIWindow();
|
|
|
|
|
|
|
|
ReturnUI* ui;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Gtk::HBox hpacker;
|
|
|
|
|
2009-12-21 13:23:07 -05:00
|
|
|
PBD::ScopedConnection going_away_connection;
|
2009-05-07 13:31:18 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|