SensorBrowseControl::SensorBrowseControl(bool showPoints) : mUi(new Ui_SensorBrowseControl()), mLogFilesize(0), mLogFilepos(0), mMinDistance(Converter::mMinDistance), mMaxDistance(Converter::mMaxDistance) { mUi->setupUi(this); mLogMenu = mMenu.addMenu("Log"); mLogStartAction = mLogMenu->addAction("Seek start", this, SLOT(logStartClicked())); mLogStartAction->setShortcut(Qt::Key_Home); mLogPlayAction = mLogMenu->addAction("Play", this, SLOT(logPlayTriggered())); mLogPlayAction->setCheckable(true); mLogPlayAction->setShortcut(Qt::Key_Space); mLogSkipAction = mLogMenu->addAction("Skip scan", this, SLOT(logSkipClicked())); mLogSkipAction->setShortcut(Qt::Key_PageDown); mTimer.setSingleShot(true); connect(&mTimer, SIGNAL(timeout()), this, SLOT(timerTimeout())); mUi->colorChooser->setPalette(&mPalette); connect(&mPalette, SIGNAL(colorChanged(const QString&, const QColor&)), this, SLOT(colorChanged(const QString&, const QColor&))); connect(&View3d::getInstance().getScene(), SIGNAL(render(View3d&, Scene3d&)), this, SLOT(render(View3d&, Scene3d&))); setPointColor(Qt::gray); setPointSize(1.0); setShowPoints(showPoints); setSmoothPoints(true); setCalibrationFilename(mUi->calibrationEdit->text()); setLogFilename(QDir::current().path()); setMinDistance(mMinDistance); setMaxDistance(mMaxDistance); }
FileLogOutputter::FileLogOutputter(const char* logFile) { setLogFilename(logFile); }