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

screenshot.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com
00003 **  All rights reserved.
00004 **
00005 ** This file may be distributed and/or modified under the terms of the
00006 ** GNU General Public License version 2 as published by the Free Software
00007 ** Foundation and appearing in the file LICENSE.GPL included in the
00008 ** packaging of this file.
00009 **
00010 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00011 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00012 **
00013 **********************************************************************/
00014 
00015 #ifndef SCREENSHOT_APPLET_H__
00016 #define SCREENSHOT_APPLET_H__
00017 
00018 
00019 
00020 #include <qwidget.h>
00021 #include <qframe.h>
00022 #include <qpixmap.h>
00023 #include <qguardedptr.h>
00024 #include <qtimer.h>
00025 
00026 class QComboBox;
00027 class QCheckBox;
00028 class QSpinBox;
00029 class QPushButton;
00030 //class QImage;
00031 
00032 class ScreenshotControl : public QFrame
00033 {
00034     Q_OBJECT
00035 public:
00036     ScreenshotControl( QWidget *parent=0, const char *name=0 );
00037 
00038 private:
00039     QPushButton *grabItButton, *scapButton;
00040     QPixmap snapshot;
00041     QTimer* grabTimer;
00042     QCheckBox *saveNamedCheck;
00043     QString FileNamePath;
00044     bool setFileName;
00045     QSpinBox  *delaySpin;
00046     int buttonPushed;
00047 
00048 private slots:
00049     void slotGrab();
00050     void slotScap();
00051     void slotDrawpad();
00052     void savePixmap();
00053     void performGrab();
00054 };
00055 
00056 class ScreenshotApplet : public QWidget {
00057 public:
00058     ScreenshotApplet( QWidget *parent = 0, const char *name=0 );
00059     ~ScreenshotApplet();
00060     static int position();
00061 
00062 protected:
00063     void mousePressEvent( QMouseEvent * );
00064     void paintEvent( QPaintEvent* );
00065 
00066 private:
00067         QPixmap m_icon;
00068 };
00069 
00070 
00071 #endif // __SCREENSHOT_APPLET_H__
00072 

Generated on Sat Nov 5 16:15:24 2005 for OPIE by  doxygen 1.4.2