kmail

RecipientsEditor Class Reference

Inherits QWidget.

List of all members.


Detailed Description

Definition at line 291 of file recipientseditor.h.


Public Slots

void setFocus ()
void setFocusTop ()
void setFocusBottom ()
void selectRecipients ()
void saveDistributionList ()

Signals

void focusUp ()
void focusDown ()
void completionModeChanged (KGlobalSettings::Completion)

Public Member Functions

 RecipientsEditor (QWidget *parent)
 ~RecipientsEditor ()
void clear ()
Recipient::List recipients () const
RecipientsPickerpicker () const
void setRecipientString (const QString &, Recipient::Type)
QString recipientString (Recipient::Type)
void addRecipient (const QString &recipient, Recipient::Type type)
void removeRecipient (const QString &recipient, Recipient::Type type)
bool isModified ()
void clearModified ()
int setFirstColumnWidth (int)
void setCompletionMode (KGlobalSettings::Completion)

Protected Slots

void slotPickedRecipient (const Recipient &)

Member Function Documentation

void RecipientsEditor::addRecipient ( const QString &  recipient,
Recipient::Type  type 
)

Adds a recipient (or multiple recipients) to one line of the editor.

Parameters:
recipient The recipient(s) you want to add.
type The recipient type.

Definition at line 917 of file recipientseditor.cpp.

void RecipientsEditor::removeRecipient ( const QString &  recipient,
Recipient::Type  type 
)

Removes the recipient provided it can be found and has the given type.

Parameters:
recipient The recipient(s) you want to remove.
type The recipient type.

Definition at line 925 of file recipientseditor.cpp.

bool RecipientsEditor::isModified (  ) 

Returns true if the user has made any modifications to the list of recipients.

Definition at line 931 of file recipientseditor.cpp.

void RecipientsEditor::clearModified (  ) 

Resets the modified flag to false.

Definition at line 936 of file recipientseditor.cpp.

int RecipientsEditor::setFirstColumnWidth ( int  w  ) 

Set the width of the left most column to be the argument width.

This method allows other widgets to align their label/combobox column with ours by communicating how many pixels that first colum is for them. Returns the width that is actually being used.

Definition at line 961 of file recipientseditor.cpp.

void RecipientsEditor::setCompletionMode ( KGlobalSettings::Completion  mode  ) 

Set completion mode for all lines.

Definition at line 971 of file recipientseditor.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys