ATLAS Offline Software
VP1ExpertSettings.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // //
7 // Header file for class VP1ExpertSettings //
8 // //
9 // Description: Additional VP1 settings //
10 // //
11 // Author: Sebastian Andreas Merkt (sebastian.andreas.merkt@cern.ch) //
12 // Initial version: August 2017 //
13 // //
15 
16 #ifndef VP1EXPERTSETTINGS_H
17 #define VP1EXPERTSETTINGS_H
18 
19 #include <QDialog>
20 #include <QComboBox>
21 #include <QPushButton>
22 #include <QDialogButtonBox>
23 #include <QCheckBox>
24 
25 class VP1ExpertSettings : public QDialog
26 {
27  Q_OBJECT
28 public:
29  explicit VP1ExpertSettings(QWidget *parent = 0);
30 
31 public Q_SLOTS:
32  void setPluginPath(const QString &path);
33  void setFileSelectDir(const QString &path);
34  void setScreenshotDir(const QString &path);
35  void setAuthLog(const QString &path);
36 
37 private:
38  QString m_pluginPath;
39  QString m_fileSelectDir;
40  QString m_screenshotDir;
41  QString m_authLog;
42  QDialogButtonBox* m_buttonBox;
43  QTabWidget* m_tabWidget;
44  QPushButton* m_okButton;
45 
46  bool checkBoxState();
47  void closeEvent(QCloseEvent *event);
48  void keyPressEvent(QKeyEvent *event);
49  void setExpertSetting(const QString &type, const QString &name);
50 };
51 
52 
53 
54 
55 
56 
57 class GeneralTab : public QWidget
58 {
59  Q_OBJECT
60 
61 public:
62  explicit GeneralTab(QWidget *parent = 0);
63 
64 private Q_SLOTS:
65  #if defined BUILDVP1LIGHT
66  void setExpertSetting(const QString &type, const QString &name);
67  #else
68  void setExpertSetting(const QString &name);
69  #endif
71  void slotScreenshotDirChanged(const QString &path);
72 
73 signals:
74  void signalScreenshotDirChanged(const QString &path);
75 
76 private:
77  QCheckBox* m_checkboxVerbose;
78  QCheckBox* m_checkboxDebug;
84  QPushButton* m_browseButton1;
85  QLineEdit* m_lineEdit1;
86 };
87 
88 
89 
90 
91 
92 
93 class AdvancedTab : public QWidget
94 {
95  Q_OBJECT
96 
97 public:
98  explicit AdvancedTab(QWidget *parent = 0);
99 
100 private Q_SLOTS:
104  void slotPluginPathChanged(const QString &path);
105  void slotFileSelectDirChanged(const QString &path);
106  void slotAuthLogChanged(const QString &path);
107  #if defined BUILDVP1LIGHT
108  void setExpertSetting(const QString &type, const QString &name);
109  #else
110  void setExpertSetting(const QString &name);
111  #endif
112 
113 signals:
114  void signalPluginPathChanged(const QString &path);
115  void signalFileSelectDirChanged(const QString &path);
116  void signalAuthLogChanged(const QString &path);
117 
118 private:
119  QPushButton* m_browseButton1;
120  QPushButton* m_browseButton2;
121  QPushButton* m_browseButton3;
125  QLineEdit* m_lineEdit1;
126  QLineEdit* m_lineEdit2;
127  QLineEdit* m_lineEdit3;
128 };
129 
130 
131 #endif // VP1EXPERTSETTINGS_H
AdvancedTab::m_browseButton2
QPushButton * m_browseButton2
Definition: VP1ExpertSettings.h:120
VP1ExpertSettings::m_okButton
QPushButton * m_okButton
Definition: VP1ExpertSettings.h:44
AdvancedTab::slotPluginPathChanged
void slotPluginPathChanged(const QString &path)
Definition: VP1ExpertSettings.cxx:531
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:128
GeneralTab::m_checkboxDebug
QCheckBox * m_checkboxDebug
Definition: VP1ExpertSettings.h:78
GeneralTab::m_checkboxAntiAliasing
QCheckBox * m_checkboxAntiAliasing
Definition: VP1ExpertSettings.h:83
VP1ExpertSettings::closeEvent
void closeEvent(QCloseEvent *event)
Definition: VP1ExpertSettings.cxx:92
AdvancedTab::signalAuthLogChanged
void signalAuthLogChanged(const QString &path)
AdvancedTab::m_lineEdit3
QLineEdit * m_lineEdit3
Definition: VP1ExpertSettings.h:127
VP1ExpertSettings::m_authLog
QString m_authLog
Definition: VP1ExpertSettings.h:41
AdvancedTab::m_lineEdit2
QLineEdit * m_lineEdit2
Definition: VP1ExpertSettings.h:126
VP1ExpertSettings::setScreenshotDir
void setScreenshotDir(const QString &path)
Definition: VP1ExpertSettings.cxx:154
VP1ExpertSettings::setFileSelectDir
void setFileSelectDir(const QString &path)
Definition: VP1ExpertSettings.cxx:150
GeneralTab::m_browseButton1
QPushButton * m_browseButton1
Definition: VP1ExpertSettings.h:84
VP1ExpertSettings::setExpertSetting
void setExpertSetting(const QString &type, const QString &name)
Definition: VP1ExpertSettings.cxx:162
AdvancedTab::m_lineEdit1
QLineEdit * m_lineEdit1
Definition: VP1ExpertSettings.h:125
AdvancedTab::m_checkboxDevelShowAllCruiseAndEventControls
QCheckBox * m_checkboxDevelShowAllCruiseAndEventControls
Definition: VP1ExpertSettings.h:124
VP1ExpertSettings::m_screenshotDir
QString m_screenshotDir
Definition: VP1ExpertSettings.h:40
GeneralTab::slotScreenshotDirChanged
void slotScreenshotDirChanged(const QString &path)
Definition: VP1ExpertSettings.cxx:364
GeneralTab::GeneralTab
GeneralTab(QWidget *parent=0)
Definition: VP1ExpertSettings.cxx:170
VP1ExpertSettings::keyPressEvent
void keyPressEvent(QKeyEvent *event)
Definition: VP1ExpertSettings.cxx:141
GeneralTab::m_checkboxDisallowMultipleChannels
QCheckBox * m_checkboxDisallowMultipleChannels
Definition: VP1ExpertSettings.h:79
VP1ExpertSettings::VP1ExpertSettings
VP1ExpertSettings(QWidget *parent=0)
Definition: VP1ExpertSettings.cxx:43
GeneralTab::m_lineEdit1
QLineEdit * m_lineEdit1
Definition: VP1ExpertSettings.h:85
VP1ExpertSettings
Definition: VP1ExpertSettings.h:26
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
VP1ExpertSettings::checkBoxState
bool checkBoxState()
VP1ExpertSettings::m_tabWidget
QTabWidget * m_tabWidget
Definition: VP1ExpertSettings.h:43
GeneralTab::on_browseButton1_clicked
void on_browseButton1_clicked()
Definition: VP1ExpertSettings.cxx:357
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AdvancedTab::m_checkboxEnableInformOnEndOfJob
QCheckBox * m_checkboxEnableInformOnEndOfJob
Definition: VP1ExpertSettings.h:122
VP1ExpertSettings::setAuthLog
void setAuthLog(const QString &path)
Definition: VP1ExpertSettings.cxx:158
AdvancedTab
Definition: VP1ExpertSettings.h:94
VP1ExpertSettings::m_pluginPath
QString m_pluginPath
Definition: VP1ExpertSettings.h:38
AdvancedTab::slotAuthLogChanged
void slotAuthLogChanged(const QString &path)
Definition: VP1ExpertSettings.cxx:539
GeneralTab::m_checkboxEnableAskOnClose
QCheckBox * m_checkboxEnableAskOnClose
Definition: VP1ExpertSettings.h:81
AdvancedTab::slotFileSelectDirChanged
void slotFileSelectDirChanged(const QString &path)
Definition: VP1ExpertSettings.cxx:535
python.L1.Config.LegacyTopoMergerMap.signals
signals
Definition: LegacyTopoMergerMap.py:13
AdvancedTab::on_browseButton1_clicked
void on_browseButton1_clicked()
Definition: VP1ExpertSettings.cxx:507
AdvancedTab::m_checkboxHardExitAtEnd
QCheckBox * m_checkboxHardExitAtEnd
Definition: VP1ExpertSettings.h:123
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
VP1ExpertSettings::m_buttonBox
QDialogButtonBox * m_buttonBox
Definition: VP1ExpertSettings.h:42
AdvancedTab::on_browseButton2_clicked
void on_browseButton2_clicked()
Definition: VP1ExpertSettings.cxx:515
VP1ExpertSettings::setPluginPath
void setPluginPath(const QString &path)
Definition: VP1ExpertSettings.cxx:146
GeneralTab::m_checkboxDisplayMouseClicks
QCheckBox * m_checkboxDisplayMouseClicks
Definition: VP1ExpertSettings.h:80
AdvancedTab::m_browseButton3
QPushButton * m_browseButton3
Definition: VP1ExpertSettings.h:121
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AdvancedTab::m_browseButton1
QPushButton * m_browseButton1
Definition: VP1ExpertSettings.h:119
GeneralTab::setExpertSetting
void setExpertSetting(const QString &name)
Definition: VP1ExpertSettings.cxx:348
AdvancedTab::AdvancedTab
AdvancedTab(QWidget *parent=0)
Definition: VP1ExpertSettings.cxx:369
AdvancedTab::on_browseButton3_clicked
void on_browseButton3_clicked()
Definition: VP1ExpertSettings.cxx:523
AdvancedTab::setExpertSetting
void setExpertSetting(const QString &name)
Definition: VP1ExpertSettings.cxx:552
GeneralTab
Definition: VP1ExpertSettings.h:58
GeneralTab::m_checkboxGuidesSphereInsteadOfCoordaxes
QCheckBox * m_checkboxGuidesSphereInsteadOfCoordaxes
Definition: VP1ExpertSettings.h:82
VP1ExpertSettings::m_fileSelectDir
QString m_fileSelectDir
Definition: VP1ExpertSettings.h:39
GeneralTab::signalScreenshotDirChanged
void signalScreenshotDirChanged(const QString &path)
GeneralTab::m_checkboxVerbose
QCheckBox * m_checkboxVerbose
Definition: VP1ExpertSettings.h:77
AdvancedTab::signalPluginPathChanged
void signalPluginPathChanged(const QString &path)
AdvancedTab::signalFileSelectDirChanged
void signalFileSelectDirChanged(const QString &path)