Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaid <daid303@gmail.com>2014-02-12 16:02:22 +0400
committerdaid <daid303@gmail.com>2014-02-12 16:02:22 +0400
commitb1877ae1caa6d97e1cf82c95c10725b1d20e0a32 (patch)
treea0ce295a4aebdc497b5714f38aaff643450dc3d6 /plugins
parent0369ad830ed6f684468b383c01551a8ec8f6d610 (diff)
Add PronterfaceUI plugin.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/PronterfaceUI/image.pngbin0 -> 66582 bytes
-rw-r--r--plugins/PronterfaceUI/map.pngbin0 -> 31545 bytes
-rw-r--r--plugins/PronterfaceUI/script.py49
3 files changed, 49 insertions, 0 deletions
diff --git a/plugins/PronterfaceUI/image.png b/plugins/PronterfaceUI/image.png
new file mode 100644
index 0000000000..fc2c9980aa
--- /dev/null
+++ b/plugins/PronterfaceUI/image.png
Binary files differ
diff --git a/plugins/PronterfaceUI/map.png b/plugins/PronterfaceUI/map.png
new file mode 100644
index 0000000000..ae414e0602
--- /dev/null
+++ b/plugins/PronterfaceUI/map.png
Binary files differ
diff --git a/plugins/PronterfaceUI/script.py b/plugins/PronterfaceUI/script.py
new file mode 100644
index 0000000000..22270cfc9e
--- /dev/null
+++ b/plugins/PronterfaceUI/script.py
@@ -0,0 +1,49 @@
+#Name: Pronterface UI
+#Info: Pronterface like UI for Cura
+#Depend: printWindow
+#Type: printwindow
+
+# Printer UI based on the Printrun interface by Kliment.
+# Printrun is GPLv3, so this file, and the used images are GPLv3
+
+setImage('image.png', 'map.png')
+
+addColorCommand(0, 0, 255, sendGCode, "G91; G1 X100 F2000; G90")
+addColorCommand(0, 0, 240, sendGCode, "G91; G1 X10 F2000; G90")
+addColorCommand(0, 0, 220, sendGCode, "G91; G1 X1 F2000; G90")
+addColorCommand(0, 0, 200, sendGCode, "G91; G1 X0.1 F2000; G90")
+addColorCommand(0, 0, 180, sendGCode, "G91; G1 X-0.1 F2000; G90")
+addColorCommand(0, 0, 160, sendGCode, "G91; G1 X-1 F2000; G90")
+addColorCommand(0, 0, 140, sendGCode, "G91; G1 X-10 F2000; G90")
+addColorCommand(0, 0, 120, sendGCode, "G91; G1 X-100 F2000; G90")
+
+addColorCommand(0, 255, 0, sendGCode, "G91; G1 Y100 F2000; G90")
+addColorCommand(0, 240, 0, sendGCode, "G91; G1 Y10 F2000; G90")
+addColorCommand(0, 220, 0, sendGCode, "G91; G1 Y1 F2000; G90")
+addColorCommand(0, 200, 0, sendGCode, "G91; G1 Y0.1 F2000; G90")
+addColorCommand(0, 180, 0, sendGCode, "G91; G1 Y-0.1 F2000; G90")
+addColorCommand(0, 160, 0, sendGCode, "G91; G1 Y-1 F2000; G90")
+addColorCommand(0, 140, 0, sendGCode, "G91; G1 Y-10 F2000; G90")
+addColorCommand(0, 120, 0, sendGCode, "G91; G1 Y-100 F2000; G90")
+
+addColorCommand(255, 0, 0, sendGCode, "G91; G1 Z10 F200; G90")
+addColorCommand(220, 0, 0, sendGCode, "G91; G1 Z1 F200; G90")
+addColorCommand(200, 0, 0, sendGCode, "G91; G1 Z0.1 F200; G90")
+addColorCommand(180, 0, 0, sendGCode, "G91; G1 Z-0.1 F200; G90")
+addColorCommand(160, 0, 0, sendGCode, "G91; G1 Z-1 F200; G90")
+addColorCommand(140, 0, 0, sendGCode, "G91; G1 Z-10 F200; G90")
+
+addColorCommand(255, 255, 0, sendGCode, "G28")
+addColorCommand(240, 255, 0, sendGCode, "G28 X0")
+addColorCommand(220, 255, 0, sendGCode, "G28 Y0")
+addColorCommand(200, 255, 0, sendGCode, "G28 Z0")
+
+addTerminal(255, 0, 255)
+addTemperatureGraph(180, 0, 255)
+addProgressbar(255, 200, 200)
+
+addButton(0, 255, 255, 'Connect', connect)
+addButton(0, 240, 255, 'Print', startPrint)
+addButton(0, 220, 255, 'Pause', pausePrint)
+addButton(0, 200, 255, 'Cancel', cancelPrint)
+addButton(0, 180, 255, 'Error log', showErrorLog)