Skip to content

Commit

Permalink
Redesign Spectrum Analyzer (#2971)
Browse files Browse the repository at this point in the history
* Redesign Spectrum Analyzer

* Update Spectrum Analyzer

* Update background
  • Loading branch information
RebeccaDeField authored and Umcaruje committed Aug 25, 2016
1 parent 703a42e commit cf824bd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions plugins/SpectrumAnalyzer/SpectrumAnalyzerControlDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,18 @@ SpectrumAnalyzerControlDialog::SpectrumAnalyzerControlDialog( SpectrumAnalyzerCo
setAutoFillBackground( true );
QPalette pal;
pal.setBrush( backgroundRole(), PLUGIN_NAME::getIconPixmap( "background" ) );
setFixedSize( 280, 243 );
setFixedSize( 293, 205 );
setPalette( pal );
/* QVBoxLayout * l = new QVBoxLayout( this );*/
SpectrumView* v = new SpectrumView( controls->m_effect, this );
v->move( 27, 30 );
v->move( 34, 10 );

LedCheckBox * lin_spec = new LedCheckBox( tr( "Linear spectrum" ), this );
lin_spec->move( 24, 204 );
lin_spec->move( 32, 182 );
lin_spec->setModel( &controls->m_linearSpec );

LedCheckBox * lin_y = new LedCheckBox( tr( "Linear Y axis" ), this );
lin_y->move( 24, 220 );
lin_y->move( 137, 182 );
lin_y->setModel( &controls->m_linearYAxis );

connect( &controls->m_linearSpec, SIGNAL( dataChanged() ), this, SLOT( update() ) );
Expand All @@ -181,13 +181,12 @@ void SpectrumAnalyzerControlDialog::paintEvent( QPaintEvent * )

if( !m_controls->m_linearSpec.value() )
{
p.drawPixmap( 25, 183, m_logXAxis );
p.drawPixmap( 33, 165, m_logXAxis );
}

if( !m_controls->m_linearYAxis.value() )
{
p.drawPixmap( 3, 47, m_logYAxis);
p.drawPixmap( 10, 29, m_logYAxis);
}

}

Binary file modified plugins/SpectrumAnalyzer/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plugins/SpectrumAnalyzer/spectrum_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plugins/SpectrumAnalyzer/spectrum_background_plain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cf824bd

Please sign in to comment.