author | zecke <zecke> | 2003-08-28 14:37:27 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-28 14:37:27 (UTC) |
commit | 245dcac2f79d7409f80da37f9c6c47fff70dc949 (patch) (unidiff) | |
tree | aa5401e3cea0453da32f6062dba6ac454a3457ae /core/launcher/launcherview.h | |
parent | f837944e9a404c46efc00e4d5851ea13dbb88ef2 (diff) | |
download | opie-245dcac2f79d7409f80da37f9c6c47fff70dc949.zip opie-245dcac2f79d7409f80da37f9c6c47fff70dc949.tar.gz opie-245dcac2f79d7409f80da37f9c6c47fff70dc949.tar.bz2 |
-Make it compile
-apply Opie patches
-prepare BusyIndicator changes
-add QCOP method for showing the desktop and going to the next tab
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 | |||
@@ -20,16 +20,17 @@ | |||
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 | ||
@@ -41,17 +42,21 @@ 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; } |
@@ -64,12 +69,9 @@ public: | |||
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 * ); |
@@ -84,11 +86,13 @@ protected slots: | |||
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; |
@@ -100,7 +104,9 @@ private: | |||
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 |