-rw-r--r-- | core/launcher/launcherview.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/launcher/launcherview.h b/core/launcher/launcherview.h index 6d94539..05073ab 100644 --- a/core/launcher/launcherview.h +++ b/core/launcher/launcherview.h | |||
@@ -47,24 +47,26 @@ enum BusyIndicatorType { | |||
47 | class LauncherView : public QVBox | 47 | class LauncherView : public QVBox |
48 | { | 48 | { |
49 | Q_OBJECT | 49 | Q_OBJECT |
50 | 50 | ||
51 | public: | 51 | public: |
52 | LauncherView( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 52 | LauncherView( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
53 | ~LauncherView(); | 53 | ~LauncherView(); |
54 | 54 | ||
55 | void hideIcons(); | 55 | void hideIcons(); |
56 | 56 | ||
57 | bool removeLink(const QString& linkfile); | 57 | bool removeLink(const QString& linkfile); |
58 | void addItem(AppLnk* app, bool resort=TRUE); | 58 | void addItem(AppLnk* app, bool resort=TRUE); |
59 | void changeItem(const AppLnk&old,AppLnk*nlink); | ||
60 | |||
59 | void removeAllItems(); | 61 | void removeAllItems(); |
60 | void setSortEnabled(bool); | 62 | void setSortEnabled(bool); |
61 | void setUpdatesEnabled(bool); | 63 | void setUpdatesEnabled(bool); |
62 | void sort(); | 64 | void sort(); |
63 | 65 | ||
64 | void setToolsEnabled(bool); | 66 | void setToolsEnabled(bool); |
65 | void updateTools(); | 67 | void updateTools(); |
66 | 68 | ||
67 | void setBusy(bool); | 69 | void setBusy(bool); |
68 | void setBusyIndicatorType( const QString& ); | 70 | void setBusyIndicatorType( const QString& ); |
69 | 71 | ||
70 | enum ViewMode { Icon, List }; | 72 | enum ViewMode { Icon, List }; |
@@ -167,25 +169,26 @@ public: | |||
167 | void setBigIcons( bool bi ); | 169 | void setBigIcons( bool bi ); |
168 | void updateCategoriesAndMimeTypes(); | 170 | void updateCategoriesAndMimeTypes(); |
169 | void setBusyIndicatorType ( BusyIndicatorType t ); | 171 | void setBusyIndicatorType ( BusyIndicatorType t ); |
170 | void doAutoScroll() | 172 | void doAutoScroll() |
171 | { | 173 | { |
172 | // We don't want rubberbanding (yet) | 174 | // We don't want rubberbanding (yet) |
173 | } | 175 | } |
174 | 176 | ||
175 | void setBusy(bool on); | 177 | void setBusy(bool on); |
176 | bool inKeyEvent() const { return ike; } | 178 | bool inKeyEvent() const { return ike; } |
177 | 179 | ||
178 | void addItem(AppLnk* app, bool resort=TRUE); | 180 | void addItem(AppLnk* app, bool resort=TRUE); |
179 | bool removeLink(const QString& linkfile); | 181 | bool removeLink(const QString& linkfile,bool removeCache = true); |
182 | void changeItem(const AppLnk&old,AppLnk*nlink); | ||
180 | 183 | ||
181 | QStringList mimeTypes() const; | 184 | QStringList mimeTypes() const; |
182 | QStringList categories() const; | 185 | QStringList categories() const; |
183 | void clear(); | 186 | void clear(); |
184 | void addCatsAndMimes(AppLnk* app); | 187 | void addCatsAndMimes(AppLnk* app); |
185 | 188 | ||
186 | void setBackgroundOrigin( QWidget::BackgroundOrigin ) {} | 189 | void setBackgroundOrigin( QWidget::BackgroundOrigin ) {} |
187 | 190 | ||
188 | void setBackgroundPixmap( const QPixmap &pm ) { | 191 | void setBackgroundPixmap( const QPixmap &pm ) { |
189 | bgPixmap = pm; | 192 | bgPixmap = pm; |
190 | } | 193 | } |
191 | 194 | ||
@@ -197,24 +200,26 @@ public: | |||
197 | void setItemTextPos( ItemTextPos pos ); | 200 | void setItemTextPos( ItemTextPos pos ); |
198 | void hideOrShowItems(bool resort); | 201 | void hideOrShowItems(bool resort); |
199 | 202 | ||
200 | void setTypeFilter(const QString& typefilter, bool resort); | 203 | void setTypeFilter(const QString& typefilter, bool resort); |
201 | void setCategoryFilter( int catfilter, bool resort ); | 204 | void setCategoryFilter( int catfilter, bool resort ); |
202 | 205 | ||
203 | enum SortMethod { Name, Date, Type }; | 206 | enum SortMethod { Name, Date, Type }; |
204 | 207 | ||
205 | void setSortMethod( SortMethod m ); | 208 | void setSortMethod( SortMethod m ); |
206 | int compare(const AppLnk* a, const AppLnk* b); | 209 | int compare(const AppLnk* a, const AppLnk* b); |
207 | void requestEyePix(const LauncherItem*which); | 210 | void requestEyePix(const LauncherItem*which); |
208 | 211 | ||
212 | static QMap<QString,QPixmap>* sm_EyeCache; | ||
213 | |||
209 | protected: | 214 | protected: |
210 | virtual void timerEvent( QTimerEvent *te ); | 215 | virtual void timerEvent( QTimerEvent *te ); |
211 | void styleChange( QStyle &old ); | 216 | void styleChange( QStyle &old ); |
212 | void calculateGrid( ItemTextPos pos ); | 217 | void calculateGrid( ItemTextPos pos ); |
213 | void focusInEvent( QFocusEvent * ) {} | 218 | void focusInEvent( QFocusEvent * ) {} |
214 | void focusOutEvent( QFocusEvent * ) {} | 219 | void focusOutEvent( QFocusEvent * ) {} |
215 | LauncherItem*findDocItem(const QString&); | 220 | LauncherItem*findDocItem(const QString&); |
216 | void addCheckItem(AppLnk* app); | 221 | void addCheckItem(AppLnk* app); |
217 | void checkCallback(); | 222 | void checkCallback(); |
218 | virtual void keyPressEvent(QKeyEvent* e); | 223 | virtual void keyPressEvent(QKeyEvent* e); |
219 | 224 | ||
220 | protected slots: | 225 | protected slots: |