00001 /* 00002 Situare - A location system for Facebook 00003 Copyright (C) 2010 Ixonos Plc. Authors: 00004 00005 Kaj Wallin - kaj.wallin@ixonos.com 00006 00007 Situare is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 version 2 as published by the Free Software Foundation. 00010 00011 Situare is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with Situare; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00019 USA. 00020 */ 00021 00022 #include "imagebutton.h" 00023 00024 #ifndef ZOOMBUTTON_H 00025 #define ZOOMBUTTON_H 00026 00027 class QTimer; 00028 00034 class ZoomButton : public ImageButton 00035 { 00036 Q_OBJECT 00037 00038 public: 00046 ZoomButton(QWidget *parent = 0, QString normalIconPictureFileName = QString(), 00047 QString selectedIconPictureFileName = QString()); 00048 00049 /******************************************************************************* 00050 * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS 00051 ******************************************************************************/ 00052 protected: 00058 void mouseMoveEvent(QMouseEvent *event); 00059 00065 void mousePressEvent(QMouseEvent *event); 00066 00067 /******************************************************************************* 00068 * MEMBER FUNCTIONS AND SLOTS 00069 ******************************************************************************/ 00070 public: 00074 const QPoint& eventPosition(); 00075 00076 /******************************************************************************* 00077 * DATA MEMBERS 00078 ******************************************************************************/ 00079 private: 00080 QTimer *m_dragStartTimer; 00081 QPoint m_eventPosition; 00082 }; 00083 00084 #endif // ZOOMBUTTON_H