summaryrefslogtreecommitdiff
path: root/core/launcher/launcherview.h
Side-by-side diff
Diffstat (limited to 'core/launcher/launcherview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcherview.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/core/launcher/launcherview.h b/core/launcher/launcherview.h
index 82a319b..7863d6a 100644
--- a/core/launcher/launcherview.h
+++ b/core/launcher/launcherview.h
@@ -19,18 +19,19 @@
**********************************************************************/
#ifndef LAUNCHERVIEW_H
#define LAUNCHERVIEW_H
-#include <qpe/storage.h>
+#include <qtopia/storage.h>
+#include <qtopia/applnk.h>
#include <qvbox.h>
-class AppLnk;
-class AppLnkSet;
class CategorySelect;
class LauncherIconView;
class QIconView;
class QIconViewItem;
+class QLabel;
+class QWidgetStack;
class MenuButton;
class QComboBox;
class LauncherView : public QVBox
@@ -40,19 +41,23 @@ class LauncherView : public QVBox
public:
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 removeAllItems();
+ void setSortEnabled(bool);
+ void setUpdatesEnabled(bool);
void sort();
- void setFileSystems(const QList<FileSystem> &);
void setToolsEnabled(bool);
void updateTools();
void setBusy(bool);
+ void setBusyIndicatorType( const QString& );
- QString getAllDocLinkInfo() const;
enum ViewMode { Icon, List };
void setViewMode( ViewMode m );
ViewMode viewMode() const { return vmode; }
@@ -63,14 +68,11 @@ public:
void setTextColor( const QColor & );
QColor textColor() const { return textCol; }
void setViewFont( const QFont & );
- void unsetViewFont ( );
-
- void setBusyIndicatorType ( const QString &type );
+ void clearViewFont();
-public slots:
- void populate( AppLnkSet *folder, const QString& categoryfilter );
+ void relayout(void);
signals:
void clicked( const AppLnk * );
void rightPressed( AppLnk * );
@@ -83,13 +85,15 @@ protected slots:
void sortBy(int);
void showType(int);
void showCategory( int );
void resizeEvent(QResizeEvent *);
+ void flushBgCache();
protected:
- void internalPopulate( AppLnkSet *, const QString& categoryfilter );
void paletteChange( const QPalette & );
+ void fontChanged(const QFont &);
+
private:
static bool bsy;
QWidget* tools;
LauncherIconView* icons;
@@ -99,8 +103,10 @@ private:
ViewMode vmode;
BackgroundType bgType;
QString bgName;
QColor textCol;
- int busyType;
+
+ QImage loadBackgroundImage(QString &fname);
+ int m_busyType;
};
#endif // LAUNCHERVIEW_H