Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PageListBoxItem Class Reference

#include </home/clem/local/src/opie/noncore/graphics/drawpad/thumbnailview.h>

Collaboration diagram for PageListBoxItem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PageListBoxItem (Page *page, QListBox *parent)
 ~PageListBoxItem ()
int height (const QListBox *lb) const
int width (const QListBox *lb) const
void paint (QPainter *painter)
Pagepage () const

Private Member Functions

QString dateTimeString (QDateTime dateTime)

Private Attributes

Pagem_pPage
QPixmap m_thumbnail
QString m_titleText
QString m_dimensionText
QString m_dateText
QColor m_alternateColor

Constructor & Destructor Documentation

PageListBoxItem::PageListBoxItem Page page,
QListBox *  parent
 

Definition at line 34 of file thumbnailview.cpp.

References Qt::black, dateTimeString(), image, Page::lastModified(), m_alternateColor, m_dateText, m_dimensionText, m_pPage, m_thumbnail, m_titleText, Page::pixmap(), s, scale(), THUMBNAIL_SIZE, Page::title(), tr, and v.

PageListBoxItem::~PageListBoxItem  ) 
 

Definition at line 79 of file thumbnailview.cpp.


Member Function Documentation

QString PageListBoxItem::dateTimeString QDateTime  dateTime  )  [private]
 

Definition at line 136 of file thumbnailview.cpp.

References QString::append(), QDateTime::date(), DateFormat::DayMonthYear, i, Config::readEntry(), Config::readNumEntry(), Config::setGroup(), and QDateTime::time().

Referenced by PageListBoxItem().

int PageListBoxItem::height const QListBox *  lb  )  const
 

Definition at line 83 of file thumbnailview.cpp.

References THUMBNAIL_SIZE.

Page * PageListBoxItem::page  )  const
 

Definition at line 131 of file thumbnailview.cpp.

References m_pPage.

Referenced by PageListBox::select(), and PageListBox::selected().

void PageListBoxItem::paint QPainter *  painter  ) 
 

Definition at line 98 of file thumbnailview.cpp.

References Qt::AlignBottom, Qt::AlignLeft, Qt::AlignTop, Qt::AlignVCenter, m_alternateColor, m_dateText, m_dimensionText, m_thumbnail, m_titleText, THUMBNAIL_SIZE, and TRUE.

int PageListBoxItem::width const QListBox *  lb  )  const
 

Definition at line 88 of file thumbnailview.cpp.

References m_dateText, m_dimensionText, m_titleText, and THUMBNAIL_SIZE.


Member Data Documentation

QColor PageListBoxItem::m_alternateColor [private]
 

Definition at line 51 of file thumbnailview.h.

Referenced by PageListBoxItem(), and paint().

QString PageListBoxItem::m_dateText [private]
 

Definition at line 49 of file thumbnailview.h.

Referenced by PageListBoxItem(), paint(), and width().

QString PageListBoxItem::m_dimensionText [private]
 

Definition at line 48 of file thumbnailview.h.

Referenced by PageListBoxItem(), paint(), and width().

Page* PageListBoxItem::m_pPage [private]
 

Definition at line 43 of file thumbnailview.h.

Referenced by page(), and PageListBoxItem().

QPixmap PageListBoxItem::m_thumbnail [private]
 

Definition at line 45 of file thumbnailview.h.

Referenced by PageListBoxItem(), and paint().

QString PageListBoxItem::m_titleText [private]
 

Definition at line 47 of file thumbnailview.h.

Referenced by PageListBoxItem(), paint(), and width().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:44:14 2005 for OPIE by  doxygen 1.4.2