Debian Codegraph @

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