author | alwin <alwin> | 2004-11-08 02:27:03 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-11-08 02:27:03 (UTC) |
commit | 18875a0d90d0425c066e6fa2cda81a6140fe8606 (patch) (unidiff) | |
tree | 778844c7dd2acb9f387a3228b3d3bd9df647c1a7 /core/launcher/launcherview.h | |
parent | 9218d2bf841e1f999475c86ba602dc1cd7e338f6 (diff) | |
download | opie-18875a0d90d0425c066e6fa2cda81a6140fe8606.zip opie-18875a0d90d0425c066e6fa2cda81a6140fe8606.tar.gz opie-18875a0d90d0425c066e6fa2cda81a6140fe8606.tar.bz2 |
first try getting small imagethumbs in document-tab.
-rw-r--r-- | core/launcher/launcherview.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/core/launcher/launcherview.h b/core/launcher/launcherview.h index e40a006..a9ff9eb 100644 --- a/core/launcher/launcherview.h +++ b/core/launcher/launcherview.h | |||
@@ -29,2 +29,3 @@ class CategorySelect; | |||
29 | class LauncherIconView; | 29 | class LauncherIconView; |
30 | class LauncherItem; | ||
30 | class QIconView; | 31 | class QIconView; |
@@ -118,2 +119,37 @@ private: | |||
118 | 119 | ||
120 | /* taken from opie-eye */ | ||
121 | |||
122 | struct PixmapInfo { | ||
123 | PixmapInfo() : width( -1 ), height( -1 ) {} | ||
124 | bool operator==( const PixmapInfo& r ) { | ||
125 | if ( width != r.width ) return false; | ||
126 | if ( height != r.height ) return false; | ||
127 | if ( file != r.file ) return false; | ||
128 | return true; | ||
129 | } | ||
130 | int width, height; | ||
131 | QString file; | ||
132 | QPixmap pixmap; | ||
133 | }; | ||
134 | |||
135 | class LauncherThumbReceiver:public QObject | ||
136 | { | ||
137 | Q_OBJECT | ||
138 | typedef QValueList<PixmapInfo> PixmapInfos; | ||
139 | public: | ||
140 | LauncherThumbReceiver(LauncherItem*parent); | ||
141 | ~LauncherThumbReceiver(); | ||
142 | void requestThumb(const QString&file,int width,int height); | ||
143 | |||
144 | public slots: | ||
145 | void recieve( const QCString&, const QByteArray& ); | ||
146 | protected slots: | ||
147 | virtual void sendRequest(); | ||
148 | protected: | ||
149 | LauncherItem*m_parent; | ||
150 | QString m_reqFile; | ||
151 | PixmapInfo rItem; | ||
152 | bool m_waiting:1; | ||
153 | }; | ||
154 | |||
119 | #endif // LAUNCHERVIEW_H | 155 | #endif // LAUNCHERVIEW_H |