kcompletionbox.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
#ifndef KCOMPLETIONBOX_H
00023
#define KCOMPLETIONBOX_H
00024
00025
class QEvent;
00026
#include <qstringlist.h>
00027
#include <klistbox.h>
00028
00041 class KCompletionBox :
public KListBox
00042 {
00043 Q_OBJECT
00044 Q_PROPERTY(
bool isTabHandling READ isTabHandling WRITE
setTabHandling )
00045 Q_PROPERTY(
QString cancelledText READ cancelledText WRITE
setCancelledText)
00046
00047
public:
00054
KCompletionBox(
QWidget *parent,
const char *name = 0 );
00055
00059
~KCompletionBox();
00060
00061
virtual QSize sizeHint()
const;
00062
00063
public slots:
00067
QStringList items()
const;
00068
00074
void insertItems(
const QStringList& items,
int index = -1 );
00075
00079
void setItems(
const QStringList& items );
00080
00092
virtual void popup();
00093
00103
void setTabHandling(
bool enable );
00104
00113
bool isTabHandling()
const;
00114
00125
void setCancelledText(
const QString& txt);
00126
00130
QString cancelledText()
const;
00131
00135
void down();
00136
00140
void up();
00141
00145
void pageDown();
00146
00150
void pageUp();
00151
00155
void home();
00156
00160
void end();
00161
00165
virtual void show();
00166
00170
virtual void hide();
00171
00172 signals:
00177
void activated(
const QString& );
00178
00183
void userCancelled(
const QString& );
00184
00185
protected:
00191
QRect calculateGeometry()
const;
00192
00196
void sizeAndPosition();
00197
00202
virtual bool eventFilter(
QObject *,
QEvent * );
00203
00204
protected slots:
00209
virtual void slotActivated(
QListBoxItem * );
00210
00211
private slots:
00212
void slotSetCurrentItem(
QListBoxItem *i ) { setCurrentItem( i ); }
00213
void slotCurrentChanged();
00214
void canceled();
00215
void slotItemClicked(
QListBoxItem * );
00216
00217
protected:
00218
virtual void virtual_hook(
int id,
void* data );
00219
00220
private:
00221
class KCompletionBoxPrivate;
00222 KCompletionBoxPrivate* d;
00223 };
00224
00225
00226
#endif // KCOMPLETIONBOX_H
This file is part of the documentation for kdeui Library Version 3.2.3.