00001 /* 00002 * QCameraDrag.h 00003 * $Id: QCameraDrag.h,v 1.1.1.1 2001/06/06 15:36: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 */ 00022 00023 // Description : Class QCameraDrag 00024 // Purpose : Provides a QDragObject which holds a CCamera as data 00025 00026 00027 #ifndef __QCAMERADRAG_H_ 00028 #define __QCAMERADRAG_H_ 00029 00030 00031 // Qt 00033 #include <qdragobject.h> 00034 #include <qlabel.h> 00035 00036 00037 // System 00039 00040 00041 // Own 00043 00044 00045 // Forward declarations 00047 class CCamera; 00048 00049 00051 00056 class QCameraDrag: public QStoredDrag { 00057 public: 00058 QCameraDrag(const CCamera *pcCamera, QWidget *parent=0, const char *name=0); 00059 ~QCameraDrag(); 00060 00061 static bool canDecode( QDragMoveEvent *event ); 00062 static bool decode( QDropEvent *event, CCamera &cCamera); 00063 00064 static const char *picture_xpm[]; 00065 }; 00066 00067 #endif // __QCAMERADRAG_H_