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:
@@ -44,6 +44,8 @@ public:
|
||||
InstrumentSoundShapingView( QWidget * _parent );
|
||||
virtual ~InstrumentSoundShapingView();
|
||||
|
||||
void setFunctionsHidden( bool hidden );
|
||||
|
||||
|
||||
private:
|
||||
virtual void modelChanged();
|
||||
|
||||
@@ -127,6 +127,13 @@ InstrumentSoundShapingView::~InstrumentSoundShapingView()
|
||||
|
||||
|
||||
|
||||
void InstrumentSoundShapingView::setFunctionsHidden( bool hidden )
|
||||
{
|
||||
m_targetsTabWidget->setHidden( hidden );
|
||||
m_filterGroupBox->setHidden( hidden );
|
||||
}
|
||||
|
||||
|
||||
|
||||
void InstrumentSoundShapingView::modelChanged()
|
||||
{
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user