| # kdeui Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# 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
    00023 #include <kdelibs_export.h>
    00024
    00040 class KDEUI_EXPORT KListBox : public QListBox
    00041 {
    00042     Q_OBJECT
    00043
    00044 public:
    00045   KListBox( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
    00046
    00047 signals:
    00048
    00059   void executed( QListBoxItem *item );
    00060
    00072   void executed( QListBoxItem *item, const QPoint &pos );
    00073
    00088   void doubleClicked( QListBoxItem *item, const QPoint &pos );
    00089
    00090 protected slots:
    00091   void slotOnItem( QListBoxItem *item );
    00092   void slotOnViewport();
    00093
    00094   void slotSettingsChanged(int);
    00095
    00099   void slotAutoSelect();
    00100
    00101 protected:
    00102   void emitExecute( QListBoxItem *item, const QPoint &pos );
    00103
    00104   virtual void keyPressEvent(QKeyEvent *e);
    00105   virtual void focusOutEvent( QFocusEvent *fe );
    00106   virtual void leaveEvent( QEvent *e );
    00107   virtual void contentsMousePressEvent( QMouseEvent *e );
    00108   virtual void contentsMouseDoubleClickEvent ( QMouseEvent *e );
    00109
    00110   bool m_bUseSingle;
    00111   bool m_bChangeCursorOverItem;
    00112
    00113   QListBoxItem* m_pCurrentItem;
    00114
    00115   QTimer* m_pAutoSelect;
    00116   int m_autoSelectDelay;
    00117
    00118 private slots:
    00119   void slotMouseButtonClicked( int btn, QListBoxItem *item, const QPoint &pos );
    00120
    00121 protected:
    00122   virtual void virtual_hook( int id, void* data );
    00123 private:
    00124   class KListBoxPrivate;
    00125   KListBoxPrivate* const d;
    00126 };
    00127
    00128 #endif

This file is part of the documentation for kdeui Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:20:18 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003