370 : QWidget(parent)
371{
372 QGroupBox *checkBoxGroup = new QGroupBox(tr("Advanced settings"));
373
376 " <div style=\"width: 300px;\">By default, VP1 simply exits at the end of the ATHENA job, which might be confusing to some. When this variable is set, VP1 will show an dialog, letting the user know that the end of the job has been reached.</div>"
377 " </html>", 0
378 ));
379 #if defined BUILDVP1LIGHT
382 }
384 #else
387 }
389 #endif
390
393 " <div style=\"width: 300px;\">By default, the VP1 algorithm simply tells ATHENA to end the job when VP1 is being closed. This means that ATHENA will shut down with its usual procedure, calling finalise on algorithms, generating summaries, etc. If this variable is set, then VP1 will make the process end immediately and abrubtly instead - saving the user some time.</div>"
394 " </html>", 0
395 ));
396 #if defined BUILDVP1LIGHT
399 }
401 #else
404 }
406 #endif
407
410 " <div style=\"width: 300px;\">Use to enable a few controls related to VP1 cruise-mode, which have presently been disabled.</div>"
411 " </html>", 0
412 ));
413 #if defined BUILDVP1LIGHT
416 }
418 #else
421 }
423 #endif
424
425
426 QGroupBox *directoryGroup = new QGroupBox(tr("Directory settings"));
427
431
432 #if defined BUILDVP1LIGHT
434 #ifdef MACBUNDLE
435 m_lineEdit1->setText(QCoreApplication::applicationDirPath()+
"/../Frameworks");
436 #else
437 m_lineEdit1->setText(QCoreApplication::applicationDirPath()+
"/../lib");
438 #endif
439 } else {
441 }
442 #else
444 m_lineEdit1->setText(QCoreApplication::applicationDirPath()+
"/../lib");
445 } else {
447 }
448 #endif
449 m_lineEdit1->setToolTip( QApplication::translate(__FUNCTION__,
" <html>\n"
450 " <div style=\"width: 300px;\">Select the directory that contains the plugin libraries.</div>"
451 " </html>", 0
452 ));
454
457 #if defined BUILDVP1LIGHT
459 #else
461 #endif
462 m_lineEdit2->setToolTip( QApplication::translate(__FUNCTION__,
" <html>\n"
463 " <div style=\"width: 300px;\">By default, the various VP1 file selectors starts in the job run-directory. Setting this variable to a directory ensures that that directory is used by default instead.</div>"
464 " </html>", 0
465 ));
467
470 #if defined BUILDVP1LIGHT
472 #else
474 #endif
475 m_lineEdit3->setToolTip( QApplication::translate(__FUNCTION__,
" <html>\n"
476 " <div style=\"width: 300px;\">Enables creation of an authentication log file for VP1 live.</div>"
477 " </html>", 0
478 ));
480
481
482 QVBoxLayout *checkBoxLayout = new QVBoxLayout;
486 checkBoxGroup->setLayout(checkBoxLayout);
487
488 QGridLayout *gridLayout = new QGridLayout(this);
489 gridLayout->addWidget(new QLabel(tr("Plugin path:")), 0, 0);
492 gridLayout->addWidget(new QLabel(tr("File selection directory:")), 2, 0);
495 gridLayout->addWidget(new QLabel(tr("Authentication log directory:")), 4, 0);
498 directoryGroup->setLayout(gridLayout);
499
500 QVBoxLayout *mainLayout = new QVBoxLayout;
501 mainLayout->addWidget(checkBoxGroup);
502 mainLayout->addWidget(directoryGroup);
503 mainLayout->addStretch(1);
504 setLayout(mainLayout);
505}
QCheckBox * m_checkboxDevelShowAllCruiseAndEventControls
void slotAuthLogChanged(const QString &path)
QCheckBox * m_checkboxEnableInformOnEndOfJob
void on_browseButton1_clicked()
void slotPluginPathChanged(const QString &path)
QCheckBox * m_checkboxHardExitAtEnd
QPushButton * m_browseButton2
void slotFileSelectDirChanged(const QString &path)
void setExpertSetting(const QString &name)
void on_browseButton3_clicked()
QPushButton * m_browseButton3
void on_browseButton2_clicked()
QPushButton * m_browseButton1
static bool environmentVariableIsOn(const QString &name)
static QString expertSettingValue(const QString &type, const QString &name)
static QString environmentVariableValue(const QString &name)
static bool expertSettingIsOn(const QString &type, const QString &name)