Debian Codegraph @

avogadro/qtplugins/crystal/supercelldialog.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_SUPERCELLDIALOG_H
7 #define AVOGADRO_QTPLUGINS_SUPERCELLDIALOG_H
8
9 #include <avogadro/core/avogadrocore.h>
10
11 #include <QtWidgets/QDialog>
12
13 namespace Avogadro {
14
15 namespace QtGui {
16 class Molecule;
17 }
18
19 namespace QtPlugins {
20
21 namespace Ui {
22 class SupercellDialog;
23 }
24
25 /**
26 * @brief The SupercellDialog class provides a dialog for
27 * building a supercell from a crystal.
28 */
29
30 class SupercellDialog : public QDialog
31 {
32 Q_OBJECT
33 public:
34 SupercellDialog(QWidget* p = nullptr);
35 ~SupercellDialog() override;
36
37 bool buildSupercell(Avogadro::QtGui::Molecule& mol);
38
39 void displayInvalidFormatMessage();
40
41 private:
42 AVO_DISABLE_COPY(SupercellDialog)
43
44 Ui::SupercellDialog* m_ui;
45 };
46
47 } // namespace QtPlugins
48 } // namespace Avogadro
49 #endif // AVOGADRO_QTPLUGINS_SUPERCELLDIALOG_H