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

previewwidget.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2003 Michael 'Mickey' Lauer.  All rights reserved.
00003 **
00004 ** This file is part of Opie Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 **********************************************************************/
00015 
00016 #ifndef PREVIEWWIDGET_H
00017 #define PREVIEWWIDGET_H
00018 
00019 #include <qlabel.h>
00020 #include <qimage.h>
00021 #include <qpixmap.h>
00022 
00023 class QTimerEvent;
00024 class QResizeEvent;
00025 
00026 class PreviewWidget: public QLabel
00027 {
00028   Q_OBJECT
00029 
00030   public:
00031     PreviewWidget( QWidget * parent = 0, const char * name = 0, WFlags f = 0 );
00032     virtual ~PreviewWidget();
00033 
00034     void setRefreshingRate( int ms );
00035     void refresh();
00036 
00037   protected:
00038     virtual void timerEvent( QTimerEvent* );
00039     virtual void resizeEvent( QResizeEvent* );
00040     virtual void mousePressEvent( QMouseEvent* );
00041 
00042   signals:
00043     void contextMenuRequested();
00044 
00045   private:
00046     QPixmap p;
00047     QImage i;
00048 };
00049 
00050 #endif

Generated on Sat Nov 5 16:17:31 2005 for OPIE by  doxygen 1.4.2