kcompletion.h
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; }
KSortableValueList is a special TQValueList for KSortableItem.
Definition ksortablevaluelist.h:131
An abstract base class for adding a completion feature into widgets.
Definition kcompletion.h:663
TDECompletion * compObj() const
Returns a pointer to the completion object.
Definition kcompletion.h:952
TDEGlobalSettings::Completion completionMode() const
Returns the current completion mode.
Definition kcompletion.h:853
void setEnableSignals(bool enable)
Sets the widget's ability to emit text completion and rotation signals.
Definition kcompletion.h:802
bool isCompletionObjectAutoDeleted() const
Returns true if the completion object is deleted upon this widget's destruction.
Definition kcompletion.h:762
bool handleSignals() const
Returns true if the object handles the signals.
Definition kcompletion.h:814
void setAutoDeleteCompletionObject(bool autoDelete)
Sets the completion object when this widget's destructor is called.
Definition kcompletion.h:775
virtual void setCompletedItems(const TQStringList &items)=0
A pure virtual function that must be implemented by all inheriting classes.
virtual void setCompletedText(const TQString &text)=0
A pure virtual function that must be implemented by all inheriting classes.
const TDEShortcut & getKeyBinding(KeyBindingType item) const
Returns the key-binding used for the specified item.
Definition kcompletion.h:901
KeyBindingType
Constants that represent the items whose short-cut key-binding is programmable.
Definition kcompletion.h:670
@ PrevCompletionMatch
Switch to previous completion (by default Ctrl-Up).
Definition kcompletion.h:678
This structure is returned by TDECompletion::allWeightedMatches .
Definition kcompletion.h:615
TQStringList list(bool sort=true) const
Returns the matches as a TQStringList.
Definition kcompletion.cpp:786
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:640
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
TQString previousMatch()
Returns the next item from the matching-items-list.
Definition kcompletion.cpp:379
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
virtual void setOrder(CompOrder order)
TDECompletion offers three different ways in which it offers its items:
Definition kcompletion.cpp:60
TDEGlobalSettings::Completion completionMode() const
Return the current completion mode.
Definition kcompletion.h:269
TQStringList items() const
Returns a list of all items inserted into TDECompletion.
Definition kcompletion.cpp:92
virtual void setItems(const TQStringList &list)
Sets the list of items available for completion.
Definition kcompletion.cpp:71
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 postProcessMatches(TQStringList *matches) const
This method is called before a list of all available completions is emitted via matches.
Definition kcompletion.h:540
bool isSoundsEnabled() const
Tells you whether TDECompletion will play sounds on certain occasions.
Definition kcompletion.h:377
virtual TQString makeCompletion(const TQString &string)
Attempts to find an item in the list of available completions, that begins with string.
Definition kcompletion.cpp:189
void slotMakeCompletion(const TQString &string)
Attempts to complete "string" and emits the completion via match().
Definition kcompletion.h:407
CompOrder
Constants that represent the order in which TDECompletion performs completion-lookups.
Definition kcompletion.h:145
TQString nextMatch()
Returns the next item from the matching-items-list.
Definition kcompletion.cpp:346
void slotPreviousMatch()
Searches the previous matching item and emits it via match().
Definition kcompletion.h:416
virtual void setIgnoreCase(bool ignoreCase)
Setting this to true makes TDECompletion behave case insensitively.
Definition kcompletion.cpp:66
virtual void setEnableSounds(bool enable)
Enables/disables playing a sound when.
Definition kcompletion.h:368
bool ignoreCase() const
Return whether TDECompletion acts case insensitively or not.
Definition kcompletion.h:317
Completion
This enum describes the completion mode used for by the TDECompletion class.
Definition tdeglobalsettings.h:178
The TDEShortcut class is used to represent a keyboard shortcut to an action.
Definition tdeshortcut.h:544
Trinity API Reference