Ardour  9.0-pre0-350-gf17a656217
transport_control.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef _gtkardour_transport_control_h_
20 #define _gtkardour_transport_control_h_
21 
22 #include <gtkmm/widget.h>
23 #include "pbd/controllable.h"
24 
25 #include "ardour/session_handle.h"
26 
27 /* This is an API implemented by AROUR_UI,
28  * and made available to transport-control-UIs
29  */
31 {
32 public:
35 
36  /* show metronome preferences */
37  virtual bool click_button_clicked (GdkEventButton *) = 0;
38 
40  enum ToggleType {
41  Roll = 0,
48  };
49 
52  double get_value (void) const;
53 
55  };
56 
57  std::shared_ptr<TransportControllable> roll_controllable;
58  std::shared_ptr<TransportControllable> stop_controllable;
59  std::shared_ptr<TransportControllable> goto_start_controllable;
60  std::shared_ptr<TransportControllable> goto_end_controllable;
61  std::shared_ptr<TransportControllable> auto_loop_controllable;
62  std::shared_ptr<TransportControllable> play_selection_controllable;
63  std::shared_ptr<TransportControllable> rec_controllable;
64 };
65 
66 #endif
std::string name() const
Definition: controllable.h:154
std::shared_ptr< TransportControllable > goto_end_controllable
std::shared_ptr< TransportControllable > rec_controllable
std::shared_ptr< TransportControllable > play_selection_controllable
std::shared_ptr< TransportControllable > auto_loop_controllable
virtual bool click_button_clicked(GdkEventButton *)=0
std::shared_ptr< TransportControllable > stop_controllable
std::shared_ptr< TransportControllable > goto_start_controllable
std::shared_ptr< TransportControllable > roll_controllable
void set_value(double, PBD::Controllable::GroupControlDisposition group_override)
TransportControllable(std::string name, ToggleType)