The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Centrafuse > CF Plugins

Reply
 
Thread Tools Display Modes
Old 03-06-2006, 02:35 PM   #1
Constant Bitrate
 
Join Date: Mar 2005
Location: Wiesbaden/Germany
Vehicle: 2000 VW Polo GTI
Posts: 209
My Photos: (0)
VB.Net Plugin with new concepts

Centrafuse is the best frontend ever - because of the plugin interface - easy to program (i have looked inside the sdk.chtm just once) and powerful.

Centrafuse will also get stronger and better as there much more developers developing for it (they are able to do this -> plugin interface)...

So I have started coding something I hope you will have a look at it.
My main dislike (as plugin/developer) at all frontends (not only CF) is the crippeled "Windows Form Designer" and crippeled "Microsoft ActiveX concept" - this gives you (for example) codelogic for a buttons in the form itself.

So I reintroduced the ActiveX concept for CarFrontends - but this time skinnable !

You press a button - it draws itself "pressed" and raises an event for the form. The buttons itself is my own ActiveX Control as the Windows Command Button is not suitable for car usage (IMHO).
To be able to draw "round buttons" I am doing some "magic" stuff with transparency...

the skin-file (text-file) looks like that:

Code:
mySkin.SuspendLayout() ' 'CfButton1 ' mySkin.CfButton1.Image = New System.Drawing.Bitmap("plugins\CFRadio\rd-darkglass-6-u.gif") mySkin.CfButton1.ImageDown = New System.Drawing.Bitmap("plugins\CFRadio\rd-darkglass-6-d.gif") mySkin.CfButton1.Location = New System.Drawing.Point(8, 80) mySkin.CfButton1.Name = "CfButton1" mySkin.CfButton1.Size = New System.Drawing.Size(120, 43) mySkin.CfButton1.TabIndex = 1 mySkin.CfButton1.Tekst = "Tune +" ' 'CfButton2 ' mySkin.CfButton2.Image = New System.Drawing.Bitmap("plugins\CFRadio\rd-darkglass-6-u.gif") mySkin.CfButton2.ImageDown = New System.Drawing.Bitmap("plugins\CFRadio\rd-darkglass-6-d.gif") mySkin.CfButton2.Location = New System.Drawing.Point(8, 136) mySkin.CfButton2.Name = "CfButton2" mySkin.CfButton2.Size = New System.Drawing.Size(120, 43) mySkin.CfButton2.TabIndex = 1 mySkin.CfButton2.Tekst = "Tune -" ' 'Cflcd1 ' mySkin.Cflcd1.Image = New System.Drawing.Bitmap("plugins\CFRadio\Display_LCD.jpg") mySkin.Cflcd1.Location = New System.Drawing.Point(136, 80) mySkin.Cflcd1.Name = "Cflcd1" mySkin.Cflcd1.Size = New System.Drawing.Size(528, 213) mySkin.Cflcd1.TabIndex = 2 mySkin.Cflcd1.Tekst = Nothing ' 'CFRadio ' mySkin.AutoScaleBaseSize = New System.Drawing.Size(5, 13) mySkin.BackgroundImage = New System.Drawing.Bitmap("plugins\CFRadio\blank.jpg") mySkin.CF_pluginIsGUI = True mySkin.CF_pluginName = "CFRADIO" mySkin.ClientSize = New System.Drawing.Size(677, 310) mySkin.Controls.Add(mySkin.Cflcd1) mySkin.Controls.Add(mySkin.CfButton1) mySkin.Controls.Add(mySkin.CfButton2) mySkin.Name = "CFRadio" mySkin.Controls.SetChildIndex(mySkin.CfButton2, 0) mySkin.Controls.SetChildIndex(mySkin.clickShield, 0) mySkin.Controls.SetChildIndex(mySkin.CfButton1, 0) mySkin.Controls.SetChildIndex(mySkin.Cflcd1, 0) mySkin.ResumeLayout(False)

You will notice that this is the InitializeComponent() from the Windows Form Designer - I am loading this file at runtime, compile and execute it (instead of the InitializeComponent() )
The "skinner" could certainly also replace the controls with his own versions ! Adding flash or animation or whatever.

My ActiveX controls are placed inside CF not-my own frontend - this shows again the power and flexibility of CF - only a black-painting of the Plugin-form-space in the OnPaint() Event disturbes this (please remove Veetid )

I have designed a radio plugin because I want to implement a RDS text and want to show you my HAL (seperating driver from application (you are sooo faaaast Veetid - you have realized that in 1.6 )).
This also raises the question why i can't replace the Radiopart inside CF - so please be consistently and make *every* part of CF a plugin (with a different interface as it is much easier IMHO).
...and please document the interface of the radiomodules in 1.6 - i am sure that you can't buy every radiohardware to develop a driver for it.

And finally keep up the good work veetid (and you others) !


Grab my ideas here:
http://netsh88.hades.net-build.de/fm...dio_plugin.zip
http://netsh88.hades.net-build.de/fm...dio_source.zip

Last edited by FMode : 03-06-2006 at 02:38 PM.
FMode is offline   Reply With Quote
Sponsored Links
Old 01-30-2007, 09:18 AM   #2
MySQL Error
 
veetid's Avatar
 
Join Date: Apr 2004
Posts: 4,955
My Photos: (0)
Quote: Originally Posted by FMode View Post
Centrafuse is the best frontend ever - because of the plugin interface - easy to program (i have looked inside the sdk.chtm just once) and powerful.

Centrafuse will also get stronger and better as there much more developers developing for it (they are able to do this -> plugin interface)...

So I have started coding something I hope you will have a look at it.
My main dislike (as plugin/developer) at all frontends (not only CF) is the crippeled "Windows Form Designer" and crippeled "Microsoft ActiveX concept" - this gives you (for example) codelogic for a buttons in the form itself.

So I reintroduced the ActiveX concept for CarFrontends - but this time skinnable !

You press a button - it draws itself "pressed" and raises an event for the form. The buttons itself is my own ActiveX Control as the Windows Command Button is not suitable for car usage (IMHO).
To be able to draw "round buttons" I am doing some "magic" stuff with transparency...

the skin-file (text-file) looks like that:

Code:
mySkin.SuspendLayout() ' 'CfButton1 ' mySkin.CfButton1.Image = New System.Drawing.Bitmap("plugins\CFRadio\rd-darkglass-6-u.gif") mySkin.CfButton1.ImageDown = New System.Drawing.Bitmap("plugins\CFRadio\rd-darkglass-6-d.gif") mySkin.CfButton1.Location = New System.Drawing.Point(8, 80) mySkin.CfButton1.Name = "CfButton1" mySkin.CfButton1.Size = New System.Drawing.Size(120, 43) mySkin.CfButton1.TabIndex = 1 mySkin.CfButton1.Tekst = "Tune +" ' 'CfButton2 ' mySkin.CfButton2.Image = New System.Drawing.Bitmap("plugins\CFRadio\rd-darkglass-6-u.gif") mySkin.CfButton2.ImageDown = New System.Drawing.Bitmap("plugins\CFRadio\rd-darkglass-6-d.gif") mySkin.CfButton2.Location = New System.Drawing.Point(8, 136) mySkin.CfButton2.Name = "CfButton2" mySkin.CfButton2.Size = New System.Drawing.Size(120, 43) mySkin.CfButton2.TabIndex = 1 mySkin.CfButton2.Tekst = "Tune -" ' 'Cflcd1 ' mySkin.Cflcd1.Image = New System.Drawing.Bitmap("plugins\CFRadio\Display_LCD.jpg") mySkin.Cflcd1.Location = New System.Drawing.Point(136, 80) mySkin.Cflcd1.Name = "Cflcd1" mySkin.Cflcd1.Size = New System.Drawing.Size(528, 213) mySkin.Cflcd1.TabIndex = 2 mySkin.Cflcd1.Tekst = Nothing ' 'CFRadio ' mySkin.AutoScaleBaseSize = New System.Drawing.Size(5, 13) mySkin.BackgroundImage = New System.Drawing.Bitmap("plugins\CFRadio\blank.jpg") mySkin.CF_pluginIsGUI = True mySkin.CF_pluginName = "CFRADIO" mySkin.ClientSize = New System.Drawing.Size(677, 310) mySkin.Controls.Add(mySkin.Cflcd1) mySkin.Controls.Add(mySkin.CfButton1) mySkin.Controls.Add(mySkin.CfButton2) mySkin.Name = "CFRadio" mySkin.Controls.SetChildIndex(mySkin.CfButton2, 0) mySkin.Controls.SetChildIndex(mySkin.clickShield, 0) mySkin.Controls.SetChildIndex(mySkin.CfButton1, 0) mySkin.Controls.SetChildIndex(mySkin.Cflcd1, 0) mySkin.ResumeLayout(False)

You will notice that this is the InitializeComponent() from the Windows Form Designer - I am loading this file at runtime, compile and execute it (instead of the InitializeComponent() )
The "skinner" could certainly also replace the controls with his own versions ! Adding flash or animation or whatever.

My ActiveX controls are placed inside CF not-my own frontend - this shows again the power and flexibility of CF - only a black-painting of the Plugin-form-space in the OnPaint() Event disturbes this (please remove Veetid )

I have designed a radio plugin because I want to implement a RDS text and want to show you my HAL (seperating driver from application (you are sooo faaaast Veetid - you have realized that in 1.6 )).
This also raises the question why i can't replace the Radiopart inside CF - so please be consistently and make *every* part of CF a plugin (with a different interface as it is much easier IMHO).
...and please document the interface of the radiomodules in 1.6 - i am sure that you can't buy every radiohardware to develop a driver for it.

And finally keep up the good work veetid (and you others) !


Grab my ideas here:
http://netsh88.hades.net-build.de/fm...dio_plugin.zip
http://netsh88.hades.net-build.de/fm...dio_source.zip

Great work, I will have to look through it to completly understand the use of non-CF controls within CF, but if you have it working then great... I tried to make things as flexible as possible...

A radio plugin could be created seperate, the only features that are not exposed in the SDK are the ability for the Tivo functionality, which would take some time...

not sure about the black painting in the OnPaint event, I will have to look into this, but you should be able to modify this.... I believe I made it a property, if not I will...

It was always meant to have flat graphic backgrounds, but I generally don't hard code anything...

david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
veetid is offline   Reply With Quote
Old 01-30-2007, 12:27 PM   #3
MySQL Error
 
veetid's Avatar
 
Join Date: Apr 2004
Posts: 4,955
My Photos: (0)
Just checked and I do not paint black backgrounds, but I do override OnPaint and OnBackgroundPaint methods, but I don't paint anything black...

It could be because I do not call their base methods at the end explicity, but that shouldn't be a problem because I have added an override to a plugin and it was called just fine...

you should be able to change your background colors, not sure why that isn't working...

if you download the SDK the example Radio Modules and interface are documented in the example Radio Module plugins...

david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
veetid is offline   Reply With Quote
Old 01-31-2007, 02:50 AM   #4
Constant Bitrate
 
Join Date: Mar 2005
Location: Wiesbaden/Germany
Vehicle: 2000 VW Polo GTI
Posts: 209
My Photos: (0)
hmmm... please look at the date of my initial posting....
imageshack removed the CF picture (showing that its really working!) and the downloads are "void" now... and its was written for CF1.5 !

so I will try to reorganize them...

...at editing time I just remove "Implements Centrafuse.cfplugin" and the black overrideing of my controls disappeared (in 1.5!)... for compilation I put it back...

The problem is noone (skinner) have a clue what possibilies this would offer to them (I don't have time to create a breathtaking example)... I am speaking of adding flashanimated buttons and stuff...


Quote: Originally Posted by veetid View Post
...

if you download the SDK the example Radio Modules and interface are documented in the example Radio Module plugins...

david

but not in CF1.5
with "Radio Module" you mean Radio Drivers not GUI ? or is the GUI moved to an offical plugin (like the common plugins) and I didn't catch this ?
FMode is offline   Reply With Quote
Old 01-31-2007, 10:31 AM   #5
MySQL Error
 
veetid's Avatar
 
Join Date: Apr 2004
Posts: 4,955
My Photos: (0)
I didn't realize this was so old, I was confused...

I thought this was a new post, so most of what I said was completly out of context

Radio isn't a complete plugin yet, but it was built on the same exact SDK base... The only thing the SDK does not expose is the ability to override the previous/play/next buttons and implement the Tivo functionality...

I plan to expand the Radio Module interface instead of exposing the Radio as a plugin... This is a better method to getting more radios added, not having a bunch of different Radio plugins, but Radio Modules that work with one plugin...

I know the interface needs some work, but it's a start and it works if you implement the methods...

david
__________________
__________________
CENTRAFUSE http://www.centrafuse.com
01 Jeep Cherokee Sport 4x4 Installed
M10000/512Mb/20GB, Lilliput 7", Holux GM-210
veetid is offline   Reply With Quote
Old 02-20-2007, 01:46 PM   #6
Constant Bitrate
 
Join Date: Mar 2005
Location: Wiesbaden/Germany
Vehicle: 2000 VW Polo GTI
Posts: 209
My Photos: (0)
nearly forget this thread...

some pics are missing :/ ...
Attached Files
File Type: zip CFRadio.zip (45.5 KB, 70 views)
FMode is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Garo's Extra POI Plugin 1.0 beta 1 garo Map Monkey 63 01-18-2007 12:32 PM
can't get plugin to work. help please binh DragonBTV's CarPC Plugins 2 06-05-2005 04:48 AM
Help with winXP/hibernate/LCD plugin dave123456 Software & Software Development 0 10-17-2002 08:17 PM
Winamp LCD display plugin / IRMan plugin - together? Jarrod Software & Software Development 9 06-03-2002 05:39 AM
Resumer Winamp plugin..works with MPC, too Tony S Software & Software Development 7 03-30-2002 05:10 PM


All times are GMT -5. The time now is 06:50 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics