mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 09:17:56 +01:00
Add license header to source files.
This commit is contained in:
parent
744862b6a1
commit
2d8c385e02
@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
var grandTour;
|
var grandTour;
|
||||||
function GrandTour(_name) {
|
function GrandTour(_name) {
|
||||||
@ -366,4 +373,4 @@ function HelpTours() {
|
|||||||
message.hide();
|
message.hide();
|
||||||
printer.checkStatus();
|
printer.checkStatus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
var keyboardShortcutsEnabled = true;
|
var keyboardShortcutsEnabled = true;
|
||||||
|
|
||||||
function initKeyboard() {
|
function initKeyboard() {
|
||||||
@ -31,4 +39,4 @@ function initKeyboard() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
function Message() {
|
function Message() {
|
||||||
|
|
||||||
Message.ERROR = "error";
|
Message.ERROR = "error";
|
||||||
@ -49,4 +57,4 @@ function Message() {
|
|||||||
this.hide = function(complete) {
|
this.hide = function(complete) {
|
||||||
this.$element.fadeOut(200,complete);
|
this.$element.fadeOut(200,complete);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
/* not using this now
|
/* not using this now
|
||||||
var $printProgressContainer = $("#printProgressContainer");
|
var $printProgressContainer = $("#printProgressContainer");
|
||||||
var $progressbar = $("#progressbar");
|
var $progressbar = $("#progressbar");
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
function PrinterPanel() {
|
function PrinterPanel() {
|
||||||
this.wifiboxURL;
|
this.wifiboxURL;
|
||||||
this.element;
|
this.element;
|
||||||
@ -73,4 +81,4 @@ function PrinterPanel() {
|
|||||||
console.log("PrinterPanel:loadPrinterSettings: failed");
|
console.log("PrinterPanel:loadPrinterSettings: failed");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
function Progressbar() {
|
function Progressbar() {
|
||||||
this.currProgress = 0; // default val
|
this.currProgress = 0; // default val
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
//these settings are defined in the firmware (conf_defaults.lua) and will be initialized in loadSettings()
|
//these settings are defined in the firmware (conf_defaults.lua) and will be initialized in loadSettings()
|
||||||
var settings = { }
|
var settings = { }
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
function drawCircle(x0,y0,r,res) {
|
function drawCircle(x0,y0,r,res) {
|
||||||
if (res==undefined) res = 50; //circle resolution
|
if (res==undefined) res = 50; //circle resolution
|
||||||
beginShape();
|
beginShape();
|
||||||
@ -31,4 +39,4 @@ function shapeLineTo(x,y) {
|
|||||||
|
|
||||||
function endShape() {
|
function endShape() {
|
||||||
renderToImageDataPreview();
|
renderToImageDataPreview();
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
//SVG validator: http://validator.w3.org/
|
//SVG validator: http://validator.w3.org/
|
||||||
//SVG viewer: http://svg-edit.googlecode.com/svn/branches/2.6/editor/svg-editor.html
|
//SVG viewer: http://svg-edit.googlecode.com/svn/branches/2.6/editor/svg-editor.html
|
||||||
function saveToSvg() {
|
function saveToSvg() {
|
||||||
@ -129,4 +137,4 @@ function loadFromSvg(svgData) {
|
|||||||
renderToImageDataPreview();
|
renderToImageDataPreview();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
// TODO assess if this var is still necessary
|
// TODO assess if this var is still necessary
|
||||||
var $displayThermometer = $("#thermometerContainer");
|
var $displayThermometer = $("#thermometerContainer");
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
function UpdatePanel() {
|
function UpdatePanel() {
|
||||||
this.wifiboxURL;
|
this.wifiboxURL;
|
||||||
this.element;
|
this.element;
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
var btnMoveUpInterval;
|
var btnMoveUpInterval;
|
||||||
var btnMoveDownInterval;
|
var btnMoveDownInterval;
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
/* * * * * * * * * *
|
/* * * * * * * * * *
|
||||||
*
|
*
|
||||||
* VARS
|
* VARS
|
||||||
|
10
js_src/d3dServerInterfacing.js
vendored
10
js_src/d3dServerInterfacing.js
vendored
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
function setTemperature(callback) {
|
function setTemperature(callback) {
|
||||||
|
|
||||||
if (callback != undefined) callback();
|
if (callback != undefined) callback();
|
||||||
@ -7,4 +15,4 @@ function setTemperature(callback) {
|
|||||||
|
|
||||||
if (callback != undefined) callback();
|
if (callback != undefined) callback();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
var MAX_POINTS_TO_PRINT = 200000
|
var MAX_POINTS_TO_PRINT = 200000
|
||||||
var gcode = [];
|
var gcode = [];
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
// TODO refactor this stuff, there's much to wipe
|
// TODO refactor this stuff, there's much to wipe
|
||||||
var drawAreaContainerMinHeight = 300;
|
var drawAreaContainerMinHeight = 300;
|
||||||
var drawAreaContainerMaxHeight = 450;
|
var drawAreaContainerMaxHeight = 450;
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
var debugMode = false; // debug mode
|
var debugMode = false; // debug mode
|
||||||
var sendPrintCommands = true; // if Doodle3d should send print commands to the 3d printer
|
var sendPrintCommands = true; // if Doodle3d should send print commands to the 3d printer
|
||||||
var communicateWithWifibox = true; // if Doodle3d should try interfacing with the wifibox (in case one is not connected)
|
var communicateWithWifibox = true; // if Doodle3d should try interfacing with the wifibox (in case one is not connected)
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
//*
|
//*
|
||||||
var $preview;
|
var $preview;
|
||||||
var preview;
|
var preview;
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
var sidebarLeft;
|
var sidebarLeft;
|
||||||
var sidebarRight;
|
var sidebarRight;
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
var currentSketchId = 0;
|
var currentSketchId = 0;
|
||||||
var numSavedSketches = 0;
|
var numSavedSketches = 0;
|
||||||
|
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
// http://stackoverflow.com/questions/1403888/get-url-parameter-with-jquery
|
// http://stackoverflow.com/questions/1403888/get-url-parameter-with-jquery
|
||||||
function getURLParameter(name) {
|
function getURLParameter(name) {
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the Doodle3D project (http://doodle3d.com).
|
||||||
|
*
|
||||||
|
* Copyright (c) 2013, Doodle3D
|
||||||
|
* This software is licensed under the terms of the GNU GPL v2 or later.
|
||||||
|
* See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details.
|
||||||
|
*/
|
||||||
|
|
||||||
var VERTICALSHAPE;
|
var VERTICALSHAPE;
|
||||||
var verticalShapes = {
|
var verticalShapes = {
|
||||||
"NONE": 'none',
|
"NONE": 'none',
|
||||||
@ -38,4 +46,4 @@ function initVerticalShapes() {
|
|||||||
|
|
||||||
function resetVerticalShapes() {
|
function resetVerticalShapes() {
|
||||||
VERTICALSHAPE = verticalShapes.NONE;
|
VERTICALSHAPE = verticalShapes.NONE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user