InstrumentTrack: hide sound shaping widgets for single-streamed instruments

We currently don't apply envelopes/LFOs and filters to single-streamed
instruments, therefore hide the GUI.
This commit is contained in:
Tobias Doerffel
2014-03-08 13:17:55 +01:00
parent 4803c3542d
commit b01f093e37
3 changed files with 11 additions and 0 deletions

View File

@@ -44,6 +44,8 @@ public:
InstrumentSoundShapingView( QWidget * _parent );
virtual ~InstrumentSoundShapingView();
void setFunctionsHidden( bool hidden );
private:
virtual void modelChanged();

View File

@@ -127,6 +127,13 @@ InstrumentSoundShapingView::~InstrumentSoundShapingView()
void InstrumentSoundShapingView::setFunctionsHidden( bool hidden )
{
m_targetsTabWidget->setHidden( hidden );
m_filterGroupBox->setHidden( hidden );
}
void InstrumentSoundShapingView::modelChanged()
{

View File

@@ -1408,6 +1408,8 @@ void InstrumentTrackWindow::updateInstrumentView()
m_tabWidget->addTab( m_instrumentView, tr( "PLUGIN" ), 0 );
m_tabWidget->setActiveTab( 0 );
m_ssView->setFunctionsHidden( m_track->m_instrument->flags().testFlag( Instrument::IsSingleStreamed ) );
modelChanged(); // Get the instrument window to refresh
m_track->dataChanged(); // Get the text on the trackButton to change
}