klistbox.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
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
 
This file is part of the documentation for kdeui Library Version 3.2.0.