[mythtv-users] mythgame and browsing long rom lists

James L. Paul james at mauibay.net
Tue Oct 14 20:45:23 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



m0j0.j0j0 wrote:
| 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;
|      }
|
Very cool! thanks for the info! I'm glad it's added in CVS, I'll have to
decide whether to switch to CVD or wait for 0.12 then I'll definitely
use those new functions!

|
|>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
|
|
|
|
|
|
|
| ------------------------------------------------------------------------
|
| _______________________________________________
| mythtv-users mailing list
| mythtv-users at mythtv.org
| http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/jN7zT8BYaKRUpkQRApt7AJ9cOl1L0DXHrdZ+7HryWUwR8FaZiQCgm1q6
nvopIK58BadVFqGRRNdHu9U=
=J6N1
-----END PGP SIGNATURE-----



More information about the mythtv-users mailing list