InstrumentSoundShapingView: display info about single-streamed instruments
Until we have a solution for hiding the ENV/LFO tab, display a sensible message at least.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* InstrumentSoundShapingView.h - view for InstrumentSoundShaping class
|
||||
*
|
||||
* Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
@@ -30,6 +30,8 @@
|
||||
#include "InstrumentSoundShaping.h"
|
||||
#include "ModelView.h"
|
||||
|
||||
class QLabel;
|
||||
|
||||
class EnvelopeAndLfoView;
|
||||
class comboBox;
|
||||
class groupBox;
|
||||
@@ -61,6 +63,8 @@ private:
|
||||
knob * m_filterCutKnob;
|
||||
knob * m_filterResKnob;
|
||||
|
||||
QLabel* m_singleStreamInfoLabel;
|
||||
|
||||
} ;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* InstrumentSoundShapingView.cpp - view for InstrumentSoundShaping class
|
||||
*
|
||||
* Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
@@ -22,6 +22,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <QtGui/QLabel>
|
||||
|
||||
#include "InstrumentSoundShapingView.h"
|
||||
#include "EnvelopeAndLfoParameters.h"
|
||||
#include "EnvelopeAndLfoView.h"
|
||||
@@ -115,6 +117,16 @@ InstrumentSoundShapingView::InstrumentSoundShapingView( QWidget * _parent ) :
|
||||
tr( "Use this knob for setting Q/Resonance for the selected "
|
||||
"filter. Q/Resonance tells the filter how much it "
|
||||
"should amplify frequencies near Cutoff-frequency." ) );
|
||||
|
||||
|
||||
m_singleStreamInfoLabel = new QLabel( tr( "Envelopes, LFOs and filters are not supported by the current instrument." ), this );
|
||||
m_singleStreamInfoLabel->setWordWrap( true );
|
||||
m_singleStreamInfoLabel->setFont( pointSize<8>( m_singleStreamInfoLabel->font() ) );
|
||||
|
||||
m_singleStreamInfoLabel->setGeometry( TARGETS_TABWIDGET_X,
|
||||
TARGETS_TABWIDGET_Y,
|
||||
TARGETS_TABWIDGET_WIDTH,
|
||||
TARGETS_TABWIDGET_HEIGTH );
|
||||
}
|
||||
|
||||
|
||||
@@ -131,6 +143,7 @@ void InstrumentSoundShapingView::setFunctionsHidden( bool hidden )
|
||||
{
|
||||
m_targetsTabWidget->setHidden( hidden );
|
||||
m_filterGroupBox->setHidden( hidden );
|
||||
m_singleStreamInfoLabel->setHidden( !hidden );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user