Fast renamer and create new layer

Hey i would like to have a fast way to rename objects from a listbox.
the listbox should take the information from an Xml file.
Also if you switch the radiobutton the script should take the information for the Layer from an other Xml file.
If you Doubleclick on the name it should rename the objects or if the case layer selected on the radiobutton, the objects should be sended to a new layer or if the layer is already created sended to that layer, if you doubleclick on the name.

I know there is a good script from Klaas Nienhuis, but it is a little bit to coplex for me.

thank you very much :)

rename_and_layer.jpg173.84 KB