// slot telling us that port was closed successfully // if 'reopen' is true, reopen our port to toggle // so we reset the controller void MainWindow::portIsClosed(bool reopen) { SLEEP(100); ui->tabAxisVisualizer->setEnabled(false); ui->groupBoxSendFile->setEnabled(false); ui->comboCommand->setEnabled(false); ui->labelCommand->setEnabled(false); ui->cmbPort->setEnabled(true); ui->comboBoxBaudRate->setEnabled(true); ui->btnOpenPort->setEnabled(true); ui->btnOpenPort->setText(open_button_text); ui->btnOpenPort->setStyleSheet(styleSheet); ui->btnGRBL->setEnabled(false); ui->btnSetHome->setEnabled(false); ui->btnResetGrbl->setEnabled(false); ui->btnUnlockGrbl->setEnabled(false); ui->btnGoHomeSafe->setEnabled(false); if (reopen) { receiveList(tr("Resetting port to restart controller")); openPortCtl(false); } }
// User has asked to open the port void MainWindow::openPort() { QString Mes = tr("User clicked Port Open/Close"); info(qPrintable(Mes) ); openPortCtl(false); }
// User has asked to open the port void MainWindow::openPort() { info("User clicked Port Open/Close"); openPortCtl(false); }