| 277 | } |
| 278 | |
| 279 | void MainWindow::writeSettings() |
| 280 | { |
| 281 | _settings->setValue("OpenCV", _useOpenCV); |
| 282 | _settings->setValue("AutoSave", _autosaveEnabled); |
| 283 | _settings->setValue("DefaultImagePath", _defaultImagePath); |
| 284 | _settings->setValue("PluginDevPath", _pluginDevPath); |
| 285 | _settings->setValue("PluginPath", _pluginPath); |
| 286 | _settings->setValue("LogFile", _logFileEnabled); |
| 287 | |
| 288 | bool showLog = ui->actionShowLog->isChecked(); |
| 289 | bool synchronizeViews = ui->actionSynchronizeViews->isChecked(); |
| 290 | bool showThumbnails = ui->actionShowThumbnails->isChecked(); |
| 291 | bool alwaysOnTop = ui->actionImage_Viewer_always_on_top->isChecked(); |
| 292 | _settings->setValue("showLog", showLog); |
| 293 | _settings->setValue("alwaysOnTop", alwaysOnTop); |
| 294 | _settings->setValue("synchronizeViews", synchronizeViews); |
| 295 | _settings->setValue("showThumbnails", showThumbnails); |
| 296 | |
| 297 | _settings->beginGroup("MainWindow"); |
| 298 | _settings->setValue("size", size()); |
| 299 | _settings->setValue("pos", pos()); |
| 300 | _settings->setValue("isMaximized", isMaximized()); |
| 301 | _settings->endGroup(); |
| 302 | |
| 303 | QSize size = _imageViewer->lastSize(); |
| 304 | QPoint pos = _imageViewer->lastPos(); |
| 305 | int zoomWidgetMode = _imageViewer->zoomWidgetMode(); |
| 306 | if(size.width() > 0 && size.height() > 0) |
| 307 | { |
| 308 | _settings->beginGroup("ImageViewerWindow"); |
| 309 | _settings->setValue("size", size); |
| 310 | _settings->setValue("pos", pos); |
| 311 | _settings->setValue("zoomWidgetMode", zoomWidgetMode); |
| 312 | _settings->endGroup(); |
| 313 | } |
| 314 | |
| 315 | // recent projects |
| 316 | if (_recentProcessFiles.count() > 0 || _settings->contains("recentProjects")) |
| 317 | { |
| 318 | _settings->setValue("recentProjects", QVariant::fromValue<QStringList>(_recentProcessFiles)); |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | void MainWindow::showProcessSettings(IPProcessStep* processStep) |
| 323 | { |
no test coverage detected