mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 15:16:25 +01:00
Abstract base class for ArdourFader
This allows derivative projects to use other fader render implementations.
This commit is contained in:
parent
dad32d8b11
commit
a0e27495c6
7 changed files with 365 additions and 260 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include <gtkmm/adjustment.h>
|
||||
#include <gtkmm/spinbutton.h>
|
||||
|
||||
#include "widgets/fader_widget.h"
|
||||
#include "widgets/ardour_fader.h"
|
||||
#include "widgets/binding_proxy.h"
|
||||
#include "widgets/visibility.h"
|
||||
|
|
@ -39,10 +40,10 @@ namespace PBD {
|
|||
|
||||
namespace ArdourWidgets {
|
||||
|
||||
class LIBWIDGETS_API SliderController : public ArdourWidgets::ArdourFader
|
||||
class LIBWIDGETS_API SliderController : virtual public ArdourWidgets::FaderWidget
|
||||
{
|
||||
public:
|
||||
SliderController (Gtk::Adjustment* adj, std::shared_ptr<PBD::Controllable> mc, int orientation, int, int);
|
||||
SliderController (Gtk::Adjustment* adj, std::shared_ptr<PBD::Controllable> mc, int orien);
|
||||
|
||||
virtual ~SliderController () {}
|
||||
|
||||
|
|
@ -65,13 +66,13 @@ protected:
|
|||
bool _spin_ignore;
|
||||
};
|
||||
|
||||
class LIBWIDGETS_API VSliderController : public SliderController
|
||||
class LIBWIDGETS_API VSliderController : public SliderController, public ArdourFader
|
||||
{
|
||||
public:
|
||||
VSliderController (Gtk::Adjustment *adj, std::shared_ptr<PBD::Controllable> mc, int, int);
|
||||
};
|
||||
|
||||
class LIBWIDGETS_API HSliderController : public SliderController
|
||||
class LIBWIDGETS_API HSliderController : public SliderController, public ArdourFader
|
||||
{
|
||||
public:
|
||||
HSliderController (Gtk::Adjustment *adj, std::shared_ptr<PBD::Controllable> mc, int, int);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue