forked from PALYGAP/MidyAX-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
midiknob.cpp
executable file
·45 lines (32 loc) · 1.12 KB
/
midiknob.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "midiknob.h"
MIDIKnob::MIDIKnob(QObject *parent) : QObject(parent)
{
connect(m_TheSlider, SIGNAL(valueChanged( int )), this, SLOT( onSliderValueChanged(int)) );
connect(m_TheSlider, SIGNAL(valueChanged( int )), m_TheLineEdit, SLOT( setTextFromInt(int)) );
connect(m_TheComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT( onComboBoxCurrentIndexChanged(int)) );
connect(m_TheSlider, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT( onVerticalSliderCustomContextMenuRequested(const QPoint )) );
}
void onSliderValueChanged( int value )
{
emit knobValueChanges( value );
}
void onComboBoxCurrentIndexChanged( int index )
{
emit knobCurrentIndexChanged( index );
}
//void onLineEditEditingFinished( void )
//{
// emit knobLEEditingFinished();
//}
void onVerticalSliderCustomContextMenuRequested( const QPoint loc )
{
emit knobCustomContextMenuRequested( loc );
}
void setBlockLabel( Qstring blockLabel )
{
m_TheBlockLabel.setText( blockLabel);
}
void setEffectLabel( Qstring effectLabel )
{
m_TheEffectLabel.setText( effectLabel );
}