/[qspeakers]/branches/qtcharts/bandpassdialog.cpp
ViewVC logotype

Contents of /branches/qtcharts/bandpassdialog.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 220 - (show annotations)
Sun Mar 18 21:16:30 2018 UTC (3 years, 6 months ago) by ben
File size: 612 byte(s)
added bandpass aligment chooser dialog
1 #include "bandpassdialog.h"
2 #include "ui_bandpassdialog.h"
3
4 BandpassDialog::BandpassDialog(QWidget *parent) :
5 QDialog(parent),
6 ui(new Ui::BandpassDialog)
7 {
8 ui->setupUi(this);
9
10 connect(this, SIGNAL(accepted()), this, SLOT(onAccepted()));
11 connect(this, SIGNAL(rejected()), this, SLOT(onRejected()));
12 }
13
14 BandpassDialog::~BandpassDialog()
15 {
16 delete ui;
17 }
18
19 void BandpassDialog::onAccepted()
20 {
21 double s, pa;
22 s = ui->rippleDoubleSpinBox->value();
23 pa = ui->gainSpinBox->value();
24 emit optimizeRequested(s, pa);
25 }
26
27 void BandpassDialog::onRejected()
28 {
29 emit optimizeCancelled();
30 }

  ViewVC Help
Powered by ViewVC 1.1.26