Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::US2400::Button Class Reference

#include <button.h>

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

Public Types

enum  ID {
  Scrub , F1 , F2 , F3 ,
  F4 , F5 , F6 , Rewind ,
  Ffwd , Stop , Play , Record ,
  Left , Right , Flip , MstrSelect ,
  FinalGlobalButton , Drop , Send , Pan ,
  ClearSolo , Shift , Option , Ctrl ,
  CmdAlt , Solo , Mute , Select ,
  FaderTouch , MasterFaderTouch
}
 

Public Member Functions

 Button (Surface &s, ID bid, int did, std::string name, Group &group)
 
MidiByteArray zero ()
 
MidiByteArray set_state (LedState ls)
 
ID bid () const
 
Surfacesurface () const
 
void mark_dirty ()
 
void pressed ()
 
void released ()
 
int32_t long_press_count ()
 
- Public Member Functions inherited from ArdourSurface::US2400::Control
 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)
 
std::shared_ptr< ARDOUR::AutomationControlcontrol () const
 
virtual void set_control (std::shared_ptr< ARDOUR::AutomationControl >)
 
virtual void reset_control ()
 
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)
 

Static Public Member Functions

static Controlfactory (Surface &surface, Button::ID bid, int id, const std::string &, Group &group)
 
static int name_to_id (const std::string &name)
 
static std::string id_to_name (Button::ID)
 

Private Attributes

Surface_surface
 
ID _bid
 
Led _led
 
PBD::microseconds_t press_time
 

Additional Inherited Members

- Public Attributes inherited from ArdourSurface::US2400::Control
sigc::connection in_use_connection
 
Controlin_use_touch_control
 
- Protected Attributes inherited from ArdourSurface::US2400::Control
std::shared_ptr< ARDOUR::AutomationControlnormal_ac
 

Detailed Description

Definition at line 33 of file surfaces/us2400/button.h.

Member Enumeration Documentation

◆ ID

Enumerator
Scrub 
F1 
F2 
F3 
F4 
F5 
F6 
Rewind 
Ffwd 
Stop 
Play 
Record 
Left 
Right 
Flip 
MstrSelect 
FinalGlobalButton 
Drop 
Send 
Pan 
ClearSolo 
Shift 
Option 
Ctrl 
CmdAlt 
Solo 
Mute 
Select 
FaderTouch 
MasterFaderTouch 

Definition at line 41 of file surfaces/us2400/button.h.

Constructor & Destructor Documentation

◆ Button()

ArdourSurface::US2400::Button::Button ( Surface s,
ID  bid,
int  did,
std::string  name,
Group group 
)
inline

Definition at line 88 of file surfaces/us2400/button.h.

Member Function Documentation

◆ bid()

ID ArdourSurface::US2400::Button::bid ( ) const
inline

Definition at line 98 of file surfaces/us2400/button.h.

◆ factory()

static Control* ArdourSurface::US2400::Button::factory ( Surface surface,
Button::ID  bid,
int  id,
const std::string &  ,
Group group 
)
static

◆ id_to_name()

static std::string ArdourSurface::US2400::Button::id_to_name ( Button::ID  )
static

◆ long_press_count()

int32_t ArdourSurface::US2400::Button::long_press_count ( )

◆ mark_dirty()

void ArdourSurface::US2400::Button::mark_dirty ( )
inlinevirtual

Implements ArdourSurface::US2400::Control.

Definition at line 106 of file surfaces/us2400/button.h.

◆ name_to_id()

static int ArdourSurface::US2400::Button::name_to_id ( const std::string &  name)
static

◆ pressed()

void ArdourSurface::US2400::Button::pressed ( )

◆ released()

void ArdourSurface::US2400::Button::released ( )

◆ set_state()

MidiByteArray ArdourSurface::US2400::Button::set_state ( LedState  ls)
inline

Definition at line 96 of file surfaces/us2400/button.h.

◆ surface()

Surface& ArdourSurface::US2400::Button::surface ( ) const
inline

Definition at line 104 of file surfaces/us2400/button.h.

◆ zero()

MidiByteArray ArdourSurface::US2400::Button::zero ( )
inlinevirtual

Implements ArdourSurface::US2400::Control.

Definition at line 95 of file surfaces/us2400/button.h.

Member Data Documentation

◆ _bid

ID ArdourSurface::US2400::Button::_bid
private

Definition at line 115 of file surfaces/us2400/button.h.

◆ _led

Led ArdourSurface::US2400::Button::_led
private

Definition at line 116 of file surfaces/us2400/button.h.

◆ _surface

Surface& ArdourSurface::US2400::Button::_surface
private

Definition at line 114 of file surfaces/us2400/button.h.

◆ press_time

PBD::microseconds_t ArdourSurface::US2400::Button::press_time
private

Definition at line 117 of file surfaces/us2400/button.h.


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