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

unikeyboard.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 #include <qscrollview.h>
00021 
00022 class QComboBox;
00023 
00024 class UniScrollview : public QScrollView {
00025     Q_OBJECT
00026 public:
00027     UniScrollview(QWidget* parent=0, const char* name=0, int f=0);
00028     int cellSize() const { return cellsize; }
00029 
00030 signals:
00031     void key( ushort unicode, ushort scancode, ushort modifiers, bool, bool );
00032 
00033 public slots:
00034     void scrollTo( int unicode );
00035 
00036 protected:
00037     void contentsMousePressEvent(QMouseEvent*);
00038     void contentsMouseReleaseEvent(QMouseEvent*);
00039     void drawContents( QPainter *, int cx, int cy, int cw, int ch ) ;
00040 
00041 private:
00042     int cellsize;
00043     QFont smallFont;
00044     int xoff;
00045 };
00046 
00047 
00048 class UniKeyboard : public QFrame
00049 {
00050     Q_OBJECT
00051 public:
00052     UniKeyboard(QWidget* parent=0, const char* name=0, int f=0);
00053     ~UniKeyboard();
00054 
00055     void resetState();
00056 
00057     QSize sizeHint() const;
00058 
00059 signals:
00060     void key( ushort, ushort, ushort, bool, bool );
00061 
00062 protected:
00063     void resizeEvent(QResizeEvent *);
00064 
00065 private slots:
00066     void handleCombo( int );
00067     void svMove( int, int );
00068 
00069 private:
00070     UniScrollview *sv;
00071     QComboBox *cb;
00072     int currentBlock;
00073     int* cbmap;
00074 };
00075 
00076 
00077 

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