Ardour  9.0-pre0-380-gbbdb6b0e63
ArdourSurface::US2400::Control Class Referenceabstract

#include <controls.h>

Inheritance diagram for ArdourSurface::US2400::Control:
[legend]

Public Member Functions

 Control (int id, std::string name, Group &group)
 
virtual ~Control ()
 
int id () const
 
const std::string & name () const
 
Groupgroup () const
 
bool in_use () const
 
void set_in_use (bool)
 
virtual MidiByteArray zero ()=0
 
std::shared_ptr< ARDOUR::AutomationControlcontrol () const
 
virtual void set_control (std::shared_ptr< ARDOUR::AutomationControl >)
 
virtual void reset_control ()
 
virtual void mark_dirty ()=0
 
float get_value ()
 
void set_value (float val, PBD::Controllable::GroupControlDisposition gcd=PBD::Controllable::UseGroup)
 
virtual void start_touch (Temporal::timepos_t const &when)
 
virtual void stop_touch (Temporal::timepos_t const &when)
 

Public Attributes

sigc::connection in_use_connection
 
Controlin_use_touch_control
 

Protected Attributes

std::shared_ptr< ARDOUR::AutomationControlnormal_ac
 

Private Attributes

int _id
 
std::string _name
 
Group_group
 
bool _in_use
 

Detailed Description

Definition at line 49 of file us2400/controls.h.

Constructor & Destructor Documentation

◆ Control()

ArdourSurface::US2400::Control::Control ( int  id,
std::string  name,
Group group 
)

◆ ~Control()

virtual ArdourSurface::US2400::Control::~Control ( )
inlinevirtual

Definition at line 52 of file us2400/controls.h.

Member Function Documentation

◆ control()

std::shared_ptr<ARDOUR::AutomationControl> ArdourSurface::US2400::Control::control ( ) const
inline

Definition at line 71 of file us2400/controls.h.

◆ get_value()

float ArdourSurface::US2400::Control::get_value ( )

◆ group()

Group& ArdourSurface::US2400::Control::group ( ) const
inline

Definition at line 56 of file us2400/controls.h.

◆ id()

int ArdourSurface::US2400::Control::id ( ) const
inline

Definition at line 54 of file us2400/controls.h.

◆ in_use()

bool ArdourSurface::US2400::Control::in_use ( ) const

◆ mark_dirty()

virtual void ArdourSurface::US2400::Control::mark_dirty ( )
pure virtual

◆ name()

const std::string& ArdourSurface::US2400::Control::name ( ) const
inline

Definition at line 55 of file us2400/controls.h.

◆ reset_control()

virtual void ArdourSurface::US2400::Control::reset_control ( )
inlinevirtual

Definition at line 73 of file us2400/controls.h.

◆ set_control()

virtual void ArdourSurface::US2400::Control::set_control ( std::shared_ptr< ARDOUR::AutomationControl )
virtual

◆ set_in_use()

void ArdourSurface::US2400::Control::set_in_use ( bool  )

◆ set_value()

void ArdourSurface::US2400::Control::set_value ( float  val,
PBD::Controllable::GroupControlDisposition  gcd = PBD::Controllable::UseGroup 
)

◆ start_touch()

virtual void ArdourSurface::US2400::Control::start_touch ( Temporal::timepos_t const &  when)
virtual

◆ stop_touch()

virtual void ArdourSurface::US2400::Control::stop_touch ( Temporal::timepos_t const &  when)
virtual

◆ zero()

Member Data Documentation

◆ _group

Group& ArdourSurface::US2400::Control::_group
private

Definition at line 89 of file us2400/controls.h.

◆ _id

int ArdourSurface::US2400::Control::_id
private

Definition at line 87 of file us2400/controls.h.

◆ _in_use

bool ArdourSurface::US2400::Control::_in_use
private

Definition at line 90 of file us2400/controls.h.

◆ _name

std::string ArdourSurface::US2400::Control::_name
private

Definition at line 88 of file us2400/controls.h.

◆ in_use_connection

sigc::connection ArdourSurface::US2400::Control::in_use_connection

Definition at line 62 of file us2400/controls.h.

◆ in_use_touch_control

Control* ArdourSurface::US2400::Control::in_use_touch_control

If we are doing an in_use timeout for a fader without touch, this is its touch button control; otherwise 0.

Definition at line 69 of file us2400/controls.h.

◆ normal_ac

std::shared_ptr<ARDOUR::AutomationControl> ArdourSurface::US2400::Control::normal_ac
protected

Definition at line 84 of file us2400/controls.h.


The documentation for this class was generated from the following file: