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

tdeui

  • tdeui
tdelistbox.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 TDELISTBOX_H
19 #define TDELISTBOX_H
20 
21 #include <tqlistbox.h>
22 
23 #include <tdelibs_export.h>
24 
40 class TDEUI_EXPORT TDEListBox : public TQListBox
41 {
42  TQ_OBJECT
43 
44 public:
45  TDEListBox( 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 TDEListBoxPrivate;
125  TDEListBoxPrivate* const d;
126 };
127 
128 #endif
TDEListBox
A variant of TQListBox that honors KDE's system-wide settings.
Definition: tdelistbox.h:41
TDEListBox::executed
void executed(TQListBoxItem *item)
Emitted whenever the user executes an listbox item.
TDEListBox::executed
void executed(TQListBoxItem *item, const TQPoint &pos)
Emitted whenever the user executes an listbox item.
TDEListBox::doubleClicked
void doubleClicked(TQListBoxItem *item, const TQPoint &pos)
This signal gets emitted whenever the user double clicks into the listbox.

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.