20 #ifndef ardour_contourdesign_control_protocol_h
21 #define ardour_contourdesign_control_protocol_h
27 #include <glibmm/main.h>
29 #define ABSTRACT_UI_EXPORTS
34 struct libusb_device_handle;
35 struct libusb_transfer;
37 class ContourDesignGUI;
72 ,
public AbstractUI<ContourDesignControlUIRequest>
186 mutable ContourDesignGUI*
_gui;
void do_request(ContourDesignControlUIRequest *)
bool _was_rolling_before_shuttle
void next_marker_keep_rolling()
void setup_default_button_actions()
void jump_forward(JumpDistance dist)
static bool match_usb(uint16_t, uint16_t)
void handle_button_press(unsigned short btn)
XMLNode & get_state() const
libusb_transfer * _usb_transfer
void shuttle_event(int position)
static const int num_shuttle_speeds
const std::shared_ptr< ButtonBase > get_button_action(unsigned int index) const
std::shared_ptr< ButtonBase > make_button_action(std::string action_string)
double shuttle_speed(unsigned int index) const
PBD::Signal< void(unsigned short)> ButtonPress
virtual ~ContourDesignControlProtocol()
std::vector< std::shared_ptr< ButtonBase > > _button_actions
JumpDistance _jog_distance
void set_test_mode(bool tm)
void set_jog_distance(JumpDistance jd)
void handle_button_release(unsigned short btn)
void prev_marker_keep_rolling()
int get_button_count() const
void set_button_action(unsigned int index, const std::shared_ptr< ButtonBase > btn_act)
CONTROL_PROTOCOL_THREADS_NEED_TEMPO_MAP_DECL()
ContourDesignControlProtocol(ARDOUR::Session &)
void stripable_selection_changed()
int usb_errorcode() const
void jump_backward(JumpDistance dist)
DeviceType device_type() const
libusb_device_handle * _dev_handle
JumpDistance jog_distance() const
PBD::Signal< void(unsigned short)> ButtonRelease
bool keep_rolling() const
void jog_event_backward()
void set_keep_rolling(bool kr)
void set_shuttle_speed(unsigned int index, double speed)
std::vector< double > _shuttle_speeds
int set_state(const XMLNode &, int version)
~ContourDesignControlUIRequest()
ContourDesignControlUIRequest()
JumpDistance(double v, JumpUnit u)
JumpDistance(const JumpDistance &o)
JumpDistance & operator=(const JumpDistance &o)