org.kde.koala

Class KLineEdit

public class KLineEdit extends QLineEdit implements KCompletionBaseInterface

An enhanced QLineEdit widget for inputting text.
  • Detail
  • This widget inherits from QLineEdit and implements the following additional functionalities: a completion object that provides both automatic and manual text completion as well as multiple match iteration features, configurable key-bindings to activate these features and a popup-menu item that can be used to allow the user to set text completion modes on the fly based on their preference. To support these new features KLineEdit also emits a few more additional signals. These are: completion( String ), textRotation( KeyBindingType ), and returnPressed( String ). The completion signal can be connected to a slot that will assist the user in filling out the remaining text. The text rotation signal is intended to be used to iterate through the list of all possible matches whenever there is more than one match for the entered text. The returnPressed( String ) signals are the same as QLineEdit's except it provides the current text in the widget as its argument whenever appropriate. This widget by default creates a completion object when you invoke the completionObject( boolean ) member function for the first time or use setCompletionObject( KCompletion, boolean ) to assign your own completion object. Additionally, to make this widget more functional, KLineEdit will by default handle the text rotation and completion events internally when a completion object is created through either one of the methods mentioned above. If you do not need this functionality, simply use KCompletionBase.setHandleSignals( boolean ) or set the booleanean parameter in the above functions to false. The default key-bindings for completion and rotation is determined from the global settings in KStdAccel. These values, however, can be overridden locally by invoking KCompletionBase.setKeyBinding(). The values can easily be reverted back to the default setting, by simply calling useGlobalSettings(). An alternate method would be to default individual key-bindings by using setKeyBinding() with the default second argument. If EchoMode for this widget is set to something other than QLineEdit.Normal, the completion mode will always be defaulted to KGlobalSettings.CompletionNone. This is done purposefully to guard against protected entries such as passwords being cached in KCompletion's list. Hence, if the EchoMode is not QLineEdit.Normal, the completion mode is automatically disabled. A read-only KLineEdit will have the same background color as a disabled KLineEdit, but its foreground color will be the one used for the read-write mode. This differs from QLineEdit's implementation and is done to give visual distinction between the three different modes: disabled, read-only, and read-write.
  • Usage
  • To enable the basic completion feature :
     KLineEdit edit = new KLineEdit( this, "mywidget" );
     KCompletion comp = edit.completionObject();
     // Connect to the return pressed signal - optional
     connect(edit,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)"));
     
    To use a customized completion objects or your own completion object :
     KLineEdit edit = new KLineEdit( this,"mywidget" );
     KURLCompletion comp = new KURLCompletion();
     edit.setCompletionObject( comp );
     // Connect to the return pressed signal - optional
     connect(edit,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)"));
     
    Note if you specify your own completion object you have to either delete it when you don't need it anymore, or you can tell KLineEdit to delete it for you:
     
     edit.setAutoDeleteCompletionObject( true );
     
  • Miscellaneous function calls :
  •  // Tell the widget to not handle completion and iteration automatically.
     edit.setHandleSignals( false );
     // Set your own key-bindings for a text completion mode.
     edit.setKeyBinding( KCompletionBase.TextCompletion, Qt.End );
     // Hide the context (popup) menu
     edit.setContextMenuEnabled( false );
     // Temporarily disable signal (both completion & iteration) emitions
     edit.disableSignals();
     // Default the key-bindings back to the default system settings.
     edit.useGlobalKeyBindings();
     
    See KLineEditSignals for signals emitted by KLineEdit

    Author: Dawit Alemayehu

    UNKNOWN: An enhanced QLineEdit widget for inputting text.

    Constructor Summary
    protected KLineEdit(Class dummy)
    KLineEdit(String string, QWidget parent, String name)
    Constructs a KLineEdit object with a default text, a parent, and a name.
    KLineEdit(String string, QWidget parent)
    KLineEdit(QWidget parent, String name)
    Constructs a KLineEdit object with a parent and a name.
    KLineEdit(QWidget parent)
    KLineEdit()
    Method Summary
    protected booleanautoSuggest()
    Whether in current state text should be auto-suggested
    StringclassName()
    voidclear()
    Reimplemented to workaround a buggy QLineEdit.clear() (changing the clipboard to the text we just had in the lineedit)
    KCompletionBoxcompletionBox(boolean create)
    KCompletionBoxcompletionBox()
    intcompletionMode()
    Returns the current completion mode.
    KCompletioncompletionObject(boolean hsig)
    Returns a pointer to the current completion object.
    KCompletioncompletionObject()
    KCompletioncompObj()
    Returns a pointer to the completion object.
    protected voidcontextMenuEvent(QContextMenuEvent arg1)
    Re-implemented for internal reasons.
    voidcopy()
    Reimplemented for internal reasons, the API is not affected.
    protected voidcreate(long arg1, boolean initializeWindow, boolean destroyOldWindow)
    Reimplemented for internal reasons, the API is not affected.
    protected voidcreate(long arg1, boolean initializeWindow)
    protected voidcreate(long arg1)
    protected voidcreate()
    protected QPopupMenucreatePopupMenu()
    Re-implemented for internal reasons.
    protected KCompletionBaseInterfacedelegate()
    Returns the delegation object.
    voiddispose()
    Delete the wrapped C++ instance ahead of finalize()
    protected voiddropEvent(QDropEvent arg1)
    Re-implemented to handle URI drops.
    booleanemitSignals()
    Returns true if the object emits the signals.
    booleaneventFilter(QObject arg1, QEvent arg2)
    Re-implemented for internal reasons.
    protected voidfinalize()
    Deletes the wrapped C++ instance
    protected voidfocusInEvent(QFocusEvent arg1)
    Re-implemented for internal reasons.
    KShortcutgetKeyBinding(int item)
    Returns the key-binding used for the specified item.
    booleanhandleSignals()
    Returns true if the object handles the signals.
    booleanisCompletionObjectAutoDeleted()
    Returns true if the completion object is deleted upon this widget's destruction.
    booleanisContextMenuEnabled()
    Returns true when the context menu is enabled.
    booleanisDisposed()
    Has the wrapped C++ instance been deleted?
    booleanisSqueezedTextEnabled()
    Returns true if text squeezing is enabled.
    booleanisURLDropsEnabled()
    Returns true when decoded URL drops are enabled
    protected voidkeyPressEvent(QKeyEvent arg1)
    Re-implemented for internal reasons.
    protected voidmakeCompletion(String arg1)
    Completes the remaining text with a matching one from a given list.
    QMetaObjectmetaObject()
    protected voidmouseDoubleClickEvent(QMouseEvent arg1)
    Re-implemented for internal reasons.
    protected voidmousePressEvent(QMouseEvent arg1)
    Re-implemented for internal reasons.
    StringoriginalText()
    Returns the original text if text squeezing is enabled.
    protected voidresizeEvent(QResizeEvent arg1)
    Re-implemented for internal reasons.
    voidrotateText(int type)
    Iterates through all possible matches of the completed text or the history list.
    voidsetAutoDeleteCompletionObject(boolean autoDelete)
    Sets the completion object when this widget's destructor is called.
    voidsetCompletedItems(String[] items)
    Sets items into the completion-box if completionMode() is CompletionPopup.
    voidsetCompletedItems(String[] items, boolean autoSuggest)
    Same as the above function except it allows you to temporarily turn off text completion in CompletionPopupAuto mode.
    voidsetCompletedText(String arg1)
    See KCompletionBase.setCompletedText.
    protected voidsetCompletedText(String arg1, boolean arg2)
    voidsetCompletionBox(KCompletionBox box)
    Set the completion-box to be used in completion mode KGlobalSettings.CompletionPopup.
    voidsetCompletionMode(int mode)
    Re-implemented from KCompletionBase for internal reasons.
    voidsetCompletionObject(KCompletion arg1, boolean hsig)
    Reimplemented for internal reasons, the API is not affected.
    voidsetCompletionObject(KCompletion arg1)
    voidsetContextMenuEnabled(boolean showMenu)
    Enables/disables the popup (context) menu.
    protected voidsetDelegate(KCompletionBaseInterface delegate)
    Sets or removes the delegation object.
    voidsetEnableSignals(boolean enable)
    Sets the widget's ability to emit text completion and rotation signals.
    voidsetEnableSqueezedText(boolean enable)
    Enable text squeezing whenever the supplied text is too long.
    voidsetHandleSignals(boolean handle)
    Enables this object to handle completion and rotation events internally.
    booleansetKeyBinding(int item, KShortcut key)
    Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list.
    voidsetReadOnly(boolean arg1)
    Re-implemented for internal reasons.
    voidsetSqueezedText(String text)
    Squeezes text into the line edit.
    voidsetText(String arg1)
    Re-implemented to enable text squeezing.
    voidsetTrapReturnKey(boolean trap)
    By default, KLineEdit recognizes Key_Return and Key_Enter and emits the returnPressed() signals, but it also lets the event pass, for example causing a dialog's default-button to be called.
    voidsetURL(KURL url)
    Sets url into the lineedit.
    voidsetURLDropsEnabled(boolean enable)
    Enables/Disables handling of URL drops.
    protected voidsetUserSelection(boolean userSelection)
    Sets the widget in userSelection mode or in automatic completion selection mode.
    booleantrapReturnKey()
    voiduseGlobalKeyBindings()
    Sets this object to use global values for key-bindings.
    protected voiduserCancelled(String cancelText)
    Resets the current displayed text.

    Constructor Detail

    KLineEdit

    protected KLineEdit(Class dummy)

    KLineEdit

    public KLineEdit(String string, QWidget parent, String name)
    Constructs a KLineEdit object with a default text, a parent, and a name.

    Parameters: string Text to be shown in the edit widget. parent The parent object of this widget. name the name of this widget

    UNKNOWN: Constructs a KLineEdit object with a default text, a parent, and a name.

    KLineEdit

    public KLineEdit(String string, QWidget parent)

    KLineEdit

    public KLineEdit(QWidget parent, String name)
    Constructs a KLineEdit object with a parent and a name.

    Parameters: parent The parent object of this widget. name The name of this widget.

    UNKNOWN: Constructs a KLineEdit object with a parent and a name.

    KLineEdit

    public KLineEdit(QWidget parent)

    KLineEdit

    public KLineEdit()

    Method Detail

    autoSuggest

    protected boolean autoSuggest()
    Whether in current state text should be auto-suggested

    UNKNOWN: Whether in current state text should be auto-suggested

    className

    public String className()

    clear

    public void clear()
    Reimplemented to workaround a buggy QLineEdit.clear() (changing the clipboard to the text we just had in the lineedit)

    UNKNOWN: Reimplemented to workaround a buggy QLineEdit.clear() (changing the clipboard to the text we just had in the lineedit)

    completionBox

    public KCompletionBox completionBox(boolean create)

    Parameters: create Set this to false if you don't want the box to be created i.e. to test if it is available.

    Returns: the completion-box, that is used in completion mode KGlobalSettings.CompletionPopup. This method will create a completion-box if none is there, yet.

    UNKNOWN:

    completionBox

    public KCompletionBox completionBox()

    completionMode

    public int completionMode()
    Returns the current completion mode. The return values are of type KGlobalSettings.Completion. See setCompletionMode() for details.

    Returns: the completion mode.

    UNKNOWN: Returns the current completion mode.

    completionObject

    public KCompletion completionObject(boolean hsig)
    Returns a pointer to the current completion object. If the completion object does not exist, it is automatically created and by default handles all the completion signals internally unless hsig is set to false. It is also automatically destroyed when the destructor is called. You can change this default behavior using the KLineEdit and KLineEdit member functions. See also KLineEdit.

    Parameters: hsig if true, handles completion signals internally.

    Returns: a pointer the completion object.

    UNKNOWN: Returns a pointer to the current completion object.

    completionObject

    public KCompletion completionObject()

    compObj

    public KCompletion compObj()
    Returns a pointer to the completion object. This method is only different from completionObject() in that it does not create a new KCompletion object even if the internal pointer is NULL. Use this method to get the pointer to a completion object when inheriting so that you won't inadvertently create it!!

    Returns: the completion object or NULL if one does not exist.

    UNKNOWN: Returns a pointer to the completion object.

    contextMenuEvent

    protected void contextMenuEvent(QContextMenuEvent arg1)
    Re-implemented for internal reasons. API not affected. See QLineEdit.contextMenuEvent().

    UNKNOWN: Re-implemented for internal reasons.

    copy

    public void copy()
    Reimplemented for internal reasons, the API is not affected.

    UNKNOWN: Reimplemented for internal reasons, the API is not affected.

    create

    protected void create(long arg1, boolean initializeWindow, boolean destroyOldWindow)
    Reimplemented for internal reasons, the API is not affected.

    UNKNOWN: Reimplemented for internal reasons, the API is not affected.

    create

    protected void create(long arg1, boolean initializeWindow)

    create

    protected void create(long arg1)

    create

    protected void create()

    createPopupMenu

    protected QPopupMenu createPopupMenu()
    Re-implemented for internal reasons. API not affected. See QLineEdit.createPopupMenu().

    UNKNOWN: Re-implemented for internal reasons.

    delegate

    protected KCompletionBaseInterface delegate()
    Returns the delegation object.

    Returns: the delegation object, or 0 if there is none

    See Also: KLineEdit

    UNKNOWN: Returns the delegation object.

    dispose

    public void dispose()
    Delete the wrapped C++ instance ahead of finalize()

    dropEvent

    protected void dropEvent(QDropEvent arg1)
    Re-implemented to handle URI drops. See QLineEdit.dropEvent().

    UNKNOWN: Re-implemented to handle URI drops.

    emitSignals

    public boolean emitSignals()
    Returns true if the object emits the signals.

    Returns: true if signals are emitted

    UNKNOWN: Returns true if the object emits the signals.

    eventFilter

    public boolean eventFilter(QObject arg1, QEvent arg2)
    Re-implemented for internal reasons. API not affected.

    UNKNOWN: Re-implemented for internal reasons.

    finalize

    protected void finalize()
    Deletes the wrapped C++ instance

    focusInEvent

    protected void focusInEvent(QFocusEvent arg1)
    Re-implemented for internal reasons. API not affected. See QLineEdit.focusInEvent().

    UNKNOWN: Re-implemented for internal reasons.

    getKeyBinding

    public KShortcut getKeyBinding(int item)
    Returns the key-binding used for the specified item. This methods returns the key-binding used to activate the feature feature given by item. If the binding contains modifier key(s), the SUM of the modifier key and the actual key code are returned.

    Parameters: item the item to check

    Returns: the key-binding used for the feature given by item.

    See Also: KLineEdit

    UNKNOWN: Returns the key-binding used for the specified item.

    handleSignals

    public boolean handleSignals()
    Returns true if the object handles the signals.

    Returns: true if this signals are handled internally.

    UNKNOWN: Returns true if the object handles the signals.

    isCompletionObjectAutoDeleted

    public boolean isCompletionObjectAutoDeleted()
    Returns true if the completion object is deleted upon this widget's destruction. See setCompletionObject() and enableCompletion() for details.

    Returns: true if the completion object will be deleted automatically

    UNKNOWN: Returns true if the completion object is deleted upon this widget's destruction.

    isContextMenuEnabled

    public boolean isContextMenuEnabled()
    Returns true when the context menu is enabled.

    UNKNOWN: Returns true when the context menu is enabled.

    isDisposed

    public boolean isDisposed()
    Has the wrapped C++ instance been deleted?

    isSqueezedTextEnabled

    public boolean isSqueezedTextEnabled()
    Returns true if text squeezing is enabled. This is only valid when the widget is in read-only mode.

    UNKNOWN: Returns true if text squeezing is enabled.

    isURLDropsEnabled

    public boolean isURLDropsEnabled()
    Returns true when decoded URL drops are enabled

    UNKNOWN: Returns true when decoded URL drops are enabled

    keyPressEvent

    protected void keyPressEvent(QKeyEvent arg1)
    Re-implemented for internal reasons. API not affected. See QLineEdit.keyPressEvent().

    UNKNOWN: Re-implemented for internal reasons.

    makeCompletion

    protected void makeCompletion(String arg1)
    Completes the remaining text with a matching one from a given list.

    UNKNOWN: Completes the remaining text with a matching one from a given list.

    metaObject

    public QMetaObject metaObject()

    mouseDoubleClickEvent

    protected void mouseDoubleClickEvent(QMouseEvent arg1)
    Re-implemented for internal reasons. API not affected. See QWidget.mouseDoubleClickEvent().

    UNKNOWN: Re-implemented for internal reasons.

    mousePressEvent

    protected void mousePressEvent(QMouseEvent arg1)
    Re-implemented for internal reasons. API not affected. See QLineEdit.mousePressEvent().

    UNKNOWN: Re-implemented for internal reasons.

    originalText

    public String originalText()
    Returns the original text if text squeezing is enabled. If the widget is not in "read-only" mode, this function returns the same thing as QLineEdit.text().

    See Also: org.kde.qt.QLineEdit

    UNKNOWN: Returns the original text if text squeezing is enabled.

    resizeEvent

    protected void resizeEvent(QResizeEvent arg1)
    Re-implemented for internal reasons. API not affected. See QLineEdit.resizeEvent().

    UNKNOWN: Re-implemented for internal reasons.

    rotateText

    public void rotateText(int type)
    Iterates through all possible matches of the completed text or the history list. This function simply iterates over all possible matches in case multimple matches are found as a result of a text completion request. It will have no effect if only a single match is found.

    Parameters: type The key-binding invoked.

    UNKNOWN: Iterates through all possible matches of the completed text or the history list.

    setAutoDeleteCompletionObject

    public void setAutoDeleteCompletionObject(boolean autoDelete)
    Sets the completion object when this widget's destructor is called. If the argument is set to true, the completion object is deleted when this widget's destructor is called.

    Parameters: autoDelete if true, delete completion object on destruction.

    UNKNOWN: Sets the completion object when this widget's destructor is called.

    setCompletedItems

    public void setCompletedItems(String[] items)
    Sets items into the completion-box if completionMode() is CompletionPopup. The popup will be shown immediately.

    Parameters: items list of completion matches to be shown in the completion box.

    UNKNOWN: Sets items into the completion-box if completionMode() is CompletionPopup.

    setCompletedItems

    public void setCompletedItems(String[] items, boolean autoSuggest)
    Same as the above function except it allows you to temporarily turn off text completion in CompletionPopupAuto mode. TODO: Merge with above function in KDE 4. TODO: Does that make this or the above @deprecated ?

    Parameters: items list of completion matches to be shown in the completion box. autoSuggest true if you want automatic text completion (suggestion) enabled.

    UNKNOWN: Same as the above function except it allows you to temporarily turn off text completion in CompletionPopupAuto mode.

    setCompletedText

    public void setCompletedText(String arg1)
    See KCompletionBase.setCompletedText.

    UNKNOWN: See KCompletionBase.setCompletedText.

    setCompletedText

    protected void setCompletedText(String arg1, boolean arg2)

    setCompletionBox

    public void setCompletionBox(KCompletionBox box)
    Set the completion-box to be used in completion mode KGlobalSettings.CompletionPopup. This will do nothing if a completion-box already exists.

    Parameters: box The KCompletionBox to set

    UNKNOWN: Set the completion-box to be used in completion mode KGlobalSettings.CompletionPopup.

    setCompletionMode

    public void setCompletionMode(int mode)
    Re-implemented from KCompletionBase for internal reasons. This function is re-implemented in order to make sure that the EchoMode is acceptable before we set the completion mode. See KCompletionBase.setCompletionMode

    UNKNOWN: Re-implemented from KCompletionBase for internal reasons.

    setCompletionObject

    public void setCompletionObject(KCompletion arg1, boolean hsig)
    Reimplemented for internal reasons, the API is not affected.

    UNKNOWN: Reimplemented for internal reasons, the API is not affected.

    setCompletionObject

    public void setCompletionObject(KCompletion arg1)

    setContextMenuEnabled

    public void setContextMenuEnabled(boolean showMenu)
    Enables/disables the popup (context) menu. Note that when this function is invoked with its argument set to true, then both the context menu and the completion menu item are enabled. If you do not want to the completion item to be visible simply invoke hideModechanger() right after calling this method. Also by default, the context menu is automatically created if this widget is editable. Thus you need to call this function with the argument set to false if you do not want this behavior.

    Parameters: showMenu If true, show the context menu.

    UNKNOWN: Enables/disables the popup (context) menu.

    setDelegate

    protected void setDelegate(KCompletionBaseInterface delegate)
    Sets or removes the delegation object. If a delegation object is set, all function calls will be forwarded to the delegation object.

    Parameters: delegate the delegation object, or 0 to remove it

    UNKNOWN: Sets or removes the delegation object.

    setEnableSignals

    public void setEnableSignals(boolean enable)
    Sets the widget's ability to emit text completion and rotation signals. Invoking this function with enable set to false will cause the completion & rotation signals not to be emitted. However, unlike setting the completion object to NULL using setCompletionObject, disabling the emition of the signals through this method does not affect the current completion object. There is no need to invoke this function by default. When a completion object is created through completionObject or setCompletionObject, these signals are set to emit automatically. Also note that disabling this signals will not necessarily interfere with the objects ability to handle these events internally. See setHandleSignals.

    Parameters: enable if false, disables the emition of completion & rotation signals.

    UNKNOWN: Sets the widget's ability to emit text completion and rotation signals.

    setEnableSqueezedText

    public void setEnableSqueezedText(boolean enable)
    Enable text squeezing whenever the supplied text is too long. Only works for "read-only" mode. Note that once text squeezing is enabled, QLineEdit.text() and QLineEdit.displayText() return the squeezed text. If you want the original text, use KLineEdit.

    See Also: org.kde.qt.QLineEdit

    UNKNOWN: Enable text squeezing whenever the supplied text is too long.

    setHandleSignals

    public void setHandleSignals(boolean handle)
    Enables this object to handle completion and rotation events internally. This function simply assigns a booleanean value that indicates whether it should handle rotation and completion events or not. Note that this does not stop the object from emitting signals when these events occur.

    Parameters: handle if true, handle completion & rotation internally.

    UNKNOWN: Enables this object to handle completion and rotation events internally.

    setKeyBinding

    public boolean setKeyBinding(int item, KShortcut key)
    Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list. When the keys set by this function are pressed, a signal defined by the inheriting widget will be activated. If the default value or 0 is specified by the second parameter, then the key-binding as defined in the global setting should be used. This method returns false value for key is negative or the supplied key-binding conflicts with the ones set for one of the other features. NOTE: To use a modifier key (Shift, Ctrl, Alt) as part of the key-binding simply simply sum up the values of the modifier and the actual key. For example, to use CTRL+E as a key binding for one of the items, you would simply supply "Qt.CtrlButton + Qt.Key_E" as the second argument to this function.

    Parameters: item the feature whose key-binding needs to be set:

  • TextCompletion the manual completion key-binding.
  • PrevCompletionMatch the previous match key for multiple completion.
  • NextCompletionMatch the next match key for for multiple completion.
  • SubstringCompletion the key for substring completion
  • key key-binding used to rotate down in a list.

    Returns: true if key-binding can successfully be set.

    See Also: KLineEdit

    UNKNOWN: Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list.

    setReadOnly

    public void setReadOnly(boolean arg1)
    Re-implemented for internal reasons. API not changed.

    UNKNOWN: Re-implemented for internal reasons.

    setSqueezedText

    public void setSqueezedText(String text)
    Squeezes text into the line edit. This can only be used with read-only line-edits.

    UNKNOWN: Squeezes text into the line edit.

    setText

    public void setText(String arg1)
    Re-implemented to enable text squeezing. API is not affected.

    UNKNOWN: Re-implemented to enable text squeezing.

    setTrapReturnKey

    public void setTrapReturnKey(boolean trap)
    By default, KLineEdit recognizes Key_Return and Key_Enter and emits the returnPressed() signals, but it also lets the event pass, for example causing a dialog's default-button to be called. Call this method with trap = true to make KLineEdit stop these events. The signals will still be emitted of course.

    See Also: KLineEdit

    UNKNOWN: By default, KLineEdit recognizes Key_Return and Key_Enter and emits the returnPressed() signals, but it also lets the event pass, for example causing a dialog's default-button to be called.

    setURL

    public void setURL(KURL url)
    Sets url into the lineedit. It uses KURL.prettyURL() so that the url is properly decoded for displaying.

    UNKNOWN: Sets url into the lineedit.

    setURLDropsEnabled

    public void setURLDropsEnabled(boolean enable)
    Enables/Disables handling of URL drops. If enabled and the user drops an URL, the decoded URL will be inserted. Otherwise the default behavior of QLineEdit is used, which inserts the encoded URL.

    Parameters: enable If true, insert decoded URLs

    UNKNOWN: Enables/Disables handling of URL drops.

    setUserSelection

    protected void setUserSelection(boolean userSelection)
    Sets the widget in userSelection mode or in automatic completion selection mode. This changes the colors of selections.

    UNKNOWN: Sets the widget in userSelection mode or in automatic completion selection mode.

    trapReturnKey

    public boolean trapReturnKey()

    Returns: true if keyevents of Key_Return or Key_Enter will be stopped or if they will be propagated.

    See Also: KLineEdit

    UNKNOWN:

    useGlobalKeyBindings

    public void useGlobalKeyBindings()
    Sets this object to use global values for key-bindings. This method changes the values of the key bindings for rotation and completion features to the default values provided in KGlobalSettings. NOTE: By default inheriting widgets should uses the global key-bindings so that there will be no need to call this method.

    UNKNOWN: Sets this object to use global values for key-bindings.

    userCancelled

    protected void userCancelled(String cancelText)
    Resets the current displayed text. Call this function to revert a text completion if the user cancels the request. Mostly applies to popup completions.

    UNKNOWN: Resets the current displayed text.