From d89319c2a57d0aecaf96a3d91f58f9585e00fc25 Mon Sep 17 00:00:00 2001 From: Javierma87 Date: Wed, 17 Feb 2016 21:04:44 +0000 Subject: [PATCH] Completed requirementes to add Slic3r as a plugin --- docs-tfg/req_sol_slic3r_integration.txt | 16 ++++++++++++---- src/octoprint/static/js/app/viewmodels/files.js | 12 +----------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/docs-tfg/req_sol_slic3r_integration.txt b/docs-tfg/req_sol_slic3r_integration.txt index b674252ca..0ed4718c2 100644 --- a/docs-tfg/req_sol_slic3r_integration.txt +++ b/docs-tfg/req_sol_slic3r_integration.txt @@ -1,9 +1,17 @@ -Requirements to integrate Slic3r: - -Integration of Slic3r as a plugin - -Add Slic3r to plugins menu under settings - -When Slic3r is selected, add: +Requirements to integrate Slic3r in order to achieve slicing using the terminal: + + -Integration of Slic3r as a plugin, so user can select whether to install it or not + + -Add Slic3r to plugins menu under settings + + -If slic3r is selected to be installed, install automatically unless it already exists. If not possible, tell the user how to do it. + + -When Slic3r is installed and in case it is selected, in the settings windows should appear: -A box to introduce the path -A box to introduce each of the related profile files: -Print settings -Filament settings -Printer settings + -A checkbox to ask the user if he wishes to maintain the stl file after slicing or not + + -When slicing one or multiple objects, delete stl file if user chose that option in settings diff --git a/src/octoprint/static/js/app/viewmodels/files.js b/src/octoprint/static/js/app/viewmodels/files.js index 894f96ec0..5cf713c9f 100644 --- a/src/octoprint/static/js/app/viewmodels/files.js +++ b/src/octoprint/static/js/app/viewmodels/files.js @@ -513,8 +513,6 @@ $(function() { if (!self.uploadSdButton.length) { self.uploadSdButton = undefined; } - -<<<<<<< HEAD if (_.endsWith(filename.toLowerCase(), ".stl")) { self.slicing.show(location, filename); } @@ -523,21 +521,13 @@ $(function() { $("#gcode_upload_progress .bar").css("width", "0%"); $("#gcode_upload_progress").removeClass("progress-striped").removeClass("active"); $("#gcode_upload_progress .bar").text(""); - /*var cadena=""; - for(var i in data) - { - cadena+=" "+i+"\t"; -};*/ - } - } -======= + //} self.uploadProgress = $("#gcode_upload_progress"); self.uploadProgressBar = $(".bar", self.uploadProgress); self.localTarget = CONFIG_SD_SUPPORT ? $("#drop_locally") : $("#drop"); self.sdTarget = $("#drop_sd"); ->>>>>>> 6945394fc25de4886dea6a77b11b256b62abda72 function evaluateDropzones() { var enableLocal = self.loginState.isUser();