Debian Codegraph @

avogadro/qtplugins/3dmol/3dmoldialog.h

raw
1 /******************************************************************************
2
3 This source file is part of the Avogadro project.
4
5 Copyright 2016 Barry E Moore II
6
7 This source code is released under the New BSD License, (the "License").
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14
15 ******************************************************************************/
16
17 #ifndef AVOGADRO_QTGUI_ThreeDMOLDIALOG_H
18 #define AVOGADRO_QTGUI_ThreeDMOLDIALOG_H
19
20 #include <QtWidgets/QDialog>
21
22 namespace Avogadro {
23
24 namespace QtGui {
25 class Molecule;
26 }
27
28 namespace QtPlugins {
29
30 namespace Ui {
31 class ThreeDMolDialog;
32 }
33
34 /**
35 * @class ThreeDMolDialog 3dmoldialog.h <avogadrolibs/qtgui/3dmoldialog.h>
36 * @brief The ThreeDMolDialog class provides a dialog which displays
37 * basic molecular properties.
38 * @author Barry E. Moore II
39 *
40 * @todo IUPAC name fetch (need inchi key).
41 */
42 class ThreeDMolDialog : public QDialog
43 {
44 Q_OBJECT
45
46 public:
47 explicit ThreeDMolDialog(QtGui::Molecule* mol, QWidget* parent_ = nullptr);
48 ~ThreeDMolDialog() override;
49
50 QtGui::Molecule* molecule() { return m_molecule; }
51
52 public slots:
53 void setMolecule(QtGui::Molecule* mol);
54
55 private slots:
56 void updateLabels();
57 void updateTextBrowser();
58 void moleculeDestroyed();
59 void copyToClipboard();
60
61 private:
62 QtGui::Molecule* m_molecule;
63 Ui::ThreeDMolDialog* m_ui;
64 };
65
66 } // namespace QtPlugins
67 } // namespace Avogadro
68 #endif // AVOGADRO_QTGUI_ThreeDMOLDIALOG_H