mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Make ContourdesignControlProtocol::_button_actions private again ...
... and add proper bounds checks.
This commit is contained in:
parent
81dbb977c5
commit
16d6791566
3 changed files with 31 additions and 13 deletions
|
|
@ -107,6 +107,10 @@ public:
|
|||
bool test_mode () const { return _test_mode; }
|
||||
void set_test_mode (bool tm) { _test_mode = tm; }
|
||||
|
||||
int get_button_count() const { return _button_actions.size(); }
|
||||
const boost::shared_ptr<ButtonBase> get_button_action (unsigned int index) const;
|
||||
void set_button_action (unsigned int index, const boost::shared_ptr<ButtonBase> btn_act);
|
||||
|
||||
JumpDistance jog_distance () const { return _jog_distance; }
|
||||
void set_jog_distance (JumpDistance jd) { _jog_distance = jd; }
|
||||
|
||||
|
|
@ -118,8 +122,6 @@ public:
|
|||
PBD::Signal1<void, unsigned short> ButtonPress;
|
||||
PBD::Signal1<void, unsigned short> ButtonRelease;
|
||||
|
||||
std::vector<boost::shared_ptr<ButtonBase> > _button_actions; // XXX TODO: use accessor/setter methods
|
||||
|
||||
private:
|
||||
void do_request (ContourDesignControlUIRequest*);
|
||||
void start ();
|
||||
|
|
@ -170,6 +172,8 @@ private:
|
|||
std::vector<double> _shuttle_speeds;
|
||||
JumpDistance _jog_distance;
|
||||
|
||||
std::vector<boost::shared_ptr<ButtonBase> > _button_actions;
|
||||
|
||||
mutable ContourDesignGUI* _gui;
|
||||
void build_gui ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue