NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 20 21 22 23 24 … 93 Next »
WizTools - 1.x Plugin Development Toolkit

 
  • 0 Vote(s) - 0 Average
WizTools - 1.x Plugin Development Toolkit
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#71
2007-11-26, 08:51 AM
OK! Just installed the new DLL, and it is getting cranky with me about the version of GBPVRPublic I'm referencing, presumably because this machine has 1.0.8 on it instead of the newer 1.1.5.

Is this just versioning confusion, or is there a deeper dependency on some new developer tidbit offered with 1.1.5? I'm not completely opposed to requiring 1.1.5 (especially since it also lets me move away from having to dump everything into /plugins/common), but thinking ahead, I would hate for things to break when a version number changes, even if the interface doesn't.

Regardless, thank you again for taking the extra time to make these DLLs. The UIHelper is such a time and fuss saver that I can't imagine not using it.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#72
2007-11-26, 04:48 PM
Ommina Wrote:OK! Just installed the new DLL, and it is getting cranky with me about the version of GBPVRPublic I'm referencing, presumably because this machine has 1.0.8 on it instead of the newer 1.1.5.

Is this just versioning confusion, or is there a deeper dependency on some new developer tidbit offered with 1.1.5? I'm not completely opposed to requiring 1.1.5 (especially since it also lets me move away from having to dump everything into /plugins/common), but thinking ahead, I would hate for things to break when a version number changes, even if the interface doesn't.

Regardless, thank you again for taking the extra time to make these DLLs. The UIHelper is such a time and fuss saver that I can't imagine not using it.
I've unfortunately upgraded both my machines to 1.1.5 so I'm not sure what you are seeing. Could you provide a bit more detail? Do you get a hard error, or only a warning? Is it when the code runs, or only in the IDE when the project loads?

I don't believe the GBPVRPublic interface changed, so technically, it should work. I have noticed in the past, I sometimes had to remove then re-add the reference to one or more DLLs when versions changed. You might try that if it is strictly an IDE problem.
pastro
Offline

Posting Freak

Posts: 1,885
Threads: 128
Joined: Jul 2006
#73
2007-11-26, 05:12 PM
JavaWiz,
I released the latest version of burndvdx2 and skiptool last night. I added Delete "$INSTDIR\wizuihelper.dll" to the nsis script to get rid of the old version of the dll that I was installing in the root dir. Perhaps all of the developers should add this to try and clean this up.
GBpvr PC: Intel Celeron 1.8 Ghz. 768 Mb WinXp Home Sp2
Video: Diamond 128 Mb 9550
Capture Cards: PVR-150 & PVR-150 MCE w/fm + 2x MVP
Author of: BurnDVDX2 and Skiptool
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#74
2007-11-26, 06:17 PM
pastro Wrote:JavaWiz,
I released the latest version of burndvdx2 and skiptool last night. I added Delete "$INSTDIR\wizuihelper.dll" to the nsis script to get rid of the old version of the dll that I was installing in the root dir. Perhaps all of the developers should add this to try and clean this up.
Good idea, I'll add this to my install scripts. I think right now, McBainUk is the only other developer affected.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#75
2007-11-26, 09:15 PM
JavaWiz Wrote:I've unfortunately upgraded both my machines to 1.1.5 so I'm not sure what you are seeing. Could you provide a bit more detail? Do you get a hard error, or only a warning? Is it when the code runs, or only in the IDE when the project loads?

I don't believe the GBPVRPublic interface changed, so technically, it should work. I have noticed in the past, I sometimes had to remove then re-add the reference to one or more DLLs when versions changed. You might try that if it is strictly an IDE problem.

Definitely an error rather than a warning. Right up to the "Build FAILED" in depressingly large letters if I try to make it go. Removing and replacing the reference didn't help, sadly.

The error is on the creation of a new WinUiList object, which, interestingly, isn't until after the SkinHelper2 and WizUiButtonList objects are created, if that helps any.

The text of the error is:

Quote:Indirect reference is being made to assembly GBPVRPublic version 1.0.2869.10147, which contains 'WizUtilities.WizUiHelper.WizUiList.New'. This Project references a prior version of GBPVRPublic version 1.0.2763.18991. To use 'WizUtilities.WizUiHelper.WizUiList.New', you must replace the reference to GBPVRPublic with version 1.0.2869.10147 or higher.

Which I take to mean that it wants the new GBPVRPublic. Not that I mind -- I should upgrade it anyway -- I'm just thinking ahead to how it would affect future user if I reference a /plugins/common version of WizUiHelper.dll.

Will probably just put it in the plugin directory proper and avoid the whole fuss.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#76
2007-11-26, 09:58 PM
Ommina Wrote:Definitely an error rather than a warning. Right up to the "Build FAILED" in depressingly large letters if I try to make it go. Removing and replacing the reference didn't help, sadly.

The error is on the creation of a new WinUiList object, which, interestingly, isn't until after the SkinHelper2 and WizUiButtonList objects are created, if that helps any.

The text of the error is:



Which I take to mean that it wants the new GBPVRPublic. Not that I mind -- I should upgrade it anyway -- I'm just thinking ahead to how it would affect future user if I reference a /plugins/common version of WizUiHelper.dll.

Will probably just put it in the plugin directory proper and avoid the whole fuss.

Ok two things:
  1. If you have not already upgraded, could you install either MovieWiz or SearchWizX2 and see if there is a problem with either the plugin or config settings for them. If not, then the DLLs are backward compatible.
  2. In your project, do you have 'specific version' set to true for any of the DLL references?
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#77
2007-11-26, 11:17 PM
JavaWiz Wrote:Ok two things:
  1. If you have not already upgraded, could you install either MovieWiz or SearchWizX2 and see if there is a problem with either the plugin or config settings for them. If not, then the DLLs are backward compatible.
  2. In your project, do you have 'specific version' set to true for any of the DLL references?

Nope, downloaded the new(er) version of GBPVR, but haven't installed it yet.

Installed MovieWiz, and it, well, kinda works. The plugin proper (as opposed to the Config form) worked without issue, so whatever is causing my error appears to be strictly a version number thing, rather than any real change.

So I'm reassured that changes won't break other users.

Side note: the MovieWiz manager hates me though. Out of two tries to load the movie details, it has given me a SQL constraint error, and a null reference exception. But I suppose those are better suited for the MovieWiz thread.

I've kept the "specific version" left at the default 'false' for all references.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#78
2007-12-15, 03:50 AM
OK, putting aside all that boring versioning stuff, it's time for something new and exciting!

Maybe.

My goal: After a file has finished playing, add a graphic to the currently selected listview listitem (in this case, a 'watched' indicator.)

So far, the only way I've been able to achieve this is to .Clear the list and recreate all the list items from scratch. I'm really hoping there is an easier, lest time-consuming, way.

First thing I tried was to just change the appropriate property on the selected list item, but that didn't do anything at all. So I said 'blah!' and started looking for other ways.

I tried using .getItemList into an ArrayList, then .Clear, then .setItemList, but the results were... not attractive. Just left me with a handful of "@text"s and the previous contents lost. Right count though.

I tried casting each item in the ArrayList into a WizList item, but that didn't help. Same @text results as above.

I went on to try setting everything to 'selected' and then used .getSelectedItems and putting the results of THAT back into .setItemList. No go there either. More @text.

Next attempt was to loop through the list using .getItem(n), creating the ArrayList again, and back to .setItemList. Nope, another idea crushed!

Then I ran out of ideas and came here.

So! Any suggestions how I can make one wee graphic appear without recreating the entire list? No doubt I'm missing something obvious (again), but no amount of experimenting seems to be coming up with a solution.

Thanks!
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#79
2007-12-15, 05:03 AM
Ommina Wrote:OK, putting aside all that boring versioning stuff, it's time for something new and exciting!

Maybe.

My goal: After a file has finished playing, add a graphic to the currently selected listview listitem (in this case, a 'watched' indicator.)
If I understand what you're after, this is how I would approach:
  • In the skin, the listItem element should have an '@watched' element where you want the graphic to appear.
Code:
<CompositeImage name="MyListItemListNormal" size="35,4.0">
    <DrawCommonImage name="ListViewNormalItemBackground"/>
    <DrawText text="@Text" loc="0,0" size="100,100" textStyle="ListNormalTextStyle" align="Left" valign="Center"/>
    <DrawImage filename="@watched" loc="90.0,2.0" size="10.0,90.0" fixedAspectRation="true" />
        </CompositeImage>
  • In the code, you have an object that implements the SkinHelper2.GetImageCallback interface. Assign this object to the '@watched'
Code:
MyImageObject watchedGraphic = new MyImageObject(true);

[SIZE=2][COLOR=#2b91af]WizUiList[/COLOR][/SIZE][SIZE=2].[/SIZE][SIZE=2][COLOR=#2b91af]WizListItem[/COLOR][/SIZE][SIZE=2] item;[/SIZE]
item = (WizUiList.WizListItem)myList[SIZE=2].getCurrentItem();[/SIZE]
[SIZE=2]item.AddProperty("@watched", watchedGraphic);[/SIZE]
  • In the GetImage() method of the above object, return the Image that you want to display. I think if you return null, no image will be displayed.
Code:
[SIZE=2][COLOR=#0000ff]public [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]class [/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]MyImageObject[/COLOR][/SIZE][SIZE=2]: [/SIZE][SIZE=2][COLOR=#2b91af]SkinHelper2[/COLOR][/SIZE][SIZE=2].[/SIZE][SIZE=2][COLOR=#2b91af]GetImageCallback[/COLOR][/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]   private bool watched = false;[/SIZE]

[SIZE=2]   MyImageObject(bool watched)[/SIZE]
[SIZE=2]   {[/SIZE]
[SIZE=2]        this.watched = watched;[/SIZE]
[SIZE=2]   }[/SIZE]

[SIZE=2][SIZE=2][COLOR=#0000ff]   public [/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]Image[/COLOR][/SIZE][SIZE=2] GetImage([/SIZE][SIZE=2][COLOR=#2b91af]Hashtable[/COLOR][/SIZE][SIZE=2] parameters, [/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2] name, [/SIZE][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][SIZE=2] width, [/SIZE][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][SIZE=2] height)[/SIZE]
[SIZE=2]   {[/SIZE]
[SIZE=2]       Image img = null;[/SIZE]
[SIZE=2]       if (watched)[/SIZE]
[SIZE=2]           img = Image.FromFile("someGraphic.jpg"); // or grab an image from the skin[/SIZE]
[SIZE=2]       return img;[/SIZE]
    }
}
[/SIZE]
  • This way, you should be able to locate the specific item in the list and reset the @watched property, rather than rebuilding the whole list.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#80
2007-12-15, 05:27 AM
Heh - that is, almost, but not quite, letter for letter what I have. I even called it @watched in the skin.

However, changing (sticking with your example) MyImageObject.watched to true doesn't work. The image still doesn't display.

I did some checking to ensure that the property was being set correctly, and it seemed to be. If I get the @watched property out of the getCurrentItem and check the IsWatched (after appropriate casting), it does return true. But still no image.

That said, I'm changing the IsWatched property of an existing MyImageObject object, not creating a new one, so perhaps that will make a difference. (Strikes me as odd, but one never knows what kind of voodoo is going on under the sheets.) I'll try it next.

For what it is worth, even if I just change the ListItem's .Text property, that will not change on the screen either until I move the selection up or down.

This leaves me wondering if I'm missing some sort of "render changes now!" function. Although, why the text should subsequently change and not the image confuses me further.

Would that it is all happening in Notify(Type, Text) have any bearing?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (31): « Previous 1 … 6 7 8 9 10 … 31 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,089 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,566 2020-11-14, 08:01 PM
Last Post: sub
  Test/Development environment for npvr.db3 scJohn 10 4,596 2020-09-04, 09:14 PM
Last Post: scJohn
  VIdeo playback from plugin mvallevand 5 3,647 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,012 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,882 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,332 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,029 2013-03-12, 06:48 AM
Last Post: psycik
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,867 2012-10-18, 08:35 PM
Last Post: osx-addict
  Plugin problems with started from the command line mvallevand 11 5,257 2012-08-12, 07:56 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode