Commit Graph

5 Commits

Author SHA1 Message Date
John Scipione
b8bcb08800 Tracker: Fix integer overflow
CID1108329
2014-07-18 17:58:12 -04:00
John Scipione
d8d0539a08 Tracker: style fixes to VirtualDirectoryManager 2014-06-20 21:30:05 -04:00
Ingo Weinhold
040a81419d Add node_ref::operator <
Moved from VirtualDirectoryManager. Defining the operator static doesn't
work with gcc 4 and it's useful to have globally available anyway.
2013-08-06 00:40:29 +02:00
Ingo Weinhold
8a2643daee libtracker: VirtualDirectoryManager::_RemoveDirectory(): typo
Should have caused infinite recursion when the directory still had
children.
2013-08-06 00:37:33 +02:00
Ingo Weinhold
1c29b26e7c Add virtual directory feature to Tracker
Similar to stored queries, files of the virtual directory type behave
like directories -- i.e. they open in a list-mode Tracker window and
show up as an item with submenu in navigation menus. The file itself is
a plain text file in driver settings format. It can have an arbitrary
number of "directory" entries, which specify the paths of (actual)
directories for which the virtual directory provides a merged view. The
view will not show duplicate entries. For non-directory entries the
first one encountered (according to the order the directory paths are
specified in the file) will be shown. A subdirectory entry will again
behave like a virtual directory.

The support in Tracker isn't perfect yet. I'm afraid major refactoring
would be necessary to get it there.

The virtual directory file type uses a differently colored version of
the folder icon. Alternatives welcome.
2013-06-29 14:58:51 +02:00