kaddressbook Library API Documentation

KABDetailedView Class Reference

This class implements the detailed view. More...

#include <look_details.h>

Inheritance diagram for KABDetailedView:

KABBasicLook QVBox List of all members.

Public Types

enum  BackgroundStyle { None, Tiled, Bordered }

Public Slots

void slotBorderedBGSelected (int index)
void slotTiledBGSelected (int index)

Public Methods

 KABDetailedView (QWidget *parent=0, const char *name=0)
virtual ~KABDetailedView ()
void setAddressee (const KABC::Addressee &)
void setReadOnly (bool)
void restoreSettings (KConfig *)

Protected Methods

void paintEvent (QPaintEvent *)
void mousePressEvent (QMouseEvent *)
void mouseMoveEvent (QMouseEvent *)
bool getBackground (QString path, QPixmap &image)

Detailed Description

This class implements the detailed view.

Currently, there is no possibility to change the entry in this view.

Definition at line 47 of file look_details.h.


Member Enumeration Documentation

enum KABDetailedView::BackgroundStyle
 

Enum to select how the background is drawn.

Definition at line 55 of file look_details.h.

Referenced by setAddressee().


Constructor & Destructor Documentation

KABDetailedView::KABDetailedView QWidget   parent = 0,
const char *    name = 0
 

The constructor.

Definition at line 46 of file look_details.cpp.

References QFont::family(), QFont::pixelSize(), and QFont::pointSize().

KABDetailedView::~KABDetailedView   [virtual]
 

The virtual destructor.

Definition at line 104 of file look_details.cpp.


Member Function Documentation

void KABDetailedView::setAddressee const KABC::Addressee &    [virtual]
 

Set the addressee.

Reimplemented from KABBasicLook.

Definition at line 274 of file look_details.cpp.

References QDir::absPath(), KABBasicLook::addressee(), BackgroundStyle, getBackground(), QString::isEmpty(), QPixmap::resize(), KABBasicLook::setAddressee(), QDir::setPath(), and QString::toInt().

void KABDetailedView::setReadOnly bool    [virtual]
 

Overloaded from KABBasicLook.

Reimplemented from KABBasicLook.

Definition at line 349 of file look_details.cpp.

References KABBasicLook::setReadOnly().

void KABDetailedView::restoreSettings KConfig *    [virtual]
 

Overloaded from KABBasicLook.

Reimplemented from KABBasicLook.

Definition at line 355 of file look_details.cpp.

References QFont::family(), getBackground(), QFont::pixelSize(), and QFont::pointSize().

bool KABDetailedView::getBackground QString    path,
QPixmap   image
[protected]
 

A method to retrieve a background image according to the path stored in the entry.

It is either loaded from backgrounds, that acts as a cache, or from the file and added to

See also:
backgrounds.

Definition at line 110 of file look_details.cpp.

References QMap< QString, QPixmap >::end(), QMap< QString, QPixmap >::find(), and QPixmap::load().

Referenced by restoreSettings(), and setAddressee().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:53 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003