Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 6282078ae76a671f49c6af38c67b1a07 > files > 925

kdelibs-devel-2.2.2-49.2mdk.i586.rpm

<HTML>
<HEAD>
<TITLE>class KLineEdit</TITLE>

<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
	<TABLE BORDER="0">
		<TR><TD valign="top" align="left" cellspacing="10">
		<h1>class KLineEdit</h1>
		</TD>
		<TD valign="top" align="right" colspan="1">An enhanced single line input widget.
 <small><A HREF="#longdesc">More...</A></small></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		<TR><TH>Definition</TH><TD><code>#include &lt;<A HREF="klineedit_h.html">klineedit.h</A>&gt;</code></TD></TR>
<TR><TH>Inherits</TH><TD><A HREF="../kdecore/KCompletionBase.html">KCompletionBase</A> <small>(kdecore)</small> <small>[public ]</small>, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlineedit.html">QLineEdit</A> <small>(qt)</small> <small>[public ]</small></TD></TR>
<TR><TH>Inherited by</TH><TD><A HREF="KListViewLineEdit.html">KListViewLineEdit</A>, <A HREF="KRestrictedLine.html">KRestrictedLine</A></TD></TR>
<TR><TH><A HREF="full-list-KLineEdit.html">List of all Methods</A></TH></TR>
	</TABLE>
	</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Methods</h4><ul><LI>&nbsp;<b><A HREF="#ref3">KLineEdit</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &string, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A> *parent, const char *name = 0 ) 
</LI>
<LI>&nbsp;<b><A HREF="#ref4">KLineEdit</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A> *parent=0, const char *name=0 ) 
</LI>
<LI>virtual  &nbsp;<b><A HREF="#ref5">~KLineEdit</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref6">setURL</A></b> ( const <A HREF="../kdecore/KURL.html">KURL</A>& url ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref7">cursorAtEnd</A></b> () 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref8">setCompletionMode</A></b> ( KGlobalSettings::Completion mode ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref9">setContextMenuEnabled</A></b> ( bool showMenu ) 
</LI>
<LI>bool &nbsp;<b><A HREF="#ref10">isContextMenuEnabled</A></b> ()  const
</LI>
<LI>void &nbsp;<b><A HREF="#ref11">setURLDropsEnabled</A></b> ( bool enable ) 
</LI>
<LI>bool &nbsp;<b><A HREF="#ref12">isURLDropsEnabled</A></b> ()  const
</LI>
<LI>void &nbsp;<b><A HREF="#ref13">setTrapReturnKey</A></b> ( bool trap ) 
</LI>
<LI>bool &nbsp;<b><A HREF="#ref14">trapReturnKey</A></b> ()  const
</LI>
<LI><A HREF="KCompletionBox.html">KCompletionBox</A> * &nbsp;<b><A HREF="#ref16">completionBox</A></b> () 
</LI>
<LI><A HREF="KCompletionBox.html">KCompletionBox</A> * &nbsp;<b><A HREF="#ref17">completionBox</A></b> ( bool create ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref18">setCompletionObject</A></b> ( <A HREF="../kdecore/KCompletion.html">KCompletion</A> *, bool hsig = true ) 
</LI>
</ul><h4>Public Slots</h4><ul><LI>void &nbsp;<b><A HREF="#ref24">rotateText</A></b> ( KCompletionBase::KeyBindingType  ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref25">setCompletedText</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref26">setCompletedItems</A></b> ( const <A HREF="#QStringList">QStringList</A>& items ) 
</LI>
</ul><h4>Signals</h4><ul><LI>void &nbsp;<b><A HREF="#ref19">returnPressed</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref20">completion</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref21">textRotation</A></b> ( KCompletionBase::KeyBindingType ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref22">completionModeChanged</A></b> ( KGlobalSettings::Completion ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref23">aboutToShowContextMenu</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qpopupmenu.html">QPopupMenu</A>* ) 
</LI>
</ul><h4>Protected Methods</h4><ul><LI>virtual  void &nbsp;<b><A HREF="#ref30">keyPressEvent</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qkeyevent.html">QKeyEvent</A> * ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref31">mousePressEvent</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qmouseevent.html">QMouseEvent</A> * ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref32">dropEvent</A></b> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qdropevent.html">QDropEvent</A> * ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref33">setCompletedText</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& , bool  ) 
</LI>
<LI>virtual  void &nbsp;<b><A HREF="#ref34">create</A></b> ( WId = 0, bool initializeWindow = true,
                         bool destroyOldWindow = true ) 
</LI>
</ul><h4>Protected Slots</h4><ul><LI>virtual  void &nbsp;<b><A HREF="#ref27">makeCompletion</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref28">slotAboutToShow</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref29">slotCancelled</A></b> () 
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p>
 An enhanced QLineEdit widget for inputting text.
</p>
<p></p>

<H3>Detail
</H3>
<p>
</p>
<p> This widget inherits from <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlineedit.html">QLineEdit</A> and implements the following
 additional functionalities: q 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.
</p>
<p> To support these new features <A HREF="KLineEdit.html#KLineEdit">KLineEdit</A> also emits a few more
 additional signals.  These are: <A HREF="KLineEdit.html#completion">completion</A>( const QString& ),
 textRotation( KeyBindingType ), and <A HREF="KLineEdit.html#returnPressed">returnPressed</A>( const QString& ).
 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
 <code>returnPressed</code>( const QString& ) signals are the same as QLineEdit's
 except it provides the current text in the widget as its argument whenever
 appropriate.
</p>
<p> This widget by default creates a completion object when you invoke
 the completionObject( bool ) member function for the first time or
 use <A HREF="KLineEdit.html#setCompletionObject">setCompletionObject</A>( KCompletion*, bool ) to assign your own
 completion object.  Additionally, to make this widget more functional,
 <A HREF="KLineEdit.html#KLineEdit">KLineEdit</A> 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 <A HREF="../kdecore/KCompletionBase.html#setHandleSignals">KCompletionBase::setHandleSignals</A>( bool ) or set the
 boolean parameter in the above functions to FALSE.
</p>
<p> The default key-bindings for completion and rotation is determined
 from the global settings in <A HREF="../kdecore/KStdAccel.html">KStdAccel</A>.  These values, however,
 can be overriden locally by invoking <A HREF="../kdecore/KCompletionBase.html#setKeyBinding">KCompletionBase::setKeyBinding</A>().
 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 usning setKeyBinding() with the default
 second argument.
</p>
<p> NOTE that if the <code>EchoMode</code> for this widget is set to something other
 than <code>QLineEdit::Normal</code>, the completion mode will always be defaulted
 to KGlobal::CompletionNone.  This is done purposefully to guard
 against protected entries such as passwords being cached in <A HREF="../kdecore/KCompletion.html">KCompletion</A>'s
 list. Hence, if the <code>EchoMode</code> is not QLineEdit::Normal, the completion
 mode is automatically disabled.
</p>
<p></p>

<H3>Useage
</H3>
<p>
</p>
<p> To enable the basic completion feature :
</p>
<p></p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>

 <A HREF="KLineEdit.html#KLineEdit">KLineEdit</A> *edit = new <A HREF="KLineEdit.html#KLineEdit">KLineEdit</A>( this, "mywidget" );
 <A HREF="../kdecore/KCompletion.html">KCompletion</A> *comp = edit->completionObject();
 // Connect to the return pressed signal - optional
 connect(edit,SIGNAL(<A HREF="KLineEdit.html#returnPressed">returnPressed</A>(const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>&)),comp,SLOT(addItem(const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>&));

</pre>
</td></tr>

</table> <p>
</p>
<p> To use a customized completion objects or your
 own completion object :
</p>
<p></p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>

 <A HREF="KLineEdit.html#KLineEdit">KLineEdit</A> *edit = new <A HREF="KLineEdit.html#KLineEdit">KLineEdit</A>( this,"mywidget" );
 KURLCompletion *comp = new KURLCompletion();
 edit-><A HREF="KLineEdit.html#setCompletionObject">setCompletionObject</A>( comp );
 // Connect to the return pressed signal - optional
 connect(edit,SIGNAL(<A HREF="KLineEdit.html#returnPressed">returnPressed</A>(const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>&)),comp,SLOT(addItem(const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>&));

</pre>
</td></tr>

</table> <p>
</p>
<p> Note that you have to either delete the allocated completion object
 when you don't need it anymore, or call
 setAutoDeleteCompletionObject( true );
</p>
<p></p>

<H3>Miscellaneous function calls :
</H3>
<p>
</p>
<p></p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>

 // Tell the widget not to handle <A HREF="KLineEdit.html#completion">completion</A> and
 // iteration internally.
 edit->setHandleSignals( false );
 // Set your own <A HREF="KLineEdit.html#completion">completion</A> key for manual completions.
 edit->setKeyBinding( KCompletionBase::TextCompletion, Qt::End );
 // Hide the context (popup) menu
 edit-><A HREF="KLineEdit.html#setContextMenuEnabled">setContextMenuEnabled</A>( false );
 // Temporarly disable signal emitions
 // (both <A HREF="KLineEdit.html#completion">completion</A> & iteration signals)
 edit->disableSignals();
 // Default the key-bindings to system settings.
 edit->useGlobalKeyBindings();

</pre>
</td></tr>

</table> <p>
</p>
<p></p>
<A NAME="KLineEdit"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>KLineEdit</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &string, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A> *parent, const char *name = 0 )
<br></td><td align="right"><h3><strong>KLineEdit</strong></h3></td></tr></table><p></p><p>
 Construct a <A HREF="KLineEdit.html#KLineEdit">KLineEdit</A> object with a default text, a parent,
 and a name.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>string</i></TD><TD align="left" valign="top">Text to be shown in the edit widget.
</TD></TR>
<TR><TD align="left" valign="top"><i>parent</i></TD><TD align="left" valign="top">The parent object of this widget.
</TD></TR>
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">the name of this widget
     </TD></TR>
</TABLE></P>
<A NAME="KLineEdit"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>KLineEdit</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A> *parent=0, const char *name=0 )
<br></td><td align="right"><h3><strong>KLineEdit</strong></h3></td></tr></table><p></p><p>
 Construct a <A HREF="KLineEdit.html#KLineEdit">KLineEdit</A> object with a parent and a name.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>string</i></TD><TD align="left" valign="top">Text to be shown in the edit widget.
</TD></TR>
<TR><TD align="left" valign="top"><i>parent</i></TD><TD align="left" valign="top">The parent object of this widget.
</TD></TR>
<TR><TD align="left" valign="top"><i>name</i></TD><TD align="left" valign="top">The name of this widget.
     </TD></TR>
</TABLE></P>
<A NAME="~KLineEdit"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td> &nbsp;<strong>~KLineEdit</strong> ()
<br></td><td align="right"><h3><strong>~KLineEdit</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p>
  Destructor.
     </p>
<A NAME="setURL"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setURL</strong> ( const <A HREF="../kdecore/KURL.html">KURL</A>& url )
<br></td><td align="right"><h3><strong>setURL</strong></h3></td></tr></table><p></p><p>
 Sets <code>url</code> into the lineedit. It uses <A HREF="../kdecore/KURL.html#prettyURL">KURL::prettyURL</A>() so
 that the url is properly decoded for displaying.
     </p>
<A NAME="cursorAtEnd"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>cursorAtEnd</strong> ()
<br></td><td align="right"><h3><strong>cursorAtEnd</strong></h3></td></tr></table><p></p><p>
 Put cursor at the end of the string.
</p>
<p> This method is deprecated.  Use <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlineedit.html#35ad5b">QLineEdit::end</A>()
 instead.
</p>
<p> <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlineedit.html#35ad5b">QLineEdit::end</A>()
     </p>
<A NAME="setCompletionMode"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setCompletionMode</strong> ( KGlobalSettings::Completion mode )
<br></td><td align="right"><h3><strong>setCompletionMode</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p>
 Re-implemented from <A HREF="../kdecore/KCompletionBase.html">KCompletionBase</A> for internal reasons.
</p>
<p> This function is re-implemented in order to make sure that
 the EchoMode is acceptable before we set the completion mode.
</p>
<p> See <A HREF="../kdecore/KCompletionBase.html#setCompletionMode">KCompletionBase::setCompletionMode</A>
     </p>
<p>Reimplemented from <A HREF="../kdecore/KCompletionBase.html#setCompletionMode">KCompletionBase</A>.</p>
<A NAME="setContextMenuEnabled"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setContextMenuEnabled</strong> ( bool showMenu )
<br></td><td align="right"><h3><strong>setContextMenuEnabled</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p>
 Enables/disables the popup (context) menu.
</p>
<p> Note that when this function is invoked with its argument
 set to <code>true</code>, 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 behaviour.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>showMenu</i></TD><TD align="left" valign="top">If <code>true</code>, show the context menu.
    </TD></TR>
</TABLE></P>
<A NAME="isContextMenuEnabled"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>isContextMenuEnabled</strong> ()
<br></td><td align="right"><h3><strong>isContextMenuEnabled</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
 Returns <code>true</code> when the context menu is enabled.
</p>
<p></p>
<p><b>Returns</b>: <code>true</code> If context menu is enabled.
     </p>
<A NAME="setURLDropsEnabled"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setURLDropsEnabled</strong> ( bool enable )
<br></td><td align="right"><h3><strong>setURLDropsEnabled</strong></h3></td></tr></table><p></p><p>
 Enables/Disables handling of URL drops. If enabled and the user
 drops an URL, the decoded URL will be inserted. Otherwise the default
 behaviour of QLineEdit is used, which inserts the encoded URL.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>enable</i></TD><TD align="left" valign="top">If <code>true</code>, insert decoded URLs
     </TD></TR>
</TABLE></P>
<A NAME="isURLDropsEnabled"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>isURLDropsEnabled</strong> ()
<br></td><td align="right"><h3><strong>isURLDropsEnabled</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
 Returns <code>true</code> when decoded URL drops are enabled
</p>
<p></p>
<p><b>Returns</b>: <code>true</code> if decoded URL drops are enabled
     </p>
<A NAME="setTrapReturnKey"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setTrapReturnKey</strong> ( bool trap )
<br></td><td align="right"><h3><strong>setTrapReturnKey</strong></h3></td></tr></table><p></p><p>
 By default, <A HREF="KComboBox.html">KComboBox</A> recognizes <code>Key_Return</code> and <code>Key_Enter</code> and emits
 the <A HREF="KLineEdit.html#returnPressed">returnPressed</A>() signals, but it also lets the event pass,
 for example causing a dialog's default-button to be called.
</p>
<p> Call this method with <code>trap</code> = <code>true</code> to make <code>KComboBox</code> stop these
 events. The signals will still be emitted of course.
</p>
<p> Only affects read-writable comboboxes.
</p>
<p></p>
<p><b>See also</b>: trapReturnKey()</p>
<A NAME="trapReturnKey"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>trapReturnKey</strong> ()
<br></td><td align="right"><h3><strong>trapReturnKey</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
</p>
<p></p>
<p><b>Returns</b>: <code>true</code> if keyevents of <code>Key_Return</code> or
 <code>Key_Enter</code> will be stopped or if they will be propagated.
</p>
<p><b>See also</b>: setTrapReturnKey, ()</p>
<A NAME="eventFilter"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>eventFilter</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qobject.html">QObject</A> *, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qevent.html">QEvent</A> * )
<br></td><td align="right"><h3><strong>eventFilter</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p>
 Re-implemented for internal reasons.  API not affected.
</p>
<p>     </p>
<A NAME="completionBox"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KCompletionBox.html">KCompletionBox</A> * &nbsp;<strong>completionBox</strong> ()
<br></td><td align="right"><h3><strong>completionBox</strong></h3></td></tr></table><p></p><p>
</p>
<p><b>Returns</b>: the completion-box, that is used in completion mode
 KGlobalSettings::CompletionPopup.
 This method will create a completion-box by calling
 <A HREF="KLineEdit.html#makeCompletionBox">makeCompletionBox</A>, if none is there, yet.
     </p>
<A NAME="completionBox"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KCompletionBox.html">KCompletionBox</A> * &nbsp;<strong>completionBox</strong> ( bool create )
<br></td><td align="right"><h3><strong>completionBox</strong></h3></td></tr></table><p></p><p>
</p>
<p><b>Returns</b>: the completion box or 0L if none is available
     </p>
<A NAME="setCompletionObject"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setCompletionObject</strong> ( <A HREF="../kdecore/KCompletion.html">KCompletion</A> *, bool hsig = true )
<br></td><td align="right"><h3><strong>setCompletionObject</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p>
 Reimplemented for internal reasons, the API is not affected.
     </p>
<p>Reimplemented from <A HREF="../kdecore/KCompletionBase.html#setCompletionObject">KCompletionBase</A>.</p>
<A NAME="returnPressed"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>returnPressed</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& )
<br></td><td align="right"><h3><strong>returnPressed</strong></h3></td></tr></table><p> <small>[signal]</small></p><p>
 Emitted when the user presses the return key.
</p>
<p>  The argument is the current text.  Note that this
 signal is <em>not</em> emitted if the widget's <code>EchoMode</code> is set to
 QLineEdit::Password.
     </p>
<p>Reimplemented from <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlineedit.html#b4fbc5">QLineEdit</A>.</p>
<A NAME="completion"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>completion</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& )
<br></td><td align="right"><h3><strong>completion</strong></h3></td></tr></table><p> <small>[signal]</small></p><p>
 Emitted when the completion key is pressed.
</p>
<p> Please note that this signal is <em>not</em> emitted if the
 completion mode is set to <code>CompletionNone</code> or <code>EchoMode</code> is
 <em>normal</em>.
     </p>
<A NAME="textRotation"></A><A NAME="ref21"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>textRotation</strong> ( KCompletionBase::KeyBindingType )
<br></td><td align="right"><h3><strong>textRotation</strong></h3></td></tr></table><p> <small>[signal]</small></p><p>
 Emitted when the text rotation key-bindings are pressed.
</p>
<p> The argument indicates which key-binding was pressed.
 In <A HREF="KLineEdit.html#KLineEdit">KLineEdit</A>'s case this can be either one of two values:
 PrevCompletionMatch or NextCompletionMatch. See
 <A HREF="../kdecore/KCompletionBase.html#setKeyBinding">KCompletionBase::setKeyBinding</A> for details.
</p>
<p> Note that this signal is <em>not</em> emitted if the completion
 mode is set to <code>CompletionNone</code> or <code>EchoMode</code> is <em>not</em>  normal.
     </p>
<A NAME="completionModeChanged"></A><A NAME="ref22"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>completionModeChanged</strong> ( KGlobalSettings::Completion )
<br></td><td align="right"><h3><strong>completionModeChanged</strong></h3></td></tr></table><p> <small>[signal]</small></p><p>
 Emitted when the user changed the completion mode by using the
 popupmenu.
     </p>
<A NAME="aboutToShowContextMenu"></A><A NAME="ref23"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>aboutToShowContextMenu</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qpopupmenu.html">QPopupMenu</A>* )
<br></td><td align="right"><h3><strong>aboutToShowContextMenu</strong></h3></td></tr></table><p> <small>[signal]</small></p><p>
 Emitted before the context menu is displayed.
</p>
<p> The signal allows you to add your own entries into the
 the context menu that is created on demand.
</p>
<p> NOTE: Do not store the pointer to the QPopupMenu
 provided through since it is created and deleted
 on demand.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>the</i></TD><TD align="left" valign="top">context menu about to be displayed
     </TD></TR>
</TABLE></P>
<A NAME="rotateText"></A><A NAME="ref24"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>rotateText</strong> ( KCompletionBase::KeyBindingType  )
<br></td><td align="right"><h3><strong>rotateText</strong></h3></td></tr></table><p> <small>[slot]</small></p><p>
 Iterate through all possible matches of the completed text or
 the history list.
</p>
<p> 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.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>type</i></TD><TD align="left" valign="top">The key-binding invoked.
     </TD></TR>
</TABLE></P>
<A NAME="setCompletedText"></A><A NAME="ref25"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setCompletedText</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& )
<br></td><td align="right"><h3><strong>setCompletedText</strong></h3></td></tr></table><p> <small>[virtual slot]</small></p><p>
 See KCompletionBase::setCompletionText.
     </p>
<p>Reimplemented from <A HREF="../kdecore/KCompletionBase.html#setCompletedText">KCompletionBase</A>.</p>
<A NAME="setCompletedItems"></A><A NAME="ref26"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setCompletedItems</strong> ( const <A HREF="#QStringList">QStringList</A>& items )
<br></td><td align="right"><h3><strong>setCompletedItems</strong></h3></td></tr></table><p> <small>[slot]</small></p><p>
 Sets <code>items</code> into the completion-box if completionMode() is
 CompletionPopup. The popup will be shown immediately.
     </p>
<A NAME="makeCompletion"></A><A NAME="ref27"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>makeCompletion</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& )
<br></td><td align="right"><h3><strong>makeCompletion</strong></h3></td></tr></table><p> <small>[protected slots virtual slot]</small></p><p>
 Complete the remaining text with a matching one from
 a given list.
    </p>
<A NAME="slotAboutToShow"></A><A NAME="ref28"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>slotAboutToShow</strong> ()
<br></td><td align="right"><h3><strong>slotAboutToShow</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><p>
     </p>
<A NAME="slotCancelled"></A><A NAME="ref29"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>slotCancelled</strong> ()
<br></td><td align="right"><h3><strong>slotCancelled</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><p>
     </p>
<A NAME="keyPressEvent"></A><A NAME="ref30"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>keyPressEvent</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qkeyevent.html">QKeyEvent</A> * )
<br></td><td align="right"><h3><strong>keyPressEvent</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>
 Re-implemented for internal reasons.  API not affected.
</p>
<p> See <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlineedit.html#b20580">QLineEdit::keyPressEvent</A>().
    </p>
<p>Reimplemented from <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlineedit.html#b20580">QLineEdit</A>.</p>
<A NAME="mousePressEvent"></A><A NAME="ref31"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>mousePressEvent</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qmouseevent.html">QMouseEvent</A> * )
<br></td><td align="right"><h3><strong>mousePressEvent</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>
 Re-implemented for internal reasons.  API not affected.
</p>
<p> See <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlineedit.html#0f48a3">QLineEdit::mousePressEvent</A>().
    </p>
<p>Reimplemented from <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlineedit.html#0f48a3">QLineEdit</A>.</p>
<A NAME="dropEvent"></A><A NAME="ref32"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>dropEvent</strong> ( <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qdropevent.html">QDropEvent</A> * )
<br></td><td align="right"><h3><strong>dropEvent</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>
 Re-implemented to handle URI drops.
</p>
<p> See <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlineedit.html#47455a">QLineEdit::dropEvent</A>().
    </p>
<p>Reimplemented from <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlineedit.html#47455a">QLineEdit</A>.</p>
<A NAME="setCompletedText"></A><A NAME="ref33"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setCompletedText</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& , bool  )
<br></td><td align="right"><h3><strong>setCompletedText</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>Reimplemented from <A HREF="../kdecore/KCompletionBase.html#setCompletedText">KCompletionBase</A>.</p>
<A NAME="create"></A><A NAME="ref34"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>create</strong> ( WId = 0, bool initializeWindow = true,
                         bool destroyOldWindow = true )
<br></td><td align="right"><h3><strong>create</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>
 Reimplemented for internal reasons, the API is not affected.
     </p>
<HR><UL><LI><i>Author</i>: Dawit Alemayehu <adawit@kde.org>
 </LI><LI><i>Generated</i>: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:05 2002, using kdoc 2.0a53.</LI></UL></BODY></HTML>