Skip to content
This repository was archived by the owner on Apr 15, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build
.build
11 changes: 11 additions & 0 deletions sling/gui/canvaswidget/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
10 changes: 10 additions & 0 deletions sling/gui/canvaswidget/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/checkboxwidget/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
Binary file added sling/gui/checkboxwidget/src/fonts/unibook.otf
Binary file not shown.
10 changes: 10 additions & 0 deletions sling/gui/checkboxwidget/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/custom-rendering-widget/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class #widget #main:

class MyCustomWidget is RenderableWidget #widget
{
prop widgetText as string
prop widgetImage as Image
pvar widgetText as string
pvar widgetImage as Image

func render(ctx as RenderingContext) override
{
Expand Down
10 changes: 10 additions & 0 deletions sling/gui/custom-rendering-widget/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/datagrid/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ui LayerWidget
ButtonWidget {
text = "Click me"
clickHandler = func {
PRINT "CLICKED!"
print "CLICKED!"
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions sling/gui/datagrid/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/hellogui/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
10 changes: 10 additions & 0 deletions sling/gui/hellogui/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/horizontalscrollersample/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
10 changes: 10 additions & 0 deletions sling/gui/horizontalscrollersample/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/hyperlinksample/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func initializeWidget override
link.setWidgetFontSize(context.getHeightValue("3mm"))
link.setWidgetTextColor(Color.forRGB(255, 0, 0))
link.setWidgetClickHandler(func {
PRINT "Hello World!"
print "Hello World!"
})
hbox.addWidget(link)
}
10 changes: 10 additions & 0 deletions sling/gui/hyperlinksample/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/menubar/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ func initializeWidget override
base.initializeWidget()
var file = menu.addMenu("File")
file.addEntry("Open", func {
PRINT "Open"
println "Open"
})
file.addEntry("Save", func {
PRINT "Save"
println "Save"
})
file.addEntry("Exit", func {
PRINT "Exit"
println "Exit"
})
var edit = menu.addMenu("Edit")
edit.addEntry("Cut", func {
PRINT "Cut"
println "Cut"
})
edit.addEntry("Copy", func {
PRINT "Copy"
println "Copy"
})
edit.addEntry("Paste", func {
PRINT "Paste"
println "Paste"
})
}
10 changes: 10 additions & 0 deletions sling/gui/menubar/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/photoselector/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
10 changes: 10 additions & 0 deletions sling/gui/photoselector/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/popup/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
10 changes: 10 additions & 0 deletions sling/gui/popup/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/popupmenu/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
10 changes: 10 additions & 0 deletions sling/gui/popupmenu/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/radiobuttongroup/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
10 changes: 10 additions & 0 deletions sling/gui/radiobuttongroup/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/renderingcontextwithselectwidget/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
10 changes: 10 additions & 0 deletions sling/gui/renderingcontextwithselectwidget/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
11 changes: 11 additions & 0 deletions sling/gui/testprogram/build.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! eqela ss-0.21
#
# This file is part of Eqela Samples
# Copyright (c) 2016-2018 Job and Esther Technologies Oy
# Copyright (c) 2018-2020 Eqela Oy
# All rights reserved.
#

lib sling-tools:0.45.0
import sling.tools.compiler
return SlingCompilerTool.forWeb5ApplicationDirectory("app").executeScript(args)
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func initialize override
base.initialize()
var navi = new NavigationWidget(context)
var ff = FormWidget.forDeclaration(context, FormDeclaration.forDescription(context, TEXTFILE "myform.form"))
ff.setActionHandlers({
ff.setActionHandlers(func {
"onClickMe" : func {
println JSONEncoder.encode(ff.getFormData())
},
Expand Down
10 changes: 10 additions & 0 deletions sling/gui/testprogram/src/project.slon
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
vendorId "eqela"
projectId "todoapp"
title "Eqela Samples Todo App"
copyright "Copyright (c) 2018-2020 Eqela Oy"
license "All rights reserved."
libraries [
"jk-app:0.26.0"
]
}
Loading