Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields

draganddrop.h

00001 /***************************************************************************
00002                           draganddrop.h  -  description
00003                              -------------------
00004     begin                : Thu Aug 28 2003
00005     copyright            : (C) 2003 by Gabor Torok
00006     email                : cctorok@yahoo.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef DRAG_AND_DROP_H
00019 #define DRAG_AND_DROP_H
00020 
00021 #include "widget.h"
00022 
00031 class DragAndDropHandler {
00032 public: 
00033         DragAndDropHandler();
00034         virtual ~DragAndDropHandler();
00035 
00036         // the distance in pixels for a drag event to start
00037         // so a casual click doesn't start a drag
00038         static const int DRAG_START_DISTANCE = 10;
00039 
00043   virtual void receive(Widget *widget) = 0;
00044 
00049   virtual bool startDrag(Widget *widget, int x=0, int y=0) = 0;
00050 
00051 };
00052 
00053 #endif

Generated on Thu Jun 16 21:50:42 2005 for scourge by  doxygen 1.4.0