KDEUI
kcompletion.cpp
Go to the documentation of this file.
QList< T > & operator=(const QList< T > &other)
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
QString i18n(const char *text)
Definition: knotification.h:247
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QStringList list(bool sort=true) const
Returns the matches as a QStringList.
Definition: kcompletion.cpp:886
QString & append(QChar ch)
int naturalCompare(const QString &a, const QString &b, Qt::CaseSensitivity caseSensitivity=Qt::CaseSensitive)
virtual void setSoundsEnabled(bool enable)
Enables/disables playing a sound when.
Definition: kcompletion.cpp:385
bool isEmpty() const
Returns true when the completion object contains no entries.
Definition: kcompletion.cpp:129
KCompletionMatches & operator=(const KCompletionMatches &)
assignment operator.
Definition: kcompletion.cpp:852
void sort()
iterator erase(iterator pos)
KAction * find(const QObject *recvr, const char *slot, QObject *parent)
Initiate a 'find' request in the current document.
Definition: kstandardaction.cpp:329
CompOrder
Constants that represent the order in which KCompletion performs completion-lookups.
Definition: kcompletion.h:143
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
bool isNull() const
bool isLetter() const
virtual bool event(QEvent *e)
int count(const T &value) const
void append(const T &value)
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
const KShortcut & insert()
Toggle insert/overwrite (with visual feedback, e.g.
Definition: kstandardguiitem.cpp:264
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
QStringList allMatches()
Returns a list of all items matching the last completed string.
Definition: kcompletion.cpp:339
bool isEmpty() const
bool isEmpty() const
Text is automatically filled in whenever possible.
Definition: kglobalsettings.h:187
typedef Iterator
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
virtual void setIgnoreCase(bool ignoreCase)
Setting this to true makes KCompletion behave case insensitively.
Definition: kcompletion.cpp:89
This structure is returned by KCompletion::allWeightedMatches .
Definition: kcompletion.h:579
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
iterator end()
KGlobalSettings::Completion completionMode() const
Return the current completion mode.
Definition: kcompletion.cpp:335
void multipleMatches()
This signal is emitted, when calling makeCompletion() and more than one matching item is found...
QString nextMatch()
Returns the next item from the matching-items-list.
Definition: kcompletion.cpp:404
QChar toLower() const
Lists all possible matches in a popup list-box to choose from.
Definition: kglobalsettings.h:199
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
Same as automatic except shortest match is used for completion.
Definition: kglobalsettings.h:191
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
QString mid(int position, int n) const
QChar toUpper() const
QString & setNum(short n, int base)
const QChar at(int position) const
typedef ConstIterator
bool ignoreCase() const
Return whether KCompletion acts case insensitively or not.
bool soundsEnabled() const
Tells you whether KCompletion will play sounds on certain occasions.
Definition: kcompletion.cpp:390
Completion
This enum describes the completion mode used for by the KCompletion class.
Definition: kglobalsettings.h:179
int length() const
QStringList substringCompletion(const QString &string) const
Returns a list of all completion items that contain the given string.
Definition: kcompletion.cpp:292
QString left(int n) const
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
void sort()
void prepend(const T &value)
bool hasMultipleMatches() const
Returns true when more than one match is found.
Definition: kcompletion.cpp:395
Complete text much in the same way as a typical *nix shell would.
Definition: kglobalsettings.h:195
int find(QChar c, int i, bool cs) const
const_iterator constEnd() const
const_iterator constBegin() const
KCompletionMatches allWeightedMatches()
Returns a list of all items matching the last completed string.
Definition: kcompletion.cpp:352
iterator begin()
virtual void setOrder(CompOrder order)
KCompletion offers three different ways in which it offers its items:
Definition: kcompletion.cpp:78
QString previousMatch()
Returns the next item from the matching-items-list.
Definition: kcompletion.cpp:442
Lists all possible matches in a popup list-box to choose from, and automatically fill the result when...
Definition: kglobalsettings.h:204
uint toUInt(bool *ok, int base) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.