KDEUI
kcompletion.cpp
QString previousMatch()
Returns the next item from the matching-items-list.
Definition: kcompletion.cpp:442
QStringList list(bool sort=true) const
Returns the matches as a QStringList.
Definition: kcompletion.cpp:886
virtual void setSoundsEnabled(bool enable)
Enables/disables playing a sound when.
Definition: kcompletion.cpp:385
@ CompletionMan
Same as automatic except shortest match is used for completion.
Definition: kglobalsettings.h:191
CompOrder
Constants that represent the order in which KCompletion performs completion-lookups.
Definition: kcompletion.h:143
virtual void setCompletionMode(KGlobalSettings::Completion mode)
Sets the completion mode to Auto/Manual, Shell or None.
Definition: kcompletion.cpp:330
void insertItems(const QStringList &items)
Inserts items into the list of possible completions.
Definition: kcompletion.cpp:106
This structure is returned by KCompletion::allWeightedMatches .
Definition: kcompletion.h:579
QStringList substringCompletion(const QString &string) const
Returns a list of all completion items that contain the given string.
Definition: kcompletion.cpp:292
QString nextMatch()
Returns the next item from the matching-items-list.
Definition: kcompletion.cpp:404
@ CompletionPopupAuto
Lists all possible matches in a popup list-box to choose from, and automatically fill the result when...
Definition: kglobalsettings.h:204
bool isEmpty() const
Returns true when the completion object contains no entries.
Definition: kcompletion.cpp:129
KGlobalSettings::Completion completionMode() const
Return the current completion mode.
Definition: kcompletion.cpp:335
virtual void postProcessMatch(QString *pMatch) const
This method is called after a completion is found and before the matching string is emitted.
Definition: kcompletion.cpp:134
virtual void setIgnoreCase(bool ignoreCase)
Setting this to true makes KCompletion behave case insensitively.
Definition: kcompletion.cpp:89
QStringList allMatches()
Returns a list of all items matching the last completed string.
Definition: kcompletion.cpp:339
QString i18n(const char *text)
virtual void setItems(const QStringList &list)
Sets the list of items available for completion.
Definition: kcompletion.cpp:99
KAction * next(const QObject *recvr, const char *slot, QObject *parent)
Scroll down one page.
Definition: kstandardaction.cpp:414
void sort()
Completion
This enum describes the completion mode used for by the KCompletion class.
Definition: kglobalsettings.h:179
virtual QString makeCompletion(const QString &string)
Attempts to find an item in the list of available completions, that begins with string.
Definition: kcompletion.cpp:229
bool hasMultipleMatches() const
Returns true when more than one match is found.
Definition: kcompletion.cpp:395
void multipleMatches()
This signal is emitted, when calling makeCompletion() and more than one matching item is found.
KCompletionMatches & operator=(const KCompletionMatches &)
assignment operator.
Definition: kcompletion.cpp:852
@ CompletionPopup
Lists all possible matches in a popup list-box to choose from.
Definition: kglobalsettings.h:199
void removeItem(const QString &item)
Removes an item from the list of available completions.
Definition: kcompletion.cpp:208
void addItem(const QString &item)
Adds an item to the list of available completions.
Definition: kcompletion.cpp:146
const KShortcut & insert()
Toggle insert/overwrite (with visual feedback, e.g.
Definition: kstandardguiitem.cpp:264
int naturalCompare(const QString &a, const QString &b, Qt::CaseSensitivity caseSensitivity=Qt::CaseSensitive)
KCompletionMatches allWeightedMatches()
Returns a list of all items matching the last completed string.
Definition: kcompletion.cpp:352
@ CompletionShell
Complete text much in the same way as a typical *nix shell would.
Definition: kglobalsettings.h:195
virtual void postProcessMatches(QStringList *pMatches) const
This method is called before a list of all available completions is emitted via matches.
Definition: kcompletion.cpp:138
KAction * find(const QObject *recvr, const char *slot, QObject *parent)
Initiate a 'find' request in the current document.
Definition: kstandardaction.cpp:329
bool soundsEnabled() const
Tells you whether KCompletion will play sounds on certain occasions.
Definition: kcompletion.cpp:390
bool sorting() const
If sorting() returns false, the matches aren't sorted by their weight, even if true is passed to list...
Definition: kcompletion.cpp:897
static KNotification * event(const QString &eventId, const QString &title, const QString &text, const QPixmap &pixmap=QPixmap(), QWidget *widget=0L, const NotificationFlags &flags=CloseOnTimeout, const KComponentData &componentData=KComponentData())
emit an event
Definition: knotification.cpp:291
virtual void setOrder(CompOrder order)
KCompletion offers three different ways in which it offers its items:
Definition: kcompletion.cpp:78
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.