def output(self, line): """ Write a line of LilyPond console output to the logger, replacing file- and line numbers with clickable textedit:// links. """ line = htmlescape(line) line = self._editstr(self._texteditrepl, line, 1) self.log.append(u'<span style="font-family:monospace;">%s</span>' % line, self.color)
def __init__(self, parent): QFrame.__init__(self, parent) parent.addTab(self, _("Hyphenation")) QVBoxLayout(self).setAutoAdd(True) QLabel('<p>%s</p>' % htmlescape (_( "Paths to search for hyphenation dictionaries of OpenOffice.org, " "Scribus, KOffice, etc, one per line. " "If you leave out the starting slash, the prefixes from the " "KDEDIRS environment variable are prepended.")), self) self.pathList = QTextEdit(self)
def __init__(self, parent): QFrame.__init__(self, parent) parent.addTab(self, _("Actions")) QVBoxLayout(self).setAutoAdd(True) QLabel('<p>%s</p>' % htmlescape (_( "Check the actions you want to display (if applicable) after " "LilyPond has successfully compiled your document.")), self) self.actions = [] from lilykde.actions import actions for name, default, title, tooltip in actions: widget = QCheckBox(title, self) QToolTip.add(widget, tooltip) self.actions.append((name, widget, default))
def actions(self, actions, color="blue", bold=True): if actions: self.msg(" - ".join([ '<a href="%s">%s</a>' % (htmlescapeurl(u), htmlescape(m)) for u, m in actions]), color, bold)