-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathguicorteconexion.h
executable file
·64 lines (48 loc) · 1.5 KB
/
guicorteconexion.h
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
63
64
#ifndef GUICORTECONEXION_H
#define GUICORTECONEXION_H
#include <QDialog>
#include <QHBoxLayout>
#include <QVBoxLayout>
// Considerando un caracter de comando, uno de accion, dos de localizacion y cuatro de contraseña (8byte) en 160 caracteres resulta en un maximo de 20:
#define MAX_EJE 20
class QLineEdit;
class QLabel;
class QPushButton;
class GUICorteConexion : public QDialog
{
Q_OBJECT
public:
GUICorteConexion(QWidget * parent=0);
int obtenerFaltantes();
int obtenerSubsistema();
QByteArray obtenerAccion(int posicion);
QByteArray obtenerCentralizador(int posicion);
QByteArray obtenerPuerto(int posicion);
void ordenEjecutada();
QHBoxLayout * robarVista(); // Tricky
signals:
void ordenEjecutar();
private slots:
void cortarPresionado();
void establecerPresionado();
void ejecutarPresionado();
void cancelarPresionado();
private:
QHBoxLayout * total; // Tricky
//QLabel * etiquetaCodigo;
QLabel * etiquetaSubSistema;
QLabel * etiquetaCentralizador;
QLabel* etiquetaPuerto;
QLabel * etiRegistro;
QLineEdit * ingresoSubSistema;
QLineEdit * ingresoCentralizador;
QLineEdit * ingresoPuerto;
QPushButton * botonCortar;
QPushButton * botonEstablecer;
QPushButton * botonEjecutar;
QPushButton * botonCancelar;
int faltantes;
QByteArray accion[MAX_EJE];
QByteArray locacion[MAX_EJE][2];
};
#endif // GUICORTECONEXION_H