NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 85 86 87 88 89 … 93 Next »
IInfoPanel renderpanel()

 
  • 0 Vote(s) - 0 Average
IInfoPanel renderpanel()
Huw
Offline

Member

Posts: 219
Threads: 7
Joined: Oct 2004
#1
2004-11-02, 07:19 PM
so far I have succesfully managed to implement the IInfoPanel interface, and can load an image to display on the main menu page using the renderpanel event, however, if I try to do any kind of drawing GBPVR fails to load.

error.log has this to say

02/11/2004 19:16:12.388 VERBOSE [2] Rendering HomeMenu
02/11/2004 19:16:12.418 ERROR [2] Object reference not set to an instance of an object.
02/11/2004 19:16:12.418 ERROR [2] at DriveSpacePlugin.DriveSpaceTask.renderPanel()
at m.e()
at m..ctor(String directPlayFileName, Boolean mvpMode)
at m.Main(String[] args)
02/11/2004 19:16:12.438 VERBOSE [35] SourceConfigurationContainer.LoadAll()
02/11/2004 19:16:12.438 ERROR [35] Error int SourceConfigurationContainer::LoadAll(): Value cannot be null.
Parameter name: punk
02/11/2004 19:16:12.438 ERROR [35] Stack:
at System.Runtime.InteropServices.Marshal._WrapIUnknownWithComObject(IntPtr i, Object owner)
at System.Data.OleDb.OleDbWrapper.IDataInitialize()
at System.Data.OleDb.OleDbConnection.GetObjectPool()
at System.Data.OleDb.OleDbConnection.CreateProvider(OleDbConnectionString constr)
at System.Data.OleDb.OleDbConnection.Open()
at ax.a()
02/11/2004 19:16:12.438 VERBOSE [35] About to connect to remote recording service
02/11/2004 19:16:12.468 VERBOSE [35] getValue() loading new key/value into cache: /settings/NetRadioBufferSize
02/11/2004 19:16:12.468 VERBOSE [35] getValue: /settings/NetRadioBufferSize : 96000
02/11/2004 19:16:12.468 INFO [35] NetRadio buffer size is: 96000


Any idea what I may be doing wrong ?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#2
2004-11-02, 07:22 PM
If you want to send over your source I'll take a look.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2004-11-02, 11:20 PM
Huw if you getting your infopanel working can you send me the source (you can take all the custom stuff out if you want), i just want to make a couple of my own infopanels but having a few problems getting started.

cheers
Huw
Offline

Member

Posts: 219
Threads: 7
Joined: Oct 2004
#4
2004-11-02, 11:46 PM
reven,

If I get it figured, I will do [Image: smile.gif], you may like the other code anyway, it is a drive space/CPU usage plugin (atleast it will be when I've ironed out a couple of glitches)
Huw
Offline

Member

Posts: 219
Threads: 7
Joined: Oct 2004
#5
2004-11-03, 12:46 AM
Think I've got it, still a bit rough, but almost sorted I think

[Image: main.jpg]
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#6
2004-11-03, 01:32 AM
can you send me the source code at reven@ihug.co.nz, i want to make a bar graph for the free hdd space, a clock/date thingy. do you have to have a rounded rect around the plugin? there was a comic infopanel in the blue skin commented out and when i uncommented the rounded rect showed up.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#7
2004-11-03, 01:51 AM
Huw - that looks like a great start. Well done!

reven - You can make it pretty much any size you want, and within that you can use a rounded rect if you wish. I havn't really decide if there should be a standard size so that you can put a few of then on a skin and have them still manage to look good.

I was thinking 180x120 (possibly 200x120) might be a good size (4x120=480) so we could stack four along the right hand side of the screen. I was thinking about using one of these four for showing conflict notification, or possibly notification of pending recordings. This would leave a few spaces for the user to add custom panel  (weather, disk usage, CPU, system temps etc).



reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#8
2004-11-03, 02:01 AM
just remember when making a plugin to make it high configurable in the skin.xml file. im going to try and make my panels fit in flawlessly into my skin (of course they then would look silly in another skin, ill add a test to it so theres a standard look and my skin look, or several skin looks or something). having custom sizes is a great idea too. was thinking of making my bargraph like 100x25 pixels.

at the moment can you get info from the pluginhelper or something to display the current status of gbpvr like if its recording a show (channel + show title), if music is paused, fm station you are listening too ?
Huw
Offline

Member

Posts: 219
Threads: 7
Joined: Oct 2004
#9
2004-11-03, 08:49 AM
sub,

I have been trying without success to use the plugins xml file to store info, but evrything I try to retrieve it doesn't seem to work.

in the sample below, the two //commented lines work ok and get me my image, but I really wanted to do something like Image offScreenBmp = skinHelper.getNamedImage("InfoPanelImage&quotWink but it doesn't seem to work.

forget this one, I figured out what I had done wrong
Huw
Offline

Member

Posts: 219
Threads: 7
Joined: Oct 2004
#10
2004-11-03, 08:52 AM
I did take a look at doing sytem temps in the plugin but gave up on the idea as there is no such thing as standard temp probes, so it would require either a third party dll (couldn't find one) or a huge amount of work to write one.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  anyone got a sample IInfoPanel plugin? reven 0 1,545 2004-11-01, 07:35 PM
Last Post: reven
  IInfoPanel  getPanelName() CodeMonkey 7 3,005 2004-08-24, 01:33 PM
Last Post: CodeMonkey

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

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

Linear Mode
Threaded Mode