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
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#11
2005-02-25, 12:26 AM
nah i havent started, i thought there was an issue calling plugins from other plugins, and that they needed ot be in the gbpvr root directory for this to work, so thats why i thought sub had to do it.

i just strongly feel that the draw/onkeyevent method should be passed to the plugin. if its a class eg "Settings" this would implement say "ISettings" which should have some helper methods like "Checkbox" "RadioButton", just the common setting controls, so they only need to be skinned in one place and results are seen throughout all the settings classes.

i just want something like xbmc has for settings (mediaportal has something similar but with hardly any settings).
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#12
2005-03-04, 10:43 AM
jorm any progress yet?

i just want to keep this thread/topic alive [Image: smile.gif] i feel this is a important feature missing from gbpvr. also autoupdate should be including in the settings base class (once its set up of course). also a nice little "Credits"/"About" page or something, like xbmc would be cool, showing version number etc.
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#13
2005-03-04, 01:10 PM
I havent started it yet but probably can start to play with it at work today. I will start it and let you know.
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
#14
2005-03-04, 01:23 PM
cool, looking forward to this.
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#15
2005-03-04, 07:35 PM
So I started playing with this. And this is what I have so far.

I have a dll for the settings listener, SettingsHandler (Class that does the drawing) and the base interface.

The base interface has a method called getSettingsHandler if you choose to override the default one. The plugin has a list of registered plugins when you first start up. In the various plugins xtors they will call
SettingsListener.getInstance().registerListener(this);

To Register.

Right now the default settings helper reads an xml file that contains info like
<Plugin name="Xrecord">
<Setting name="Advanced" values="Enabled|Disabled" xmlpath="/config/plugins/xrecord"/>
<Setting name="Confirm" values="Enabled|Disabled" xmlpath="/config/plugins/xrecord"/>
</Plugin>

We can extend it to hold other types as well. I support numbers and combo boxes right now. It is not in the xml. The xml path will be the path the value is read from and the setting is saved to. I am not handling that yet. But I can get a gui to appear.

The base interface has a method for settings being updated.

Unless we get sub to add the support classes to gbpvr all of the plugins would have a dependency on this dll.

That is all I really have so far.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#16
2005-03-04, 07:36 PM
the main screen
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
#17
2005-03-05, 02:39 AM
just make the front really skinnable, so we can have a start settings screen similar to
[Image: screenshots20.jpg]

there was a different way this skin use to do it, they had 2 columns with about 5 items in each, the left column was about 1 cell higher than the one on the right, it looked really cool. and the xbmc media experience skin, had them all along the right side of the screen. i was thinking along those lines. displaying task.png to the left/center.
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#18
2005-03-06, 12:44 AM
that is a sweet pic. Good idea. What do you think about the class layout. Do you think we can get sub to add the base package into his framework.
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
#19
2005-03-06, 01:06 AM
does the dll you created do the drawing? or does it hand off the drawing for each plugin to that plugin?
the drawing and editing of the config.xml file should be handed off to the plugin itself, that way that settings can be updated within that plugin without needed to reload the config.xml file, and if a control doesnt exist for certain configuration options (eg a folder browser or file browser) we can design are own, the base dll should have certain helper controls thou like checkbox,radio button etc.
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#20
2005-03-06, 05:11 AM
Guys you will want to check with JasonF, and his widget library if you want Checkboxes, and other controls. He's developed or nearly has developed most of that stuff. I know he's looking for some help in getting this first widget library out the door, and if you guys need these types of things, you might as well piggy back off his library instead of having Sub re-invent them.
« Next Oldest | Next Newest »

Users browsing this thread: 1 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,104 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,577 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,653 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,018 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,894 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,340 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,035 2013-03-12, 06:48 AM
Last Post: psycik
  Best way to load settings for NPVR? reven 4 2,251 2012-11-01, 01:13 AM
Last Post: reven
  Plugin problems with started from the command line mvallevand 11 5,273 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,349 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