23 #ifndef TDECOMPLETIONBOX_H
24 #define TDECOMPLETIONBOX_H
27 #include <tqstringlist.h>
28 #include <tdelistbox.h>
46 TQ_PROPERTY(
bool isTabHandling READ isTabHandling WRITE setTabHandling )
47 TQ_PROPERTY(TQString cancelledText READ cancelledText WRITE setCancelledText)
48 TQ_PROPERTY(
bool activateOnSelect READ activateOnSelect WRITE setActivateOnSelect )
64 virtual TQSize sizeHint()
const;
71 bool activateOnSelect()
const;
77 TQStringList items()
const;
84 void insertItems(
const TQStringList& items,
int index = -1 );
89 void setItems(
const TQStringList& items );
102 virtual void popup();
113 void setTabHandling(
bool enable );
123 bool isTabHandling()
const;
135 void setCancelledText(
const TQString& txt);
140 TQString cancelledText()
const;
149 void setActivateOnSelect(
bool state);
197 void activated(
const TQString& );
203 void userCancelled(
const TQString& );
211 TQRect calculateGeometry()
const;
216 void sizeAndPosition();
222 virtual bool eventFilter( TQObject *, TQEvent * );
229 virtual void slotActivated( TQListBoxItem * );
232 void slotSetCurrentItem( TQListBoxItem *i ) { setCurrentItem( i ); }
233 void slotCurrentChanged();
235 void slotItemClicked( TQListBoxItem * );
238 virtual void virtual_hook(
int id,
void* data );
241 class TDECompletionBoxPrivate;
242 TDECompletionBoxPrivate*
const d;
246 #endif // TDECOMPLETIONBOX_H
A helper widget for "completion-widgets" (KLineEdit, KComboBox))
A variant of TQListBox that honors KDE's system-wide settings.