Channel selector has a max range of num channels
When you add and remove channels, the range of the L.E.D. channel selector is correct.
This commit is contained in:
@@ -225,6 +225,9 @@ protected:
|
||||
|
||||
float fittedValue( float _value ) const;
|
||||
|
||||
float m_minValue;
|
||||
float m_maxValue;
|
||||
float m_value;
|
||||
|
||||
private:
|
||||
void linkModel( AutomatableModel * _model );
|
||||
@@ -232,10 +235,7 @@ private:
|
||||
|
||||
|
||||
DataType m_dataType;
|
||||
float m_value;
|
||||
float m_initValue;
|
||||
float m_minValue;
|
||||
float m_maxValue;
|
||||
float m_step;
|
||||
float m_range;
|
||||
|
||||
@@ -281,7 +281,18 @@ signals:
|
||||
{ \
|
||||
return AutomatableModel::maxValue<type>(); \
|
||||
} \
|
||||
|
||||
\
|
||||
inline void setMinValue(type val) \
|
||||
{ \
|
||||
m_minValue = val; \
|
||||
if( m_value < m_minValue ) m_value = m_minValue; \
|
||||
} \
|
||||
\
|
||||
inline void setMaxValue(type val) \
|
||||
{ \
|
||||
m_maxValue = val; \
|
||||
if( m_value > m_maxValue ) m_value = m_maxValue; \
|
||||
}
|
||||
|
||||
// some typed AutomatableModel-definitions
|
||||
|
||||
|
||||
@@ -105,6 +105,8 @@ private:
|
||||
QHBoxLayout * chLayout;
|
||||
QWidget * m_channelAreaWidget;
|
||||
EffectRackView * m_rackView;
|
||||
|
||||
void updateMaxChannelSelector();
|
||||
} ;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#ifndef SENDBUTTONINDICATOR_H
|
||||
#define SENDBUTTONINDICATOR_H
|
||||
|
||||
#include <QLabel>
|
||||
#include <QDebug>
|
||||
#include <QPixmap>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QPixmap>
|
||||
|
||||
#include "FxLine.h"
|
||||
#include "FxMixerView.h"
|
||||
|
||||
Reference in New Issue
Block a user