-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreatewindow.h
More file actions
35 lines (30 loc) · 868 Bytes
/
createwindow.h
File metadata and controls
35 lines (30 loc) · 868 Bytes
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
#ifndef CREATEWINDOW_H
#define CREATEWINDOW_H
#include <QWidget>
#include <QLineEdit>
#include <QLabel>
#include <QComboBox>
#include "Sensor.h"
class createwindow:public QWidget
{
Q_OBJECT
private:
Sensor* s;
QLineEdit* minEdit;
QLineEdit* maxEdit;
QLineEdit* nameEdit;
QComboBox* modelloSelector;
QLabel* minimo;//Serve per specificare il range possibile in caso di modifica o creazione sensore
QComboBox* sensorSelector;
public:
createwindow(Sensor* s=nullptr,QWidget* parent=nullptr);
~createwindow();
private slots:
void modificarange(int);
void collegaModifica();
void collegaCrea();
signals:
void modifica(Sensor*,QString,int,int,modelli);//riturna s,nome,minimo, massimo e modello
void crea(QString,int,int,int,modelli);//ritorna nome, tipo,minimo, massimo e modello
};
#endif // CREATEWINDOW_H