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

pickboardpicks.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qtopia 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 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 #ifndef PICKBOARDPICKS_H
00021 #define PICKBOARDPICKS_H
00022 
00023 #include <qframe.h>
00024 #include <qlist.h>
00025 
00026 // Internal stuff...
00027 
00028 class PickboardConfig;
00029 
00030 class PickboardPicks : public QFrame {
00031     Q_OBJECT
00032 public:
00033     PickboardPicks(QWidget* parent=0, const char* name=0, WFlags f=0);
00034     ~PickboardPicks();
00035     QSize sizeHint() const;
00036     void initialise();
00037     void setMode(int);
00038     int currentMode() const { return mode; }
00039 
00040     void mousePressEvent(QMouseEvent*);
00041 
00042     void emitKey( ushort scan, ushort uni, ushort mod, bool press, bool repeat )
00043         { key(scan,uni,mod,press, repeat); }
00044     void resetState();
00045 
00046 signals:
00047     void key( ushort scan, ushort uni, ushort mod, bool, bool );
00048 
00049 public slots:
00050     void doMenu();
00051 
00052 protected:
00053     void drawContents( QPainter * );
00054     void mouseDoubleClickEvent(QMouseEvent*);
00055     void mouseReleaseEvent(QMouseEvent*);
00056 
00057 protected:
00058     int mode;
00059     QList<PickboardConfig> configs;
00060 
00061 private:
00062     PickboardConfig* config() { return configs.at(mode); }
00063 };
00064 
00065 
00066 #endif

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