kmail

#include <snippetwidget.h>

Inherits TDEListView, and TQToolTip.

Public Slots

void slotRemove ()
 
void slotEdit (TQListViewItem *item_=0)
 
void slotEditGroup ()
 
void slotAdd ()
 
void slotAddGroup ()
 
void slotExecute ()
 

Public Member Functions

 SnippetWidget (KMEdit *editor, TDEActionCollection *actionCollection, TQWidget *parent=0)
 
TQPtrList< SnippetItem > * getList ()
 
void writeConfig ()
 
SnippetConfiggetSnippetConfig ()
 

Protected Slots

void showPopupMenu (TQListViewItem *item, const TQPoint &p, int)
 
void slotExecuted (TQListViewItem *item=0)
 
void slotDropped (TQDropEvent *e, TQListViewItem *after)
 
void startDrag ()
 

Protected Member Functions

void maybeTip (const TQPoint &)
 
bool acceptDrag (TQDropEvent *event) const
 

Detailed Description

This is the widget which gets added to the right TreeToolView.

It inherits TDEListView and TQToolTip which is needed for showing the tooltips which contains the text of the snippet

Author
Robert Gruber

Definition at line 45 of file snippetwidget.h.

Member Function Documentation

◆ acceptDrag()

bool SnippetWidget::acceptDrag ( TQDropEvent *  event) const
protected

Reimplementation from TDEListView. 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.

kdDebug(5006) << "returning TRUE " << endl;

Definition at line 876 of file snippetwidget.cpp.

◆ maybeTip()

void SnippetWidget::maybeTip ( const TQPoint &  p)
protected

Shows the Snippet-Text as ToolTip

Definition at line 518 of file snippetwidget.cpp.

◆ showPopupMenu

void SnippetWidget::showPopupMenu ( TQListViewItem *  item,
const TQPoint &  p,
int   
)
protectedslot

Shows the Popup-Menu depending item is a valid pointer

Definition at line 537 of file snippetwidget.cpp.

◆ slotAdd

void SnippetWidget::slotAdd ( )
slot

Opens the dialog to add a snippet

Definition at line 104 of file snippetwidget.cpp.

◆ slotAddGroup

void SnippetWidget::slotAddGroup ( )
slot

Opens the didalog to add a snippet

Definition at line 165 of file snippetwidget.cpp.

◆ slotDropped

void SnippetWidget::slotDropped ( TQDropEvent *  e,
TQListViewItem *  after 
)
protectedslot

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 906 of file snippetwidget.cpp.

◆ slotEdit

void SnippetWidget::slotEdit ( TQListViewItem *  item_ = 0)
slot

Opens the dialog of editing the selected snippet

Definition at line 224 of file snippetwidget.cpp.

◆ slotEditGroup

void SnippetWidget::slotEditGroup ( )
slot

Opens the dialog of editing the selected snippet-group

Definition at line 274 of file snippetwidget.cpp.

◆ slotRemove

void SnippetWidget::slotRemove ( )
slot

Removes the selected snippet

Definition at line 186 of file snippetwidget.cpp.

◆ writeConfig()

void SnippetWidget::writeConfig ( void  )

Write the cofig file

Definition at line 332 of file snippetwidget.cpp.


The documentation for this class was generated from the following files: