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

LauncherView Class Reference

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

Collaboration diagram for LauncherView:

Collaboration graph
[legend]
List of all members.

Public Types

enum  ViewMode { Icon, List }
enum  BackgroundType { Ruled, SolidColor, Image }

Signals

void clicked (const AppLnk *)
void rightPressed (AppLnk *)

Public Member Functions

 LauncherView (QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~LauncherView ()
void hideIcons ()
bool removeLink (const QString &linkfile)
void addItem (AppLnk *app, bool resort=TRUE)
void changeItem (const AppLnk &old, AppLnk *nlink)
void removeAllItems ()
void setSortEnabled (bool)
void setUpdatesEnabled (bool)
void sort ()
void setToolsEnabled (bool)
void updateTools ()
void setBusy (bool)
void setBusyIndicatorType (const QString &)
void setViewMode (ViewMode m)
ViewMode viewMode () const
void setBackgroundType (BackgroundType t, const QString &)
BackgroundType backgroundType () const
void setTextColor (const QColor &)
QColor textColor () const
void setViewFont (const QFont &)
void clearViewFont ()
void setColNumber (int)
void relayout (void)
LauncherIconViewiconView ()

Protected Slots

void selectionChanged ()
void returnPressed (QIconViewItem *item)
void itemClicked (int, QIconViewItem *)
void itemPressed (int, QIconViewItem *)
void sortBy (int)
void showType (int)
void showCategory (int)
void resizeEvent (QResizeEvent *)
void flushBgCache ()

Protected Member Functions

void paletteChange (const QPalette &)
void fontChanged (const QFont &)

Private Member Functions

QImage loadBackgroundImage (QString &fname)

Private Attributes

QWidget * tools
LauncherIconViewicons
QComboBox * typemb
QStringList typelist
CategorySelectcatmb
ViewMode vmode
BackgroundType bgType
QString bgName
QColor textCol

Static Private Attributes

static bool bsy = FALSE

Member Enumeration Documentation

enum LauncherView::BackgroundType
 

Enumeration values:
Ruled 
SolidColor 
Image 

Definition at line 74 of file launcherview.h.

enum LauncherView::ViewMode
 

Enumeration values:
Icon 
List 

Definition at line 70 of file launcherview.h.


Constructor & Destructor Documentation

LauncherView::LauncherView QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Definition at line 725 of file launcherview.cpp.

References catmb, FALSE, Icon, icons, itemClicked(), itemPressed(), QString::null, returnPressed(), QPEApplication::RightOnHold, Ruled, selectionChanged(), setBackgroundType(), QPEApplication::setStylusOperation(), setViewMode(), tools, TRUE, and vmode.

LauncherView::~LauncherView  ) 
 

Definition at line 757 of file launcherview.cpp.

References bgName, and QMap< Key, T >::contains().


Member Function Documentation

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

Definition at line 1154 of file launcherview.cpp.

References LauncherIconView::addItem(), and icons.

BackgroundType LauncherView::backgroundType  )  const [inline]
 

Definition at line 76 of file launcherview.h.

References bgType.

void LauncherView::changeItem const AppLnk old,
AppLnk nlink
 

Definition at line 1159 of file launcherview.cpp.

References LauncherIconView::changeItem(), and icons.

void LauncherView::clearViewFont  ) 
 

Definition at line 1083 of file launcherview.cpp.

References LauncherIconView::hideOrShowItems(), and icons.

void LauncherView::clicked const AppLnk  )  [signal]
 

Referenced by itemClicked(), returnPressed(), and selectionChanged().

void LauncherView::flushBgCache  )  [protected, slot]
 

Definition at line 1203 of file launcherview.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), and QMap< Key, T >::remove().

Referenced by setBackgroundType().

void LauncherView::fontChanged const QFont &   )  [protected]
 

Definition at line 1192 of file launcherview.cpp.

References FALSE, LauncherIconView::hideOrShowItems(), icons, odebug, and oendl.

void LauncherView::hideIcons  ) 
 

Definition at line 778 of file launcherview.cpp.

References icons.

Referenced by LauncherTabWidget::createDocLoadingWidget().

LauncherIconView* LauncherView::iconView  )  [inline]
 

Definition at line 86 of file launcherview.h.

References icons.

Referenced by LauncherTabWidget::launcherMessage().

void LauncherView::itemClicked int  ,
QIconViewItem * 
[protected, slot]
 

Definition at line 1117 of file launcherview.cpp.

References clicked(), FALSE, and icons.

Referenced by LauncherView().

void LauncherView::itemPressed int  ,
QIconViewItem * 
[protected, slot]
 

Definition at line 1130 of file launcherview.cpp.

References FALSE, and rightPressed().

Referenced by LauncherView().

QImage LauncherView::loadBackgroundImage QString fname  )  [private]
 

Definition at line 916 of file launcherview.cpp.

References QString::arg(), FALSE, QString::latin1(), qApp, and TRUE.

Referenced by setBackgroundType().

void LauncherView::paletteChange const QPalette &   )  [protected]
 

Definition at line 1181 of file launcherview.cpp.

References bgType, icons, QString::null, Ruled, setBackgroundType(), LauncherIconView::setPalette(), textCol, and LauncherIconView::unsetPalette().

void LauncherView::relayout void   ) 
 

Definition at line 1198 of file launcherview.cpp.

References FALSE, LauncherIconView::hideOrShowItems(), and icons.

void LauncherView::removeAllItems  ) 
 

Definition at line 1142 of file launcherview.cpp.

References LauncherIconView::clear(), QMap< Key, T >::clear(), icons, odebug, and oendl.

bool LauncherView::removeLink const QString linkfile  ) 
 

Definition at line 1149 of file launcherview.cpp.

References icons, and LauncherIconView::removeLink().

void LauncherView::resizeEvent QResizeEvent *   )  [protected, slot]
 

Definition at line 1089 of file launcherview.cpp.

References sort().

void LauncherView::returnPressed QIconViewItem *  item  )  [protected, slot]
 

Definition at line 1109 of file launcherview.cpp.

References clicked().

Referenced by LauncherView().

void LauncherView::rightPressed AppLnk  )  [signal]
 

Referenced by itemPressed().

void LauncherView::selectionChanged  )  [protected, slot]
 

Definition at line 1098 of file launcherview.cpp.

References clicked(), FALSE, icons, and LauncherIconView::inKeyEvent().

Referenced by LauncherView().

void LauncherView::setBackgroundType BackgroundType  t,
const QString
 

Definition at line 966 of file launcherview.cpp.

References background, bgName, bgType, cleanup_cache, QMap< Key, T >::contains(), QFile::exists(), FALSE, flushBgCache(), i, icons, Image, QMap< Key, T >::insert(), QString::isEmpty(), list, loadBackgroundImage(), name, QString::ref(), Ruled, SolidColor, TRUE, and width.

Referenced by LauncherTabWidget::launcherMessage(), LauncherView(), paletteChange(), and LauncherTabWidget::setTabViewAppearance().

void LauncherView::setBusy bool   ) 
 

Definition at line 766 of file launcherview.cpp.

References icons, and LauncherIconView::setBusy().

Referenced by LauncherTabWidget::setBusy().

void LauncherView::setBusyIndicatorType const QString  ) 
 

Definition at line 771 of file launcherview.cpp.

References BIT_Animated, BIT_Normal, icons, lower(), and LauncherIconView::setBusyIndicatorType().

Referenced by LauncherTabWidget::newView(), and LauncherTabWidget::setBusyIndicatorType().

void LauncherView::setColNumber int   ) 
 

Definition at line 1057 of file launcherview.cpp.

References icons, and LauncherIconView::setColNumber().

Referenced by LauncherTabWidget::setTabViewAppearance().

void LauncherView::setSortEnabled bool   ) 
 

Definition at line 1164 of file launcherview.cpp.

References icons, and sort().

void LauncherView::setTextColor const QColor &   ) 
 

Definition at line 1068 of file launcherview.cpp.

References icons, LauncherIconView::setPalette(), and textCol.

Referenced by LauncherTabWidget::launcherMessage(), and LauncherTabWidget::setTabViewAppearance().

void LauncherView::setToolsEnabled bool   ) 
 

Definition at line 783 of file launcherview.cpp.

References p, tools, typemb, and updateTools().

void LauncherView::setUpdatesEnabled bool   ) 
 

Definition at line 1171 of file launcherview.cpp.

References icons.

void LauncherView::setViewFont const QFont &   ) 
 

Definition at line 1077 of file launcherview.cpp.

References FALSE, LauncherIconView::hideOrShowItems(), and icons.

Referenced by LauncherTabWidget::setTabViewAppearance().

void LauncherView::setViewMode ViewMode  m  ) 
 

Definition at line 892 of file launcherview.cpp.

References FALSE, LauncherIconView::hideOrShowItems(), Icon, icons, List, odebug, oendl, LauncherIconView::setBigIcons(), LauncherIconView::setItemTextPos(), TRUE, and vmode.

Referenced by LauncherView(), LauncherTabWidget::setTabViewAppearance(), and LauncherTabWidget::tabProperties().

void LauncherView::showCategory int   )  [protected, slot]
 

Definition at line 887 of file launcherview.cpp.

References icons, LauncherIconView::setCategoryFilter(), and TRUE.

Referenced by updateTools().

void LauncherView::showType int   )  [protected, slot]
 

Definition at line 875 of file launcherview.cpp.

References QString::contains(), QValueList< T >::count(), icons, LauncherIconView::setTypeFilter(), TRUE, and typelist.

Referenced by updateTools().

void LauncherView::sort  ) 
 

Definition at line 1176 of file launcherview.cpp.

References icons.

Referenced by resizeEvent(), and setSortEnabled().

void LauncherView::sortBy int   )  [protected, slot]
 

Definition at line 870 of file launcherview.cpp.

References icons, and LauncherIconView::setSortMethod().

QColor LauncherView::textColor  )  const [inline]
 

Definition at line 79 of file launcherview.h.

References textCol.

void LauncherView::updateTools  ) 
 

Definition at line 803 of file launcherview.cpp.

References app, MimeType::application(), QValueList< T >::begin(), categoryFileName(), catmb, CategorySelect::currentCategory(), QValueList< T >::end(), i, icons, QString::isNull(), QString::left(), Categories::load(), QString::mid(), LauncherIconView::mimeTypes(), AppLnk::name(), CategorySelect::setAllCategories(), CategorySelect::setCategories(), CategorySelect::setCurrentCategory(), CategorySelect::setRemoveCategoryEdit(), showCategory(), showType(), t, tools, tr, TRUE, typelist, typemb, LauncherIconView::updateCategoriesAndMimeTypes(), and QString::upper().

Referenced by setToolsEnabled().

ViewMode LauncherView::viewMode  )  const [inline]
 

Definition at line 72 of file launcherview.h.

References vmode.

Referenced by LauncherTabWidget::tabProperties().


Member Data Documentation

QString LauncherView::bgName [private]
 

Definition at line 117 of file launcherview.h.

Referenced by setBackgroundType(), and ~LauncherView().

BackgroundType LauncherView::bgType [private]
 

Definition at line 116 of file launcherview.h.

Referenced by backgroundType(), paletteChange(), and setBackgroundType().

bool LauncherView::bsy = FALSE [static, private]
 

Definition at line 764 of file launcherview.cpp.

CategorySelect* LauncherView::catmb [private]
 

Definition at line 114 of file launcherview.h.

Referenced by LauncherView(), and updateTools().

LauncherIconView* LauncherView::icons [private]
 

Definition at line 111 of file launcherview.h.

Referenced by addItem(), changeItem(), clearViewFont(), fontChanged(), hideIcons(), iconView(), itemClicked(), LauncherView(), paletteChange(), relayout(), removeAllItems(), removeLink(), selectionChanged(), setBackgroundType(), setBusy(), setBusyIndicatorType(), setColNumber(), setSortEnabled(), setTextColor(), setUpdatesEnabled(), setViewFont(), setViewMode(), showCategory(), showType(), sort(), sortBy(), and updateTools().

QColor LauncherView::textCol [private]
 

Definition at line 118 of file launcherview.h.

Referenced by paletteChange(), setTextColor(), and textColor().

QWidget* LauncherView::tools [private]
 

Definition at line 110 of file launcherview.h.

Referenced by LauncherView(), setToolsEnabled(), and updateTools().

QStringList LauncherView::typelist [private]
 

Definition at line 113 of file launcherview.h.

Referenced by showType(), and updateTools().

QComboBox* LauncherView::typemb [private]
 

Definition at line 112 of file launcherview.h.

Referenced by setToolsEnabled(), and updateTools().

ViewMode LauncherView::vmode [private]
 

Definition at line 115 of file launcherview.h.

Referenced by LauncherView(), setViewMode(), and viewMode().


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