00001 /********************************************************************** 00002 ** Copyright (C) 2004 Anton Kachalov mouse@altlinux.ru 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 #ifndef __MULTIKEY_H__ 00015 #define __MULTIKEY_H__ 00016 00017 #include <qlabel.h> 00018 #include <qstringlist.h> 00019 #include <qpopupmenu.h> 00020 #include <qcopchannel_qws.h> 00021 00022 class Multikey: public QLabel 00023 { 00024 Q_OBJECT 00025 public: 00026 Multikey(QWidget *parent); 00027 static int position(); 00028 00029 protected: 00030 void mousePressEvent(QMouseEvent *ev); 00031 void mouseReleaseEvent(QMouseEvent *ev); 00032 00033 public slots: 00034 void message(const QCString &message, const QByteArray &data); 00035 00036 protected: 00037 QStringList sw_maps; 00038 QStringList labels; 00039 QPopupMenu popupMenu; 00040 QString current; 00041 uint lang; 00042 }; 00043 00044 #endif /* __MULTIKEY_H__ */
1.4.2