┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/iconmanager.h
AgeCommit message (Collapse)Author
2008-09-21renamed IconManager to KFilePreviewGeneratorPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=863324
2008-08-05Now the IconManager does not depend anymore from Dolphin classes. If at ↵Peter Penz
least a second application requests having this functionality, it could be moved to kdelibs (for sure an API review is necessary, d-pointer, improved documentation etc.). Maybe the FolderView Plasmoid wants this? CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=842776
2008-06-29The check whether there is a cut-selection when receiving a preview consumes ↵Peter Penz
12 % (!) of the runtime in addToPreviewQueue(). The check is now done only once before starting the preview generation and when the clipboard data has been changed. svn path=/trunk/KDE/kdebase/apps/; revision=826126
2008-06-29Move the block for resizing the preview, applying an item effect + border to ↵Peter Penz
the slot where the preview has been received. This reduces the blocking of the GUI for the following usecase: - folder with 1000 items - ~30 items are visible Old approach: - Show the 30 items as soon as possible. - Receive preview and add it to the queue. This is done asynchronously 970 times (no UI blocking). - Iterate through 970 items, resize, apply item effect + border and apply the preview to the model (-> blocking of UI thread for more than 3 seconds). New approach: - Show the 30 items as soon as possible. - Receive preview, resize it, apply item effect + border and add it to the queue. This is done asynchronously 970 times (no UI blocking). - Iterate through 970 items and apply the preview to the model (-> UI thread is blocked only very short). svn path=/trunk/KDE/kdebase/apps/; revision=826109
2008-06-27Avoid blocking of the GUI when creating previews for invisible items. The ↵Peter Penz
blocking part is a relayout, that has been done each time a group of previews have been received. Now only for the visible items a relayout is done as soon as possible, for the previews of invisible items this is postponed until all previews have been generated. svn path=/trunk/KDE/kdebase/apps/; revision=825304
2008-06-11SVN_SILENT: comment++Peter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=819683
2008-06-11Simplify code:Peter Penz
* Use KFileItems for all lists instead a mixture of KFileItemList and QList<KUrl>. * Use a common helper method for generatePreviews() and resumePreviews() to order the visible items at the beginning of the list. svn path=/trunk/KDE/kdebase/apps/; revision=819681
2008-06-11Improve the performance of the code part which checks which items are ↵Peter Penz
visible. Although the code is less readable now, it requires only 0,5 seconds for 2500 items instead of 2 seconds. svn path=/trunk/KDE/kdebase/apps/; revision=819663
2008-06-10only resolve the MIME-types asynchronously, if no preview is generatedPeter Penz
CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=819162
2008-06-10SVN_SILENT: documentation fixesPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=819108
2008-06-01Improve the performance when creating previews for thousands of items by the ↵Peter Penz
following strategy: - The previews for currently visible items are created before the previews for invisible items. - If the user changes the visible area by using the scrollbars, all pending previews get paused. As soon as the user stays on the same position for a short delay, the previews are resumed. Also in this case the previews for the visible items are generated first. svn path=/trunk/KDE/kdebase/apps/; revision=815480
2008-05-06prevent a possible crash if an item is deleted during previews are generatedPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=804457
2008-03-23minor code simplificationPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=789193
2008-03-23Performance boost for previews that are already available in the cache: ↵Peter Penz
apply the previews in larger blocks instead of applying them immediately after getting the signal 'gotPreview' from the PreviewJob. Now the previews in Konqueror and Dolphin are as fast as in the good old KDE 3 days :-) svn path=/trunk/KDE/kdebase/apps/; revision=789009
2008-03-13Remove the semitransparent effect for hidden items in the IconManager, it ↵Peter Penz
just takes too much time at this part of the code. David Faure suggested some alternative ideas, I hope I can try them before KDE 4.1. Currently it is more important to keep the performance high. BUG: 158807 svn path=/trunk/KDE/kdebase/apps/; revision=785369
2008-03-06prevent flickering when zooming in or zooming outPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=782795
2008-03-05provide an unintrusive frame for previews of imagesPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=782785
2008-01-26* increase the performance of item previews: each item view provides an icon ↵Peter Penz
size hint -> the preview and item effects are only applied to the current size, not to the maximum of 128 x 128 pixels * make the icons of hidden files semitransparent like in KDE3 svn path=/trunk/KDE/kdebase/apps/; revision=766659
2008-01-13Improve the feeled preview performance by assuring that the preview is ↵Peter Penz
generated first for the visible items. svn path=/trunk/KDE/kdebase/apps/; revision=760897
2008-01-11Up to now DolphinView and ColumnWidget contained a lot of code duplication ↵Peter Penz
regarding generating previews and the dimming of cut items. This has been refactored by introducing an IconManager which takes care itself about generating a preview and dimming cut items. This also allows improving the speed of previews in (near) future (at the moment showing previews from the cache is a lot slower than in KDE 3...). svn path=/trunk/KDE/kdebase/apps/; revision=759864