Avogadro  1.1.0
Public Slots | Signals | Public Member Functions | Protected Member Functions
Avogadro::PeriodicTableView Class Reference

This class implements the view of the PeriodicTableScene. More...

#include <avogadro/periodictableview.h>

Inheritance diagram for Avogadro::PeriodicTableView:
Inheritance graph

List of all members.

Public Slots

void clearKeyPressBuffer ()


void elementChanged (int element)

Public Member Functions

 PeriodicTableView (QWidget *parent=0)
 ~PeriodicTableView ()

Protected Member Functions

bool event (QEvent *e)
void mouseDoubleClickEvent (QMouseEvent *event)
void keyPressEvent (QKeyEvent *event)

Detailed Description

This class implements the view of the PeriodicTableScene.

Marcus D. Hanwell 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.

Constructor & Destructor Documentation


References QGraphicsView::scene().

Member Function Documentation

This slot is called to clear the key buffer (e.g. after a delay in typing)

version 1.1

References QString::clear().

Referenced by keyPressEvent().

void Avogadro::PeriodicTableView::elementChanged ( int  element) [signal]

Signal emitted when the active element in the PeriodicTableView changes.

Referenced by PeriodicTableView().

bool Avogadro::PeriodicTableView::event ( QEvent e) [protected, virtual]

Generic event handler, currently defaults to calling parent class (included for future compatibility)

Reimplemented from QGraphicsView.

void Avogadro::PeriodicTableView::keyPressEvent ( QKeyEvent event) [protected, virtual]
void Avogadro::PeriodicTableView::mouseDoubleClickEvent ( QMouseEvent event) [protected, virtual]

Double click event - select an element and hide the PeriodicTableView.

Reimplemented from QGraphicsView.

References QWidget::close().

The documentation for this class was generated from the following files: