small internal changes

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@158 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2006-06-13 11:19:42 +00:00
parent a4a67afdb5
commit eed921c64c
14 changed files with 151 additions and 76 deletions

View File

@@ -52,7 +52,8 @@ oscillator::oscillator( const waveShapes * _wave_shape,
void oscillator::update( sampleFrame * _ab, const fpab_t _frames, const ch_cnt_t _chnl )
void oscillator::update( sampleFrame * _ab, const fpab_t _frames,
const ch_cnt_t _chnl )
{
if( m_subOsc != NULL )
{

View File

@@ -86,8 +86,7 @@ textFloat * knob::s_textFloat = NULL;
knob::knob( int _knob_num, QWidget * _parent, const QString & _name,
engine * _engine,
const int _knob_id ) :
engine * _engine ) :
QWidget( _parent
#ifndef QT4
, _name.ascii()
@@ -101,8 +100,7 @@ knob::knob( int _knob_num, QWidget * _parent, const QString & _name,
m_hintTextBeforeValue( "" ),
m_hintTextAfterValue( "" ),
m_label( "" ),
m_initValue( 0.0f ),
m_knobId( _knob_id )
m_initValue( 0.0f )
{
if( s_textFloat == NULL )
{
@@ -248,7 +246,7 @@ void knob::valueChange( void )
recalcAngle();
update();
emit valueChanged( value() );
emit idKnobChanged( m_knobId );
emit valueChanged( data() );
}
@@ -461,7 +459,7 @@ void knob::mouseMoveEvent( QMouseEvent * _me )
{
setPosition( _me->pos() );
emit sliderMoved( value() );
emit idKnobChanged( m_knobId );
emit valueChanged( data() );
if( !configManager::inst()->value( "knobs",
"classicalusability").toInt() )
{
@@ -576,7 +574,7 @@ void knob::wheelEvent( QWheelEvent * _we )
s_textFloat->setVisibilityTimeOut( 1000 );
emit sliderMoved( value() );
emit idKnobChanged( m_knobId );
emit valueChanged( data() );
}
@@ -585,7 +583,7 @@ void knob::wheelEvent( QWheelEvent * _we )
void knob::buttonReleased( void )
{
emit valueChanged( value() );
emit idKnobChanged( m_knobId );
emit valueChanged( data() );
}

View File

@@ -48,8 +48,8 @@
volumeKnob::volumeKnob( int _knob_num, QWidget * _parent, const QString & _name,
engine * _engine, const int _knob_id ):
knob( _knob_num, _parent, _name, _engine, _knob_id )
engine * _engine ) :
knob( _knob_num, _parent, _name, _engine )
{
}
@@ -129,7 +129,7 @@ void volumeKnob::mouseMoveEvent( QMouseEvent * _me )
{
setPosition( _me->pos() );
emit sliderMoved( value() );
emit idKnobChanged( m_knobId );
emit valueChanged( data() );
if( !configManager::inst()->value( "knobs",
"classicalusability").toInt() )
{
@@ -181,7 +181,7 @@ void volumeKnob::wheelEvent( QWheelEvent * _we )
s_textFloat->setVisibilityTimeOut( 1000 );
emit sliderMoved( value() );
emit idKnobChanged( m_knobId );
emit valueChanged( data() );
}