NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 62 63 64 65 66 … 93 Next »
Developing plugins

 
  • 0 Vote(s) - 0 Average
Developing plugins
jasonf
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2004
#71
2005-03-03, 06:57 PM
[b Wrote:Quote[/b] (sub @ Mar. 03 2005,10:37)]You can already set breakpoints and step through the plugins in the debugger. Just make sure you also add your .pdb file into the plugins directory, and set gbpvr.exe as the plugin executable.
Oh, sweet! I didn't know about that! In VS.NET 2003:

Project properties -> Configuration Properties - > Debugging

Set the Debug Mode to "Program", and then Apply. You'll then be able to set the Start Application to the path and filename for GBPVR.

I also set the working directory to the GBPVR directory, and set my project's build path so that the DLL gets created right in the plugin directory.

You can then hit "Run" from Visual Studio, and it will start up GBPVR. If you set a breakpoint inside your plugin's code, then you can examine your variables, etc.
JasonF
smeghead
Offline

Senior Member

Posts: 300
Threads: 23
Joined: Jan 2005
#72
2005-03-04, 04:09 PM
Works a treat - excellent
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#73
2005-12-24, 09:25 PM
This thread has made my day. Didnt know about copying the pdb file. Been trying to get proper debuging working for ages. This is going to save me so much time! Smile

Oh and Merry Christmas all, Only 2hrs and 35 mins to go in the UK Big Grin
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#74
2005-12-31, 04:36 PM (This post was last modified: 2005-12-31, 04:43 PM by Old Dog.)
Currently the Appearance Manager only works with The Collection skin. If The Collection is not the current skin I would like to prevent the Appearance button from being displayed in the Main Menu.

What is the best way to disable a plugin and prevent it's button from appearing on the Main Menu at runtime?

Thanks,
David
Learning new tricks!
Visit Plain Jane's Collection
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,717
Threads: 767
Joined: Nov 2003
#75
2005-12-31, 04:44 PM
Quote:What is the best way to disable a plugin and prevent it's button from appearing on the Main Menu at runtime?
There isnt currently a mechanism for this.
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#76
2005-12-31, 05:30 PM
I do something like this in the video archive plug-in when deciding if I should show the dvd2mpeg button on the mvp or not. I also do this in the VA Panel so that I can use GBPVR to set the configuration settings of the panel as if it was a plug-in but to not show a button for it at run time. GBPVR decides to show a plug-in if the name returned by getName() matches the name configured in the config application. So, what you can do is return your proper name from getName() when called by the config app or when the active skin is Collection and return some other string or String.Empty in other cases.

For example, here is what I do for the VA Panel

Code:
public string getName()
{
    // Only show this in the config app
    if (PluginHelperFactory.getPluginHelper() == null)
        return  "Video Archive Panel";
    else
        return "VAPanelScreenSaver";
}

Jeff
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,717
Threads: 767
Joined: Nov 2003
#77
2005-12-31, 05:40 PM
Very creative. Yes, you could do that.
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#78
2006-01-03, 01:27 AM (This post was last modified: 2006-01-03, 02:50 AM by Old Dog.)
Jeff Wrote:I do something like this in the video archive plug-in when deciding if I should show the dvd2mpeg button on the mvp or not. I also do this in the VA Panel so that I can use GBPVR to set the configuration settings of the panel as if it was a plug-in but to not show a button for it at run time. GBPVR decides to show a plug-in if the name returned by getName() matches the name configured in the config application. So, what you can do is return your proper name from getName() when called by the config app or when the active skin is Collection and return some other string or String.Empty in other cases.

For example, here is what I do for the VA Panel

Code:
public string getName()
{
    // Only show this in the config app
    if (PluginHelperFactory.getPluginHelper() == null)
        return  "Video Archive Panel";
    else
        return "VAPanelScreenSaver";
}

Jeff

Thanks Jeff! It works like a charm.
Learning new tricks!
Visit Plain Jane's Collection
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#79
2006-01-04, 05:01 PM
I spoke too soon. It works too well.

It not only prevents the button from appearing, it also drops it to the bottom of the menu list.

When the skin is changed back to the collection, the button is in the wrong place.
Learning new tricks!
Visit Plain Jane's Collection
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#80
2006-01-04, 11:51 PM
Please refer to the attachment.

From my plugin, I am trying to inform the user that they cannot use the plugin. What you see below is a IPluginHelper.ShowMessage() box inset in an error message box. The light colored sliver near the bottom is the lower part of the error box's okay button.

Both appear when and only when I call IPluginHelper.ShowMessage().

If I click on the sliver, they both go away. If I do nothing, the inset message box goes away by itself, then I have to press the error box's okay button to get it to go away.

As I said earlier, I wish to inform the user, but I do want an acknowledgement. Also, I believe I can only depend on facilities provided by the core GBPVR application being available.

Please educate me.
Learning new tricks!
Visit Plain Jane's Collection
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Plugins and NPVR. Where do we start? sub 80 69,020 2020-11-26, 10:02 PM
Last Post: mandai
  Developing Android TV client fred250 2 1,839 2020-11-16, 06:33 PM
Last Post: fred250
  I want to start developing plugins...but how? OrenShapir 6 4,086 2014-11-18, 10:38 PM
Last Post: mvallevand
  Tuner plugins and client id mvallevand 2 2,078 2013-07-03, 01:39 AM
Last Post: mvallevand
  Tuner Plugins - Output folders mvallevand 2 2,054 2013-02-19, 07:45 PM
Last Post: mvallevand
  .NET 4 plugins? McBainUK 20 7,777 2012-12-11, 08:48 PM
Last Post: sub
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,772 2012-10-18, 08:35 PM
Last Post: osx-addict
  Tuner plugins mvallevand 4 2,460 2012-08-05, 11:19 PM
Last Post: mvallevand
  Recorder plugins - Deleting tuners mvallevand 1 1,522 2012-03-29, 12:51 AM
Last Post: sub
  Recorder plugins - scheduling mvallevand 4 2,402 2012-03-26, 05:09 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