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

QCameraKeyPathDropSite.h

Go to the documentation of this file.
00001 /*
00002  * QCameraKeyPathDropSite.h
00003  * $Id: 
00004  *
00005  * Copyright (C) 2001 Alexander Buck,Thomas Woerner, 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  */
00022 
00023 #ifndef _QCAMERAKEYPATHDROPSITE_H
00024 #define _QCAMERAKEYPATHDROPSITE_H
00025 
00026 
00027 // Qt
00029 #include <qlabel.h>
00030 
00031 
00032 // System
00034 
00035 
00036 // Own
00038 #include <CList.h>
00039 #include "CCameraKeyPathPoint.h"
00040 
00041 
00042 
00046 class QCameraKeyPathDropSite: public QLabel {
00047 
00048    Q_OBJECT
00049 
00050    public:
00051 
00053       // CONSTRUCTORS //
00055 
00057       QCameraKeyPathDropSite(QWidget *parent=0, const char * name = 0);
00058 
00060       ~QCameraKeyPathDropSite() { }
00061 
00063       void setCameraPath(CList<CCameraKeyPathPoint> *pCamerapath) { m_pCList = pCamerapath; };
00064 
00065    signals:
00066 
00068       // SIGNALS //
00070 
00072       void sigCameraKeyPathDropped(const CList<CCameraKeyPathPoint> &list);
00073 
00074    protected:
00076       // PROTECTED METHODS //
00078 
00080       void dragEnterEvent(QDragEnterEvent *pqEvent);
00081 
00083       void dragLeaveEvent(QDragLeaveEvent *pqEvent);
00084 
00086       void dropEvent(QDropEvent *pqEvent);
00087     
00089       void mousePressEvent(QMouseEvent *pqEvent);
00090 
00092       void mouseReleaseEvent(QMouseEvent *pqEvent);
00093 
00094    private:
00096       // PRIVATE MEMBERS //
00098 
00100       CList<CCameraKeyPathPoint> *m_pCList;
00101 };
00102 
00103 
00104 #endif // _QCAMERAKEYPATHDROPSITE_H

Generated at Thu Oct 4 17:17:25 2001 for QGLViewer by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001