File indexing completed on 2023-10-03 03:04:17
0001 /* 0002 SPDX-FileCopyrightText: 2003, 2004, 2005, 2006, 2007 Carsten Niehaus <cniehaus@kde.org> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef ORBITSWIDGET_H 0007 #define ORBITSWIDGET_H 0008 0009 #include <QLabel> 0010 #include <QWidget> 0011 0012 /** 0013 * @brief the widget which displays the Bohr-orbit of the element 0014 * @author Carsten Niehaus 0015 */ 0016 class OrbitsWidget : public QWidget 0017 { 0018 Q_OBJECT 0019 0020 public: 0021 explicit OrbitsWidget(QWidget *parent = nullptr); 0022 0023 void setElementNumber(int num); 0024 0025 private: 0026 /** 0027 * the elementnumber we are looking at 0028 */ 0029 int Elemno; 0030 0031 /// Label that shows the electronic configuration 0032 QLabel *const m_electronConf; 0033 0034 QList<int> numOfElectrons; 0035 0036 protected Q_SLOTS: 0037 virtual void paintEvent(QPaintEvent *) override; 0038 }; 0039 0040 #endif // ORBITSWIDGET_H