mirror of
https://github.com/LMMS/lmms.git
synced 2026-01-29 08:43:18 -05:00
31 lines
792 B
C++
31 lines
792 B
C++
/* 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
|