[mythtv-users] mythgame and browsing long rom lists

m0j0.j0j0 m0j0 at foofus.net
Wed Oct 15 00:21:37 EDT 2003


On Tue, 2003-10-14 at 19:40, James L. Paul wrote:
<snip>
> I browsed the code for displaying those and see it has only moveUp() and
> moveDown() functions for neighbor sibling in the list. I was thinking I
> could add a quick and dirty pageUp() and pageDown() and bind them to the
> PgUp and PgDn keys, but it wasn't obvious to me at first glance.
> 

This is pretty simple using a couple of functions added recently to CVS
libmyth (by Thor, I think). The following should enable the use of them
in MythGame:


Index: mythgame/gametree.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythgame/mythgame/gametree.cpp,v
retrieving revision 1.4
diff -u -r1.4 gametree.cpp
--- mythgame/gametree.cpp       13 Sep 2003 16:19:11 -0000      1.4
+++ mythgame/gametree.cpp       15 Oct 2003 04:12:26 -0000
@@ -49,6 +49,8 @@
         case Key_Down: game_tree_list->moveDown(); break;
         case Key_Left: game_tree_list->popUp(); break;
         case Key_Right: goRight(); break;
+        case Key_PageUp: game_tree_list->pageUp(); break;
+        case Key_PageDown: game_tree_list->pageDown(); break;
  
         default: MythThemedDialog::keyPressEvent(e); break;
     }


> Ideally I'd like to add an "Alpha" option to the display tree options
> along with Genre, Year, etc. I'd also like to add the ability to browse
> the list a page at a time instead of only a line at a time.
> 

This might be handy. Maybe could be borrowed from the "Program
Finder"...

-Joe







More information about the mythtv-users mailing list