Ardour  9.0-pre0-582-g084a23a80d
audio_trigger_properties_box.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2021 Ben Loftis <ben@harrisonconsoles.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef _gtk_ardour_audio_trigger_properties_box_h_
21 #define _gtk_ardour_audio_trigger_properties_box_h_
22 
23 #include <gtkmm/box.h>
24 #include <gtkmm/label.h>
25 #include <gtkmm/spinbutton.h>
26 #include <gtkmm/table.h>
27 
28 #include "ardour/ardour.h"
29 #include "ardour/session_handle.h"
30 #include "ardour/triggerbox.h"
31 
32 #include "widgets/ardour_button.h"
34 
35 #include "audio_clock.h"
36 #include "trigger_ui.h"
37 
39 {
40 public:
43 
44 protected:
46 
48 };
49 
51 {
52 public:
55 
57 
58 protected:
59  virtual void on_trigger_changed (const PBD::PropertyChange& what_changed);
60 
61  void toggle_stretch ();
63 
66 
68 
69  void beats_changed();
70 
71 private:
72 
73  void MultiplyTempo(float mult);
74 
76 
79 
83 
86 
89 
91 
93 
95 
98 
100 };
101 
102 #endif
void meter_changed(Temporal::Meter m)
void MultiplyTempo(float mult)
ArdourWidgets::ArdourButton _dbl_button
void set_stretch_mode(ARDOUR::Trigger::StretchMode sm)
ArdourWidgets::ArdourButton _stretch_toggle
ArdourWidgets::ArdourDropdown _stretch_selector
void set_session(ARDOUR::Session *)
ArdourWidgets::ArdourButton _half_button
virtual void on_trigger_changed(const PBD::PropertyChange &what_changed)
ArdourWidgets::ArdourButton _abpm_label
PBD::ScopedConnection _state_connection