Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

QCameraDropSite.h

Go to the documentation of this file.
00001 /*
00002  * QCameraDropSite.h
00003  * $Id: QCameraDropSite.h,v 1.2 2001/11/15 16:54:52 guenth Exp $
00004  *
00005  * Copyright (C) 1999, 2000 Markus Janich
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  *
00021  * As a special exception to the GPL, the QGLViewer authors (Markus
00022  * Janich, Michael Meissner, Richard Guenther, Alexander Buck and Thomas
00023  * Woerner) give permission to link this program with Qt (non-)commercial
00024  * edition, and distribute the resulting executable, without including
00025  * the source code for the Qt (non-)commercial edition in the source
00026  * distribution.
00027  *
00028  */
00029 
00030 //  Description : Class QCameraDropSite
00031 //  Purpose     : Provides an area where you can drag'n drop cameras
00032 
00033 
00034 #ifndef __QCAMERADROPSITE_H
00035 #define __QCAMERADROPSITE_H
00036 
00037 
00038 // Qt
00040 #include <qlabel.h>
00041 
00042 
00043 // System
00045 
00046 
00047 // Own
00049 #include "CCamera.h"
00050 
00051 
00052 // Foraward declarations
00054 class QGLViewer;
00055 class QCameraDrag;
00056 
00057 
00059 
00066 class QCameraDropSite: public QLabel
00067 {
00068   Q_OBJECT
00069 public:
00071   // PUBLIC METHODS //
00073 
00074   QCameraDropSite(QWidget *parent=0, const char * name = 0);
00075   ~QCameraDropSite();
00076 
00077   void setCamera(CCamera *pCamera) { m_pCamera = pCamera; };
00078 
00079 signals:
00080   void sigCameraDropped(const CCamera &cCamera);
00081 
00082 protected:
00084   // PROTECTED METHODS //
00086   void dragEnterEvent(QDragEnterEvent *pqEvent);
00087   void dragLeaveEvent(QDragLeaveEvent *pqEvent);
00088   void dropEvent(QDropEvent *pqEvent);
00089 
00090   void mousePressEvent(QMouseEvent *pqEvent);
00091   void mouseReleaseEvent(QMouseEvent *pqEvent);
00092 
00093 private:
00095   // PRIVATE MEMBERS //
00097 
00098   CCamera *m_pCamera;
00099 };
00100 
00101 #endif // __QCAMERADROPSITE_H

Generated on Wed Mar 5 18:23:25 2003 for QGLViewer by doxygen1.3-rc3