summaryrefslogtreecommitdiff
path: root/core/launcher/launcherview.h
authoralwin <alwin>2004-11-08 15:22:07 (UTC)
committer alwin <alwin>2004-11-08 15:22:07 (UTC)
commitcce0a7a0d315993645870e88591b4afd647480a7 (patch) (unidiff)
treebeb8886020fe12a0f77bbb22bf0da76d4a73a3d5 /core/launcher/launcherview.h
parent40bbaace5492ce6420a2d4a353b24df64c142287 (diff)
downloadopie-cce0a7a0d315993645870e88591b4afd647480a7.zip
opie-cce0a7a0d315993645870e88591b4afd647480a7.tar.gz
opie-cce0a7a0d315993645870e88591b4afd647480a7.tar.bz2
image preview for documenttab again, I think, for first shot it is
working fine now.
Diffstat (limited to 'core/launcher/launcherview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcherview.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/launcher/launcherview.h b/core/launcher/launcherview.h
index 3cca7f7..0be9a1f 100644
--- a/core/launcher/launcherview.h
+++ b/core/launcher/launcherview.h
@@ -137,25 +137,25 @@ class LauncherThumbReceiver:public QObject
137 typedef QValueList<PixmapInfo> PixmapInfos; 137 typedef QValueList<PixmapInfo> PixmapInfos;
138public: 138public:
139 LauncherThumbReceiver(); 139 LauncherThumbReceiver();
140 ~LauncherThumbReceiver(); 140 ~LauncherThumbReceiver();
141 void requestThumb(const QString&file,int width,int height); 141 void requestThumb(const QString&file,int width,int height);
142 142
143public slots: 143public slots:
144 void recieve( const QCString&, const QByteArray& ); 144 void recieve( const QCString&, const QByteArray& );
145protected slots: 145protected slots:
146 virtual void sendRequest(); 146 virtual void sendRequest();
147 147
148signals: 148signals:
149 void sig_Thumbnail(const QPixmap&,const QString&); 149 void sig_Thumbnail(const QPixmap&,const QString&,int);
150 150
151protected: 151protected:
152 PixmapInfos m_inThumbNail; 152 PixmapInfos m_inThumbNail;
153}; 153};
154 154
155class LauncherIconView : public QIconView { 155class LauncherIconView : public QIconView {
156 Q_OBJECT 156 Q_OBJECT
157public: 157public:
158 LauncherIconView( QWidget* parent, const char* name=0 ); 158 LauncherIconView( QWidget* parent, const char* name=0 );
159 ~LauncherIconView(); 159 ~LauncherIconView();
160 QIconViewItem* busyItem() const; 160 QIconViewItem* busyItem() const;
161 161
@@ -207,37 +207,38 @@ public:
207 207
208 void drawBackground( QPainter *p, const QRect &r ); 208 void drawBackground( QPainter *p, const QRect &r );
209 void setItemTextPos( ItemTextPos pos ); 209 void setItemTextPos( ItemTextPos pos );
210 void hideOrShowItems(bool resort); 210 void hideOrShowItems(bool resort);
211 211
212 void setTypeFilter(const QString& typefilter, bool resort); 212 void setTypeFilter(const QString& typefilter, bool resort);
213 void setCategoryFilter( int catfilter, bool resort ); 213 void setCategoryFilter( int catfilter, bool resort );
214 214
215 enum SortMethod { Name, Date, Type }; 215 enum SortMethod { Name, Date, Type };
216 216
217 void setSortMethod( SortMethod m ); 217 void setSortMethod( SortMethod m );
218 int compare(const AppLnk* a, const AppLnk* b); 218 int compare(const AppLnk* a, const AppLnk* b);
219 void requestEyePix(const LauncherItem*which);
219 220
220protected: 221protected:
221 void timerEvent( QTimerEvent *te ); 222 void timerEvent( QTimerEvent *te );
222 void styleChange( QStyle &old ); 223 void styleChange( QStyle &old );
223 void calculateGrid( ItemTextPos pos ); 224 void calculateGrid( ItemTextPos pos );
224 void focusInEvent( QFocusEvent * ) {} 225 void focusInEvent( QFocusEvent * ) {}
225 void focusOutEvent( QFocusEvent * ) {} 226 void focusOutEvent( QFocusEvent * ) {}
226 LauncherItem*findDocItem(const QString&); 227 LauncherItem*findDocItem(const QString&);
227 void addCheckItem(AppLnk* app); 228 void addCheckItem(AppLnk* app);
228 void checkCallback(); 229 void checkCallback();
229 230
230protected slots: 231protected slots:
231 void setEyePixmap(const QPixmap&,const QString&); 232 void setEyePixmap(const QPixmap&,const QString&,int width);
232 233
233private: 234private:
234 QList<AppLnk> hidden; 235 QList<AppLnk> hidden;
235 QDict<void> mimes; 236 QDict<void> mimes;
236 QDict<void> cats; 237 QDict<void> cats;
237 SortMethod sortmeth; 238 SortMethod sortmeth;
238 QRegExp tf; 239 QRegExp tf;
239 int cf; 240 int cf;
240 LauncherItem* bsy; 241 LauncherItem* bsy;
241 int busyTimer; 242 int busyTimer;
242 bool ike; 243 bool ike;
243 bool bigIcns; 244 bool bigIcns;