https://bugs.gpodder.org/show_bug.cgi?id=60



--- Comment #38 from Thomas Perl <[email protected]> 2009-08-31 13:48:27 BST ---
It would be good of you would start implementing this not earlier than one week
from now, as I'm currently carrying out some refactoring that would probably
interfere with your changes, requiring more work than necessary.

That said, the refactoring now makes it easier as we now have proper list
models for both episodes and podcasts:

http://repo.or.cz/w/gpodder.git?a=blob;f=src/gpodder/gtkui/model.py

You could probably re-use this model. I'm planning on writing a filter on top
of these models, so that filtering for things like "episode is new" or "episode
is downloaded" is possible automatically, and you will only have to get the
model, provide it with all episodes and then set the filter accordingly. Then
you would only have to write code for getting all PodcastEpisode objects
(probably by iterating through the list of PodcastChannel objects), feeding it
to the model, generating the UI with a TreeView and setting the model as model
for the treeview. After that, some UI elements that will modify the filter
should make it possible to add the desired "unwatched stuff" functionality.

And when we have filters implemented, a per-channel filter in the main window
should also be trivial to add (I'm thinking of radio buttons in the "View"
menu, like "Show all episodes", "Show downloaded episodes" and maybe a checkbox
"Hide deleted episodes").

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to