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

kdeui

  • kdeui
klistbox.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 Reginald Stadlbauer <reggie@kde.org>
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 KLISTBOX_H
19 #define KLISTBOX_H
20 
21 #include <tqlistbox.h>
22 
23 #include <kdelibs_export.h>
24 
40 class KDEUI_EXPORT KListBox : public TQListBox
41 {
42  Q_OBJECT
43 
44 public:
45  KListBox( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
46 
47 signals:
48 
59  void executed( TQListBoxItem *item );
60 
72  void executed( TQListBoxItem *item, const TQPoint &pos );
73 
88  void doubleClicked( TQListBoxItem *item, const TQPoint &pos );
89 
90 protected slots:
91  void slotOnItem( TQListBoxItem *item );
92  void slotOnViewport();
93 
94  void slotSettingsChanged(int);
95 
99  void slotAutoSelect();
100 
101 protected:
102  void emitExecute( TQListBoxItem *item, const TQPoint &pos );
103 
104  virtual void keyPressEvent(TQKeyEvent *e);
105  virtual void focusOutEvent( TQFocusEvent *fe );
106  virtual void leaveEvent( TQEvent *e );
107  virtual void contentsMousePressEvent( TQMouseEvent *e );
108  virtual void contentsMouseDoubleClickEvent ( TQMouseEvent *e );
109 
110  bool m_bUseSingle;
111  bool m_bChangeCursorOverItem;
112 
113  TQListBoxItem* m_pCurrentItem;
114 
115  TQTimer* m_pAutoSelect;
116  int m_autoSelectDelay;
117 
118 private slots:
119  void slotMouseButtonClicked( int btn, TQListBoxItem *item, const TQPoint &pos );
120 
121 protected:
122  virtual void virtual_hook( int id, void* data );
123 private:
124  class KListBoxPrivate;
125  KListBoxPrivate* const d;
126 };
127 
128 #endif
KListBox
A variant of TQListBox that honors KDE's system-wide settings.
Definition: klistbox.h:40

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.6
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |