Ardour  9.0-pre0-582-g084a23a80d
ardour_display.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2017 Robin Gareus <robin@gareus.org>
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 _WIDGETS_ARDOUR_DISPLAY_H_
21 #define _WIDGETS_ARDOUR_DISPLAY_H_
22 
23 #include <list>
24 #include <stdint.h>
25 
26 #include <gtkmm/action.h>
27 #include <gtkmm/menu.h>
28 #include <gtkmm/menuitem.h>
29 
31 #include "widgets/visibility.h"
32 
33 namespace ArdourWidgets {
34 
36 {
37 public:
38 
39  ArdourDisplay (Element e = default_elements);
40  virtual ~ArdourDisplay ();
41 
42  std::shared_ptr<PBD::Controllable> get_controllable() { return binding_proxy.get_controllable(); }
43  void set_controllable (std::shared_ptr<PBD::Controllable> c);
44 
46 
47  void add_controllable_preset (const char*, float);
49 
52 };
53 
54 } /* end namespace */
55 
56 #endif /* __gtk2_ardour_ardour_menu_h__ */
void handle_controllable_preset(float p)
bool on_scroll_event(GdkEventScroll *ev)
This is a default handler for the signal signal_scroll_event().
ArdourDisplay(Element e=default_elements)
void add_controllable_preset(const char *, float)
std::shared_ptr< PBD::Controllable > get_controllable()
void set_controllable(std::shared_ptr< PBD::Controllable > c)
PBD::ScopedConnection watch_connection
#define LIBWIDGETS_API