Avogadro  1.1.0
/home/kitware/dashboards/avogadro/libavogadro/src/dockwidget.h
00001 /**********************************************************************
00002   DockWidget -- Dock widget for avogadro
00003 
00004   Copyright (C) 2011 David C. Lonie
00005 
00006   This file is part of the Avogadro molecular editor project.
00007   For more information, see <http://avogadro.openmolecules.net/>
00008 
00009   This source code is released under the New BSD License, (the "License").
00010 
00011   Unless required by applicable law or agreed to in writing, software
00012   distributed under the License is distributed on an "AS IS" BASIS,
00013   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014   See the License for the specific language governing permissions and
00015   limitations under the License.
00016  **********************************************************************/
00017 
00018 #ifndef DOCKWIDGET_H
00019 #define DOCKWIDGET_H
00020 
00021 #include <QtGui/QDockWidget>
00022 
00023 #include <avogadro/global.h> // For A_EXPORT
00024 
00025 namespace Avogadro
00026 {
00027 
00028 class A_EXPORT DockWidget : public QDockWidget
00029 {
00030   Q_OBJECT
00031 public:
00032   explicit DockWidget(const QString &title,
00033                       QWidget *parent = 0, Qt::WindowFlags flags = 0);
00034   explicit DockWidget(QWidget *parent = 0, Qt::WindowFlags flags = 0);
00035   virtual ~DockWidget();
00036 
00037   virtual Qt::DockWidgetArea preferredWidgetDockArea();
00038 
00039 public slots:
00040   void setPreferredDockWidgetArea(Qt::DockWidgetArea);
00041 
00042 protected:
00043   Qt::DockWidgetArea m_preferredDockWidgetArea;
00044 
00045 };
00046 
00047 }
00048 #endif // DOCKWIDGET_H