provides a new GUI for the peak controller plugin
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 1.5 KiB |
@@ -39,17 +39,14 @@ PeakControllerEffectControlDialog::PeakControllerEffectControlDialog(
|
||||
PeakControllerEffectControls * _controls ) :
|
||||
EffectControlDialog( _controls )
|
||||
{
|
||||
setWindowIcon( embed::getIconPixmap( "controller" ) );
|
||||
setAutoFillBackground( true );
|
||||
QPalette pal;
|
||||
pal.setBrush( backgroundRole(),
|
||||
PLUGIN_NAME::getIconPixmap( "artwork" ) );
|
||||
setPalette( pal );
|
||||
setFixedSize( 240, 100 );
|
||||
|
||||
QVBoxLayout * tl = new QVBoxLayout( this );
|
||||
tl->setContentsMargins( 5, 30, 5, 8 );
|
||||
|
||||
QHBoxLayout * l = new QHBoxLayout;
|
||||
l->setSpacing( 4 );
|
||||
m_baseKnob = new Knob( knobBright_26, this );
|
||||
m_baseKnob->setLabel( tr( "BASE" ) );
|
||||
m_baseKnob->setModel( &_controls->m_baseModel );
|
||||
@@ -80,28 +77,30 @@ PeakControllerEffectControlDialog::PeakControllerEffectControlDialog(
|
||||
m_tresholdKnob->setModel( &_controls->m_tresholdModel );
|
||||
m_tresholdKnob->setHintText( tr( "Treshold:" ) , "" );
|
||||
|
||||
l->addWidget( m_baseKnob );
|
||||
l->addWidget( m_amountKnob );
|
||||
l->addWidget( m_amountMultKnob );
|
||||
l->addWidget( m_attackKnob );
|
||||
l->addWidget( m_decayKnob );
|
||||
l->addWidget( m_tresholdKnob );
|
||||
l->addStretch(); // expand, so other widgets have minimum width
|
||||
tl->addLayout( l );
|
||||
|
||||
QVBoxLayout * l2 = new QVBoxLayout; // = 2nd vbox
|
||||
|
||||
m_muteLed = new LedCheckBox( "Mute Effect", this );
|
||||
m_muteLed->setModel( &_controls->m_muteModel );
|
||||
|
||||
m_absLed = new LedCheckBox( "Absolute Value", this );
|
||||
m_absLed->setModel( &_controls->m_absModel );
|
||||
|
||||
l2->addWidget( m_muteLed );
|
||||
l2->addWidget( m_absLed );
|
||||
l2->addStretch(); // expand, so other widgets have minimum height
|
||||
tl->addLayout( l2 );
|
||||
QVBoxLayout * mainLayout = new QVBoxLayout();
|
||||
QHBoxLayout * knobLayout = new QHBoxLayout();
|
||||
QHBoxLayout * ledLayout = new QHBoxLayout();
|
||||
|
||||
setLayout( tl );
|
||||
knobLayout->addWidget( m_baseKnob );
|
||||
knobLayout->addWidget( m_amountKnob );
|
||||
knobLayout->addWidget( m_amountMultKnob );
|
||||
knobLayout->addWidget( m_attackKnob );
|
||||
knobLayout->addWidget( m_decayKnob );
|
||||
knobLayout->addWidget( m_tresholdKnob );
|
||||
|
||||
ledLayout->addWidget( m_muteLed );
|
||||
ledLayout->addWidget( m_absLed );
|
||||
|
||||
mainLayout->setContentsMargins( 0, 30, 0, 0 );
|
||||
mainLayout->addLayout( knobLayout );
|
||||
mainLayout->addLayout( ledLayout );
|
||||
|
||||
this->setLayout( mainLayout );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user