ATLAS Offline Software
VP1GeoDBSelection.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 VP1GeoDBSelection //
8 // //
9 // Description: Dialog for the selection of a geometry database //
10 // //
11 // Author: Sebastian Andreas Merkt (sebastian.andreas.merkt@cern.ch) //
12 // Initial version: August 2017 //
13 // //
15 
16 #ifndef VP1GEODBSELECTION_H
17 #define VP1GEODBSELECTION_H
18 
19 #include <QDialog>
20 #include <QComboBox>
21 #include <QPushButton>
22 #include <QDialogButtonBox>
23 
24 class VP1GeoDBSelection : public QDialog
25 {
26  Q_OBJECT
27 public:
28  explicit VP1GeoDBSelection(QWidget *parent = 0);
29 
30 private Q_SLOTS:
31  //Open the file selection dialog
33 
34  //Check and Save the settings
35  void loadDatabase();
36 
37 public Q_SLOTS:
38 
39 private:
40  QString m_fileName;
41  QComboBox *m_directoryComboBox;
42  QPushButton *m_browseButton;
43  QPushButton *m_openButton;
44  QPushButton *m_cancelButton;
45  QDialogButtonBox *m_buttonBox;
46 
47  //Animate the click
48  void animateFindClick();
49 
50  //Method to create the drop down combobox
51  QComboBox *createComboBox(const QString &text = QString());
52 };
53 
54 #endif // VP1GEODBSELECTION_H
VP1GeoDBSelection::m_buttonBox
QDialogButtonBox * m_buttonBox
Definition: VP1GeoDBSelection.h:45
VP1GeoDBSelection::createComboBox
QComboBox * createComboBox(const QString &text=QString())
Definition: VP1GeoDBSelection.cxx:85
VP1GeoDBSelection::m_openButton
QPushButton * m_openButton
Definition: VP1GeoDBSelection.h:43
VP1GeoDBSelection::m_browseButton
QPushButton * m_browseButton
Definition: VP1GeoDBSelection.h:42
VP1GeoDBSelection::m_directoryComboBox
QComboBox * m_directoryComboBox
Definition: VP1GeoDBSelection.h:41
VP1GeoDBSelection::m_fileName
QString m_fileName
Definition: VP1GeoDBSelection.h:40
VP1GeoDBSelection::on_browseButton_clicked
void on_browseButton_clicked()
Definition: VP1GeoDBSelection.cxx:102
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VP1GeoDBSelection::loadDatabase
void loadDatabase()
Definition: VP1GeoDBSelection.cxx:121
VP1GeoDBSelection
Definition: VP1GeoDBSelection.h:25
VP1GeoDBSelection::animateFindClick
void animateFindClick()
Definition: VP1GeoDBSelection.cxx:96
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
VP1GeoDBSelection::m_cancelButton
QPushButton * m_cancelButton
Definition: VP1GeoDBSelection.h:44
VP1GeoDBSelection::VP1GeoDBSelection
VP1GeoDBSelection(QWidget *parent=0)
Definition: VP1GeoDBSelection.cxx:34