summaryrefslogtreecommitdiff
path: root/core/launcher/launcherview.h
Side-by-side diff
Diffstat (limited to 'core/launcher/launcherview.h') (more/less context) (show 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
@@ -17,62 +17,64 @@
** not clear to you.
**
**********************************************************************/
#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
{
Q_OBJECT
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; }
enum BackgroundType { Ruled, SolidColor, Image };
void setBackgroundType( BackgroundType t, const QString & );
BackgroundType backgroundType() const { return bgType; }
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 * );
protected slots:
@@ -81,26 +83,30 @@ protected slots:
void itemClicked( int, QIconViewItem * );
void itemPressed( int, QIconViewItem * );
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;
QComboBox *typemb;
QStringList typelist;
CategorySelect *catmb;
ViewMode vmode;
BackgroundType bgType;
QString bgName;
QColor textCol;
- int busyType;
+
+ QImage loadBackgroundImage(QString &fname);
+ int m_busyType;
};
#endif // LAUNCHERVIEW_H