SEPIA
Software documentation for the APEX SEPIA receivers
expertdialog.h
1 /* Copyright 2017 Michael Olberg <michael.olberg@chalmers.se> */
2 #ifndef EXPERTDIALOG_H
3 #define EXPERTDIALOG_H
4 
5 #include <QDialog>
6 #include <QLabel>
7 #include <QPushButton>
8 #include <QDialogButtonBox>
9 #include <QLineEdit>
10 #include <QComboBox>
11 #include <QGridLayout>
12 #include <QStringList>
13 #include <QDebug>
14 
15 class ExpertDialog : public QDialog
16 {
17  Q_OBJECT
18 
19  public:
20  explicit ExpertDialog(QWidget *parent = 0);
21  void setPassword(const QString &password);
22  bool checkPassword() const { return m_correct; }
23 
24  public slots:
25  void accept();
26 
27  signals:
28  void acceptPassword(const QString &password);
29 
30  private:
31  QLabel *labelPassword;
32  QLineEdit *editPassword;
33  QDialogButtonBox *buttonBox;
34  bool m_correct;
35 };
36 
37 #endif // EXPERTDIALOG_H