Avogadro  1.1.0
/home/kitware/dashboards/avogadro/libavogadro/src/periodictablescene_p.h
00001 /**********************************************************************
00002  PeriodicTableScene - Periodic Table Graphics Scene for Avogadro
00003 
00004  Copyright (C) 2007-2009 by Marcus D. Hanwell
00005 
00006  This file is part of the Avogadro molecular editor project.
00007  For more information, see <http://avogadro.openmolecules.net/>
00008 
00009  Avogadro is free software; you can redistribute it and/or modify
00010  it under the terms of the GNU Lesser General Public License as published by
00011  the Free Software Foundation; either version 2.1 of the License, or
00012  (at your option) any later version.
00013 
00014  Avogadro is distributed in the hope that it will be useful,
00015  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  GNU General Public License for more details.
00018 
00019  You should have received a copy of the GNU General Public License
00020  along with this program; if not, write to the Free Software
00021  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00022  02110-1301, USA.
00023  **********************************************************************/
00024 
00025 #ifndef PERIODICTABLESCENE_P_H
00026 #define PERIODICTABLESCENE_P_H
00027 
00028 #include <QGraphicsScene>
00029 
00030 namespace Avogadro {
00031 
00040   class PeriodicTableScene : public QGraphicsScene
00041   {
00042   Q_OBJECT
00043 
00044   public:
00048     PeriodicTableScene(QObject *parent = 0);
00049 
00050   Q_SIGNALS:
00054     void elementChanged(int element);
00055 
00056     public Q_SLOTS:
00062     void changeElement(int element);
00063 
00064   protected:
00069     bool event(QEvent *e);
00070 
00074     void mousePressEvent(QGraphicsSceneMouseEvent *event);
00075 
00079     void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
00080 
00084     void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
00085   };
00086 
00087 } // End namespace Avogadro
00088 
00089 #endif // PERIODICTABLESCENE_P_H