From 697a71f2d2487b70f24f26ba096ac59cff84447c Mon Sep 17 00:00:00 2001 From: limepotato Date: Fri, 16 Feb 2024 03:20:36 -0700 Subject: [PATCH] Refactor a bit --- src/main/kotlin/org/bm00/DataAccessor/main.kt | 4 ++-- .../windows/{ProgramWindow.kt => WelcomeWindow.kt} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/kotlin/org/bm00/DataAccessor/windows/{ProgramWindow.kt => WelcomeWindow.kt} (95%) diff --git a/src/main/kotlin/org/bm00/DataAccessor/main.kt b/src/main/kotlin/org/bm00/DataAccessor/main.kt index bfc5bac..46ee9d6 100644 --- a/src/main/kotlin/org/bm00/DataAccessor/main.kt +++ b/src/main/kotlin/org/bm00/DataAccessor/main.kt @@ -1,13 +1,13 @@ package org.bm00.DataAccessor import jexer.TApplication -import org.bm00.DataAccessor.windows.ProgramWindow +import org.bm00.DataAccessor.windows.WelcomeWindow import java.util.* // This creates a Jexer application (and calls the "backend type" which is how its rendered) class Application : TApplication(BackendType.SWING) { init { - ProgramWindow(this) + WelcomeWindow(this) } } diff --git a/src/main/kotlin/org/bm00/DataAccessor/windows/ProgramWindow.kt b/src/main/kotlin/org/bm00/DataAccessor/windows/WelcomeWindow.kt similarity index 95% rename from src/main/kotlin/org/bm00/DataAccessor/windows/ProgramWindow.kt rename to src/main/kotlin/org/bm00/DataAccessor/windows/WelcomeWindow.kt index 5452959..15bbf25 100644 --- a/src/main/kotlin/org/bm00/DataAccessor/windows/ProgramWindow.kt +++ b/src/main/kotlin/org/bm00/DataAccessor/windows/WelcomeWindow.kt @@ -5,7 +5,7 @@ import jexer.TApplication import jexer.TWindow import jexer.layout.StretchLayoutManager -class ProgramWindow private constructor(parent: TApplication, flags: Int) : +class WelcomeWindow private constructor(parent: TApplication, flags: Int) : TWindow(parent, "O.S.D.A.", 0, 0, 46, 10, flags) { constructor(parent: TApplication) : this(parent, CENTERED) init {