Ardour  9.0-pre0-822-g12e3bc5c20
transport_control_ui.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 _transport_control_ui_h_
20 #define _transport_control_ui_h_
21 
22 #include <ytkmm/box.h>
23 
24 #include "pbd/signals.h"
25 #include "ardour/session_handle.h"
26 #include "widgets/ardour_button.h"
27 
28 namespace ARDOUR {
29  class Session;
30 }
31 
33 
34 class TransportControlUI : public ARDOUR::SessionHandlePtr, public Gtk::HBox
35 {
36 public:
38 
40  void map_actions ();
42 
44 
54 
55 protected:
56 
57  void parameter_changed (std::string p);
58 
59  void blink_rec_enable (bool onoff);
63  void step_edit_status_change (bool yn);
64 
65  bool click_button_scroll (GdkEventScroll* ev);
66 
76 
77 private:
79 };
80 
81 #endif
ArdourWidgets::ArdourButton & roll_button()
void parameter_changed(std::string p)
ArdourWidgets::ArdourButton & goto_end_button()
ArdourWidgets::ArdourButton & auto_loop_button()
ArdourWidgets::ArdourButton & size_button()
void blink_rec_enable(bool onoff)
PBD::ScopedConnection config_connection
void set_transport_sensitivity(bool)
void set_session(ARDOUR::Session *s)
void setup(TransportControlProvider *)
ArdourWidgets::ArdourButton _goto_end_button
ArdourWidgets::ArdourButton _goto_start_button
ArdourWidgets::ArdourButton _stop_button
ArdourWidgets::ArdourButton & stop_button()
ArdourWidgets::ArdourButton & rec_button()
void set_loop_sensitivity()
ArdourWidgets::ArdourButton _midi_panic_button
ArdourWidgets::ArdourButton & goto_start_button()
ArdourWidgets::ArdourButton & click_button()
void map_transport_state()
ArdourWidgets::ArdourButton _roll_button
ArdourWidgets::ArdourButton _click_button
ArdourWidgets::ArdourButton & play_selection_button()
ArdourWidgets::ArdourButton _auto_loop_button
bool click_button_scroll(GdkEventScroll *ev)
void step_edit_status_change(bool yn)
ArdourWidgets::ArdourButton _play_selection_button
ArdourWidgets::ArdourButton & midi_panic_button()
ArdourWidgets::ArdourButton _rec_button