• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

util

activetooltip.h

00001 /* This file is part of the KDE project
00002    Copyright 2007 Vladimir Prus
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., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 #ifndef ACTIVE_TOOLTIP_H
00020 #define ACTIVE_TOOLTIP_H
00021 
00022 #include <QtGui/QWidget>
00023 #include "utilexport.h"
00024 
00025 namespace KDevelop {
00026 
00028 class KDEVPLATFORMUTIL_EXPORT ActiveToolTipManager : public QObject {
00029     Q_OBJECT
00030     friend class ActiveToolTip;
00031     private Q_SLOTS:
00032         void doVisibility();
00033 };
00034 
00045 class KDEVPLATFORMUTIL_EXPORT ActiveToolTip : public QWidget
00046 {
00047 Q_OBJECT
00048 public:
00049     /* position must be in global coordinates.  */
00050     ActiveToolTip(QWidget *parent, const QPoint& position);
00051     ~ActiveToolTip();
00052 
00062     static void showToolTip(ActiveToolTip* tooltip, float priority = 100, QString uniqueId = QString());
00063     
00064     bool eventFilter(QObject *object, QEvent *e);
00065     
00066     bool insideThis(QObject* object);
00067 
00068     void showEvent(QShowEvent*);
00069 
00070     void resizeEvent(QResizeEvent*);
00071     
00072     void moveEvent(QMoveEvent*);
00073 
00074     void adjustRect();
00075     
00077     void addFriendWidget(QWidget* widget);
00078     
00080     void addExtendRect(QRect rect);
00081     
00083     void setBoundingGeometry(QRect geometry);
00084 Q_SIGNALS:
00085     void resized();    
00086 private:
00087     virtual void closeEvent(QCloseEvent* );
00088     void updateMouseDistance();
00089     
00090     class ActiveToolTipPrivate* const d;
00091 };
00092 
00093 }
00094 
00095 #endif

util

Skip menu "util"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal