kmail
SnippetWidget Class Reference
#include <snippet_widget.h>

Detailed Description
This is the widget which gets added to the right TreeToolView.It inherits KListView and QToolTip which is needed for showing the tooltips which contains the text of the snippet
Definition at line 40 of file snippet_widget.h.
Public Slots | |
void | slotRemove () |
void | slotEdit (QListViewItem *item_=0) |
void | slotEditGroup () |
void | slotAdd () |
void | slotAddGroup () |
void | slotExecute () |
Public Member Functions | |
SnippetWidget (KMEdit *editor, QWidget *parent=0) | |
~SnippetWidget () | |
QPtrList< SnippetItem > * | getList () |
void | writeConfig () |
SnippetConfig * | getSnippetConfig () |
Protected Slots | |
void | showPopupMenu (QListViewItem *item, const QPoint &p, int) |
void | slotExecuted (QListViewItem *item=0) |
void | slotDropped (QDropEvent *e, QListViewItem *after) |
void | startDrag () |
Protected Member Functions | |
void | maybeTip (const QPoint &) |
bool | acceptDrag (QDropEvent *event) const |
Member Function Documentation
void SnippetWidget::writeConfig | ( | void | ) |
Write the cofig file
Definition at line 286 of file snippet_widget.cpp.
void SnippetWidget::maybeTip | ( | const QPoint & | p | ) | [protected] |
Shows the Snippet-Text as ToolTip
Definition at line 461 of file snippet_widget.cpp.
bool SnippetWidget::acceptDrag | ( | QDropEvent * | event | ) | const [protected, virtual] |
Reimplementation from KListView. Check here if the data the user is about to drop fits our restrictions. We only accept dropps of plaintext, because from the dropped text we will create a snippet.
Reimplemented from KListView.
Definition at line 821 of file snippet_widget.cpp.
void SnippetWidget::slotRemove | ( | ) | [slot] |
Removes the selected snippet
Definition at line 146 of file snippet_widget.cpp.
void SnippetWidget::slotEditGroup | ( | ) | [slot] |
Opens the dialog of editing the selected snippet-group
Definition at line 227 of file snippet_widget.cpp.
void SnippetWidget::slotAdd | ( | ) | [slot] |
Opens the dialog to add a snippet
Definition at line 95 of file snippet_widget.cpp.
void SnippetWidget::slotAddGroup | ( | ) | [slot] |
Opens the didalog to add a snippet
Definition at line 126 of file snippet_widget.cpp.
void SnippetWidget::showPopupMenu | ( | QListViewItem * | item, | |
const QPoint & | p, | |||
int | ||||
) | [protected, slot] |
Shows the Popup-Menu depending item is a valid pointer
Definition at line 480 of file snippet_widget.cpp.
void SnippetWidget::slotDropped | ( | QDropEvent * | e, | |
QListViewItem * | after | |||
) | [protected, slot] |
This slot is connected to the dropped signal. If it is emitted, we need to construct a new snippet entry with the data given
Definition at line 851 of file snippet_widget.cpp.
The documentation for this class was generated from the following files: