/** * @brief MainWindow::MainWindow * @param parent */ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); connected = false; canHandle = -1; busOn = false; uitimer.setInterval(100); uitimer.start(); connect(&uitimer, SIGNAL(timeout()), this, SLOT(uiUpdate())); connect(ui->lineEdit_CanByte0, SIGNAL(textChanged(QString)), this, SLOT(on_bytes_changed())); connect(ui->lineEdit_CanByte1, SIGNAL(textChanged(QString)), this, SLOT(on_bytes_changed())); connect(ui->lineEdit_CanByte2, SIGNAL(textChanged(QString)), this, SLOT(on_bytes_changed())); connect(ui->lineEdit_CanByte3, SIGNAL(textChanged(QString)), this, SLOT(on_bytes_changed())); connect(ui->lineEdit_CanByte4, SIGNAL(textChanged(QString)), this, SLOT(on_bytes_changed())); connect(ui->lineEdit_CanByte5, SIGNAL(textChanged(QString)), this, SLOT(on_bytes_changed())); connect(ui->lineEdit_CanByte6, SIGNAL(textChanged(QString)), this, SLOT(on_bytes_changed())); connect(ui->lineEdit_CanByte7, SIGNAL(textChanged(QString)), this, SLOT(on_bytes_changed())); canInitializeLibrary(); on_pushButtonRefresh_clicked(); ui->progressBarBusLoad->setMinimum(0); ui->progressBarBusLoad->setMaximum(10000); ui->comboBoxBaud->setCurrentIndex(2); }
void MainWindow::on_actionInstall_Drivers_triggered() { QMessageBox::StandardButton reply; reply = QMessageBox::question(this, "Install", "Install kvaser drivers?", QMessageBox::Yes|QMessageBox::No); if (reply == QMessageBox::Yes) { // install drivers system("kvaser_drivers_setup.exe"); canInitializeLibrary(); on_pushButtonRefresh_clicked(); }else{ qDebug() << "Yes was *not* clicked"; } }
void BurstStatisticsView::on_spinBoxBins_editingFinished() { qDebug("BurstView::on_spinBoxBins_editingFinished"); on_pushButtonRefresh_clicked(); }
void BurstStatisticsView::evaluate() { on_pushButtonRefresh_clicked(); }