NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 67 68 69 70 71 … 93 Next »
settings plugin/class

 
  • 0 Vote(s) - 0 Average
settings plugin/class
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#21
2005-03-06, 05:27 AM
I was planning on looking at jasonf widgets stuff. I really just wanted three classes for sub to add to the library.

One is a singleton that plugins can regsiter too. Just holds handles to the different plugins, to alert them and get their settings handler.

The second is an interface that the plugins can derive from has a few methods getName, getGroupName (revens first screen), gethandler and settingsupdated.

The 3rd is the interface for the handler. It will draw the settings page and handle the items.

I want to expand my basic settings app to be able to update anything in the gbpvr.xml by default showing

checkboxes, choiceboxes by using the default handler which reads the xml file.

Can you think of any other widget that might be useful?
I need to look at the library.

jorm
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#22
2005-03-06, 05:46 AM
useful widgets
- checkbox
- radio button
- file browser (like mce does)
- folder browser
- side to side buttons (like gbpvr does with the "Recording Quality" (ie low,medium,high, custom1, custom2).
- textbox
- onscreen keyboard (we can use the code i wrote for the onscreen keyboard, will probably have to be adapted, but its really skinnable.
- numeric updown control (cant remember what vs calls this exactly, hopefully you know what i mean).


those are all i can think of.
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#23
2005-03-06, 12:57 PM
I wonder if jasonf's widget library has
- file browser (like mce does)
- folder browser

[Image: smile.gif]


Is your onscreen keyboard part of the widget library as well?
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#24
2005-03-06, 01:02 PM
[b Wrote:Quote[/b] ]Is your onscreen keyboard part of the widget library as well?
nah its not, but the source code is availalbe if anyone wants it, just ask. has to be tweaked thou, there are a few bugs, i just never got around to resolving them (eg only letters can be typed in via a normal keyboard).

[b Wrote:Quote[/b] ]I wonder if jasonf's widget library has
- file browser (like mce does)
- folder browser
doubt it, but these would be nice. the ultimate goal is to configure gbpvr once from the config, and then after every upgrade or new plugin you download (from the autoupdate plugin) you can configure it from within gbpvr itself, all via a remote.
jasonf
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2004
#25
2005-03-06, 03:02 PM
[b Wrote:Quote[/b] ]I wonder if jasonf's widget library has
- file browser (like mce does)
- folder browser
There's no filesystem browsers in the current version of the library. I was working to get the current version into some sort of release state before I was going to create more widget controls.

As I see it, a file/folder browser would probably be based on several different base widget controls, to offer different views. For instance, a list view, an icon view, and a tree view might be useful.

There is already a List control, but it might need to be modified in order to offer icons in the list. There is not presently any control that would be the equivilent of an Icon view, so that would have to be created first, and then a filesystem version can extend from it. And, there's no TreeView control.

That's not to say that something couldn't be whipped up quickly by just using the current List control, and then modify that new control over time to add the additional views.

[b Wrote:Quote[/b] ]useful widgets
- checkbox
- radio button
- file browser (like mce does)
- folder browser
- side to side buttons (like gbpvr does with the "Recording Quality" (ie low,medium,high, custom1, custom2).
- textbox
- onscreen keyboard (we can use the code i wrote for the onscreen keyboard, will probably have to be adapted, but its really skinnable.
- numeric updown control (cant remember what vs calls this exactly, hopefully you know what i mean).

From this list, I currently have a checkbox and a scrolling textbox (horizontal and vertical). But, that textbox was intended for displaying text moreso than receiving text input from the user (that was to come later).
JasonF
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#26
2005-03-07, 01:44 PM
jasonf, sounds good. I will watch for its release.

Reven, can you send me the onscreen keyboard code so I can add it.

> does the dll you created do the drawing? or does it hand off > the drawing for each plugin to that plugin?
By default if the user returns null in the getSettingsHandler call the settings plugin will do the drawing but if they specify their own class then it will instead.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#27
2005-10-05, 05:25 AM
what ever happened to this? jorm you ever get anywhere. i had an idea that would probably work for us to get this to work, i was reading over at http://www.thecodeproject.com and came across an article on how to do plugins via an interface, which i presume is pretty much the exact same way sub does it. anyway if we make a settings plugin that just has an interface, and then loads plugins that implement this interface, and if we use static variables for all the settings (eg "slideshowinterval" etc) changes made from one instance (ie the ISettings plugin) would be seen in the plugin plugin (ie the IMenuTask one).

im pretty sure this would work, im not exactly sure how .net does this things, but since they are being run by the same process (namely gbpvr.exe) the static variables should be seen in both instances as the same variable.

then all we have to do is implement a ISettings interface which pretty much has the exact same methods as the IMenuTask, and let the plugins that want to use this feature just implement the interface.

easy aye? Smile

and we could also add support for overscan (im not sure when/if sub would cater for this), but by doing a box/screen sizer thingy like xbmc/mediaportal we could set the bounds of what the user can see on their tv, eg my tv would fit best at 10,12,710,467 and then each plugin could then use this value (call it "ScreenBounds" or something) and in the IMenuTask render method just add one extra line

return g.DrawImage(compositeScreenImage,ScreenBounds);

that way the entire compositeScreenImage (ie the normal image we all return from that method) would be drawn to better fit the tv.

ok, so what do you guys think? sub is this a waste of time, are you going to be adding the screen adjustment stuff soon (i know you dont like tipping your hat, but it would be nice to know im not going to be wasting my time on this stuff).

oh and anyone have any experience with this, and know for a fact my logic is sound, or complete rubbish?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#28
2005-10-05, 05:26 AM
oh and heres the codeproject article i mentioned
http://www.codeproject.com/csharp/Plugin...opment.asp
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#29
2005-10-05, 04:43 PM
I did not get very far, I found I was stretched kinda thin at that point. Was just trying a proof of concept. I will read the code proeject article. It sounds like a good solution.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#30
2005-10-05, 05:01 PM
Funny you should mention it. I have added an ISettings interface in the next release...but it does do much at this stage. Its currently only got a method to tell a plugin to reload its settings. I was primarily thing about the skin, but maybe I'll use for other things too. I'm still thinking about it. Unfortunately I'm pretty busy with some other stuff at the moment, so I havnt got much time I cant spend on this.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,082 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,556 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,641 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,004 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,875 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,323 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,028 2013-03-12, 06:48 AM
Last Post: psycik
  Best way to load settings for NPVR? reven 4 2,237 2012-11-01, 01:13 AM
Last Post: reven
  Plugin problems with started from the command line mvallevand 11 5,246 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,337 2012-02-11, 05:42 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode