Diffstat (limited to 'core/launcher/launcherview.h') (more/less context) (ignore whitespace changes)
-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 | |||
@@ -17,62 +17,64 @@ | |||
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef LAUNCHERVIEW_H | 20 | #ifndef LAUNCHERVIEW_H |
21 | #define LAUNCHERVIEW_H | 21 | #define LAUNCHERVIEW_H |
22 | 22 | ||
23 | #include <qpe/storage.h> | 23 | #include <qtopia/storage.h> |
24 | #include <qtopia/applnk.h> | ||
24 | 25 | ||
25 | #include <qvbox.h> | 26 | #include <qvbox.h> |
26 | 27 | ||
27 | class AppLnk; | ||
28 | class AppLnkSet; | ||
29 | class CategorySelect; | 28 | class CategorySelect; |
30 | class LauncherIconView; | 29 | class LauncherIconView; |
31 | class QIconView; | 30 | class QIconView; |
32 | class QIconViewItem; | 31 | class QIconViewItem; |
32 | class QLabel; | ||
33 | class QWidgetStack; | ||
33 | class MenuButton; | 34 | class MenuButton; |
34 | class QComboBox; | 35 | class QComboBox; |
35 | 36 | ||
36 | class LauncherView : public QVBox | 37 | class LauncherView : public QVBox |
37 | { | 38 | { |
38 | Q_OBJECT | 39 | Q_OBJECT |
39 | 40 | ||
40 | public: | 41 | public: |
41 | LauncherView( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 42 | LauncherView( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
42 | ~LauncherView(); | 43 | ~LauncherView(); |
43 | 44 | ||
45 | void hideIcons(); | ||
46 | |||
44 | bool removeLink(const QString& linkfile); | 47 | bool removeLink(const QString& linkfile); |
45 | void addItem(AppLnk* app, bool resort=TRUE); | 48 | void addItem(AppLnk* app, bool resort=TRUE); |
49 | void removeAllItems(); | ||
50 | void setSortEnabled(bool); | ||
51 | void setUpdatesEnabled(bool); | ||
46 | void sort(); | 52 | void sort(); |
47 | 53 | ||
48 | void setFileSystems(const QList<FileSystem> &); | ||
49 | void setToolsEnabled(bool); | 54 | void setToolsEnabled(bool); |
50 | void updateTools(); | 55 | void updateTools(); |
51 | 56 | ||
52 | void setBusy(bool); | 57 | void setBusy(bool); |
58 | void setBusyIndicatorType( const QString& ); | ||
53 | 59 | ||
54 | QString getAllDocLinkInfo() const; | ||
55 | enum ViewMode { Icon, List }; | 60 | enum ViewMode { Icon, List }; |
56 | void setViewMode( ViewMode m ); | 61 | void setViewMode( ViewMode m ); |
57 | ViewMode viewMode() const { return vmode; } | 62 | ViewMode viewMode() const { return vmode; } |
58 | 63 | ||
59 | enum BackgroundType { Ruled, SolidColor, Image }; | 64 | enum BackgroundType { Ruled, SolidColor, Image }; |
60 | void setBackgroundType( BackgroundType t, const QString & ); | 65 | void setBackgroundType( BackgroundType t, const QString & ); |
61 | BackgroundType backgroundType() const { return bgType; } | 66 | BackgroundType backgroundType() const { return bgType; } |
62 | 67 | ||
63 | void setTextColor( const QColor & ); | 68 | void setTextColor( const QColor & ); |
64 | QColor textColor() const { return textCol; } | 69 | QColor textColor() const { return textCol; } |
65 | 70 | ||
66 | void setViewFont( const QFont & ); | 71 | void setViewFont( const QFont & ); |
67 | void unsetViewFont ( ); | 72 | void clearViewFont(); |
68 | |||
69 | void setBusyIndicatorType ( const QString &type ); | ||
70 | 73 | ||
71 | public slots: | 74 | void relayout(void); |
72 | void populate( AppLnkSet *folder, const QString& categoryfilter ); | ||
73 | 75 | ||
74 | signals: | 76 | signals: |
75 | void clicked( const AppLnk * ); | 77 | void clicked( const AppLnk * ); |
76 | void rightPressed( AppLnk * ); | 78 | void rightPressed( AppLnk * ); |
77 | 79 | ||
78 | protected slots: | 80 | protected slots: |
@@ -81,26 +83,30 @@ protected slots: | |||
81 | void itemClicked( int, QIconViewItem * ); | 83 | void itemClicked( int, QIconViewItem * ); |
82 | void itemPressed( int, QIconViewItem * ); | 84 | void itemPressed( int, QIconViewItem * ); |
83 | void sortBy(int); | 85 | void sortBy(int); |
84 | void showType(int); | 86 | void showType(int); |
85 | void showCategory( int ); | 87 | void showCategory( int ); |
86 | void resizeEvent(QResizeEvent *); | 88 | void resizeEvent(QResizeEvent *); |
89 | void flushBgCache(); | ||
87 | 90 | ||
88 | protected: | 91 | protected: |
89 | void internalPopulate( AppLnkSet *, const QString& categoryfilter ); | ||
90 | void paletteChange( const QPalette & ); | 92 | void paletteChange( const QPalette & ); |
91 | 93 | ||
94 | void fontChanged(const QFont &); | ||
95 | |||
92 | private: | 96 | private: |
93 | static bool bsy; | 97 | static bool bsy; |
94 | QWidget* tools; | 98 | QWidget* tools; |
95 | LauncherIconView* icons; | 99 | LauncherIconView* icons; |
96 | QComboBox *typemb; | 100 | QComboBox *typemb; |
97 | QStringList typelist; | 101 | QStringList typelist; |
98 | CategorySelect *catmb; | 102 | CategorySelect *catmb; |
99 | ViewMode vmode; | 103 | ViewMode vmode; |
100 | BackgroundType bgType; | 104 | BackgroundType bgType; |
101 | QString bgName; | 105 | QString bgName; |
102 | QColor textCol; | 106 | QColor textCol; |
103 | int busyType; | 107 | |
108 | QImage loadBackgroundImage(QString &fname); | ||
109 | int m_busyType; | ||
104 | }; | 110 | }; |
105 | 111 | ||
106 | #endif // LAUNCHERVIEW_H | 112 | #endif // LAUNCHERVIEW_H |