-
Notifications
You must be signed in to change notification settings - Fork 7
/
modooperacion.cpp
62 lines (49 loc) · 1.37 KB
/
modooperacion.cpp
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include "modooperacion.h"
#include "ui_modooperacion.h"
ModoOperacion::ModoOperacion(QWidget *parent) :
QWidget(parent),
ui(new Ui::ModoOperacion){
ui->setupUi(this);
setWindowTitle("Modo de operación");
}
ModoOperacion::~ModoOperacion(){
delete ui;
}
void ModoOperacion::on_Archivo_clicked(){
this->file_manager = new FileManager();
this->file_manager->setData(this->br);
file_manager->show();
}
void ModoOperacion::on_pushButton_clicked(){
this->hide();
}
void ModoOperacion::on_execute_clicked(){
QString comando;
comando = ui->textEdit->toPlainText();
ui->textEdit->clear();
this->br->interpreteComando(comando.toStdString());
}
void ModoOperacion::on_gdl1_sliderReleased(){
this->br->externalGdl1(ui->gdl1->value());
}
void ModoOperacion::on_gdl2_sliderReleased(){
this->br->externalGdl2(ui->gdl2->value());
}
void ModoOperacion::on_gdl3_sliderReleased(){
this->br->externalGdl3(ui->gdl3->value());
}
void ModoOperacion::on_v1_sliderReleased(){
this->br->externalV1(ui->v1->value());
}
void ModoOperacion::on_v2_sliderReleased(){
this->br->externalV2(ui->v2->value());
}
void ModoOperacion::on_v3_sliderReleased(){
this->br->externalV3(ui->v3->value());
}
void ModoOperacion::on_homing_clicked(){
this->br->turnON();
}
void ModoOperacion::on_pushButton_3_clicked(){
this->br->executeLastProgram();
}