示例#1
0
	def __init__(self, plugin, attachment_folder=None):
		ImageGeneratorClass.__init__(self, plugin)
		file = data_file('templates/plugins/gnuploteditor.gnu')
		assert file, 'BUG: could not find templates/plugins/gnuploteditor.gnu'
		self.template = GenericTemplate(file.readlines(), name=file)
		self.attachment_folder = attachment_folder
		self.plotscriptfile = TmpFile(self.scriptname)
示例#2
0
	def __init__(self, plugin):
		ImageGeneratorClass.__init__(self, plugin)
		self.template = get_template('plugins', 'scoreeditor.ly')
		self.scorefile = TmpFile(self.scriptname)
		self.cur_lilypond_version = _get_lilypond_version()
		self.include_header = plugin.preferences['include_header']
		self.include_footer = plugin.preferences['include_footer']
示例#3
0
	def __init__(self, plugin):
		ImageGeneratorClass.__init__(self, plugin)
		self.template = get_template('plugins', 'scoreeditor.ly')
		self.scorefile = TmpFile(self.scriptname)
		self.cur_lilypond_version = _get_lilypond_version()
		self.include_header = plugin.preferences['include_header']
		self.include_footer = plugin.preferences['include_footer']
示例#4
0
文件: scoreeditor.py 项目: gdw2/zim
	def __init__(self, plugin):
		ImageGeneratorClass.__init__(self, plugin)
		file = data_file('templates/plugins/scoreeditor.ly')
		assert file, 'BUG: could not find templates/plugins/scoreeditor.ly'
		self.template = GenericTemplate(file.readlines(), name=file)
		self.scorefile = TmpFile(self.scriptname)
		self.cur_lilypond_version = _get_lilypond_version()
		self.include_header = plugin.preferences['include_header']
		self.include_footer = plugin.preferences['include_footer']
示例#5
0
 def __init__(self, plugin):
     ImageGeneratorClass.__init__(self, plugin)
     file = data_file('templates/plugins/scoreeditor.ly')
     assert file, 'BUG: could not find templates/plugins/scoreeditor.ly'
     self.template = GenericTemplate(file.readlines(), name=file)
     self.scorefile = TmpFile(self.scriptname)
     self.cur_lilypond_version = _get_lilypond_version()
     self.include_header = plugin.preferences['include_header']
     self.include_footer = plugin.preferences['include_footer']
示例#6
0
	def __init__(self, plugin):
		ImageGeneratorClass.__init__(self, plugin)
		self.diagfile = TmpFile(self.scriptname)
		self.diagfile.touch()
		self.pngfile = File(self.diagfile.path[:-5] + '.png') # len('.diag') == 5
示例#7
0
 def __init__(self, plugin, notebook, page):
     ImageGeneratorClass.__init__(self, plugin, notebook, page)
     self.dotfile = TmpFile('umldiagram.puml')
     self.dotfile.touch()
     self.pngfile = File(self.dotfile.path[:-5] +
                         '.png')  # len('.puml') == 5
示例#8
0
 def __init__(self, plugin):
     ImageGeneratorClass.__init__(self, plugin)
     file = data_file('templates/plugins/equationeditor.tex')
     assert file, 'BUG: could not find templates/plugins/equationeditor.tex'
     self.template = GenericTemplate(file.readlines(), name=file)
     self.texfile = TmpFile(self.scriptname)
示例#9
0
 def __init__(self, plugin):
     ImageGeneratorClass.__init__(self, plugin)
     self.dotfile = TmpFile(self.scriptname)
     self.dotfile.touch()
     self.pngfile = File(self.dotfile.path[:-4] +
                         '.png')  # len('.dot') == 4
示例#10
0
 def __init__(self, plugin, notebook, page):
     ImageGeneratorClass.__init__(self, plugin, notebook, page)
     self.template = get_template('plugins', 'gnu_r_editor.r')
     self.plotscriptfile = TmpFile('gnu_r_plot.r')
 def __init__(self, plugin, notebook, page):
     ImageGeneratorClass.__init__(self, plugin, notebook, page)
     self.template = get_template('plugins', 'equationeditor.tex')
     self.texfile = TmpFile('equation.tex')
示例#12
0
 def __init__(self, plugin):
     ImageGeneratorClass.__init__(self, plugin)
     self.template = get_template('plugins', 'equationeditor.tex')
     self.texfile = TmpFile(self.scriptname)
示例#13
0
 def __init__(self, plugin, notebook, page):
     ImageGeneratorClass.__init__(self, plugin, notebook, page)
     self.dotfile = TmpFile('plantuml.pu')
     self.dotfile.touch()
     self.pngfile = File(self.dotfile.path[:-3] + '.png')  # len('.pu') == 3
示例#14
0
	def __init__(self, plugin):
		ImageGeneratorClass.__init__(self, plugin)
		file = data_file('templates/plugins/equationeditor.tex')
		assert file, 'BUG: could not find templates/plugins/equationeditor.tex'
		self.template = GenericTemplate(file.readlines(), name=file)
		self.texfile = TmpFile(self.scriptname)
示例#15
0
 def __init__(self, plugin, notebook, page):
     ImageGeneratorClass.__init__(self, plugin, notebook, page)
     self.texfile = TmpFile('latex.tex')
     print('[PLUGINS:INSERT LATEX] text file: %s' % self.texfile)
示例#16
0
	def __init__(self, plugin):
		ImageGeneratorClass.__init__(self, plugin)
		self.template = get_template('plugins', 'gnu_r_editor.r')
		self.plotscriptfile = TmpFile(self.scriptname)
示例#17
0
	def __init__(self, plugin):
		ImageGeneratorClass.__init__(self, plugin)
		self.template = get_template('plugins', 'equationeditor.tex')
		self.texfile = TmpFile(self.scriptname)
示例#18
0
	def __init__(self, plugin):
		ImageGeneratorClass.__init__(self, plugin)
		self.template = get_template('plugins', 'gnu_r_editor.r')
		self.plotscriptfile = TmpFile(self.scriptname)
	def __init__(self, plugin, attachment_folder=None):
		ImageGeneratorClass.__init__(self, plugin)
		self.template = get_template('plugins', 'gnuploteditor.gnu')
		self.attachment_folder = attachment_folder
		self.plotscriptfile = TmpFile(self.scriptname)
示例#20
0
 def __init__(self, plugin, attachment_folder=None):
     ImageGeneratorClass.__init__(self, plugin)
     self.template = get_template('plugins', 'gnuploteditor.gnu')
     self.attachment_folder = attachment_folder
     self.plotscriptfile = TmpFile(self.scriptname)
示例#21
0
 def __init__(self, plugin):
     ImageGeneratorClass.__init__(self, plugin)
     self.dotfile = TmpFile(self.scriptname)
     self.dotfile.touch()
     self.pngfile = File(self.dotfile.path[:-4] + ".png")  # len('.dot') == 4
示例#22
0
 def __init__(self, plugin, notebook, page):
     ImageGeneratorClass.__init__(self, plugin, notebook, page)
     self.template = get_template('plugins', 'gnuploteditor.gnu')
     self.attachment_folder = notebook.get_attachments_dir(page)
     self.plotscriptfile = TmpFile('gnuplot.gnu')