┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinitemcategorizer.cpp
AgeCommit message (Collapse)Author
2007-07-29Use the new KFileItem APIThiago Macieira
svn path=/trunk/KDE/kdebase/apps/; revision=694063
2007-07-24more fixesThomas Zander
svn path=/trunk/KDE/kdebase/apps/; revision=691717
2007-07-23Fix a couple of crashes. First was to avoid problem caused by ↵Robert Knight
KIconLoader::global()->theme() returning 0 (which according to the API, it can do). Second was to fix the 'lastIndex' member of KCategorizedView::Private being out of date when used. According to the comments this member existed as an optimization. However in the only function where it is used, scrollbar updates are also performed. This will be several orders of magnitude more expensive than the 3 constant-time operations on Qt containers (QHash,QList) which the optimization avoided. So I removed the 'lastIndex' member and moved the calculation to where the data is needed. svn path=/trunk/KDE/kdebase/apps/; revision=691574
2007-07-09KUIT adaptionsPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=685763
2007-07-08If no user icon present, show a generic oneRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=685426
2007-07-06Make KListView capable of drawing categories on our own way. This make ↵Rafael Fernández López
things easier when we are trying to customize it. We can also benefit from KStyle if some day it supports category drawing. KListView keyboard navigation. Tricier than I thought. Pending renaming to KCategorizedView. Seems a good name. svn path=/trunk/KDE/kdebase/apps/; revision=684478
2007-06-23Small fixes, but that have an impact of how things are visualized.Rafael Fernández López
* Move "not tagged" elements to the end. We sort the rest (when they have tags), but keep untagged elements (the category) at the end of the view, since the user had "less" interest on them. * Break the law again of "dirs first". If we have on a folder only a tagged file (and is a file) and the rest are folders, that file goes first, since it was tagged. * If we are on the same category, dirs go first. Here we make them citizens of first class. * Commas instead of spaces when building categories for tags, they make it more readable and less error-prone (we can have tags "a", "dog" and "a dog" as tags, right?, so spaces here make the thing a bit hard to distinguish, I have two tags "a", "dog", or the tag "a dog") ;) * Return an empty string when the item is not tagged at the method tagsForIndex. This way we always show untagged items the latest ones very easily (without nasty string checks). We will let the categorizer put a fancy name for them, if the returned string was empty. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=679097
2007-06-22Implement sorting by "tags". Same performance problems occur as when using ↵Peter Penz
sorting by "rating", but we must get a feeling first how we use the Nepomuk API before thinking about caching... svn path=/trunk/KDE/kdebase/apps/; revision=678957
2007-06-22More human category when items haven't been rated yetRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=678853
2007-06-22Allow to sort by rating, which can be quite useful in combination with the ↵Peter Penz
"Show in Groups" feature. Although still slow, it basically works. All the code is based on Rafael Fernández López patch available at http://media.ereslibre.es/2007/06/dolphin-21062007.diff. svn path=/trunk/KDE/kdebase/apps/; revision=678801
2007-06-21Fix memory problem, thanks to Holger Freyther for pointing outRafael Fernández López
CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=678434
2007-06-18Dolphin has to react as Konqueror on KDE3. If we find files containing ↵Rafael Fernández López
symbols, we wait for the first letter to categorize it. "((a.txt" goes on category "A", ")2.txt" goes on category "Others". svn path=/trunk/KDE/kdebase/apps/; revision=677225
2007-06-18Speed improvements in some places. All sortings and categories implemented.Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=677156
2007-06-18Sort by date finished. Add speed improvement when comparing strings. enum ↵Rafael Fernández López
adaptations. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=677083
2007-06-18Fix small problems with enums. Sort by type works like a charm :)Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=677029
2007-06-17internationalization fixes (patch submitted by Andrius Štikonas)Peter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=676768
2007-06-17Ideal behavior when showing hidden files. Hooah !Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=676752
2007-06-17New and powerful KListView. Still pending class renaming. There are two Rafael Fernández López
methods that I need to think about it, and boost. Small issues like reloading all data when sorting role suddenly changes. In general terms it will work nice when you sort by name or size. We have to work further when we sort by other roles. Nice times. svn path=/trunk/KDE/kdebase/apps/; revision=676732
2007-05-09include cleanupDirk Mueller
svn path=/trunk/KDE/kdebase/apps/; revision=663054
2007-05-06coding style cleanup: fix wrong indenting of members in constructorPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=661819
2007-04-10Added Rafael López's item categorizer into Dolphin (it's currently ↵Peter Penz
deactivated in dolphiniconsview.cpp until it's in shape for the public). svn path=/trunk/KDE/kdebase/apps/; revision=652156