Jump to content

[release]od2y'z Wrappers For Devvies


AndreasV

Recommended Posts

Hiya,

To make porting docklets from Object Dock to yzDock a little bit easier, I created this wrapper functions.

You could already have seen this working:

- SysStats docklet is now available for yzDock

- MailCheck2 docklet is now available for yzDock

- Calendar 3.4 is now available for yzDock

I will contact other OD-docklet-developers too and ask them to port their docklet to yzDock :)

With these wrappers, you don't need to rewrite your docklet, but simply use the od2yz.h instead of object docks DockletSDK.h. Make sure you have yzDock SDK 0.83.

Also, do not forget to change the DOCKLET_DATA* type to the class your are using ( you can use a typedef).

Next, take a look at the Object Dock event functions used in od2yz.cpp and where necessary, change them to the functions you are using for the events. For example, OnProcessMessage() could point to myClass::ProcessMessage(); so than you need to change that.

Maybe after this, it needs a little bit of fine-tuning, but after all, it will reduce the work you have to do for a port a lot.

Questions: PM or e-mail ([email protected]) me.

Download:

http://mpj.tomaatnet.nl/od2yz/od2yz.h and http://mpj.tomaatnet.nl/od2yz/od2yz.cpp

Enjoy,

Andreas

PS.Y'z is using DockletPath: but I ignored that and implemented my own icon lookup function that should be similiar to the one OD is using.

Link to post
Originally posted by JonRicoPa@Jan 30 2004, 02:04 PM

Yeah, thats great work!

I could use the messenger docklet for object dock being converted to YzDock - actually I could do this myself if I had the source code for it. :)

Jonathan

I want the messenger docklet!!! :woot: . Please, please, please!! :lol: . Could you send to messenger docklet developer a email to do it? :rolleyes:

Link to post
  • 3 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...