kcompletion.h
148 };
688 };
815 bool handleSignals() const { return m_delegate ? m_delegate->handleSignals() : m_bHandleSignals; }
953 KCompletion* compObj() const { return m_delegate ? m_delegate->compObj() : (KCompletion*) m_pCompObj; }
964 KeyBindingMap getKeyBindings() const { return m_delegate ? m_delegate->getKeyBindings() : m_keyMap; }
An abstract base class for adding a completion feature into widgets.
Definition: kcompletion.h:664
bool handleSignals() const
Returns true if the object handles the signals.
Definition: kcompletion.h:815
virtual void setCompletedItems(const TQStringList &items)=0
A pure virtual function that must be implemented by all inheriting classes.
KGlobalSettings::Completion completionMode() const
Returns the current completion mode.
Definition: kcompletion.h:854
void setAutoDeleteCompletionObject(bool autoDelete)
Sets the completion object when this widget's destructor is called.
Definition: kcompletion.h:776
const KShortcut & getKeyBinding(KeyBindingType item) const
Returns the key-binding used for the specified item.
Definition: kcompletion.h:902
void setEnableSignals(bool enable)
Sets the widget's ability to emit text completion and rotation signals.
Definition: kcompletion.h:803
KCompletion * compObj() const
Returns a pointer to the completion object.
Definition: kcompletion.h:953
bool isCompletionObjectAutoDeleted() const
Returns true if the completion object is deleted upon this widget's destruction.
Definition: kcompletion.h:763
virtual void setCompletedText(const TQString &text)=0
A pure virtual function that must be implemented by all inheriting classes.
KeyBindingType
Constants that represent the items whose short-cut key-binding is programmable.
Definition: kcompletion.h:671
@ PrevCompletionMatch
Switch to previous completion (by default Ctrl-Up).
Definition: kcompletion.h:679
This structure is returned by KCompletion::allWeightedMatches .
Definition: kcompletion.h:616
bool sorting() const
If sorting() returns false, the matches aren't sorted by their weight, even if true is passed to list...
Definition: kcompletion.h:641
void slotPreviousMatch()
Searches the previous matching item and emits it via match().
Definition: kcompletion.h:416
void slotMakeCompletion(const TQString &string)
Attempts to complete "string" and emits the completion via match().
Definition: kcompletion.h:407
KGlobalSettings::Completion completionMode() const
Return the current completion mode.
Definition: kcompletion.h:269
void multipleMatches()
This signal is emitted, when calling makeCompletion() and more than one matching item is found.
bool isSoundsEnabled() const
Tells you whether KCompletion will play sounds on certain occasions.
Definition: kcompletion.h:377
virtual void setEnableSounds(bool enable)
Enables/disables playing a sound when.
Definition: kcompletion.h:368
CompOrder
Constants that represent the order in which KCompletion performs completion-lookups.
Definition: kcompletion.h:145
virtual void postProcessMatch(TQString *match) const
This method is called after a completion is found and before the matching string is emitted.
Definition: kcompletion.h:528
virtual void postProcessMatches(KCompletionMatches *matches) const
This method is called before a list of all available completions is emitted via matches.
Definition: kcompletion.h:552
bool ignoreCase() const
Return whether KCompletion acts case insensitively or not.
Definition: kcompletion.h:317
void slotNextMatch()
Searches the next matching item and emits it via match().
Definition: kcompletion.h:425
bool hasMultipleMatches() const
Returns true when more than one match is found.
Definition: kcompletion.h:384
virtual void postProcessMatches(TQStringList *matches) const
This method is called before a list of all available completions is emitted via matches.
Definition: kcompletion.h:540
Completion
This enum describes the completion mode used for by the KCompletion class.
Definition: kglobalsettings.h:178
The KShortcut class is used to represent a keyboard shortcut to an action.
Definition: kshortcut.h:544
KSortableValueList is a special TQValueList for KSortableItem.
Definition: ksortablevaluelist.h:131