Avogadro  1.1.0
/home/kitware/dashboards/avogadro/libavogadro/src/dockextension.h
00001 /**********************************************************************
00002   DockExtension - interface for extensions which provide docks
00003 
00004   Copyright (C) 2010 Konstantin Tokarev
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 General Public License as published by
00011   the Free Software Foundation; either version 2 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 DOCKEXTENSION_H
00026 #define DOCKEXTENSION_H
00027 
00028 #include "extension.h"
00029 
00030 namespace Avogadro {
00031   class A_EXPORT DockExtension : public Extension
00032   {
00033       
00034     Q_OBJECT
00035 
00036    public:
00040     DockExtension(QObject *parent = 0);
00041 
00045     virtual ~DockExtension();
00046 
00047     // This methods are not needed for docks
00048     virtual QList<QAction *> actions() const;
00049     virtual QUndoCommand* performAction(QAction *action, GLWidget *widget);
00050         
00054     virtual QDockWidget * dockWidget() = 0;
00058     virtual Qt::DockWidgetArea preferredDockArea() const;
00062     virtual int dockOrder() const;
00063   };
00064   
00065 }
00066 
00067 #endif