[Cura] Make plugin a bit more verbose regarding usage & setup
This commit is contained in:
parent
9ed79adb8d
commit
7820c17d08
2 changed files with 25 additions and 8 deletions
|
|
@ -37,11 +37,10 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
|
|||
|
||||
##~~ TemplatePlugin API
|
||||
|
||||
def get_template_configs(self):
|
||||
from flask.ext.babel import gettext
|
||||
return [
|
||||
dict(type="settings", name=gettext("CuraEngine"))
|
||||
]
|
||||
def get_template_vars(self):
|
||||
return dict(
|
||||
homepage=__plugin_url__
|
||||
)
|
||||
|
||||
##~~ StartupPlugin API
|
||||
|
||||
|
|
@ -413,9 +412,9 @@ def _sanitize_name(name):
|
|||
sanitized_name = sanitized_name.replace(" ", "_")
|
||||
return sanitized_name.lower()
|
||||
|
||||
__plugin_name__ = "CuraEngine"
|
||||
__plugin_name__ = "CuraEngine (<= 15.04)"
|
||||
__plugin_author__ = "Gina Häußge"
|
||||
__plugin_url__ = "https://github.com/foosel/OctoPrint/wiki/Plugin:-Cura"
|
||||
__plugin_description__ = "Adds support for slicing via CuraEngine from within OctoPrint"
|
||||
__plugin_description__ = "Adds support for slicing via CuraEngine versions up to and including version 15.04 from within OctoPrint"
|
||||
__plugin_license__ = "AGPLv3"
|
||||
__plugin_implementation__ = CuraPlugin()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,12 @@
|
|||
<h4>{{ _('General') }}</h4>
|
||||
|
||||
<p>{% trans %}
|
||||
Specify the path to the CuraEngine binary. Note that only
|
||||
<strong>versions up to and including 15.04</strong> are supported.
|
||||
CuraEngine version 15.06 or newer is <strong>not</strong>
|
||||
compatible with this plugin.
|
||||
{% endtrans %}</p>
|
||||
|
||||
<form class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="settings-cura-path">{{ _('Path to CuraEngine') }}</label>
|
||||
|
|
@ -10,7 +17,7 @@
|
|||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" data-bind="checked: settings.plugins.cura.debug_logging"> {{ _('Log the output of CuraEngine to plugin_cura_engine.log') }}
|
||||
<input type="checkbox" data-bind="checked: settings.plugins.cura.debug_logging"> {{ _('Log the output of CuraEngine to <code>plugin_cura_engine.log</code>') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -53,6 +60,10 @@
|
|||
|
||||
<button class="btn pull-right" data-bind="click: function() { $root.showImportProfileDialog() }">{{ _('Import Profile...') }}</button>
|
||||
|
||||
<div style="clear: both">
|
||||
<small>{% trans %}For more information on configuration and usage please <a href="{{ plugin_cura_homepage }}" target="_blank">see the Plugin's homepage</a>.{% endtrans %}</small>
|
||||
</div>
|
||||
|
||||
<div id="settings_plugin_cura_import" class="modal hide fade">
|
||||
<div class="modal-header">
|
||||
<a href="#" class="close" data-dismiss="modal" aria-hidden="true">×</a>
|
||||
|
|
@ -98,6 +109,13 @@
|
|||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<small>{% trans %}
|
||||
You can import your existing profile <code>.ini</code> files from Cura (version up to and
|
||||
including 15.04) here. Please be aware that neither the <code>.json</code> profile format
|
||||
from Cura versions starting with 15.06 is supported, nor are the custom Cura profile formats
|
||||
that third party tools like e.g. Repetier create.
|
||||
{% endtrans %}</small>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn" data-dismiss="modal" aria-hidden="true">{{ _('Abort') }}</button>
|
||||
|
|
|
|||
Loading…
Reference in a new issue