new init
BIN
build/htdocs/dist/packages/default/Draw/checkerboard.png
vendored
Normal file
After Width: | Height: | Size: 1.3 KiB |
41
build/htdocs/dist/packages/default/Draw/combined.css
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
/*!
|
||||
* OS.js - JavaScript Cloud/Web Desktop Platform
|
||||
*
|
||||
* Copyright (c) 2011-2015, Anders Evenrud <andersevenrud@gmail.com>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* @author Anders Evenrud <andersevenrud@gmail.com>
|
||||
* @licence Simplified BSD License
|
||||
*/
|
||||
|
||||
/*.ApplicationDrawWindow {
|
||||
}*/
|
||||
|
||||
.ApplicationDrawWindow gui-canvas {
|
||||
background : url('checkerboard.png');
|
||||
}
|
||||
|
||||
.ApplicationDrawWindow gui-vbox-container[data-id="ScrollContainer"] {
|
||||
background : #DADADA;
|
||||
}
|
||||
|
1238
build/htdocs/dist/packages/default/Draw/combined.js
vendored
Normal file
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-color-pick-from-screen-16.png
vendored
Normal file
After Width: | Height: | Size: 566 B |
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-cursor-16.png
vendored
Normal file
After Width: | Height: | Size: 322 B |
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-selection-16.png
vendored
Normal file
After Width: | Height: | Size: 433 B |
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-shape-circle-16.png
vendored
Normal file
After Width: | Height: | Size: 155 B |
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-shape-ellipse-16.png
vendored
Normal file
After Width: | Height: | Size: 255 B |
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-shape-rectangle-16.png
vendored
Normal file
After Width: | Height: | Size: 158 B |
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-shape-square-16.png
vendored
Normal file
After Width: | Height: | Size: 86 B |
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-tool-bucket-fill-16.png
vendored
Normal file
After Width: | Height: | Size: 822 B |
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-tool-eraser-16.png
vendored
Normal file
After Width: | Height: | Size: 408 B |
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-tool-path-16.png
vendored
Normal file
After Width: | Height: | Size: 678 B |
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-tool-pencil-16.png
vendored
Normal file
After Width: | Height: | Size: 607 B |
BIN
build/htdocs/dist/packages/default/Draw/icons/stock-tool-text-16.png
vendored
Normal file
After Width: | Height: | Size: 704 B |
58
build/htdocs/dist/packages/default/Draw/metadata.json
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
{
|
||||
"className": "ApplicationDraw",
|
||||
"name": "Draw",
|
||||
"description": "Simple drawing application",
|
||||
"names": {
|
||||
"bg_BG": "Рисуване",
|
||||
"de_DE": "Zeichnen",
|
||||
"fr_FR": "Dessin",
|
||||
"it_IT": "Disegna",
|
||||
"ko_KR": "그림판",
|
||||
"nl_NL": "Tekenen",
|
||||
"no_NO": "Tegne",
|
||||
"pl_PL": "Rysowanie",
|
||||
"ru_RU": "Графический редактор",
|
||||
"sk_SK": "Kreslenie",
|
||||
"tr_TR": "Çiz",
|
||||
"vi_VN": "Vẽ"
|
||||
},
|
||||
"descriptions": {
|
||||
"bg_BG": "Приложение за рисуване",
|
||||
"de_DE": "Einfaches Zeichen-Programm",
|
||||
"fr_FR": "Programme de dessin simple",
|
||||
"it_IT": "Semplice applicazione per creazione/modifica immagini",
|
||||
"ko_KR": "간단한 그리기 응용 프로그램",
|
||||
"nl_NL": "Eenvoudig tekenprogramma",
|
||||
"no_NO": "Simpelt tegne-program",
|
||||
"pl_PL": "Prosta aplikacja do rysowania",
|
||||
"ru_RU": "Простой графический редактор",
|
||||
"sk_SK": "Jednoduchá aplikácia na kreslenie",
|
||||
"vi_VN": "Phần mềm vẽ đơn giản"
|
||||
},
|
||||
"mime": [
|
||||
"^image"
|
||||
],
|
||||
"category": "graphics",
|
||||
"icon": "categories/gnome-graphics.png",
|
||||
"compability": [
|
||||
"canvas"
|
||||
],
|
||||
"preload": [
|
||||
{
|
||||
"type": "javascript",
|
||||
"src": "combined.js"
|
||||
},
|
||||
{
|
||||
"type": "stylesheet",
|
||||
"src": "combined.css"
|
||||
},
|
||||
{
|
||||
"src": "scheme.html",
|
||||
"type": "scheme"
|
||||
}
|
||||
],
|
||||
"type": "application",
|
||||
"path": "default/Draw",
|
||||
"build": {},
|
||||
"repo": "default"
|
||||
}
|
83
build/htdocs/dist/packages/default/Draw/scheme.html
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
<application-window data-id="DrawWindow">
|
||||
|
||||
<gui-vbox>
|
||||
<!-- MENU BAR -->
|
||||
<gui-vbox-container data-grow="0" data-shrink="1" data-basis="auto">
|
||||
<gui-menu-bar>
|
||||
|
||||
<gui-menu-bar-entry data-label="LBL_FILE">
|
||||
<gui-menu data-id="SubmenuFile">
|
||||
<gui-menu-entry data-id="MenuNew" data-label="LBL_NEW"></gui-menu-entry>
|
||||
<gui-menu-entry data-id="MenuOpen" data-label="LBL_OPEN"></gui-menu-entry>
|
||||
<gui-menu-entry data-id="MenuSave" data-label="LBL_SAVE"></gui-menu-entry>
|
||||
<gui-menu-entry data-id="MenuSaveAs" data-label="LBL_SAVEAS"></gui-menu-entry>
|
||||
<gui-menu-entry data-id="MenuClose" data-label="LBL_CLOSE"></gui-menu-entry>
|
||||
</gui-menu>
|
||||
</gui-menu-bar-entry>
|
||||
|
||||
</gui-menu-bar>
|
||||
</gui-vbox-container>
|
||||
|
||||
<!-- CONTENT -->
|
||||
<gui-vbox-container data-grow="1" data-shrink="0" data-basis="auto" data-fill="true">
|
||||
|
||||
<gui-hbox class="gui-no-overflow">
|
||||
<gui-hbox-container data-shrink="1" data-grow="0" data-basis="74px">
|
||||
<gui-toolbar data-orientation="vertical" style="text-align:center">
|
||||
<gui-color-box data-id="Foreground"></gui-color-box>
|
||||
<gui-color-box data-id="Background"></gui-color-box>
|
||||
<gui-button data-id="tool-pointer" data-group="tool" data-tool-name="pointer" data-icon="app://icons/stock-cursor-16.png"></gui-button>
|
||||
<gui-button data-id="tool-picker" data-group="tool" data-tool-name="picker" data-icon="app://icons/stock-color-pick-from-screen-16.png"></gui-button>
|
||||
<gui-button data-id="tool-bucket" data-group="tool" data-tool-name="bucket" data-icon="app://icons/stock-tool-bucket-fill-16.png"></gui-button>
|
||||
<gui-button data-id="tool-pencil" data-group="tool" data-tool-name="pencil" data-icon="app://icons/stock-tool-pencil-16.png"></gui-button>
|
||||
<gui-button data-id="tool-path" data-group="tool" data-tool-name="path" data-icon="app://icons/stock-tool-path-16.png"></gui-button>
|
||||
<gui-button data-id="tool-rectangle" data-group="tool" data-tool-name="rectangle" data-icon="app://icons/stock-shape-square-16.png"></gui-button>
|
||||
<gui-button data-id="tool-circle" data-group="tool" data-tool-name="circle" data-icon="app://icons/stock-shape-circle-16.png"></gui-button>
|
||||
|
||||
<gui-button data-group="tool" data-tool-name="cursor" data-icon="app://icons/stock-cursor-16.png" style="visibility:hidden;pointer-events:none"></gui-button>
|
||||
</gui-toolbar>
|
||||
</gui-hbox-container>
|
||||
|
||||
<gui-hbox-container data-shrink="0" data-grow="1" data-fill="true">
|
||||
|
||||
<gui-vbox>
|
||||
<!-- TOOL BAR -->
|
||||
<gui-vbox-container data-grow="0" data-shrink="1" data-basis="auto">
|
||||
<gui-toolbar data-id="TopToolbar">
|
||||
|
||||
<gui-label>Line join</gui-label>
|
||||
<gui-select data-id="LineJoin">
|
||||
<gui-select-option data-value="round">Round</gui-select-option>
|
||||
<gui-select-option data-value="miter">Miter</gui-select-option>
|
||||
<gui-select-option data-value="bevel">Bevel</gui-select-option>
|
||||
</gui-select>
|
||||
|
||||
<gui-label>Line width</gui-label>
|
||||
<gui-select data-id="LineWidth">
|
||||
</gui-select>
|
||||
|
||||
<gui-checkbox data-id="LineStroke" data-label="Enable stroke"></gui-checkbox>
|
||||
|
||||
</gui-toolbar>
|
||||
</gui-vbox-container>
|
||||
<gui-vbox-container data-grow="1" data-shrink="0" data-basis="auto" data-fill="true" data-id="ScrollContainer">
|
||||
<gui-scroll-container data-id="ScrollView">
|
||||
<gui-canvas data-id="Canvas">
|
||||
</gui-canvas>
|
||||
</gui-scroll-container>
|
||||
</gui-vbox-container>
|
||||
</gui-vbox>
|
||||
</gui-hbox-container>
|
||||
</gui-hbox>
|
||||
|
||||
</gui-vbox-container>
|
||||
|
||||
<!-- STATUSBAR -->
|
||||
<gui-vbox-container data-grow="0" data-shrink="1" data-basis="auto">
|
||||
<gui-statusbar data-id="Statusbar"></gui-statusbar>
|
||||
</gui-vbox-container>
|
||||
|
||||
</gui-vbox>
|
||||
|
||||
|
||||
</application-window>
|