Ardour  9.0-pre0-582-g084a23a80d
ArdourSurface::FP8::FP8Controls Class Reference

#include <fp8_controls.h>

Public Types

enum  ButtonId {
  BtnPlay , BtnStop , BtnRecord , BtnLoop ,
  BtnRewind , BtnFastForward , BtnALatch , BtnATrim ,
  BtnAOff , BtnATouch , BtnAWrite , BtnARead ,
  BtnSave , BtnRedo , BtnUndo , BtnUser1 ,
  BtnUser2 , BtnUser3 , BtnFootswitch , BtnParam ,
  BtnPrev , BtnNext , BtnEncoder , BtnChannel ,
  BtnZoom , BtnScroll , BtnBank , BtnMaster ,
  BtnClick , BtnSection , BtnMarker , BtnF1 ,
  BtnF2 , BtnF3 , BtnF4 , BtnF5 ,
  BtnF6 , BtnF7 , BtnF8 , BtnTrack ,
  BtnPlugins , BtnSend , BtnPan , BtnTimecode ,
  BtnMAudio , BtnMVI , BtnMBus , BtnMVCA ,
  BtnMAll , BtnMInputs , BtnMMIDI , BtnMOutputs ,
  BtnMFX , BtnMUser , BtnArm , BtnArmAll ,
  BtnSoloClear , BtnMuteClear , BtnBypass , BtnBypassAll ,
  BtnMacro , BtnOpen , BtnLink , BtnLock ,
  BtnChanLock , BtnFlip
}
 
typedef std::map< ButtonId, std::string > UserButtonMap
 

Public Member Functions

 FP8Controls (FP8Base &)
 
virtual ~FP8Controls ()
 
UserButtonMap const & user_buttons () const
 
bool button_name_to_enum (std::string const &, ButtonId &) const
 
bool button_enum_to_name (ButtonId, std::string &) const
 
FP8Types::FaderMode fader_mode () const
 
FP8Types::MixMode mix_mode () const
 
FP8Types::NavigationMode nav_mode () const
 
bool display_timecode () const
 
FP8ButtonInterfacebutton (ButtonId id)
 
FP8Stripstrip (uint8_t id)
 
bool midi_event (uint8_t id, uint8_t val)
 
bool midi_touch (uint8_t id, uint8_t val)
 
bool midi_fader (uint8_t id, unsigned short val)
 
void initialize ()
 
void all_lights_off () const
 
void set_fader_mode (FP8Types::FaderMode)
 

Public Attributes

PBD::Signal< void()> FaderModeChanged
 
PBD::Signal< void()> MixModeChanged
 

Protected Types

typedef std::map< uint8_t, FP8ButtonInterface * > MidiButtonMap
 
typedef std::map< ButtonId, FP8ButtonInterface * > CtrlButtonMap
 

Protected Member Functions

void set_nav_mode (FP8Types::NavigationMode)
 
void set_mix_mode (FP8Types::MixMode)
 
void toggle_timecode ()
 

Protected Attributes

MidiButtonMap _midimap
 
CtrlButtonMap _ctrlmap
 
MidiButtonMap _midimap_strip
 
FP8Stripchanstrip [8]
 
FP8Types::FaderMode _fadermode
 
FP8Types::NavigationMode _navmode
 
FP8Types::MixMode _mixmode
 
bool _display_timecode
 
UserButtonMap _user_buttons
 
FP8DummyButton _dummy_button
 
std::map< std::string, ButtonId_user_str_to_enum
 
std::map< ButtonId, std::string > _user_enum_to_str
 
PBD::ScopedConnectionList button_connections
 

Detailed Description

Definition at line 30 of file fp8_controls.h.

Member Typedef Documentation

◆ CtrlButtonMap

Definition at line 162 of file fp8_controls.h.

◆ MidiButtonMap

Definition at line 161 of file fp8_controls.h.

◆ UserButtonMap

Definition at line 126 of file fp8_controls.h.

Member Enumeration Documentation

◆ ButtonId

Enumerator
BtnPlay 
BtnStop 
BtnRecord 
BtnLoop 
BtnRewind 
BtnFastForward 
BtnALatch 
BtnATrim 
BtnAOff 
BtnATouch 
BtnAWrite 
BtnARead 
BtnSave 
BtnRedo 
BtnUndo 
BtnUser1 
BtnUser2 
BtnUser3 
BtnFootswitch 
BtnParam 
BtnPrev 
BtnNext 
BtnEncoder 
BtnChannel 
BtnZoom 
BtnScroll 
BtnBank 
BtnMaster 
BtnClick 
BtnSection 
BtnMarker 
BtnF1 
BtnF2 
BtnF3 
BtnF4 
BtnF5 
BtnF6 
BtnF7 
BtnF8 
BtnTrack 
BtnPlugins 
BtnSend 
BtnPan 
BtnTimecode 
BtnMAudio 
BtnMVI 
BtnMBus 
BtnMVCA 
BtnMAll 
BtnMInputs 
BtnMMIDI 
BtnMOutputs 
BtnMFX 
BtnMUser 
BtnArm 
BtnArmAll 
BtnSoloClear 
BtnMuteClear 
BtnBypass 
BtnBypassAll 
BtnMacro 
BtnOpen 
BtnLink 
BtnLock 
BtnChanLock 
BtnFlip 

Definition at line 36 of file fp8_controls.h.

Constructor & Destructor Documentation

◆ FP8Controls()

ArdourSurface::FP8::FP8Controls::FP8Controls ( FP8Base )

◆ ~FP8Controls()

virtual ArdourSurface::FP8::FP8Controls::~FP8Controls ( )
virtual

Member Function Documentation

◆ all_lights_off()

void ArdourSurface::FP8::FP8Controls::all_lights_off ( ) const

◆ button()

FP8ButtonInterface& ArdourSurface::FP8::FP8Controls::button ( ButtonId  id)

◆ button_enum_to_name()

bool ArdourSurface::FP8::FP8Controls::button_enum_to_name ( ButtonId  ,
std::string &   
) const

◆ button_name_to_enum()

bool ArdourSurface::FP8::FP8Controls::button_name_to_enum ( std::string const &  ,
ButtonId  
) const

◆ display_timecode()

bool ArdourSurface::FP8::FP8Controls::display_timecode ( ) const
inline

Definition at line 147 of file fp8_controls.h.

◆ fader_mode()

FP8Types::FaderMode ArdourSurface::FP8::FP8Controls::fader_mode ( ) const
inline

Definition at line 142 of file fp8_controls.h.

◆ initialize()

void ArdourSurface::FP8::FP8Controls::initialize ( )

◆ midi_event()

bool ArdourSurface::FP8::FP8Controls::midi_event ( uint8_t  id,
uint8_t  val 
)

◆ midi_fader()

bool ArdourSurface::FP8::FP8Controls::midi_fader ( uint8_t  id,
unsigned short  val 
)

◆ midi_touch()

bool ArdourSurface::FP8::FP8Controls::midi_touch ( uint8_t  id,
uint8_t  val 
)

◆ mix_mode()

FP8Types::MixMode ArdourSurface::FP8::FP8Controls::mix_mode ( ) const
inline

Definition at line 143 of file fp8_controls.h.

◆ nav_mode()

FP8Types::NavigationMode ArdourSurface::FP8::FP8Controls::nav_mode ( ) const
inline

Definition at line 146 of file fp8_controls.h.

◆ set_fader_mode()

void ArdourSurface::FP8::FP8Controls::set_fader_mode ( FP8Types::FaderMode  )

◆ set_mix_mode()

void ArdourSurface::FP8::FP8Controls::set_mix_mode ( FP8Types::MixMode  )
protected

◆ set_nav_mode()

void ArdourSurface::FP8::FP8Controls::set_nav_mode ( FP8Types::NavigationMode  )
protected

◆ strip()

FP8Strip& ArdourSurface::FP8::FP8Controls::strip ( uint8_t  id)

◆ toggle_timecode()

void ArdourSurface::FP8::FP8Controls::toggle_timecode ( )
protected

◆ user_buttons()

UserButtonMap const& ArdourSurface::FP8::FP8Controls::user_buttons ( ) const
inline

Definition at line 128 of file fp8_controls.h.

Member Data Documentation

◆ _ctrlmap

CtrlButtonMap ArdourSurface::FP8::FP8Controls::_ctrlmap
protected

Definition at line 169 of file fp8_controls.h.

◆ _display_timecode

bool ArdourSurface::FP8::FP8Controls::_display_timecode
protected

Definition at line 177 of file fp8_controls.h.

◆ _dummy_button

FP8DummyButton ArdourSurface::FP8::FP8Controls::_dummy_button
protected

Definition at line 180 of file fp8_controls.h.

◆ _fadermode

FP8Types::FaderMode ArdourSurface::FP8::FP8Controls::_fadermode
protected

Definition at line 174 of file fp8_controls.h.

◆ _midimap

MidiButtonMap ArdourSurface::FP8::FP8Controls::_midimap
protected

Definition at line 168 of file fp8_controls.h.

◆ _midimap_strip

MidiButtonMap ArdourSurface::FP8::FP8Controls::_midimap_strip
protected

Definition at line 170 of file fp8_controls.h.

◆ _mixmode

FP8Types::MixMode ArdourSurface::FP8::FP8Controls::_mixmode
protected

Definition at line 176 of file fp8_controls.h.

◆ _navmode

FP8Types::NavigationMode ArdourSurface::FP8::FP8Controls::_navmode
protected

Definition at line 175 of file fp8_controls.h.

◆ _user_buttons

UserButtonMap ArdourSurface::FP8::FP8Controls::_user_buttons
protected

Definition at line 179 of file fp8_controls.h.

◆ _user_enum_to_str

std::map<ButtonId, std::string> ArdourSurface::FP8::FP8Controls::_user_enum_to_str
protected

Definition at line 183 of file fp8_controls.h.

◆ _user_str_to_enum

std::map<std::string, ButtonId> ArdourSurface::FP8::FP8Controls::_user_str_to_enum
protected

Definition at line 182 of file fp8_controls.h.

◆ button_connections

PBD::ScopedConnectionList ArdourSurface::FP8::FP8Controls::button_connections
protected

Definition at line 185 of file fp8_controls.h.

◆ chanstrip

FP8Strip* ArdourSurface::FP8::FP8Controls::chanstrip[8]
protected

Definition at line 172 of file fp8_controls.h.

◆ FaderModeChanged

PBD::Signal<void()> ArdourSurface::FP8::FP8Controls::FaderModeChanged

Definition at line 135 of file fp8_controls.h.

◆ MixModeChanged

PBD::Signal<void()> ArdourSurface::FP8::FP8Controls::MixModeChanged

Definition at line 136 of file fp8_controls.h.


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