AvogadroLibs 1.97.0
|
This class implements the view of the periodic table showing all elements. More...
#include <periodictableview.h>
Public Slots | |
void | setElement (int element_) |
void | clearKeyPressBuffer () |
Signals | |
void | elementChanged (int element) |
Public Member Functions | |
PeriodicTableView (QWidget *parent_=nullptr) | |
int | element () const |
Protected Member Functions | |
void | mouseDoubleClickEvent (QMouseEvent *event) override |
void | keyPressEvent (QKeyEvent *event_) override |
void | resizeEvent (QResizeEvent *event) override |
<avogadro/qtgui/periodictableview.h>
This is the class that actually draws the widget onto screen. This is the class that should normally be instantiated in order to display a Periodic Table.
|
explicit |
Constructor - constructs a new PeriodicTableView with an internal instance of PeriodicTableScene.
int element | ( | ) | const |
|
slot |
element_ | The currently selected element. |
|
slot |
This slot is called to clear the key buffer (e.g. after a delay in typing).
|
signal |
Signal emitted when the active element in the PeriodicTableView changes.
|
overrideprotected |
Double click event - select an element and hide the PeriodicTableView.
|
overrideprotected |
Handles the keyboard events to change the active element.
|
overrideprotected |
Handle resize events.