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

kdeui

  • kdeui
kscrollview.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2005 Allan Sandfeld Jensen <kde@carewolf.com>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 #ifndef KSCROLLVIEW_H
19 #define KSCROLLVIEW_H
20 
21 #include <tqscrollview.h>
22 
23 #include <kdelibs_export.h>
24 
30 class KDEUI_EXPORT KScrollView : public TQScrollView
31 {
32  Q_OBJECT
33 
34 public:
35  KScrollView( TQWidget *parent = 0, const char *name = 0, Qt::WFlags f = 0 );
36 
37  ~KScrollView();
38 
39 public slots:
40  void scrollBy(int dx, int dy);
41 // virtual void setContentsPos(int x, int y);
42 
43 protected:
44  virtual void wheelEvent( TQWheelEvent *e );
45 
46  void startScrolling();
47  void stopScrolling();
48 
49 protected slots:
50  void scrollTick();
51 
52 private:
53  // All scrolls must be completed within 240ms of last keypress
54  static const int SCROLL_TIME = 240;
55  // Each step is 20 ms == 50 frames/second
56  static const int SCROLL_TICK = 20;
57 
58  struct KScrollViewPrivate;
59  KScrollViewPrivate *d;
60 };
61 
62 #endif
KScrollView
A variant of TQScrollView that supports smooth scrolling.
Definition: kscrollview.h:30

kdeui

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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |