kdeui Library API Documentation

klistbox.h

00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2000 Reginald Stadlbauer <reggie@kde.org> 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 version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00016 Boston, MA 02111-1307, USA. 00017 */ 00018 #ifndef KLISTBOX_H 00019 #define KLISTBOX_H 00020 00021 #include <qlistbox.h> 00022 00038 class KListBox : public QListBox 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 KListBox( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); 00044 00045 signals: 00046 00057 void executed( QListBoxItem *item ); 00058 00070 void executed( QListBoxItem *item, const QPoint &pos ); 00071 00086 void doubleClicked( QListBoxItem *item, const QPoint &pos ); 00087 00088 protected slots: 00089 void slotOnItem( QListBoxItem *item ); 00090 void slotOnViewport(); 00091 00092 void slotSettingsChanged(int); 00093 00097 void slotAutoSelect(); 00098 00099 protected: 00100 void emitExecute( QListBoxItem *item, const QPoint &pos ); 00101 00102 virtual void keyPressEvent(QKeyEvent *e); 00103 virtual void focusOutEvent( QFocusEvent *fe ); 00104 virtual void leaveEvent( QEvent *e ); 00105 virtual void contentsMousePressEvent( QMouseEvent *e ); 00106 virtual void contentsMouseDoubleClickEvent ( QMouseEvent *e ); 00107 00108 bool m_bUseSingle; 00109 bool m_bChangeCursorOverItem; 00110 00111 QListBoxItem* m_pCurrentItem; 00112 00113 QTimer* m_pAutoSelect; 00114 int m_autoSelectDelay; 00115 00116 private slots: 00117 void slotMouseButtonClicked( int btn, QListBoxItem *item, const QPoint &pos ); 00118 00119 protected: 00120 virtual void virtual_hook( int id, void* data ); 00121 private: 00122 class KListBoxPrivate; 00123 KListBoxPrivate *d; 00124 }; 00125 00126 #endif
KDE Logo
This file is part of the documentation for kdeui Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 8 11:14:26 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003