updated boolModel, split lb302 for MV but there is a bug

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms-mv@669 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-01-24 05:50:29 +00:00
parent 157940921c
commit 0f23db9f9a
10 changed files with 274 additions and 183 deletions

View File

@@ -181,11 +181,11 @@ const int ARP_GROUPBOX_HEIGHT = 240 - ARP_GROUPBOX_Y;
arpAndChordsTabWidget::arpAndChordsTabWidget(
instrumentTrack * _instrument_track ) :
QWidget( _instrument_track->tabWidgetParent() ),
m_chordsEnabledModel( new boolModel( FALSE, FALSE, TRUE, 1 /* this */ ) ),
m_chordsEnabledModel( new boolModel( FALSE ) ),
m_chordsModel( new comboBoxModel( /* this */ ) ),
m_chordRangeModel( new floatModel( 1.0f, 1.0f, 9.0f, 1.0f
/* this */ ) ),
m_arpEnabledModel( new boolModel( FALSE, FALSE, TRUE, 1/* this */ ) ),
m_arpEnabledModel( new boolModel( FALSE ) ),
m_arpModel( new comboBoxModel( /* this */ ) ),
m_arpRangeModel( new floatModel( 1.0f, 1.0f, 9.0f, 1.0f
/* this */ ) ),

View File

@@ -42,7 +42,7 @@ effect::effect( const plugin::descriptor * _desc,
m_noRun( FALSE ),
m_running( FALSE ),
m_bufferCount( 0 ),
m_enabledModel( TRUE, FALSE, TRUE, boolModel::defaultRelStep(), this ),
m_enabledModel( TRUE, this ),
m_wetDryModel( 1.0f, 0.0f, 1.0f, 0.01f, this ),
m_gateModel( 0.0f, 0.0f, 1.0f, 0.01f, this ),
m_autoQuitModel( 1.0f, 1.0f, 8000.0f, 100.0f, this )

View File

@@ -74,7 +74,7 @@ static const QString targetNames[envelopeTabWidget::TARGET_COUNT][2] =
envelopeTabWidget::envelopeTabWidget( instrumentTrack * _instrument_track ) :
QWidget( _instrument_track->tabWidgetParent() ),
m_instrumentTrack( _instrument_track ),
m_filterEnabledModel( new boolModel( FALSE, FALSE, TRUE, 1 /* this */ ) ),
m_filterEnabledModel( new boolModel( FALSE /* this */ ) ),
m_filterModel( new comboBoxModel( /* this */ ) ),
m_filterCutModel( new floatModel( /* this */ ) ),
m_filterResModel( new floatModel( /* this */ ) )

View File

@@ -33,10 +33,8 @@ ladspaControl::ladspaControl( model * _parent, port_desc_t * _port,
model( _parent ),
m_link( _link ),
m_port( _port ),
m_linkEnabledModel( _link, FALSE, TRUE, boolModel::defaultRelStep(),
this ),
m_toggledModel( FALSE, FALSE, TRUE, boolModel::defaultRelStep(),
this ),
m_linkEnabledModel( _link, this ),
m_toggledModel( FALSE, this ),
m_knobModel( 0, 0, 0, 1, this )
{
if( m_link )

View File

@@ -65,7 +65,7 @@ textFloat * knob::s_textFloat = NULL;
knob::knob( int _knob_num, QWidget * _parent, const QString & _name ) :
QWidget( _parent ),
autoModelView( new autoModel( 0, 0, 0, 1, NULL, TRUE ) ),
autoModelView( new knobModel( 0, 0, 0, 1, NULL, TRUE ) ),
m_mouseOffset( 0.0f ),
m_buttonPressed( FALSE ),
m_hintTextBeforeValue( "" ),