KABDetailedView Class Reference
This class implements kabīs detailed view. More...
#include <look_details.h>
Inheritance diagram for KABDetailedView:

Public Types | |
enum | BackgroundStyle { None, Tiled, Bordered } |
Enum to select how the background is drawn. More... | |
Public Slots | |
void | slotBorderedBGSelected (int index) |
void | slotTiledBGSelected (int index) |
Public Member Functions | |
KABDetailedView (QWidget *parent=0, const char *name=0) | |
The constructor. | |
virtual | ~KABDetailedView () |
The virtual destructor. | |
void | setEntry (const KABC::Addressee &) |
Set the entry. | |
void | setReadonly (bool) |
Overloaded from KABBasicLook. | |
void | configure (KConfig *config) |
Overloaded from KABBasicLook. | |
Protected Member Functions | |
void | paintEvent (QPaintEvent *) |
Paint it. | |
void | mousePressEvent (QMouseEvent *) |
Handle mouse events. | |
void | mouseMoveEvent (QMouseEvent *) |
Handle mouse movement. | |
bool | getBackground (QString path, QPixmap &image) |
A method to retrieve a background image according to the path stored in the entry. | |
Protected Attributes | |
QPtrList< QRect > | locURLs |
Store locations of the URLs. | |
QPtrList< QRect > | locEmails |
Store locations of the email addresses. | |
QPtrList< QRect > | locPhones |
Store locations of the phone numbers. | |
KABEntryPainter * | epainter |
The settings for painting. | |
QMap< QString, QPixmap > | backgrounds |
Map of QImages to save loaded background images into it. | |
QPixmap | background |
The background image used in that entry. | |
BackgroundStyle | bgStyle |
The background style. | |
bool | useDefaultBGImage |
Setting: default background is a color (defaultBGColor). | |
QColor | defaultBGColor |
The default background color. | |
bool | useHeadlineBGColor |
Colored headline background and text? | |
QColor | headlineBGColor |
The headline background color. | |
QColor | headlineTextColor |
The headline color. | |
QPixmap | defaultBGImage |
The default background image. | |
KToggleAction * | actionShowAddresses |
Show addresses? | |
KToggleAction * | actionShowEmails |
Show emails? | |
KToggleAction * | actionShowTelephones |
Show telephones? | |
KToggleAction * | actionShowURLs |
Show URLs? | |
const int | Grid |
Used for constant distances. | |
QStringList | borders |
Stores a list of the contents of the bordered backgrounds directory. | |
QStringList | tiles |
Stores a list of the contents of the tiled backgrounds directory. | |
QPopupMenu * | menuBorderedBG |
The bordered backgrounds menu. | |
QPopupMenu * | menuTiledBG |
The tiled backgrounds menu. | |
Static Protected Attributes | |
const QString | BorderedBGDir = "kab3part/backgrounds/bordered/" |
const QString | TiledBGDir = "kab3part/backgrounds/tiled/" |
Detailed Description
This class implements kabīs detailed view.Currently, there is no possibility to change the entry in this view.
Definition at line 37 of file look_details.h.
Member Enumeration Documentation
|
Enum to select how the background is drawn.
Definition at line 42 of file look_details.h. Referenced by setEntry(). |
Constructor & Destructor Documentation
|
The constructor.
Definition at line 36 of file look_details.cpp. References actionShowAddresses, actionShowEmails, actionShowTelephones, actionShowURLs, epainter, QFont::family(), headlineBGColor, headlineTextColor, QFont::pixelSize(), QFont::pointSize(), QWidget::setMouseTracking(), and useHeadlineBGColor. |
|
The virtual destructor.
Definition at line 98 of file look_details.cpp. References epainter. |
Member Function Documentation
|
Set the entry.
Reimplemented from KABBasicLook. Definition at line 318 of file look_details.cpp. References QDir::absPath(), background, BackgroundStyle, bgStyle, Bordered, getBackground(), QString::isEmpty(), None, QWidget::repaint(), QPixmap::resize(), KABBasicLook::setEntry(), QDir::setPath(), Tiled, and QString::toInt(). |
|
Overloaded from KABBasicLook.
Reimplemented from KABBasicLook. Definition at line 402 of file look_details.cpp. References QWidget::repaint(), and KABBasicLook::setReadonly(). |
|
Overloaded from KABBasicLook.
Reimplemented from KABBasicLook. Definition at line 408 of file look_details.cpp. References defaultBGColor, defaultBGImage, epainter, QFont::family(), getBackground(), headlineBGColor, headlineTextColor, QFont::pixelSize(), QFont::pointSize(), useDefaultBGImage, and useHeadlineBGColor. |
|
Paint it.
Reimplemented from QWidget. Definition at line 123 of file look_details.cpp. References actionShowAddresses, actionShowEmails, actionShowTelephones, actionShowURLs, background, QPainter::begin(), bgStyle, Bordered, defaultBGColor, defaultBGImage, QPainter::drawRect(), QPainter::drawTiledPixmap(), QPainter::end(), epainter, Grid, QRect::height(), QWidget::height(), None, QPainter::setBrush(), QPainter::setPen(), QPainter::setViewport(), Tiled, useDefaultBGImage, QRect::width(), QPixmap::width(), and QWidget::width(). |
|
Handle mouse events.
Reimplemented from QWidget. Definition at line 217 of file look_details.cpp. References actionShowAddresses, actionShowEmails, actionShowTelephones, actionShowURLs, borders, KABBasicLook::browse(), QMouseEvent::button(), QDir::entryList(), epainter, QPopupMenu::exec(), QMouseEvent::globalPos(), Grid, QPopupMenu::idAt(), QPopupMenu::insertItem(), QPopupMenu::insertSeparator(), menuBorderedBG, menuTiledBG, QMouseEvent::pos(), KABBasicLook::sendEmail(), QPopupMenu::setItemEnabled(), QDir::setPath(), and tiles. |
|
Handle mouse movement.
Reimplemented from QWidget. Definition at line 166 of file look_details.cpp. References QWidget::cursor(), epainter, Grid, QMouseEvent::pos(), and QWidget::setCursor(). |
|
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
Definition at line 103 of file look_details.cpp. References backgrounds, QMap< QString, QPixmap >::end(), QMap< QString, QPixmap >::find(), and QPixmap::load(). Referenced by configure(), and setEntry(). |
Member Data Documentation
|
Store locations of the URLs.
Definition at line 72 of file look_details.h. |
|
Store locations of the email addresses.
Definition at line 74 of file look_details.h. |
|
Store locations of the phone numbers.
Definition at line 76 of file look_details.h. |
|
The settings for painting.
Definition at line 78 of file look_details.h. Referenced by configure(), KABDetailedView(), mouseMoveEvent(), mousePressEvent(), paintEvent(), and ~KABDetailedView(). |
|
Map of QImages to save loaded background images into it.
Definition at line 86 of file look_details.h. Referenced by getBackground(). |
|
The background image used in that entry.
Definition at line 88 of file look_details.h. Referenced by paintEvent(), and setEntry(). |
|
The background style.
Definition at line 90 of file look_details.h. Referenced by paintEvent(), and setEntry(). |
|
Setting: default background is a color (defaultBGColor).
Definition at line 92 of file look_details.h. Referenced by configure(), and paintEvent(). |
|
The default background color.
Definition at line 94 of file look_details.h. Referenced by configure(), and paintEvent(). |
|
Colored headline background and text?
Definition at line 96 of file look_details.h. Referenced by configure(), and KABDetailedView(). |
|
The headline background color.
Definition at line 98 of file look_details.h. Referenced by configure(), and KABDetailedView(). |
|
The headline color.
Definition at line 100 of file look_details.h. Referenced by configure(), and KABDetailedView(). |
|
The default background image.
Definition at line 102 of file look_details.h. Referenced by configure(), and paintEvent(). |
|
Show addresses?
Definition at line 104 of file look_details.h. Referenced by KABDetailedView(), mousePressEvent(), and paintEvent(). |
|
Show emails?
Definition at line 106 of file look_details.h. Referenced by KABDetailedView(), mousePressEvent(), and paintEvent(). |
|
Show telephones?
Definition at line 108 of file look_details.h. Referenced by KABDetailedView(), mousePressEvent(), and paintEvent(). |
|
Show URLs?
Definition at line 110 of file look_details.h. Referenced by KABDetailedView(), mousePressEvent(), and paintEvent(). |
|
Used for constant distances.
Definition at line 112 of file look_details.h. Referenced by mouseMoveEvent(), mousePressEvent(), and paintEvent(). |
|
Stores a list of the contents of the bordered backgrounds directory.
Definition at line 114 of file look_details.h. Referenced by mousePressEvent(). |
|
Stores a list of the contents of the tiled backgrounds directory.
Definition at line 116 of file look_details.h. Referenced by mousePressEvent(). |
|
The bordered backgrounds menu. Only valid when not zero (e.g., when handling a mouse click event. Definition at line 119 of file look_details.h. Referenced by mousePressEvent(). |
|
The tiled backgrounds menu. Only valid when not zero (e.g., when handling a mouse click event. Definition at line 122 of file look_details.h. Referenced by mousePressEvent(). |
The documentation for this class was generated from the following files: