#include <addresslineedit.h>
Public Slots | |
void | cursorAtEnd () |
void | enableCompletion (bool enable) |
Public Slots inherited from KLineEdit | |
virtual void | setReadOnly (bool) |
void | rotateText (TDECompletionBase::KeyBindingType type) |
virtual void | setCompletedText (const TQString &) |
void | setCompletedItems (const TQStringList &items) |
void | setCompletedItems (const TQStringList &items, bool autoSuggest) |
virtual void | clear () |
void | setSqueezedText (const TQString &text) |
virtual void | setText (const TQString &) |
Public Member Functions | |
AddressLineEdit (TQWidget *parent, bool useCompletion=true, const char *name=0L) | |
virtual void | setFont (const TQFont &) |
Public Member Functions inherited from KLineEdit | |
KLineEdit (const TQString &string, TQWidget *parent, const char *name=0) | |
KLineEdit (TQWidget *parent=0, const char *name=0) | |
void | setURL (const KURL &url) |
void | cursorAtEnd () |
virtual void | setCompletionMode (TDEGlobalSettings::Completion mode) |
virtual void | setContextMenuEnabled (bool showMenu) |
bool | isContextMenuEnabled () const |
void | setURLDropsEnabled (bool enable) |
bool | isURLDropsEnabled () const |
void | setTrapReturnKey (bool trap) |
bool | trapReturnKey () const |
virtual bool | eventFilter (TQObject *, TQEvent *) |
TDECompletionBox * | completionBox (bool create=true) |
virtual void | setCompletionObject (TDECompletion *, bool hsig=true) |
virtual void | copy () const |
void | setEnableSqueezedText (bool enable) |
bool | isSqueezedTextEnabled () const |
TQString | originalText () const |
void | setCompletionBox (TDECompletionBox *box) |
void | setClickMessage (const TQString &msg) |
TQString | clickMessage () const |
Public Member Functions inherited from TDECompletionBase | |
TDECompletion * | completionObject (bool hsig=true) |
virtual void | setHandleSignals (bool handle) |
bool | isCompletionObjectAutoDeleted () const |
void | setAutoDeleteCompletionObject (bool autoDelete) |
void | setEnableSignals (bool enable) |
bool | handleSignals () const |
bool | emitSignals () const |
TDEGlobalSettings::Completion | completionMode () const |
bool | setKeyBinding (KeyBindingType item, const TDEShortcut &key) |
const TDEShortcut & | getKeyBinding (KeyBindingType item) const |
void | useGlobalKeyBindings () |
virtual void | setCompletedText (const TQString &text)=0 |
virtual void | setCompletedItems (const TQStringList &items)=0 |
TDECompletion * | compObj () const |
Static Public Member Functions | |
static TDEConfig * | config () |
Protected Member Functions | |
virtual void | loadAddresses () |
void | addAddress (const TQString &) |
virtual void | keyPressEvent (TQKeyEvent *) |
virtual void | dropEvent (TQDropEvent *e) |
virtual void | paste () |
virtual void | insert (const TQString &t) |
virtual void | mouseReleaseEvent (TQMouseEvent *e) |
void | doCompletion (bool ctrlT) |
Protected Member Functions inherited from KLineEdit | |
virtual void | resizeEvent (TQResizeEvent *) |
virtual void | mousePressEvent (TQMouseEvent *) |
virtual void | mouseDoubleClickEvent (TQMouseEvent *) |
virtual void | contextMenuEvent (TQContextMenuEvent *) |
virtual TQPopupMenu * | createPopupMenu () |
virtual void | drawContents (TQPainter *p) |
void | setUserSelection (bool userSelection) |
virtual void | create (WId=0, bool initializeWindow=true, bool destroyOldWindow=true) |
virtual void | focusInEvent (TQFocusEvent *) |
virtual void | focusOutEvent (TQFocusEvent *) |
bool | autoSuggest () const |
Protected Member Functions inherited from TDECompletionBase | |
KeyBindingMap | getKeyBindings () const |
void | setDelegate (TDECompletionBase *delegate) |
TDECompletionBase * | delegate () const |
Additional Inherited Members | |
Public Types inherited from TDECompletionBase | |
enum | KeyBindingType |
Signals inherited from KLineEdit | |
void | completionBoxActivated (const TQString &) |
void | returnPressed (const TQString &) |
void | completion (const TQString &) |
void | substringCompletion (const TQString &) |
void | textRotation (TDECompletionBase::KeyBindingType) |
void | completionModeChanged (TDEGlobalSettings::Completion) |
void | aboutToShowContextMenu (TQPopupMenu *p) |
Public Attributes inherited from TDECompletionBase | |
TextCompletion | |
PrevCompletionMatch | |
NextCompletionMatch | |
SubstringCompletion | |
Protected Slots inherited from KLineEdit | |
virtual void | makeCompletion (const TQString &) |
void | slotAboutToShow () |
void | slotCancelled () |
void | userCancelled (const TQString &cancelText) |
Detailed Description
A lineedit with LDAP and tdeabc completion.
This lineedit is supposed to be used wherever the user types email addresses and might want a completion. You can simply use it as a replacement for KLineEdit or TQLineEdit.
You can enable or disable the lineedit at any time.
Definition at line 50 of file addresslineedit.h.
Member Function Documentation
◆ cursorAtEnd
|
slot |
Set cursor to end of line.
Definition at line 276 of file addresslineedit.cpp.
◆ enableCompletion
|
slot |
Toggle completion.
Definition at line 282 of file addresslineedit.cpp.
◆ loadAddresses()
|
protectedvirtual |
Always call AddressLineEdit::loadAddresses() as the first thing.
Use addAddress() to add addresses.
Definition at line 427 of file addresslineedit.cpp.
◆ setFont()
|
virtual |
Reimplented for internal reasons.
@ see KLineEdit::setFont()
Definition at line 147 of file addresslineedit.cpp.
The documentation for this class was generated from the following files: