BoardRight::BoardRight(QWidget *parent, SubteStatus * subte, EventHandler *eventHandler) : BaseBoard(parent,subte,eventHandler), ui(new Ui::BoardRight) { ui->setupUi(this); QSize buttonSize; buttonSize.setWidth(78); buttonSize.setHeight(78); ui->CONDisy_widget->setSize(buttonSize); ui->DESDisy_widget->setSize(buttonSize); ui->calientapies->setSize(buttonSize); ui->frenoRetencion->setSize(buttonSize); ui->desacople->setSize(buttonSize); connect(m_eventHandler,SIGNAL(controlReady()),this,SLOT(startBoard())); connect(m_eventHandler,SIGNAL(controlDisable()),this,SLOT(disableScreen())); connect(m_eventHandler,SIGNAL(controlEnable()),this,SLOT(enableScreen())); connect(m_eventHandler,SIGNAL(controlReset()),this,SLOT(resetControls())); connect(m_eventHandler,SIGNAL(cargarEstado(int)),this,SLOT(loadState(int))); m_manometer = NULL; m_CON_Disyuntor = NULL; m_DES_Disyuntor = NULL; m_sicasmac = NULL; m_modoConduccion = NULL; m_frenoRetencion = NULL; }
BoardHardware::BoardHardware(QWidget *parent, SubteStatus * subte, EventHandler *eventHandler) : BaseBoard(parent,subte,eventHandler), ui(new Ui::BoardHardware) { ui->setupUi(this); connect(m_eventHandler,SIGNAL(controlReady()),this,SLOT(startBoard())); connect(m_eventHandler,SIGNAL(controlDisable()),this,SLOT(disableScreen())); connect(m_eventHandler,SIGNAL(controlEnable()),this,SLOT(enableScreen())); connect(m_eventHandler,SIGNAL(controlReset()),this,SLOT(resetControls())); connect(m_eventHandler,SIGNAL(cargarEstado(int)),this,SLOT(loadState(int))); connect(m_eventHandler,SIGNAL(bPressed()),this,SLOT(bocinaON())); connect(m_eventHandler,SIGNAL(bReleased()),this,SLOT(bocinaOFF())); // connect(m_eventHandler,SIGNAL(aPressed()),this,SLOT(ranaAD())); // connect(m_eventHandler,SIGNAL(ceroPressed()),this,SLOT(ranaCERO())); // connect(m_eventHandler,SIGNAL(rPressed()),this,SLOT(ranaAT())); connect(m_eventHandler,SIGNAL(fPressed()),this,SLOT(setaON())); connect(m_eventHandler,SIGNAL(tPressed()),this,SLOT(setaOFF())); m_horn = NULL; // m_tractionLever = NULL; // m_rana = NULL; // m_hombreMuerto = NULL; m_setaButton = NULL; m_tractionHardware = NULL; }
BoardLeft::BoardLeft(QWidget *parent, SubteStatus * subte, EventHandler *eventHandler) : BaseBoard(parent,subte,eventHandler), ui(new Ui::BoardLeft) { ui->setupUi(this); connect(m_eventHandler,SIGNAL(controlReady()),this,SLOT(startBoard())); connect(m_eventHandler,SIGNAL(controlDisable()),this,SLOT(disableScreen())); connect(m_eventHandler,SIGNAL(controlEnable()),this,SLOT(enableScreen())); connect(m_eventHandler,SIGNAL(controlReset()),this,SLOT(resetControls())); connect(m_eventHandler,SIGNAL(cargarEstado(int)),this,SLOT(loadState(int))); }