Debian Codegraph @

avogadro/qtplugins/apbs/apbsoutputdialog.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_APBS_APBSOUTPUTDIALOG_H
7 #define AVOGADRO_QTPLUGINS_APBS_APBSOUTPUTDIALOG_H
8
9 #include <QDialog>
10
11 namespace Ui {
12 class ApbsOutputDialog;
13 }
14
15 namespace Avogadro::QtPlugins {
16
17 /**
18 * @brief Dialog indicating a successful run of APBS.
19 *
20 * The ApbsOutputDialog class is used to tell the user that the run of APBS
21 * was successful. It allows the user to select which of the input and output
22 * files to load.
23 */
24 class ApbsOutputDialog : public QDialog
25 {
26 Q_OBJECT
27
28 public:
29 /**
30 * Constructor for ApbsOutputDialog.
31 */
32 ApbsOutputDialog(QWidget* parent_ = nullptr);
33
34 /**
35 * Destructor for ApbsOutputDialog.
36 */
37 ~ApbsOutputDialog() override;
38
39 /**
40 * Returns true if the user checked the 'Load Structure' check box.
41 */
42 bool loadStructureFile() const;
43
44 /**
45 * Returns true if the user checked the 'Load Cube' check box.
46 */
47 bool loadCubeFile() const;
48
49 private:
50 Ui::ApbsOutputDialog* m_ui;
51 };
52 } // namespace Avogadro::QtPlugins
53
54 #endif // AVOGADRO_QTPLUGINS_APBS_APBSOUTPUTDIALOG_H