-rw-r--r-- | core/launcher/launcherview.h | 30 |
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 @@ -20,16 +20,17 @@ #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; @@ -41,17 +42,21 @@ 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; } @@ -64,12 +69,9 @@ public: 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 * ); @@ -84,11 +86,13 @@ protected slots: 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; @@ -100,7 +104,9 @@ private: BackgroundType bgType; QString bgName; QColor textCol; - int busyType; + + QImage loadBackgroundImage(QString &fname); + int m_busyType; }; #endif // LAUNCHERVIEW_H |