• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

  • tdeui
kcursor_private.h
1 /* This file is part of the KDE libraries
2 
3  Copyright (c) 2000 Carsten Pfeiffer <pfeiffer@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License (LGPL) as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KCURSOR_PRIVATE_H
22 #define KCURSOR_PRIVATE_H
23 
24 #include <tqcursor.h>
25 #include <tqobject.h>
26 #include <tqptrdict.h>
27 
28 class TQPoint;
29 class TQTimer;
30 class TQWidget;
31 
39 class KCursorPrivateAutoHideEventFilter : public TQObject
40 {
41  TQ_OBJECT
42 
43 public:
44  KCursorPrivateAutoHideEventFilter( TQWidget* widget );
45  ~KCursorPrivateAutoHideEventFilter();
46 
47  virtual bool eventFilter( TQObject *o, TQEvent *e );
48 
49  void resetWidget();
50 
51 private slots:
52  void hideCursor();
53  void unhideCursor();
54 
55 private:
56  TQWidget* actualWidget() const;
57 
58  TQTimer m_autoHideTimer;
59  TQWidget* m_widget;
60  bool m_wasMouseTracking;
61  bool m_isCursorHidden;
62  bool m_isOwnCursor;
63  TQCursor m_oldCursor;
64 };
65 
71 class KCursorPrivate : public TQObject
72 {
73  friend class KCursor; // to shut up the compiler
74  TQ_OBJECT
75 
76 public:
77  static KCursorPrivate *self();
78 
79  void setAutoHideCursor( TQWidget *w, bool enable, bool customEventFilter );
80  virtual bool eventFilter( TQObject *o, TQEvent *e );
81 
82  int hideCursorDelay;
83 
84 private slots:
85  void slotWidgetDestroyed( TQObject* );
86 
87 private:
88  KCursorPrivate();
89  ~KCursorPrivate();
90 
91  bool enabled;
92  static KCursorPrivate *s_self;
93 
94  TQPtrDict<KCursorPrivateAutoHideEventFilter> m_eventFilters;
95 };
96 
97 
98 
99 #endif // KCURSOR_PRIVATE_H
KCursorPrivateAutoHideEventFilter
I don't want the eventFilter to be in KCursor, so we have another class for that stuff.
Definition: kcursor_private.h:40
KCursorPrivate
Definition: kcursor_private.h:72
KCursor
A TQCursor wrapper allowing "themed" cursors and auto-hiding cursors.
Definition: kcursor.h:46
KCursor::setAutoHideCursor
static void setAutoHideCursor(TQWidget *w, bool enable)
Sets auto-hiding the cursor for widget w.
Definition: kcursor.cpp:218
KCursor::hideCursorDelay
static int hideCursorDelay()
Definition: kcursor.cpp:239

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.1
This website is maintained by Timothy Pearson.