Debian Codegraph @

avogadro/qtplugins/plotxrd/xrdoptionsdialog.h

raw
1 /******************************************************************************
2 This source file is part of the Avogadro project.
3 This source code is released under the 3-Clause BSD License, (see "LICENSE").
4 ******************************************************************************/
5
6 #ifndef AVOGADRO_QTPLUGINS_XRDOPTIONSDIALOG_H
7 #define AVOGADRO_QTPLUGINS_XRDOPTIONSDIALOG_H
8
9 #include <memory>
10
11 #include <QDialog>
12
13 namespace Avogadro {
14 namespace QtPlugins {
15
16 namespace Ui {
17 class XrdOptionsDialog;
18 }
19
20 /**
21 * @brief Dialog to set options for a theoretical XRD pattern calculation.
22 */
23 class XrdOptionsDialog : public QDialog
24 {
25 Q_OBJECT
26
27 public:
28 explicit XrdOptionsDialog(QWidget* parent = nullptr);
29 ~XrdOptionsDialog() override;
30
31 double wavelength() const;
32 double peakWidth() const;
33 size_t numDataPoints() const;
34 double max2Theta() const;
35
36 protected slots:
37 void accept() override;
38
39 private:
40 std::unique_ptr<Ui::XrdOptionsDialog> m_ui;
41 };
42
43 } // namespace QtPlugins
44 } // namespace Avogadro
45 #endif // AVOGADRO_QTPLUGINS_XRDOPTIONSDIALOG_H