kcombobox.cpp
336 const TDECompletionBase *base = static_cast<const TDECompletionBase*>( static_cast<const KLineEdit*>( sender() ));
458 int idedit = menu->insertItem( SmallIconSet("edit"), i18n("&Edit History..."), this, TQ_SLOT( slotEdit()) );
461 int id = menu->insertItem( SmallIconSet("history_clear"), i18n("Clear &History"), this, TQ_SLOT( slotClear()));
700 connect( &dlg, TQ_SIGNAL( removeFromHistory(const TQString&) ), TQ_SLOT( slotRemoveFromHistory(const TQString&)) );
TQString prettyURL(int _trailing=0) const
Completion
KComboBox(TQWidget *parent=0, const char *name=0)
Constructs a read-only or rather select-only combo box with a parent object and a name.
Definition: kcombobox.cpp:60
virtual void setOrder(CompOrder order)
void addToHistory(const TQString &item)
Adds an item to the end of the history list and to the completion list.
Definition: kcombobox.cpp:467
bool removeFromHistory(const TQString &item)
Removes all items named item.
Definition: kcombobox.cpp:519
virtual void setCompletionMode(TDEGlobalSettings::Completion mode)
virtual void setItems(const TQStringList &list)
virtual bool eventFilter(TQObject *, TQEvent *)
Re-implemented for internal reasons.
Definition: kcombobox.cpp:179
void substringCompletion(const TQString &)
Emitted when the shortcut for substring completion is pressed.
void setCompletedItems(const TQStringList &items)
Sets items into the completion-box if completionMode() is CompletionPopup.
Definition: kcombobox.cpp:223
void textRotation(TDECompletionBase::KeyBindingType)
Emitted when the text rotation key-bindings are pressed.
void cleared()
Emitted when the history was cleared by the entry in the popup menu.
virtual void setAutoCompletion(bool autocomplete)
Re-implemented from TQComboBox.
Definition: kcombobox.cpp:108
virtual TQPixmap pixmapFor(const TQString &text, int size=0)=0
int event(const TQString &message, const TQString &text=TQString::null) KDE_DEPRECATED
TDECompletionBase * delegate() const
virtual void setCompletedText(const TQString &)
Sets the completed text in the line-edit appropriately.
Definition: kcombobox.cpp:150
void setCurrentItem(const TQString &item, bool insert=false, int index=-1)
Selects the first item that matches item.
Definition: kcombobox.cpp:306
virtual void clear()
A helper widget for "completion-widgets" (KLineEdit, KComboBox))
Definition: tdecompletionbox.h:43
virtual void makeCompletion(const TQString &)
Completes text according to the completion mode.
Definition: kcombobox.cpp:156
void setPixmapProvider(KPixmapProvider *prov)
Sets a pixmap provider, so that items in the combobox can have a pixmap.
Definition: kcombobox.cpp:655
virtual void create(WId=0, bool initializeWindow=true, bool destroyOldWindow=true)
Reimplemented for internal reasons, the API is not affected.
Definition: kcombobox.cpp:237
Insertion
void completionModeChanged(TDEGlobalSettings::Completion)
Emitted whenever the completion mode is changed by the user through the context menu.
static Completion completionMode()
void setURLDropsEnabled(bool enable)
Enables/Disables handling of URL drops.
Definition: kcombobox.cpp:132
KHistoryCombo(TQWidget *parent=0L, const char *name=0L)
Constructs a "read-write" combobox.
Definition: kcombobox.cpp:361
virtual void setContextMenuEnabled(bool showMenu)
Enables or disable the popup (context) menu.
Definition: kcombobox.cpp:125
void removeItem(const TQString &item)
TDECompletion * completionObject(bool hsig=true)
SizeSmall
void setEditURL(const KURL &url)
Sets url into the edit field of the combobox.
Definition: kcombobox.cpp:198
This class makes it easy to add a search line for filtering the items in a listview based on a simple...
Definition: tdelistviewsearchline.h:47
virtual void keyPressEvent(TQKeyEvent *)
Handling key-events, the shortcuts to rotate the items.
Definition: kcombobox.cpp:614
void insertURL(const KURL &url, int index=-1)
Inserts url at position index into the combobox.
Definition: kcombobox.cpp:203
~KHistoryCombo()
Destructs the combo, the completion-object and the pixmap-provider.
Definition: kcombobox.cpp:399
KeyBindingType
TDECompletionBox * completionBox(bool create=true)
Definition: kcombobox.cpp:229
const TDEShortcut & rotateUp()
void setTrapReturnKey(bool trap)
By default, KComboBox recognizes Key_Return and Key_Enter and emits the returnPressed() signals,...
Definition: kcombobox.cpp:184
void insertItems(const TQStringList &items)
Inserts items into the combo, honoring pixmapProvider() Does not update the completionObject.
Definition: kcombobox.cpp:673
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:191
Weighted
bool contains(const TQString &text) const
Convenience method which iterates over all items and checks if any of them is equal to text.
Definition: kcombobox.cpp:94
This Widget extends the functionality of TQListView to honor the system wide settings for Single Clic...
Definition: tdelistview.h:84
void setDelegate(TDECompletionBase *delegate)
virtual void wheelEvent(TQWheelEvent *ev)
Handling wheel-events, to rotate the items.
Definition: kcombobox.cpp:630
void rotateText(TDECompletionBase::KeyBindingType type)
Iterates through all possible matches of the completed text or the history list.
Definition: kcombobox.cpp:172
static int spacingHint()
Return the number of pixels you shall use between widgets inside a dialog according to the KDE standa...
Definition: kdialog.cpp:110
void setHistoryEditorEnabled(bool enable)
When enabling it you have to connect to "removed" signal and save changes.
Definition: kcombobox.cpp:710
const TDEShortcut & rotateDown()
bool isURLDropsEnabled() const
Returns true when decoded URL drops are enabled.
Definition: kcombobox.cpp:138
void setListView(TDEListView *lv)
Sets the TDEListView that is filtered by this search line.
Definition: tdelistviewsearchline.cpp:178
void addItem(const TQString &item)
void changeURL(const KURL &url, int index)
Replaces the item at position index with url.
Definition: kcombobox.cpp:213
CompletionAuto
static void setAutoHideCursor(TQWidget *w, bool enable)
Sets auto-hiding the cursor for widget w.
Definition: kcursor.cpp:218
TDEAction * clear(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name)
Clear the content of the focus widget.
Definition: kstdaction.cpp:176
virtual void setLineEdit(TQLineEdit *)
Re-implemented for internal reasons.
Definition: kcombobox.cpp:249
void aboutToShowContextMenu(TQPopupMenu *p)
Emitted before the context menu is displayed.