PDA

View Full Version : Generic Importer (15 Feb 2006)


nielm
02-07-2006, 04:20 AM
Just added a Generic Importer (http://forums.sage.tv/forums/downloads.php?do=file&id=55) STV to the downloads area...

This is to help STV developers turn exported menus into functioning imports...

Hope you find it useful!

07/2/2006 -- First version

15/2/2006 -- Updated to fix major bugs!

sleonard
02-07-2006, 11:09 AM
You should be on Sage's payroll Nielm!

mightyt
02-07-2006, 12:10 PM
And promoted to Head Mucky Muck !! :D

Amazing .....

deria
02-07-2006, 12:27 PM
You are the man Nielm. I wish something like this had existed when I did my first modules. Learning how to do an import was quite the painful process.

stanger89
02-07-2006, 02:14 PM
I'll have to give this a try :D

I'm at a loss for where to begin to link something :confused:

Help!! ;)

nielm
02-07-2006, 02:30 PM
for two simple examples of linking things, have a look at the imported hook of my ir suggestions import... It links two things:

an imported widget into an existing menu (adding a menu item to Schedule Recordings menu)

an existing widget into an imported menu (the popup for when you select an airing is linked to the airing items in the ir suggestions menus)

you have to find both widget to link and target location by filtering by widget type/name, then call AddWidgetChild to add the link...

stanger89
02-07-2006, 04:47 PM
Just added a Generic Importer (http://forums.sage.tv/forums/downloads.php?do=file&id=55) STV to the downloads area...

This is to help STV developers turn exported menus into functioning imports...

Hope you find it useful!

Yeah, I stubled there about the time you posted.

Man that's ugly :eek:

Oh, the results are here (http://forums.sage.tv/forums/showthread.php?t=15981) if anyone cares.

nielm
02-15-2006, 02:13 AM
Thanks to flachbar some major bugs have been found!

Instead of deleting the extra imported Main Menu, this code deletes the real Main Menu, Screen Saver and Server Connection Lost menus... Oops!

So anyone who tries to use this, should recreate their import with the latest version...

Edit: re-uploaded at the time of this edit...

stanger89
03-04-2006, 05:32 PM
Neilm, I think I found a bug in the "delete existing menus" portion. It only seems to delete the first menu in the list. Looks like it might be a problem with the looping/linking in there (linking out of a loop doesn't seem to work like desired).