aboutsummaryrefslogtreecommitdiffstats
path: root/SPPC.dcproj/project/widget.wdgt/Parts
diff options
context:
space:
mode:
Diffstat (limited to 'SPPC.dcproj/project/widget.wdgt/Parts')
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/GlassButton.js33
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/Images/back.pngbin0 -> 195374 bytes
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/Images/front.pngbin0 -> 40584 bytes
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_left.pngbin0 -> 277 bytes
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_middle.pngbin0 -> 240 bytes
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_right.pngbin0 -> 494 bytes
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/InfoButton.js28
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/PopupButton.js162
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/ScrollArea.js131
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/datasources.js9
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/license.txt10
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/parts.js28
-rw-r--r--SPPC.dcproj/project/widget.wdgt/Parts/setup.js22
13 files changed, 423 insertions, 0 deletions
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/GlassButton.js b/SPPC.dcproj/project/widget.wdgt/Parts/GlassButton.js
new file mode 100644
index 0000000..0e29f53
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/GlassButton.js
@@ -0,0 +1,33 @@
+/*
+ This file was generated by Dashcode and is covered by the
+ license.txt included in the project. You may edit this file,
+ however it is recommended to first turn off the Dashcode
+ code generator otherwise the changes will be lost.
+ */
+
+function CreateGlassButton(elementOrID, spec)
+{
+ var buttonElement = elementOrID;
+ if (elementOrID.nodeType != Node.ELEMENT_NODE) {
+ buttonElement = document.getElementById(elementOrID);
+ }
+
+ if (!buttonElement.loaded) {
+ buttonElement.loaded = true;
+ while (buttonElement.firstChild) {
+ buttonElement.removeChild(buttonElement.firstChild);
+ }
+
+ var text = spec.text || '';
+ if (window.dashcode && dashcode.getLocalizedString) text = dashcode.getLocalizedString(text);
+
+ var onclick = spec.onclick || null;
+ try { onclick = eval(onclick); } catch (e) { onclick = null; }
+
+ buttonElement.object = new AppleGlassButton(buttonElement, text, onclick);
+ buttonElement.object.element = buttonElement;
+ buttonElement.object.setEnabled(!spec.disabled);
+ }
+
+ return buttonElement.object;
+}
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/Images/back.png b/SPPC.dcproj/project/widget.wdgt/Parts/Images/back.png
new file mode 100644
index 0000000..406a48a
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/Images/back.png
Binary files differ
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/Images/front.png b/SPPC.dcproj/project/widget.wdgt/Parts/Images/front.png
new file mode 100644
index 0000000..09dd865
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/Images/front.png
Binary files differ
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_left.png b/SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_left.png
new file mode 100644
index 0000000..912492a
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_left.png
Binary files differ
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_middle.png b/SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_middle.png
new file mode 100644
index 0000000..4e1e8e1
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_middle.png
Binary files differ
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_right.png b/SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_right.png
new file mode 100644
index 0000000..1406de2
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/Images/popup_right.png
Binary files differ
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/InfoButton.js b/SPPC.dcproj/project/widget.wdgt/Parts/InfoButton.js
new file mode 100644
index 0000000..b30c730
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/InfoButton.js
@@ -0,0 +1,28 @@
+/*
+ This file was generated by Dashcode and is covered by the
+ license.txt included in the project. You may edit this file,
+ however it is recommended to first turn off the Dashcode
+ code generator otherwise the changes will be lost.
+ */
+
+function CreateInfoButton(elementOrID, spec)
+{
+ var flipElement = elementOrID;
+ if (elementOrID.nodeType != Node.ELEMENT_NODE) {
+ flipElement = document.getElementById(elementOrID);
+ }
+ if (!flipElement.loaded) {
+ flipElement.loaded = true;
+ while (flipElement.firstChild) {
+ flipElement.removeChild(flipElement.firstChild);
+ }
+
+ var onclick = spec.onclick || null;
+ try { onclick = eval(onclick); } catch (e) { onclick = null; }
+
+ flipElement.object = new AppleInfoButton(flipElement, document.getElementById(spec.frontID), spec.foregroundStyle, spec.backgroundStyle, onclick);
+ flipElement.object.element = flipElement;
+ }
+
+ return flipElement.object;
+}
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/PopupButton.js b/SPPC.dcproj/project/widget.wdgt/Parts/PopupButton.js
new file mode 100644
index 0000000..d67d2a5
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/PopupButton.js
@@ -0,0 +1,162 @@
+/*
+ This file was generated by Dashcode and is covered by the
+ license.txt included in the project. You may edit this file,
+ however it is recommended to first turn off the Dashcode
+ code generator otherwise the changes will be lost.
+ */
+
+// Note: Properties and methods beginning with underbar ("_") are considered private and subject to change in future Dashcode releases.
+
+function CreatePopupButton(elementOrID, spec)
+{
+ var popupElement = elementOrID;
+ if (elementOrID.nodeType != Node.ELEMENT_NODE) {
+ popupElement = document.getElementById(elementOrID);
+ }
+ if (!popupElement.loaded) {
+ popupElement.loaded = true;
+ popupElement.object = new PopupButton(popupElement, spec);
+ return popupElement.object;
+ }
+}
+
+
+function PopupButton(popupElement, spec)
+{
+ var leftImageWidth = spec.leftImageWidth || 0;
+ var rightImageWidth = spec.rightImageWidth || 0;
+ // when cloning template, get size from original
+ var styleElement = popupElement;
+ if (spec.originalID) {
+ styleElement = document.getElementById(spec.originalID);
+ }
+ var imagePrefix = "Parts/Images/" + styleElement.id + "_";
+ var width = dashcode.getElementWidth(styleElement) || 20;
+ var height = dashcode.getElementHeight(styleElement) || 20;
+ var _self = this;
+
+ this.element = popupElement;
+
+ // setup the button
+ while (popupElement.firstChild) {
+ popupElement.removeChild(popupElement.firstChild);
+ }
+ this.button = new AppleButton(popupElement, '', height, imagePrefix + "left.png", imagePrefix + "left_clicked.png", leftImageWidth, imagePrefix + "middle.png", imagePrefix + "middle_clicked.png", imagePrefix + "right.png", imagePrefix + "right_clicked.png", rightImageWidth, null);
+ this.button._container.childNodes[2].style.width = rightImageWidth + "px";
+ this.button.textElement.style.width = (width - (leftImageWidth + rightImageWidth)) + "px";
+ this.button.textElement.style.textIndent = Math.max(10-leftImageWidth, 0) + "px";
+ var eventsDiv = document.createElement("div");
+ eventsDiv.setAttribute("style", "position: absolute; left: 0; top: 0; width: 100%; height: 100%");
+ popupElement.appendChild(eventsDiv);
+ var clickHandler = function(event) {
+ _self.select.dispatchEvent(event);
+ event.stopPropagation();
+ event.preventDefault();
+ }
+ eventsDiv.addEventListener("mousedown", clickHandler, true);
+
+
+ // setup the select
+ this.select = document.createElement("select");
+ var onchange = spec.onchange || null;
+ try { onchange = eval(onchange); } catch (e) { onchange = null; }
+ this.onchange = onchange;
+ if (spec.name) {
+ this.select.name = spec.name;
+ }
+ this._setOptions(spec.options);
+ this.select.setAttribute("style", "position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0;");
+ popupElement.appendChild(this.select);
+ this.select.style.top = Math.max((height - dashcode.getElementHeight(this.select)) / 2, 0) + "px";
+
+ // onchange event handler
+ this.select.onchange = function (event) {
+ var selectedOption = this.options[this.selectedIndex];
+ if (selectedOption) {
+ _self.button.textElement.innerText = selectedOption.text;
+ // if it is a real event, forward it to the custom handler
+ if (_self.onchange && event) {
+ _self.onchange(event);
+ }
+ }
+ };
+
+ this.setEnabled(!spec.disabled);
+}
+
+PopupButton.prototype.getValue = function()
+{
+ return this.select.value;
+}
+
+PopupButton.prototype.getSelectedIndex = function()
+{
+ return this.select.selectedIndex;
+}
+
+PopupButton.prototype.setSelectedIndex = function(index)
+{
+ this.select.selectedIndex = index;
+ this.select.onchange(null);
+}
+
+PopupButton.prototype.getName = function()
+{
+ return this.select.name;
+}
+
+PopupButton.prototype.setName = function(name)
+{
+ this.select.name = name;
+}
+
+PopupButton.prototype.setEnabled = function(enabled)
+{
+ this.button.setEnabled(enabled);
+ this.select.disabled=!enabled;
+}
+
+PopupButton.prototype.setOptions = function(options, shouldLocalize)
+{
+ if (!options || !(options instanceof Array)) options = [];
+ var text = '';
+
+ this.select.options.length = 0;
+ for (var i = 0; i < options.length; i++) {
+ var defaultSelected = false;
+ var optionLabel = '';
+ var optionValue = null;
+ if ((options[i]) instanceof Array) {
+ if (options[i].length > 0) {
+ optionLabel = options[i][0];
+ if (options[i].length > 1) {
+ optionValue = options[i][1];
+ if (options[i].length > 2 && options[i][2]) {
+ defaultSelected = true;
+ }
+ }
+ }
+ }
+ else {
+ optionLabel = options[i];
+ }
+
+ if (shouldLocalize) {
+ optionLabel = dashcode.getLocalizedString(optionLabel);
+ }
+ if (i==0 || defaultSelected) {
+ text = optionLabel;
+ }
+ if (!optionValue || optionValue.length == 0) {
+ optionValue = optionLabel;
+ }
+
+ this.select.options[this.select.length] = new Option(optionLabel, optionValue, defaultSelected);
+ }
+ this.button.textElement.innerText = text;
+}
+
+PopupButton.prototype._setOptions = function(options)
+{
+ this.setOptions(options, true);
+}
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/ScrollArea.js b/SPPC.dcproj/project/widget.wdgt/Parts/ScrollArea.js
new file mode 100644
index 0000000..2131e21
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/ScrollArea.js
@@ -0,0 +1,131 @@
+/*
+ This file was generated by Dashcode and is covered by the
+ license.txt included in the project. You may edit this file,
+ however it is recommended to first turn off the Dashcode
+ code generator otherwise the changes will be lost.
+ */
+
+function CreateScrollArea(elementOrID, spec)
+{
+ var scrollAreaElement = elementOrID;
+ if (elementOrID.nodeType != Node.ELEMENT_NODE) {
+ scrollAreaElement = document.getElementById(elementOrID);
+ }
+
+ if (!scrollAreaElement.loaded) {
+ var element = null;
+ var style = null;
+ var contentElement = null;
+ var verticalScrollbar = null;
+ var horizontalScrollbar = null;
+ var hasVerticalScrollbar = spec.hasVerticalScrollbar == undefined ? false : spec.hasVerticalScrollbar;
+ var hasHorizontalScrollbar = spec.hasHorizontalScrollbar == undefined ? false : spec.hasHorizontalScrollbar;
+ var autoHideScrollbars = spec.autoHideScrollbars == undefined ? false : spec.autoHideScrollbars;
+ var leftMargin = spec.leftMargin == undefined ? 0 : spec.leftMargin;
+ var rightMargin = spec.rightMargin == undefined ? 0 : spec.rightMargin;
+ var topMargin = spec.topMargin == undefined ? 0 : spec.topMargin;
+ var bottomMargin = spec.bottomMargin == undefined ? 0 : spec.bottomMargin;
+ var scrollbarMargin = spec.scrollbarMargin == undefined ? 0 : spec.scrollbarMargin;;
+ var leftScrollbarMargin = leftMargin + scrollbarMargin;
+ var rightScrollbarMargin = rightMargin + scrollbarMargin;
+ var topScrollbarMargin = topMargin + scrollbarMargin;
+ var bottomScrollbarMargin = bottomMargin + scrollbarMargin;
+ var spacing = spec.spacing == undefined ? 0 : spec.spacing;
+ var scrollbarSize = spec.scrollbarDivSize == undefined ? 0 : spec.scrollbarDivSize;;
+
+ // Associate or create the content area element
+ var contentElement = scrollAreaElement.children[0] || document.createElement("div");
+
+ // Remove all other child elements
+ while (scrollAreaElement.children.length > 1)
+ scrollAreaElement.removeChild(scrollAreaElement.lastChild);
+
+ style = contentElement.style;
+ style.position = "absolute";
+ style.left = leftMargin + "px";
+ style.top = topMargin + "px";
+
+ if (hasVerticalScrollbar && hasHorizontalScrollbar) {
+ style.right = rightMargin + scrollbarSize + spacing + "px";
+ style.bottom = bottomMargin + scrollbarSize + spacing + "px";
+ } else if (hasVerticalScrollbar) {
+ style.right = rightMargin + scrollbarSize + spacing + "px";
+ style.bottom = bottomMargin + "px";
+ } else if (hasHorizontalScrollbar) {
+ style.right = rightMargin + "px";
+ style.bottom = bottomMargin + scrollbarSize + spacing + "px";
+ } else {
+ style.right = rightMargin + "px";
+ style.bottom = bottomMargin + "px";
+ }
+ scrollAreaElement.appendChild(contentElement);
+ scrollAreaElement.contentElement = contentElement;
+ scrollAreaElement.content = contentElement;
+
+ // Create the vertical scroll bar
+ if (hasVerticalScrollbar) {
+ element = document.createElement("div");
+ element.className = "apple-no-children apple-remove apple-hidden";
+ style = element.style;
+ style.position = "absolute";
+ style.width = scrollbarSize + "px";
+ style.height = "auto";
+ style.right = rightMargin + "px";
+ style.top = topScrollbarMargin + "px";
+ style.bottom = hasHorizontalScrollbar ? bottomScrollbarMargin + scrollbarSize + "px" : bottomScrollbarMargin + "px";
+ style.appleDashboardRegion = "none";
+ scrollAreaElement.appendChild(element);
+ verticalScrollbar = new AppleVerticalScrollbar(element);
+ scrollAreaElement.verticalScrollbarElement = element;
+ }
+
+ // Create the horizontal scroll bar
+ if (hasHorizontalScrollbar) {
+ element = document.createElement("div");
+ element.className = "apple-no-children apple-remove apple-hidden";
+ style = element.style;
+ style.position = "absolute";
+ style.width = "auto";
+ style.height = scrollbarSize + "px";
+ style.left = leftScrollbarMargin + "px";
+ style.right = hasVerticalScrollbar ? rightScrollbarMargin + scrollbarSize + "px" : rightScrollbarMargin + "px";
+ style.bottom = bottomMargin + "px";
+ style.appleDashboardRegion = "none";
+ scrollAreaElement.appendChild(element);
+ horizontalScrollbar = new AppleHorizontalScrollbar(element);
+ scrollAreaElement.horizontalScrollbarElement = element;
+ }
+
+ // Create the scroll area
+ if (hasVerticalScrollbar && hasHorizontalScrollbar) {
+ scrollAreaElement.object = new AppleScrollArea(contentElement, verticalScrollbar, horizontalScrollbar);
+ } else if (hasVerticalScrollbar) {
+ scrollAreaElement.object = new AppleScrollArea(contentElement, verticalScrollbar);
+ } else if (hasHorizontalScrollbar) {
+ scrollAreaElement.object = new AppleScrollArea(contentElement, horizontalScrollbar);
+ } else {
+ scrollAreaElement.object = new AppleScrollArea(contentElement);
+ }
+ scrollAreaElement.object.element = scrollAreaElement;
+
+ // Adjust the auto hide setting
+ if (verticalScrollbar) {
+ verticalScrollbar.setAutohide(autoHideScrollbars);
+ }
+ if (horizontalScrollbar) {
+ horizontalScrollbar.setAutohide(autoHideScrollbars);
+ }
+
+ scrollAreaElement.object.contentElement = contentElement;
+ scrollAreaElement.object.content = contentElement;
+ if (spec.originalID) {
+ // when cloning template, refresh shortly after initialized
+ var self = scrollAreaElement;
+ window.setTimeout(function() {self.object.refresh();}, 0);
+ } else {
+ scrollAreaElement.object.refresh();
+ }
+ }
+
+ return scrollAreaElement.object;
+}
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/datasources.js b/SPPC.dcproj/project/widget.wdgt/Parts/datasources.js
new file mode 100644
index 0000000..4e2feb7
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/datasources.js
@@ -0,0 +1,9 @@
+/*
+ This file was generated by Dashcode and is covered by the
+ license.txt included in the project. You may edit this file,
+ however it is recommended to first turn off the Dashcode
+ code generator otherwise the changes will be lost.
+ */
+var dashcodeDataSources = {
+ "dataSource": { "Class": "DC.AjaxController" }
+}; \ No newline at end of file
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/license.txt b/SPPC.dcproj/project/widget.wdgt/Parts/license.txt
new file mode 100644
index 0000000..dd2baf1
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/license.txt
@@ -0,0 +1,10 @@
+
+IMPORTANT: The Apple Software (defined below) supplied to you by Apple Inc. ("Apple") is supplied solely in consideration of your agreement to the following terms, and your use, installation, modification or redistribution of the Apple Software constitutes acceptance of these terms.  If you do not agree with these terms, please do not use, install, modify or redistribute this Apple Software.
+
+Subject to these terms, Apple grants you a personal, non-exclusive license, under Apple's copyrights in the original Apple software that is generated by Dashcode and not otherwise accompanied by a separate license the ("Apple Software"), to use, reproduce, modify and redistribute the Apple Software, with or without modifications, in source and/or binary forms; provided that you are not required to retain this notice and the following text and disclaimers in any redistribution. Neither the name, trademarks, service marks or logos of Apple Inc. may be used to endorse or promote products derived from the Apple Software without specific prior written permission from Apple.  Except as expressly stated in this notice, no other rights or licenses, express or implied, are granted by Apple herein, including but not limited to any patent rights that may be infringed by your derivative works or by other works in which the Apple Software may be incorporated.
+
+The Apple Software is provided by Apple on an "AS IS" basis.  APPLE MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS. 
+
+IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+EA0439
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/parts.js b/SPPC.dcproj/project/widget.wdgt/Parts/parts.js
new file mode 100644
index 0000000..b9b6068
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/parts.js
@@ -0,0 +1,28 @@
+/*
+ This file was generated by Dashcode and is covered by the
+ license.txt included in the project. You may edit this file,
+ however it is recommended to first turn off the Dashcode
+ code generator otherwise the changes will be lost. This file
+ is for files included by Dashcode directly. It will be replaced
+ with an optimized version at deploy time.
+*/
+var dashcodePartSupport = {
+ "core": ["Parts/core/utilities.js", "Parts/core/core/base.js", "Parts/core/core/array-additions.js", "Parts/core/core/array-additions-ie.js", "Parts/core/core/set.js", "Parts/core/core/oop.js", "Parts/core/core/function-additions.js", "Parts/core/core/object-additions.js", "Parts/core/core/regex-additions.js", "Parts/core/core/local.js", "Parts/core/core/Error.js", "Parts/core/core/kvo.js", "Parts/core/core/Bindable.js", "Parts/core/core/SortDescriptor.js", "Parts/core/core/transformers.js", "Parts/core/core/Binding.js", "Parts/core/core/kvo-array.js", "Parts/core/core/kvo-array-operators.js", "Parts/core/core/model.js", "Parts/core/core/string-additions.js", "Parts/core/net/Deferred.js", "Parts/core/net/XHR.js", "Parts/core/controllers/Controller.js", "Parts/core/controllers/SelectionProxy.js", "Parts/core/controllers/ObjectController.js", "Parts/core/controllers/ArrayController.js", "Parts/core/controllers/AjaxController.js", "Parts/core/controllers/ModeledXMLProxy.js", "Parts/core/dom/element.js", "Parts/core/dom/event.js", "Parts/core/dom/element-ie.js", "Parts/core/dom/event-ie.js", "Parts/core/views/view-parts.js", "Parts/core/views/view-core.js", "Parts/core/views/Responder.js", "Parts/core/views/View.js", "Parts/core/views/ViewController.js", "Parts/core/views/ImageView.js", "Parts/core/views/ImageLayout.js", "Parts/core/views/DashcodePart.js", "Parts/core/views/FormControl.js", "Parts/core/views/TextField.js", "Parts/core/views/ListView.js", "Parts/core/views/SelectField.js", "Parts/core/views/ToggleButton.js", "Parts/core/views/SearchField.js", "Parts/core/views/Slider.js", "Parts/core/views/EventLoop.js", "Parts/core/views/Page.js", "Parts/core/views/Media.js", "Parts/core/views/Video.js", "Parts/core/views/VideoLayout.js", "Parts/core/views/VideoLegacy.js"],
+ "imageBgParts": {},
+ "scripts": ["Parts/setup.js", "Parts/datasources.js", "Parts/InfoButton.js", "Parts/GlassButton.js", "Parts/PopupButton.js", "Parts/ScrollArea.js"]
+};
+
+(function() {
+ var scripts = dashcodePartSupport['core'];
+
+ scripts = scripts.concat(dashcodePartSupport['scripts']);
+
+ for(var index in scripts) {
+ var path = scripts[index];
+ var scriptTag = '<script apple-no-regeneration="yes" type="text/javascript" src="' + path + '"></script>';
+
+ document.write( scriptTag );
+ }
+})();
+
+
diff --git a/SPPC.dcproj/project/widget.wdgt/Parts/setup.js b/SPPC.dcproj/project/widget.wdgt/Parts/setup.js
new file mode 100644
index 0000000..597160e
--- /dev/null
+++ b/SPPC.dcproj/project/widget.wdgt/Parts/setup.js
@@ -0,0 +1,22 @@
+/*
+ This file was generated by Dashcode and is covered by the
+ license.txt included in the project. You may edit this file,
+ however it is recommended to first turn off the Dashcode
+ code generator otherwise the changes will be lost.
+ */
+var dashcodePartSpecs = {
+ "done": { "creationFunction": "CreateGlassButton", "onclick": "showFront", "text": "Done" },
+ "image": { "view": "DC.ImageLayout" },
+ "info": { "backgroundStyle": "black", "creationFunction": "CreateInfoButton", "foregroundStyle": "white", "frontID": "front", "onclick": "showBack" },
+ "popup": { "creationFunction": "CreatePopupButton", "leftImageWidth": 5, "onchange": "select_product", "options": [["Please select datafile", "Item 1"]], "rightImageWidth": 16 },
+ "scrollArea": { "autoHideScrollbars": true, "creationFunction": "CreateScrollArea", "hasVerticalScrollbar": true, "scrollbarDivSize": 18, "scrollbarMargin": 6, "spacing": 4 },
+ "text": { "text": "Tax %:", "view": "DC.Text" },
+ "text1": { "text": "Shipping:", "view": "DC.Text" },
+ "text2": { "text": "Margin %:", "view": "DC.Text" },
+ "text3": { "text": "Currency rate:", "view": "DC.Text" }
+};
+
+
+
+
+