-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormAnalyseTempo.cpp
More file actions
38 lines (28 loc) · 1.21 KB
/
FormAnalyseTempo.cpp
File metadata and controls
38 lines (28 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "FormAnalyseTempo.h"
FormAnalyseTempo::FormAnalyseTempo(analyseTemporelle *anaTempo, QWidget *parent) : QWidget(parent)
{
this->anaTempo=anaTempo;
QVBoxLayout * layoutPrincipal = new QVBoxLayout();
QGroupBox * groupGeo = new QGroupBox("Analyse Temporelle");
QFormLayout * layout = new QFormLayout;
periodeWidget = new QDoubleSpinBox();
periodeWidget->setMaximum(INT_MAX);
layout->addRow("Période:",periodeWidget);
connect(periodeWidget,SIGNAL(valueChanged(double)),anaTempo,SLOT(SetPeriode(double)));
tempsWidget = new QDoubleSpinBox();
tempsWidget->setMaximum(INT_MAX);
layout->addRow("Temps:",tempsWidget);
connect(tempsWidget,SIGNAL(valueChanged(double)),anaTempo,SLOT(SetTemps(double)));
layout->setAlignment(Qt::AlignTop);
groupGeo->setLayout(layout);
layoutPrincipal->addWidget(groupGeo);
setLayout(layoutPrincipal);
init();
}
void FormAnalyseTempo::init()
{
periodeWidget->setValue(anaTempo->GetPeriode());
connect(periodeWidget,SIGNAL(valueChanged(double)),anaTempo,SLOT(SetPeriode(double)));
tempsWidget->setValue(anaTempo->GetTemps());
connect(tempsWidget,SIGNAL(valueChanged(double)),anaTempo,SLOT(SetTemps(double)));
}