/[qspeakers]/mainwindow.cpp
ViewVC logotype

Diff of /mainwindow.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by ben, Mon Oct 6 19:04:23 2014 UTC revision 5 by ben, Mon Oct 6 20:36:42 2014 UTC
# Line 10  Line 10 
10    
11  #include "speakerdb.h"  #include "speakerdb.h"
12  #include "importexport.h"  #include "importexport.h"
13    #include "plot.h"
14    
15  MainWindow::MainWindow(QWidget *parent) :  MainWindow::MainWindow(QWidget *parent) :
16      QMainWindow(parent),      QMainWindow(parent),
# Line 25  MainWindow::MainWindow(QWidget *parent) Line 26  MainWindow::MainWindow(QWidget *parent)
26  {  {
27      ui->setupUi(this);      ui->setupUi(this);
28    
     //this->setCentralWidget(ui->centralWidget);  
   
29      /* insert Qwt plotters in ui */      /* insert Qwt plotters in ui */
30    
31      QHBoxLayout *ly1 = new QHBoxLayout(ui->sealedVolumePlotWidget);      QHBoxLayout *ly1 = new QHBoxLayout(ui->sealedVolumePlotWidget);
32      sealedPlot = new QwtPlot(tr("Sealed volume frequency response"), ui->sealedVolumePlotWidget);      sealedPlot = new Plot(tr("Sealed volume frequency response"), ui->sealedVolumePlotWidget);
33      ly1->insertWidget(0, sealedPlot);      ly1->insertWidget(0, sealedPlot);
34    
35      QHBoxLayout *ly2 = new QHBoxLayout(ui->portedPlotWidget);      QHBoxLayout *ly2 = new QHBoxLayout(ui->portedPlotWidget);
36      portedPlot = new QwtPlot(tr("Ported volume frequency response"), ui->portedPlotWidget);      portedPlot = new Plot(tr("Ported volume frequency response"), ui->portedPlotWidget);
37      ly2->insertWidget(0, portedPlot);      ly2->insertWidget(0, portedPlot);
38    
39      QHBoxLayout *ly3 = new QHBoxLayout(ui->bandpassPlotWidget);      QHBoxLayout *ly3 = new QHBoxLayout(ui->bandpassPlotWidget);
40      bandpassPlot = new QwtPlot(tr("Bandpass volumes frequency response"), ui->bandpassPlotWidget);      bandpassPlot = new Plot(tr("Bandpass volumes frequency response"), ui->bandpassPlotWidget);
41      ly3->insertWidget(0, bandpassPlot);      ly3->insertWidget(0, bandpassPlot);
42    
43      /* fill speaker combos */      /* fill speaker combos */

Legend:
Removed from v.4  
changed lines
  Added in v.5

  ViewVC Help
Powered by ViewVC 1.1.26