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