updated all test documents
This commit is contained in:
		@ -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) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -22,6 +22,7 @@ class StartupView : View("TextureSync") {
 | 
			
		||||
 | 
			
		||||
    private val svc: StartupViewController by inject()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    override val root = borderpane {
 | 
			
		||||
        minWidth = 1000.0
 | 
			
		||||
        minHeight = 500.0
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user