kaddressbook
KAB::ContactEditorWidget Class Reference
#include <contacteditorwidget.h>

Detailed Description
Definition at line 38 of file contacteditorwidget.h.
Public Types | |
| typedef QList < ContactEditorWidget * > | List |
Public Slots | |
| void | setModified () |
| void | setModified (bool modified) |
Signals | |
| void | changed () |
Public Member Functions | |
| ContactEditorWidget (KABC::AddressBook *ab, QWidget *parent) | |
| virtual void | loadContact (KABC::Addressee *addr)=0 |
| virtual int | logicalHeight () const |
| virtual int | logicalWidth () const |
| bool | modified () const |
| virtual void | setReadOnly (bool readOnly)=0 |
| virtual void | storeContact (KABC::Addressee *addr)=0 |
| ~ContactEditorWidget () | |
Protected Member Functions | |
| KABC::AddressBook * | addressBook () const |
Member Typedef Documentation
Definition at line 43 of file contacteditorwidget.h.
Constructor & Destructor Documentation
| ContactEditorWidget::ContactEditorWidget | ( | KABC::AddressBook * | ab, | |
| QWidget * | parent | |||
| ) |
Definition at line 28 of file contacteditorwidget.cpp.
| ContactEditorWidget::~ContactEditorWidget | ( | ) |
Definition at line 34 of file contacteditorwidget.cpp.
Member Function Documentation
| KABC::AddressBook * ContactEditorWidget::addressBook | ( | ) | const [protected] |
Returns a pointer to the address book object.
Definition at line 38 of file contacteditorwidget.cpp.
| void KAB::ContactEditorWidget::changed | ( | ) | [signal] |
Emitted whenever the page has changed, do not emit it directly, use setModified() instead.
| virtual void KAB::ContactEditorWidget::loadContact | ( | KABC::Addressee * | addr | ) | [pure virtual] |
Load the contacts data into the GUI.
Implemented in AdvancedCustomFields, CustomFieldsWidget, CryptoWidget, FreeBusyWidget, GeoWidget, ImageWidget, and SoundWidget.
| virtual int KAB::ContactEditorWidget::logicalHeight | ( | ) | const [inline, virtual] |
Return logical height of the widget.
This is used to calculate how much vertical space relative to other widgets this widget will use in the summary view.
Definition at line 53 of file contacteditorwidget.h.
| virtual int KAB::ContactEditorWidget::logicalWidth | ( | ) | const [inline, virtual] |
Return logical wide of the widget.
This is used to calculate how much horizontal space relative to other widgets this widget will use in the summary view.
Reimplemented in ImageWidget.
Definition at line 60 of file contacteditorwidget.h.
| bool ContactEditorWidget::modified | ( | ) | const |
| void ContactEditorWidget::setModified | ( | ) | [slot] |
Definition at line 48 of file contacteditorwidget.cpp.
| void ContactEditorWidget::setModified | ( | bool | modified | ) | [slot] |
Call this slot whenever the data were changed by the user.
It will emit the changed() signal and set the modified property.
- Parameters:
-
modified Set whether the widget was modified.
Definition at line 53 of file contacteditorwidget.cpp.
| virtual void KAB::ContactEditorWidget::setReadOnly | ( | bool | readOnly | ) | [pure virtual] |
Sets whether the contact should be presented as read-only.
You should update your GUI in the reimplemented method.
Implemented in AdvancedCustomFields, CustomFieldsWidget, CryptoWidget, FreeBusyWidget, GeoWidget, ImageWidget, and SoundWidget.
| virtual void KAB::ContactEditorWidget::storeContact | ( | KABC::Addressee * | addr | ) | [pure virtual] |
Save the data from the GUI into the passed contact object.
Implemented in AdvancedCustomFields, CustomFieldsWidget, CryptoWidget, FreeBusyWidget, GeoWidget, ImageWidget, and SoundWidget.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference