KDEUI
kcheckaccelerators.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org) 00003 Copyright (C) 1998, 1999, 2000 KDE Team 00004 Copyright (C) 2008 Nick Shaforostoff <shaforostoff@kde.ru> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef KCHECKACCELERATORS_H_ 00023 #define KCHECKACCELERATORS_H_ 00024 00025 #include <kdeui_export.h> 00026 00027 #include <QObject> 00028 #include <QPointer> 00029 00030 #include <QTimer> 00031 00032 class QDialog; 00033 class QTextBrowser; 00034 00084 class KCheckAccelerators: public QObject 00085 { 00086 Q_OBJECT 00087 public: 00092 static void initiateIfNeeded(QObject* parent); 00096 bool eventFilter(QObject*, QEvent* e); 00097 00098 private: 00099 KCheckAccelerators(QObject* parent, int key, bool autoCheck, bool copyWidgetText); 00100 00101 void checkAccelerators(bool automatic); 00102 int key; 00103 bool block; 00104 bool alwaysShow; 00105 bool autoCheck; 00106 00107 bool copyWidgetText; 00108 QString copyWidgetTextCommand; 00109 00110 QTimer autoCheckTimer; 00111 void createDialog(QWidget *parent, bool automatic); 00112 QPointer<QDialog> drklash; 00113 QTextBrowser *drklash_view; 00114 00115 private Q_SLOTS: 00116 void autoCheckSlot(); 00117 void slotDisableCheck(bool); 00118 }; 00119 00120 #endif
KDE 4.6 API Reference