+ title = DVDTitle.DVDTitle()
+ title.addService(service)
+ self.titles.append(title)
+ return title
+
+ def saveProject(self, path):
+ import xml.dom.minidom
+ from Tools.XMLTools import elementsWithTag, mergeText, stringToXML
+ list = []
+ list.append('<?xml version="1.0" encoding="utf-8" ?>\n')
+ list.append('<DreamDVDBurnerProject>\n')
+ list.append('\t<config')
+ list.append(' name="' + self.name + '"')
+ list.append(' vmgm="' + self.vmgm + '"')
+ list.append(' />\n')
+ list.append('\t<menu')
+ list.append('\tbg="' + self.menubg + '"\n')
+ list.append('\t\taudio="' + self.menuaudio + '"\n')
+ list.append('\t\tcolor_button="' + str(self.color_button) + '"\n')
+ list.append('\t\tcolor_highlight="' + str(self.color_highlight) + '"\n')
+ list.append('\t\tcolor_headline="' + str(self.color_headline) + '"\n')
+ list.append('\t\tfont_face="' + self.font_face + '"\n')
+ list.append('\t\tfont_size="' + str(self.font_size) + '"\n')
+ list.append('\t\tspace_left="' + str(self.space_left) + '"\n')
+ list.append('\t\tspace_top="' + str(self.space_top) + '"\n')
+ list.append('\t\tspace_rows="' + str(self.space_rows) + '"')
+ list.append(' />\n')
+ list.append('\t<titles>\n')
+ for title in self.titles:
+ list.append('\t\t<path>')
+ list.append(stringToXML(title.source.getPath()))
+ list.append('</path>\n')
+ list.append('\t</titles>\n')
+ list.append('</DreamDVDBurnerProject>\n')