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
Guest

Unregistered
 
#11
2004-08-29, 01:14 PM
Hi,
Downloaded GBPVR.
Looks Great cant wait to get my TV Tuner card to try it out.
I am very interested in the development of this product.
I also have some ideas about plugins and would like to write one. I and C++ programmer "C Builder" I graped a copy of Sharp development IDE,
using the Comics as a start, The compiler cannot find find the GPPVR.plublic files.
Where do I need to put the Dlls for it to work.
Ive put the Dlls in a few places but no luck

Sorry Never used Sharp before. Not really sure how to drive it yet.

Any help appreaciated

Brett
dottore
Offline

Posting Freak

Posts: 986
Threads: 44
Joined: May 2004
#12
2004-08-29, 01:59 PM
you must add the dll's as resources to sharpdevelop. right-click on resources, add a .net-resource and search the dll's in the gbpvr directory.
---------------------
www.sitecomposer.de
Guest

Unregistered
 
#13
2004-08-30, 02:40 PM
Thanks.
I am still not sure about it.
I gather you mean,in Projects->ResourceFiles->Add
only 2 options are *.resx or allfiles
If i click all files and select the *dll the complier still comes up with the same errors??

Side note whats the correct way to import the Comics project into SharpDevelop anyway. The comics source has no *.sln so unable to import as Vstudio,
I created a blank console c# app and added all the files in.

Sorry really new to Csharp develop IDE
Thanks
Brett
dottore
Offline

Posting Freak

Posts: 986
Threads: 44
Joined: May 2004
#14
2004-08-30, 02:52 PM
i did following:

i imported the jukebox-plugin-source, then renamed the cs-files in the project-tab. then i clicked right on references in the project-tab (NOT the main - menu, must be the project-tab). sorry, i wrote about resources, but it is called reference. in the popup-window, i chose .net assembly browser, then search.... then i pointed to the gbpvrpublic.dll. just click ok and the reference is made.

do the same with gbpvrbackendcommon. this should work. if you want to use the comics-plugin, just overwrite the *Task.cs and the *ConfigForm.cs with the ones from the comics-plugin.

hope that helps!
---------------------
www.sitecomposer.de
Guest

Unregistered
 
#15
2004-08-31, 02:05 AM
Hi Thanks for all your help.
Tried it with the Jukebox plugin as you said.
Imported the gbpvrpublic.dll ok into References.

Cannot find the other backend dll you talk about anywhere.

Sorry you must think i am a dill, Its always the hardest to get started with new IDE's.

If I complie it now it comes up with different errors Cannot creat output path ##### the given path format is not supported.

can it not handle long filenames, do I need to keep it all to DOS naming conventions??


Thanks
dottore
Offline

Posting Freak

Posts: 986
Threads: 44
Joined: May 2004
#16
2004-08-31, 09:18 AM
well, you must configure the output path for the application. maybe, there is an invalid entry, so go to the "projects" -> "options" menu in the main menu. clicking on "configurations" brings you to the two settings "debug" and "release". there you can find "output", where you can set filename, path and type of the ouput. type should be library, assemblyname is what you want (without .dll, just the name) and the path should point to the plugin-path of your gbpvr installation.

i use a german version of sharpdevelop, so maybe some of the above mentioned menus have other names, but this should work.

the dlls to include are:
GBPVRBackendCommon.dll
GBPVRPublic.dll

both can be found in the root-directory of gbpvr.
---------------------
www.sitecomposer.de
brettkelly1
Offline

Junior Member

Posts: 2
Threads: 0
Joined: Aug 2004
#17
2004-08-31, 11:44 AM
Hi Dottore.
Thanks so much
It actually works.
I changed a few things in the program and complied to see if it runs. Yep all good.

Now Ive got a start on the complier IDE "how to" I should be right to go.

Thanks again
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#18
2004-10-06, 06:08 AM
hi im trying to draw buttons for my settings plugin, and i cant find any plugins with the drawButton code implemented, and im having trouble trying to get them look right, font, color etc. also is there a way to get that info from gbpvr so if you change skins it changes, the font, background color, etc. or do i have to put these settings in the skin.xml file?

so could someone fill in this information:
DrawButton(g,"str",**??FONT???**,**??PEN??**,**??SOLIDBRUSH??**,**??SOLIDBRUSH??
**, x, y, width, height, **??RADIUS??**);

can i do something like gbpvr.ButtonFont gbpvr.BorderPen or anything?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#19
2004-10-06, 06:30 AM
Its not quite how I do it in my internal plugins, but you could do something like the following (as seen in DVD Ripper plug source).

Add a private inner class to you plugin to encapsulate the idea of a button:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
private class ScreenButton
{
public ScreenButton(string command, Image normalImage, Image selectedImage)
{
this.command = command;
this.normalImage = normalImage;
this.selectedImage = selectedImage;
}

public string command;
public Image normalImage;
public Image selectedImage;
}[/QUOTE]

Then maybe add a utility function for creating instances of your button:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
private ScreenButton SetupButton(string text)
{
// load the
Hashtable args = new Hashtable();
args["@buttonText"] = text;
Image normal = skinHelper.getNamedImage("NormalButtonImage", args);
Image selected = skinHelper.getNamedImage("SelectedButtonImage", args);

ScreenButton screenButton = new ScreenButton(text, normal, selected);
return screenButton;
}
[/QUOTE]
This will look up the images for the button (NormalButtonImage &amp; SelectedButtonImage) from the skin.xml file. The colours, font, and translated text, shape, bitmap and caching etc are then managed by the skin helper.



reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#20
2004-10-06, 07:20 AM
i was trying to draw the buttons via code (using the weather plugin as skeleton code) since there seems to be a problem with the buttons in the weather plugin where theres a white sorta border left on around the button when it is no longer selected, and i thought this was because of its button images, but i used the code
CommonUtilities.DrawButton(g,Buttons[i].ToString(),FontBtn,new Pen(Color.White, 4), new SolidBrush(Color.DarkBlue), new SolidBrush(Color.LightGray), 40, 40+(i*45), 150, 30, 10);
to draw the buttons and the white border is still there (goto the weather plugin and you'll see what i mean, in the blue skin anyways). anyone know what is cause this? the position of the buttons on the side?

on and sub did you mean using just 2 images for every button (and selected and unselected) and drawing the font above it?
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)

Pages (10): « Previous 1 2 3 4 5 … 10 Next »
Jump to page 


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