Commit graph

15 commits

Author SHA1 Message Date
Rafael Fernández López
126c14b3ba Small fixes, but that have an impact of how things are visualized.
* 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: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=679097
2007-06-23 00:43:20 +00:00
Peter Penz
743590a944 Implement sorting by "tags". Same performance problems occur as when using 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-22 16:42:34 +00:00
Rafael Fernández López
3b0b987093 More human category when items haven't been rated yet
svn path=/trunk/KDE/kdebase/apps/; revision=678853
2007-06-22 12:16:44 +00:00
Peter Penz
4062c4cf2d Allow to sort by rating, which can be quite useful in combination with the "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-22 10:18:46 +00:00
Rafael Fernández López
48ff18ebba Fix memory problem, thanks to Holger Freyther for pointing out
CCMAIL: zecke@selfish.org
CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=678434
2007-06-21 11:44:00 +00:00
Rafael Fernández López
61583adb41 Dolphin has to react as Konqueror on KDE3. If we find files containing 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-18 17:58:25 +00:00
Rafael Fernández López
54f6ab585b Speed improvements in some places. All sortings and categories implemented.
svn path=/trunk/KDE/kdebase/apps/; revision=677156
2007-06-18 14:58:30 +00:00
Rafael Fernández López
41a8be4de4 Sort by date finished. Add speed improvement when comparing strings. enum adaptations.
CCMAIL: faure@kde.org

svn path=/trunk/KDE/kdebase/apps/; revision=677083
2007-06-18 12:36:54 +00:00
Rafael Fernández López
20aedc5329 Fix small problems with enums. Sort by type works like a charm :)
svn path=/trunk/KDE/kdebase/apps/; revision=677029
2007-06-18 10:33:28 +00:00
Peter Penz
df8f2e3646 internationalization fixes (patch submitted by Andrius Štikonas)
svn path=/trunk/KDE/kdebase/apps/; revision=676768
2007-06-17 16:56:37 +00:00
Rafael Fernández López
1d75a1c74a Ideal behavior when showing hidden files. Hooah !
svn path=/trunk/KDE/kdebase/apps/; revision=676752
2007-06-17 16:25:44 +00:00
Rafael Fernández López
11f0a8c503 New and powerful KListView. Still pending class renaming. There are two
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-06-17 15:32:31 +00:00
Dirk Mueller
a333c0d744 include cleanup
svn path=/trunk/KDE/kdebase/apps/; revision=663054
2007-05-09 22:23:52 +00:00
Peter Penz
cdcb4b0166 coding style cleanup: fix wrong indenting of members in constructor
svn path=/trunk/KDE/kdebase/apps/; revision=661819
2007-05-06 17:41:49 +00:00
Peter Penz
5b5a7b8da8 Added Rafael López's item categorizer into Dolphin (it's currently deactivated in dolphiniconsview.cpp until it's in shape for the public).
svn path=/trunk/KDE/kdebase/apps/; revision=652156
2007-04-10 08:46:21 +00:00