updated all test documents

This commit is contained in:
2019-06-10 15:19:53 +02:00
parent 491578806e
commit 9975364621
11 changed files with 7044 additions and 824 deletions

View File

@ -9,7 +9,7 @@ import tornadofx.App
class Main: App(StartupView::class){
//start first controller
private val svc = StartupViewController()
val svc = StartupViewController()
override fun start(stage: Stage) {

View File

@ -33,7 +33,11 @@ import java.text.SimpleDateFormat
class RootController : Controller() {
private val mvc: MainViewController by inject()
private val svc: StartupViewController by inject()
private val ivc: ImportViewController by inject()
private lateinit var con: Connection
@ -170,6 +174,7 @@ class RootController : Controller() {
// TODO this could be a companion object
fun switchStartupToMain() {
println("switchStartupToMain")
Platform.runLater {
find(StartupView::class).replaceWith(MainView::class, sizeToScene = true, centerOnScreen = true)
}
@ -177,12 +182,14 @@ class RootController : Controller() {
// These runLater calls should be unnecessary
fun switchMainToImport() {
println("switchMainToImport")
Platform.runLater {
find(MainView::class).replaceWith(ImportView::class, sizeToScene = true, centerOnScreen = true)
}
}
fun switchImportToMain() {
println("switchImportToMain")
Platform.runLater {
find(ImportView::class).replaceWith(MainView::class, sizeToScene = true, centerOnScreen = true)
}

View File

@ -22,6 +22,7 @@ class StartupView : View("TextureSync") {
private val svc: StartupViewController by inject()
override val root = borderpane {
minWidth = 1000.0
minHeight = 500.0