KDEUI
Go to the documentation of this file.
28 #include <QtCore/QMap>
29 #include <QtCore/QObject>
30 #include <QtCore/QString>
31 #include <QtCore/QStringList>
32 #include <QtCore/QPointer>
35 class KCompletionPrivate;
36 class KCompletionBasePrivate;
37 class KCompletionMatchesWrapper;
134 Q_PROPERTY(
bool ignoreCase READ ignoreCase WRITE setIgnoreCase )
220 virtual const QString& lastMatch()
const;
245 bool isEmpty()
const;
287 virtual void setOrder( CompOrder order );
294 CompOrder order()
const;
303 virtual void setIgnoreCase(
bool ignoreCase );
311 bool ignoreCase()
const;
362 virtual void setSoundsEnabled(
bool enable );
370 bool soundsEnabled()
const;
377 bool hasMultipleMatches()
const;
387 (void) makeCompletion(
string );
396 (void) previousMatch();
440 void addItem(
const QString& item);
453 void addItem(
const QString& item, uint weight );
461 void removeItem(
const QString& item);
466 virtual void clear();
476 void match(
const QString& item);
491 void multipleMatches();
507 virtual void postProcessMatch(
QString *pMatch )
const;
519 virtual void postProcessMatches(
QStringList * pMatches )
const;
534 void addWeightedItem(
const QString& );
536 void findAllCompletions(
const QString&,
537 KCompletionMatchesWrapper *matches,
538 bool& hasMultipleMatches )
const;
540 void extractStringsFromNode(
const KCompTreeNode *,
542 KCompletionMatchesWrapper *matches,
543 bool addWeight =
false )
const;
544 void extractStringsFromNodeCI(
const KCompTreeNode *,
547 KCompletionMatchesWrapper *matches)
const;
549 enum BeepMode { NoMatch, PartialMatch, Rotation };
550 void doBeep( BeepMode )
const;
554 KCompletionPrivate* const d;
559 class KCompletionMatchesPrivate;
612 void removeDuplicates();
625 bool sorting()
const;
628 KCompletionMatchesPrivate *
const d;
719 virtual void setCompletionObject(
KCompletion* compObj,
bool hsig =
true );
733 virtual void setHandleSignals(
bool handle );
745 bool isCompletionObjectAutoDeleted()
const;
756 void setAutoDeleteCompletionObject(
bool autoDelete );
778 void setEnableSignals(
bool enable );
785 bool handleSignals()
const;
792 bool emitSignals()
const;
883 void useGlobalKeyBindings();
899 virtual void setCompletedText(
const QString& text ) = 0;
908 virtual void setCompletedItems(
const QStringList& items,
bool autoSuggest =
true ) = 0;
952 void setup(
bool,
bool,
bool );
959 virtual void virtual_hook(
int id,
void* data );
962 KCompletionBasePrivate * const d;
965 #endif // KCOMPLETION_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Apr 20 2013 06:01:46 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.