예제 #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')
예제 #11
0
 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
파일: equationeditor.py 프로젝트: gdw2/zim
	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)
예제 #19
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)
예제 #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')