Ben Ford wrote: > Dirk Meyer wrote: > >>Maybe we still need something like a main menu for additional plugins >>like weather, rss reader and shutdown. >> >> > hmm, I hadn't thought about shutdown. It's unique (AFAIK) in that it > doesn't have any submenu. That wouldn't fit on a tab at all. Perhaps a > 'System' tab?
Maybe. This reminds me: I'm not sure I like the tabbed interface. But other may (at least you do). So you should add it in a way that it can be disabled. >>>Maybe instead it should be a list of tuples: [ (name, stack), (name, >>>stack), (name, stack) ] If the first entry name == "Main Menu", then it >>>would be rendered in Freevo classic mode using only the first stack and >>>if not tabs would be created. >>> >>> > > What did you think about this idea? You don't need it. The main menu is only a list of plugins. So the plugins already have the name. Sure, internaly you can do it this way. And you may need to add a flag to the MainMenuPlugin class to set if the plugin defines something for a tab (default) or for not (shutdown, weather, etc...) > We'd probably need 3 areas. One would be a "notebook" area, which > would contain a "tab-bar" and an active "page". Why not only one tab_area? >>>I'll also need to figure out how to add horizontal scrolling. >>> >>> >>That will be tricky. Maybe don't do it. I mean, add 'TV', Video', >>'Audio', 'Images', 'Games' and 'Misc' and add all other stuff into >>misc. >> >> > > Well, that's dependant on us knowing what plugins might be installed. > What if somebody installs a "Web Browser" plugin? Shouldn't that get > it's own tab? Maybe, let's more it on option for the plugin itself. > Would it really be that difficult? Wouldn't we just define horizontal > scrolling for the tab-bar area? No, it fact, there isn't even vertical scrolling. If you look at the code, the scrolling is done only in the display code in listing area. The area knows how much items fit on the screen and it knows the position of the current selected. So I guess you can do similar things. Dischi -- Education is what you get from reading the small print; experience is what you get from not reading it.
pgpGXQw7YFg3a.pgp
Description: PGP signature