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

LauncherItem Class Reference

Collaboration diagram for LauncherItem:

Collaboration graph
[legend]
List of all members.

Public Types

enum  iconstate_t { BASE_ICON, WAITING_ICON, EYE_ICON }

Public Member Functions

 LauncherItem (QIconView *parent, AppLnk *applnk, bool bigIcon=TRUE)
 ~LauncherItem ()
AppLnkappLnk () const
AppLnktakeAppLnk ()
void animateIcon ()
void resetIcon ()
bool isEyeImage () const
virtual int compare (QIconViewItem *i) const
void paintItem (QPainter *p, const QColorGroup &cg)
void setBusyIndicatorType (BusyIndicatorType t)
void setEyePixmap (const QPixmap &aIcon)
virtual QPixmap * pixmap () const

Protected Attributes

bool isBigIcon
int iteration
AppLnkapp

Private Member Functions

void paintAnimatedIcon (QPainter *p)

Private Attributes

BusyIndicatorType busyType
int psize
bool m_EyeImage
iconstate_t m_EyeImageSet

Member Enumeration Documentation

enum LauncherItem::iconstate_t
 

Enumeration values:
BASE_ICON 
WAITING_ICON 
EYE_ICON 

Definition at line 85 of file launcherview.cpp.


Constructor & Destructor Documentation

LauncherItem::LauncherItem QIconView *  parent,
AppLnk applnk,
bool  bigIcon = TRUE
 

Definition at line 123 of file launcherview.cpp.

References end, AppLnk::exec(), EYE_ICON, AppLnk::file(), QMap< Key, T >::find(), m_EyeImage, m_EyeImageSet, LauncherIconView::sm_EyeCache, and AppLnk::type().

LauncherItem::~LauncherItem  ) 
 

Definition at line 143 of file launcherview.cpp.

References app, LauncherIconView::busyItem(), FALSE, and LauncherIconView::setBusy().


Member Function Documentation

void LauncherItem::animateIcon  ) 
 

Definition at line 220 of file launcherview.cpp.

References app, appLnk(), AppLnk::bigPixmap(), LauncherIconView::busyItem(), end, isBigIcon, isEyeImage(), iteration, p, paintAnimatedIcon(), AppLnk::pixmap(), s, LauncherIconView::sm_EyeCache, and v.

Referenced by LauncherIconView::timerEvent().

AppLnk* LauncherItem::appLnk  )  const [inline]
 

Definition at line 94 of file launcherview.cpp.

References app.

Referenced by animateIcon(), compare(), LauncherIconView::findDocItem(), LauncherIconView::removeLink(), LauncherIconView::requestEyePix(), resetIcon(), and LauncherIconView::updateCategoriesAndMimeTypes().

int LauncherItem::compare QIconViewItem *  i  )  const [virtual]
 

Definition at line 160 of file launcherview.cpp.

References app, appLnk(), and LauncherIconView::compare().

bool LauncherItem::isEyeImage  )  const [inline]
 

Definition at line 99 of file launcherview.cpp.

References m_EyeImage.

Referenced by LauncherIconView::addCheckItem(), animateIcon(), LauncherIconView::requestEyePix(), resetIcon(), LauncherIconView::setEyePixmap(), and setEyePixmap().

void LauncherItem::paintAnimatedIcon QPainter *  p  )  [private]
 

Definition at line 186 of file launcherview.cpp.

References BIT_Animated, busyType, LauncherIconView::drawBackground(), height, iteration, pixmap(), width, Opie::MM::x, and Opie::MM::y.

Referenced by animateIcon(), and paintItem().

void LauncherItem::paintItem QPainter *  p,
const QColorGroup &  cg
 

Definition at line 166 of file launcherview.cpp.

References LauncherIconView::busyItem(), and paintAnimatedIcon().

QPixmap * LauncherItem::pixmap  )  const [virtual]
 

Definition at line 151 of file launcherview.cpp.

References BASE_ICON, m_EyeImage, m_EyeImageSet, LauncherIconView::requestEyePix(), and s_IgnoreNextPix.

Referenced by paintAnimatedIcon().

void LauncherItem::resetIcon  ) 
 

Definition at line 268 of file launcherview.cpp.

References app, appLnk(), AppLnk::bigPixmap(), end, QMap< Key, T >::find(), isBigIcon, isEyeImage(), iteration, AppLnk::pixmap(), and LauncherIconView::sm_EyeCache.

void LauncherItem::setBusyIndicatorType BusyIndicatorType  t  )  [inline]
 

Definition at line 104 of file launcherview.cpp.

References busyType.

void LauncherItem::setEyePixmap const QPixmap &  aIcon  ) 
 

Definition at line 281 of file launcherview.cpp.

References EYE_ICON, isEyeImage(), and m_EyeImageSet.

Referenced by LauncherIconView::setEyePixmap().

AppLnk* LauncherItem::takeAppLnk  )  [inline]
 

Definition at line 95 of file launcherview.cpp.

References app.

Referenced by LauncherIconView::hideOrShowItems().


Member Data Documentation

AppLnk* LauncherItem::app [protected]
 

Definition at line 111 of file launcherview.cpp.

Referenced by animateIcon(), appLnk(), compare(), resetIcon(), takeAppLnk(), and ~LauncherItem().

BusyIndicatorType LauncherItem::busyType [private]
 

Definition at line 115 of file launcherview.cpp.

Referenced by paintAnimatedIcon(), and setBusyIndicatorType().

bool LauncherItem::isBigIcon [protected]
 

Definition at line 109 of file launcherview.cpp.

Referenced by animateIcon(), and resetIcon().

int LauncherItem::iteration [protected]
 

Definition at line 110 of file launcherview.cpp.

Referenced by animateIcon(), paintAnimatedIcon(), and resetIcon().

bool LauncherItem::m_EyeImage [private]
 

Definition at line 117 of file launcherview.cpp.

Referenced by isEyeImage(), LauncherItem(), and pixmap().

iconstate_t LauncherItem::m_EyeImageSet [private]
 

Definition at line 118 of file launcherview.cpp.

Referenced by LauncherItem(), pixmap(), and setEyePixmap().

int LauncherItem::psize [private]
 

Definition at line 116 of file launcherview.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:38:18 2005 for OPIE by  doxygen 1.4.2