Example #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)
Example #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']
Example #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']
Example #4
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']
Example #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']
Example #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
Example #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
Example #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)
Example #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
Example #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')
Example #12
0
 def __init__(self, plugin):
     ImageGeneratorClass.__init__(self, plugin)
     self.template = get_template('plugins', 'equationeditor.tex')
     self.texfile = TmpFile(self.scriptname)
Example #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
Example #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)
Example #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)
Example #16
0
	def __init__(self, plugin):
		ImageGeneratorClass.__init__(self, plugin)
		self.template = get_template('plugins', 'gnu_r_editor.r')
		self.plotscriptfile = TmpFile(self.scriptname)
Example #17
0
	def __init__(self, plugin):
		ImageGeneratorClass.__init__(self, plugin)
		self.template = get_template('plugins', 'equationeditor.tex')
		self.texfile = TmpFile(self.scriptname)
Example #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)
Example #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)
Example #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
Example #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')