klistbox.h Source File (kdeui Library)

| # kdeui Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | 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
    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
    00105   virtual void keyPressEvent(QKeyEvent *e);
    00109   virtual void focusOutEvent( QFocusEvent *fe );
    00113   virtual void leaveEvent( QEvent *e );
    00117   virtual void contentsMousePressEvent( QMouseEvent *e );
    00121   virtual void contentsMouseDoubleClickEvent ( QMouseEvent *e );
    00122
    00123   bool m_bUseSingle;
    00124   bool m_bChangeCursorOverItem;
    00125
    00126   QListBoxItem* m_pCurrentItem;
    00127
    00128   QTimer* m_pAutoSelect;
    00129   int m_autoSelectDelay;
    00130
    00131 private slots:
    00132   void slotMouseButtonClicked( int btn, QListBoxItem *item, const QPoint &pos );
    00133
    00134 protected:
    00135   virtual void virtual_hook( int id, void* data );
    00136 private:
    00137   class KListBoxPrivate;
    00138   KListBoxPrivate *d;
    00139 };
    00140
    00141 #endif

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:57:08 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001