Main Page | Class List | File List | Class Members | File Members

areagrab.h

Go to the documentation of this file.
00001 // $Id: areagrab.h,v 1.1 2005/06/13 13:20:28 rcr_muc Exp $
00002 // widget used to select an area of the screen
00003 // 2005-06-12 rcr
00004 
00005 #ifndef AREAGRAB_H
00006 #define AREAGRAB_H
00007 
00008 #include <qwidget.h>
00009 #include <qrect.h>
00010 #include <qpixmap.h>
00011 #include <qevent.h>
00012 
00013 class AreaGrab : public QWidget
00014 {
00015   Q_OBJECT
00016 
00017   QRect area, bgRect;
00018   QPixmap bgPixmap;
00019   bool grabbing;
00020   void drawRect();
00021 public:
00022   AreaGrab( QWidget* parent = 0, const char* name = 0, WFlags f = 0 );
00023 
00024 signals:
00025   void areaReady( const QRect& );
00026 
00027 protected:
00028   void mousePressEvent( QMouseEvent* );
00029   void mouseReleaseEvent( QMouseEvent* );
00030   void mouseMoveEvent( QMouseEvent* );
00031 };
00032 
00033 #endif // AREAGRAB_H

Go back to rwm - the window manager's - Home page.
created 13 Jun 2005 for screenshot $Revision:1.1$ by Rolf C. Rönnau using doxygen 1.4.2