Show VST parameter string (#5321)

This commit is contained in:
Ibuki
2020-05-17 11:15:39 +09:00
committed by GitHub
parent 953a0b17c1
commit 1e8fcbdf2d
13 changed files with 232 additions and 11 deletions

30
include/CustomTextKnob.h Normal file
View File

@@ -0,0 +1,30 @@
/* Text customizable knob */
#ifndef CUSTOM_TEXT_KNOB_H
#define CUSTOM_TEXT_KNOB_H
#include "Knob.h"
class LMMS_EXPORT CustomTextKnob : public Knob
{
protected:
inline void setHintText( const QString & _txt_before, const QString & _txt_after ) {} // inaccessible
public:
CustomTextKnob( knobTypes _knob_num, QWidget * _parent = NULL, const QString & _name = QString(), const QString & _value_text = QString() );
CustomTextKnob( QWidget * _parent = NULL, const QString & _name = QString(), const QString & _value_text = QString() ); //!< default ctor
CustomTextKnob( const Knob& other ) = delete;
inline void setValueText(const QString & _value_text)
{
m_value_text = _value_text;
}
private:
virtual QString displayValue() const;
protected:
QString m_value_text;
} ;
#endif

View File

@@ -143,7 +143,7 @@ private slots:
void toggleScale();
private:
QString displayValue() const;
virtual QString displayValue() const;
void doConnections() override;

View File

@@ -97,6 +97,8 @@ const int effClose = 1; // currently unused
const int effSetProgram = 2; // currently unused
const int effGetProgram = 3; // currently unused
const int effGetProgramName = 5; // currently unused
const int effGetParamLabel = 6;
const int effGetParamDisplay = 7;
const int effGetParamName = 8; // currently unused
const int effSetSampleRate = 10;
const int effSetBlockSize = 11;