kaddressbook
KAB::ContactEditorWidget Class Reference
Inheritance diagram for KAB::ContactEditorWidget:

Detailed Description
Definition at line 37 of file contacteditorwidget.h.
Public Types | |
typedef QValueList< ContactEditorWidget * > | List |
Public Slots | |
void | setModified (bool modified) |
void | setModified () |
Signals | |
void | changed () |
Public Member Functions | |
ContactEditorWidget (KABC::AddressBook *ab, QWidget *parent, const char *name=0) | |
~ContactEditorWidget () | |
virtual int | logicalHeight () const |
virtual int | logicalWidth () const |
virtual void | loadContact (KABC::Addressee *addr)=0 |
virtual void | storeContact (KABC::Addressee *addr)=0 |
virtual void | setReadOnly (bool readOnly)=0 |
bool | modified () const |
Protected Member Functions | |
KABC::AddressBook * | addressBook () const |
Member Function Documentation
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 52 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 59 of file contacteditorwidget.h.
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 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.
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.
bool ContactEditorWidget::modified | ( | ) | const |
void KAB::ContactEditorWidget::changed | ( | ) | [signal] |
Emitted whenever the page has changed, do not emit it directly, use setModified() instead.
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.
KABC::AddressBook * ContactEditorWidget::addressBook | ( | ) | const [protected] |
Returns a pointer to the address book object.
Definition at line 38 of file contacteditorwidget.cpp.
The documentation for this class was generated from the following files: