SimulatorDialog::SimulatorDialog(QWidget *parent) : QMainWindow(parent), ui(new Ui::SimulatorDialog), m_numRows(0), m_paused(false), controller() { ui->setupUi(this); ui->btnStart->setEnabled(false); ui->btnPause->setEnabled(false); ui->btnStop->setEnabled(false); ui->spinBox_port->setValue(controller.getPort()); connect(&controller, SIGNAL(readGeomessage(Geomessage)), this, SLOT(addGeomessageToTable(Geomessage))); connect(&controller, SIGNAL(advancedToGeomessage(int)), this, SLOT(selectGeomessageInTable(int))); }
SimulatorDialog::SimulatorDialog(bool isVerboseOutput, QWidget *parent) : QMainWindow(parent), ui(new Ui::SimulatorDialog), m_numRows(0), m_paused(false), controller() { controller.setVerbose(isVerboseOutput); ui->setupUi(this); setWindowTitle(windowTitle() + " " + SimulatorController::RELEASE); ui->btnStart->setEnabled(false); ui->btnPause->setEnabled(false); ui->btnStop->setEnabled(false); ui->spinBox_port->setValue(controller.getPort()); connect(&controller, SIGNAL(readGeomessage(Geomessage)), this, SLOT(addGeomessageToTable(Geomessage))); connect(&controller, SIGNAL(advancedToGeomessage(int)), this, SLOT(selectGeomessageInTable(int))); }