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

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 * 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 #ifndef _QCAMERAKEYPATHDROPSITE_H 00031 #define _QCAMERAKEYPATHDROPSITE_H 00032 00033 00034 // Qt 00036 #include <qlabel.h> 00037 00038 00039 // System 00041 00042 00043 // Own 00045 #include <CList.h> 00046 #include "CCameraKeyPathPoint.h" 00047 00048 00049 00053 class QCameraKeyPathDropSite: public QLabel { 00054 00055 Q_OBJECT 00056 00057 public: 00058 00060 // CONSTRUCTORS // 00062 00064 QCameraKeyPathDropSite(QWidget *parent=0, const char * name = 0); 00065 00067 ~QCameraKeyPathDropSite() { } 00068 00070 void setCameraPath(CList<CCameraKeyPathPoint> *pCamerapath) { m_pCList = pCamerapath; }; 00071 00072 signals: 00073 00075 // SIGNALS // 00077 00079 void sigCameraKeyPathDropped(const CList<CCameraKeyPathPoint> &list); 00080 00081 protected: 00083 // PROTECTED METHODS // 00085 00087 void dragEnterEvent(QDragEnterEvent *pqEvent); 00088 00090 void dragLeaveEvent(QDragLeaveEvent *pqEvent); 00091 00093 void dropEvent(QDropEvent *pqEvent); 00094 00096 void mousePressEvent(QMouseEvent *pqEvent); 00097 00099 void mouseReleaseEvent(QMouseEvent *pqEvent); 00100 00101 private: 00103 // PRIVATE MEMBERS // 00105 00107 CList<CCameraKeyPathPoint> *m_pCList; 00108 }; 00109 00110 00111 #endif // _QCAMERAKEYPATHDROPSITE_H

Generated on Wed Jul 28 02:09:12 2004 for QGLViewer by doxygen 1.3.7