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

LauncherIconView Class Reference

#include </home/clem/local/src/opie/core/launcher/launcherview.h>

Collaboration diagram for LauncherIconView:

Collaboration graph
[legend]
List of all members.

Public Types

enum  SortMethod { Name, Date, Type }

Public Member Functions

 LauncherIconView (QWidget *parent, const char *name=0)
 ~LauncherIconView ()
QIconViewItem * busyItem () const
void setBigIcons (bool bi)
void updateCategoriesAndMimeTypes ()
void setBusyIndicatorType (BusyIndicatorType t)
void setStaticBackgroundPicture (bool enable)
void doAutoScroll ()
void setBusy (bool on)
bool inKeyEvent () const
void addItem (AppLnk *app, bool resort=TRUE)
bool removeLink (const QString &linkfile, bool removeCache=true)
void changeItem (const AppLnk &old, AppLnk *nlink)
QStringList mimeTypes () const
QStringList categories () const
void clear ()
void addCatsAndMimes (AppLnk *app)
void setBackgroundOrigin (QWidget::BackgroundOrigin)
void setBackgroundPixmap (const QPixmap &pm)
void setBackgroundColor (const QColor &c)
void setColNumber (int)
void drawBackground (QPainter *p, const QRect &r)
void setItemTextPos (ItemTextPos pos)
void hideOrShowItems (bool resort)
void setTypeFilter (const QString &typefilter, bool resort)
void setCategoryFilter (int catfilter, bool resort)
void setSortMethod (SortMethod m)
int compare (const AppLnk *a, const AppLnk *b)
void requestEyePix (const LauncherItem *which)
virtual void setPalette (const QPalette &palette)
virtual void unsetPalette ()

Static Public Attributes

static QMap< QString, QPixmap > * sm_EyeCache = 0

Protected Slots

void setEyePixmap (const QPixmap &, const QString &, int width)
void stopEyeTimer ()

Protected Member Functions

virtual void timerEvent (QTimerEvent *te)
void styleChange (QStyle &old)
void calculateGrid (ItemTextPos pos)
void focusInEvent (QFocusEvent *)
void focusOutEvent (QFocusEvent *)
LauncherItemfindDocItem (const QString &)
void addCheckItem (AppLnk *app)
void checkCallback ()
virtual void keyPressEvent (QKeyEvent *e)

Private Attributes

QList< AppLnkhidden
QDict< void > mimes
QDict< void > cats
SortMethod sortmeth
QRegExp tf
int cf
LauncherItembsy
int busyTimer
bool ike
bool bigIcns
QPixmap bgPixmap
QColor bgColor
LauncherThumbReceiverm_EyeCallBack
BusyIndicatorType busyType
QTimer m_eyeTimer
int numColumns
bool staticBackground

Member Enumeration Documentation

enum LauncherIconView::SortMethod
 

Enumeration values:
Name 
Date 
Type 

Definition at line 210 of file launcherview.h.


Constructor & Destructor Documentation

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

Definition at line 294 of file launcherview.cpp.

References calculateGrid(), FALSE, hidden, ike, m_EyeCallBack, m_eyeTimer, Name, Config::readBoolEntry(), Config::setGroup(), setStaticBackgroundPicture(), sm_EyeCache, sortmeth, stopEyeTimer(), and TRUE.

LauncherIconView::~LauncherIconView  ) 
 

Definition at line 309 of file launcherview.cpp.

References hidden, l, odebug, and oendl.


Member Function Documentation

void LauncherIconView::addCatsAndMimes AppLnk app  ) 
 

Definition at line 416 of file launcherview.cpp.

References QString::find(), QString::left(), mimes, QDict< type >::replace(), and AppLnk::type().

Referenced by addItem(), and updateCategoriesAndMimeTypes().

void LauncherIconView::addCheckItem AppLnk app  )  [protected]
 

Definition at line 516 of file launcherview.cpp.

References bigIcns, checkCallback(), and LauncherItem::isEyeImage().

Referenced by addItem().

void LauncherIconView::addItem AppLnk app,
bool  resort = TRUE
 

Definition at line 616 of file launcherview.cpp.

References addCatsAndMimes(), addCheckItem(), cf, hidden, QRegExp::isEmpty(), QRegExp::match(), and tf.

Referenced by LauncherView::addItem(), changeItem(), and hideOrShowItems().

QIconViewItem * LauncherIconView::busyItem  )  const
 

Definition at line 667 of file launcherview.cpp.

References bsy.

Referenced by LauncherItem::animateIcon(), LauncherItem::paintItem(), and LauncherItem::~LauncherItem().

void LauncherIconView::calculateGrid ItemTextPos  pos  )  [protected]
 

Definition at line 674 of file launcherview.cpp.

References height, and numColumns.

Referenced by LauncherIconView(), setColNumber(), setItemTextPos(), and styleChange().

QStringList LauncherIconView::categories  )  const
 

void LauncherIconView::changeItem const AppLnk old,
AppLnk nlink
 

Definition at line 631 of file launcherview.cpp.

References addItem(), QMap< Key, T >::end(), AppLnk::file(), QMap< Key, T >::find(), AppLnk::linkFile(), removeLink(), and sm_EyeCache.

Referenced by LauncherView::changeItem().

void LauncherIconView::checkCallback  )  [protected]
 

Definition at line 506 of file launcherview.cpp.

References m_EyeCallBack, m_eyeTimer, and setEyePixmap().

Referenced by addCheckItem(), and requestEyePix().

void LauncherIconView::clear  ) 
 

Definition at line 464 of file launcherview.cpp.

References cats, QDict< type >::clear(), hidden, and mimes.

Referenced by hideOrShowItems(), and LauncherView::removeAllItems().

int LauncherIconView::compare const AppLnk a,
const AppLnk b
 

Definition at line 351 of file launcherview.cpp.

References Date, AppLnk::file(), QFileInfo::lastModified(), AppLnk::linkFile(), AppLnk::linkFileKnown(), AppLnk::name(), Name, sortmeth, AppLnk::type(), and Type.

Referenced by LauncherItem::compare().

void LauncherIconView::doAutoScroll  )  [inline]
 

Definition at line 174 of file launcherview.h.

void LauncherIconView::drawBackground QPainter *  p,
const QRect &  r
 

Definition at line 396 of file launcherview.cpp.

References bgColor, bgPixmap, and staticBackground.

Referenced by LauncherItem::paintAnimatedIcon().

LauncherItem * LauncherIconView::findDocItem const QString  )  [protected]
 

Definition at line 484 of file launcherview.cpp.

References LauncherItem::appLnk().

Referenced by setEyePixmap().

void LauncherIconView::focusInEvent QFocusEvent *   )  [inline, protected]
 

Definition at line 225 of file launcherview.h.

void LauncherIconView::focusOutEvent QFocusEvent *   )  [inline, protected]
 

Definition at line 226 of file launcherview.h.

void LauncherIconView::hideOrShowItems bool  resort  ) 
 

Definition at line 562 of file launcherview.cpp.

References addItem(), clear(), FALSE, hidden, l, LauncherItem::takeAppLnk(), and TRUE.

Referenced by LauncherView::clearViewFont(), LauncherView::fontChanged(), LauncherView::relayout(), setCategoryFilter(), setTypeFilter(), LauncherView::setViewFont(), and LauncherView::setViewMode().

bool LauncherIconView::inKeyEvent  )  const [inline]
 

Definition at line 180 of file launcherview.h.

References ike.

Referenced by LauncherView::selectionChanged().

void LauncherIconView::keyPressEvent QKeyEvent *  e  )  [protected, virtual]
 

Definition at line 705 of file launcherview.cpp.

References FALSE, ike, and TRUE.

QStringList LauncherIconView::mimeTypes  )  const
 

Definition at line 472 of file launcherview.cpp.

References QValueList< T >::append(), QDictIterator< type >::current(), QDictIterator< type >::currentKey(), mimes, and QStringList::sort().

Referenced by LauncherView::updateTools().

bool LauncherIconView::removeLink const QString linkfile,
bool  removeCache = true
 

Definition at line 586 of file launcherview.cpp.

References LauncherItem::appLnk(), FALSE, AppLnk::file(), AppLnk::fileKnown(), hidden, AppLnk::isValid(), l, AppLnk::linkFile(), AppLnk::linkFileKnown(), QMap< Key, T >::remove(), sm_EyeCache, and TRUE.

Referenced by changeItem(), and LauncherView::removeLink().

void LauncherIconView::requestEyePix const LauncherItem which  ) 
 

Definition at line 524 of file launcherview.cpp.

References LauncherItem::appLnk(), bigIcns, AppLnk::bigIconSize(), checkCallback(), LauncherItem::isEyeImage(), m_EyeCallBack, LauncherThumbReceiver::requestThumb(), s, and AppLnk::smallIconSize().

Referenced by LauncherItem::pixmap().

void LauncherIconView::setBackgroundColor const QColor &  c  )  [inline]
 

Definition at line 197 of file launcherview.h.

References bgColor.

void LauncherIconView::setBackgroundOrigin QWidget::BackgroundOrigin   )  [inline]
 

Definition at line 191 of file launcherview.h.

void LauncherIconView::setBackgroundPixmap const QPixmap &  pm  )  [inline]
 

Definition at line 193 of file launcherview.h.

References bgPixmap.

void LauncherIconView::setBigIcons bool  bi  ) 
 

Definition at line 658 of file launcherview.cpp.

References bigIcns, QMap< Key, T >::clear(), and sm_EyeCache.

Referenced by LauncherView::setViewMode().

void LauncherIconView::setBusy bool  on  ) 
 

Definition at line 431 of file launcherview.cpp.

References bigIcns, AppLnk::bigIconSize(), bsy, busyTimer, busyType, size, and AppLnk::smallIconSize().

Referenced by LauncherView::setBusy(), and LauncherItem::~LauncherItem().

void LauncherIconView::setBusyIndicatorType BusyIndicatorType  t  ) 
 

Definition at line 672 of file launcherview.cpp.

References busyType.

Referenced by LauncherView::setBusyIndicatorType().

void LauncherIconView::setCategoryFilter int  catfilter,
bool  resort
 

Definition at line 375 of file launcherview.cpp.

References cf, and hideOrShowItems().

Referenced by LauncherView::showCategory().

void LauncherIconView::setColNumber int   ) 
 

Definition at line 1062 of file launcherview.cpp.

References calculateGrid(), and numColumns.

Referenced by LauncherView::setColNumber().

void LauncherIconView::setEyePixmap const QPixmap &  ,
const QString ,
int  width
[protected, slot]
 

Definition at line 496 of file launcherview.cpp.

References bigIcns, AppLnk::bigIconSize(), findDocItem(), LauncherItem::isEyeImage(), s, LauncherItem::setEyePixmap(), and AppLnk::smallIconSize().

Referenced by checkCallback(), and stopEyeTimer().

void LauncherIconView::setItemTextPos ItemTextPos  pos  ) 
 

Definition at line 390 of file launcherview.cpp.

References calculateGrid().

Referenced by LauncherView::setViewMode().

void LauncherIconView::setPalette const QPalette &  palette  )  [virtual]
 

Definition at line 329 of file launcherview.cpp.

References s_IgnoreNextPix.

Referenced by LauncherView::paletteChange(), and LauncherView::setTextColor().

void LauncherIconView::setSortMethod SortMethod  m  ) 
 

Definition at line 367 of file launcherview.cpp.

References sortmeth.

Referenced by LauncherView::sortBy().

void LauncherIconView::setStaticBackgroundPicture bool  enable  ) 
 

Definition at line 336 of file launcherview.cpp.

References staticBackground.

Referenced by LauncherIconView().

void LauncherIconView::setTypeFilter const QString typefilter,
bool  resort
 

Definition at line 384 of file launcherview.cpp.

References FALSE, hideOrShowItems(), tf, and TRUE.

Referenced by LauncherView::showType().

void LauncherIconView::stopEyeTimer  )  [protected, slot]
 

Definition at line 534 of file launcherview.cpp.

References m_EyeCallBack, m_eyeTimer, and setEyePixmap().

Referenced by LauncherIconView().

void LauncherIconView::styleChange QStyle &  old  )  [protected]
 

Definition at line 699 of file launcherview.cpp.

References calculateGrid().

void LauncherIconView::timerEvent QTimerEvent *  te  )  [protected, virtual]
 

Definition at line 648 of file launcherview.cpp.

References LauncherItem::animateIcon(), bsy, and busyTimer.

void LauncherIconView::unsetPalette  )  [virtual]
 

Definition at line 322 of file launcherview.cpp.

References s_IgnoreNextPix.

Referenced by LauncherView::paletteChange().

void LauncherIconView::updateCategoriesAndMimeTypes  ) 
 

Definition at line 545 of file launcherview.cpp.

References addCatsAndMimes(), LauncherItem::appLnk(), cats, QDict< type >::clear(), hidden, l, and mimes.

Referenced by LauncherView::updateTools().


Member Data Documentation

QColor LauncherIconView::bgColor [private]
 

Definition at line 248 of file launcherview.h.

Referenced by drawBackground(), and setBackgroundColor().

QPixmap LauncherIconView::bgPixmap [private]
 

Definition at line 247 of file launcherview.h.

Referenced by drawBackground(), and setBackgroundPixmap().

bool LauncherIconView::bigIcns [private]
 

Definition at line 246 of file launcherview.h.

Referenced by addCheckItem(), requestEyePix(), setBigIcons(), setBusy(), and setEyePixmap().

LauncherItem* LauncherIconView::bsy [private]
 

Definition at line 243 of file launcherview.h.

Referenced by busyItem(), setBusy(), and timerEvent().

int LauncherIconView::busyTimer [private]
 

Definition at line 244 of file launcherview.h.

Referenced by setBusy(), and timerEvent().

BusyIndicatorType LauncherIconView::busyType [private]
 

Definition at line 253 of file launcherview.h.

Referenced by setBusy(), and setBusyIndicatorType().

QDict<void> LauncherIconView::cats [private]
 

Definition at line 239 of file launcherview.h.

Referenced by clear(), and updateCategoriesAndMimeTypes().

int LauncherIconView::cf [private]
 

Definition at line 242 of file launcherview.h.

Referenced by addItem(), and setCategoryFilter().

QList<AppLnk> LauncherIconView::hidden [private]
 

Definition at line 237 of file launcherview.h.

Referenced by addItem(), clear(), hideOrShowItems(), LauncherIconView(), removeLink(), updateCategoriesAndMimeTypes(), and ~LauncherIconView().

bool LauncherIconView::ike [private]
 

Definition at line 245 of file launcherview.h.

Referenced by inKeyEvent(), keyPressEvent(), and LauncherIconView().

LauncherThumbReceiver* LauncherIconView::m_EyeCallBack [private]
 

Definition at line 249 of file launcherview.h.

Referenced by checkCallback(), LauncherIconView(), requestEyePix(), and stopEyeTimer().

QTimer LauncherIconView::m_eyeTimer [private]
 

Definition at line 254 of file launcherview.h.

Referenced by checkCallback(), LauncherIconView(), and stopEyeTimer().

QDict<void> LauncherIconView::mimes [private]
 

Definition at line 238 of file launcherview.h.

Referenced by addCatsAndMimes(), clear(), mimeTypes(), and updateCategoriesAndMimeTypes().

int LauncherIconView::numColumns [private]
 

Definition at line 255 of file launcherview.h.

Referenced by calculateGrid(), and setColNumber().

QMap< QString, QPixmap > * LauncherIconView::sm_EyeCache = 0 [static]
 

Definition at line 292 of file launcherview.cpp.

Referenced by LauncherItem::animateIcon(), changeItem(), LauncherIconView(), LauncherItem::LauncherItem(), removeLink(), LauncherItem::resetIcon(), and setBigIcons().

SortMethod LauncherIconView::sortmeth [private]
 

Definition at line 240 of file launcherview.h.

Referenced by compare(), LauncherIconView(), and setSortMethod().

bool LauncherIconView::staticBackground [private]
 

Definition at line 256 of file launcherview.h.

Referenced by drawBackground(), and setStaticBackgroundPicture().

QRegExp LauncherIconView::tf [private]
 

Definition at line 241 of file launcherview.h.

Referenced by addItem(), and setTypeFilter().


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