kdecore Library API Documentation

kglobalaccel_win.h

00001 /* This file is part of the KDE libraries
00002     Copyright (C) 2001,2002 Ellis Whitehead <ellis@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017     Boston, MA 02111-1307, USA.
00018 */
00019 
00020 #ifndef _KGLOBALACCEL_WIN_H
00021 #define _KGLOBALACCEL_WIN_H
00022 
00023 #include <qmap.h>
00024 #include <qwidget.h>
00025 
00026 #include "kaccelbase.h"
00027 #include "kkeyserver.h"
00028 #include "kshortcut.h"
00029 
00033 class KGlobalAccelPrivate : public QWidget, public KAccelBase
00034 {
00035     friend class KGlobalAccel;
00036     Q_OBJECT
00037  public:
00038     KGlobalAccelPrivate();
00039     virtual ~KGlobalAccelPrivate();
00040 
00041     virtual void setEnabled( bool );
00042 
00043     virtual bool emitSignal( Signal );
00044     virtual bool connectKey( KAccelAction&, const KKeyServer::Key& );
00045     virtual bool connectKey( const KKeyServer::Key& );
00046     virtual bool disconnectKey( KAccelAction&, const KKeyServer::Key& );
00047     virtual bool disconnectKey( const KKeyServer::Key& );
00048 
00049  protected:
00050 
00054     bool grabKey( const KKeyServer::Key&, bool bGrab, KAccelAction* );
00055 
00063 //  virtual bool x11Event( XEvent* );
00064 //  void x11MappingNotify();
00065 //  bool x11KeyPress( const XEvent *pEvent );
00066     void activate( KAccelAction* pAction, const KKeySequence& seq );
00067 
00068  protected slots:
00069     void slotActivated( int iAction );
00070 };
00071 
00072 #endif // _KGLOBALACCEL_WIN_H
KDE Logo
This file is part of the documentation for kdecore Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Jun 12 11:28:11 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003