Remove width/height from config, and hardcode.

This commit is contained in:
nelle 2024-02-16 03:16:16 -07:00
parent 0a9c50e97b
commit c6fdc4c26d
2 changed files with 3 additions and 11 deletions

View file

@ -32,8 +32,6 @@ class Config {
FileInputStream(confFile).use { FileInputStream(confFile).use {
prop.load(it) prop.load(it)
prop.setProperty("configVersion", "1") prop.setProperty("configVersion", "1")
prop.setProperty("windowWidth", "46")
prop.setProperty("windowHeight", "18")
} }
val out: OutputStream = FileOutputStream(confFile) val out: OutputStream = FileOutputStream(confFile)
prop.store(out, "Org Secure Data Accessor - OSDA Config file") prop.store(out, "Org Secure Data Accessor - OSDA Config file")
@ -41,11 +39,5 @@ class Config {
} }
//Convert values from the config file to in-code variables, //Convert values from the config file to in-code variables,
// so we can use them later, also make them public because I said so. // so we can use them later, also make them public because I said so.
val windowWidth: Int = (prop.getProperty("windowWidth")).toInt()
val windowHeight: Int = (prop.getProperty("windowHeight")).toInt()
val configVersion: Int = (prop.getProperty("configVersion")).toInt() val configVersion: Int = (prop.getProperty("configVersion")).toInt()
var progressTimer = 0;
} }

View file

@ -8,7 +8,7 @@ import java.io.IOException
import java.util.* import java.util.*
class ProgramWindow private constructor(parent: TApplication, flags: Int) : class ProgramWindow private constructor(parent: TApplication, flags: Int) :
TWindow(parent, "O.S.D.A.", 0, 0, Config().windowWidth, Config().windowHeight, flags) { TWindow(parent, "O.S.D.A.", 0, 0, 46, 10, flags) {
constructor(parent: TApplication) : this(parent, CENTERED) constructor(parent: TApplication) : this(parent, CENTERED)
init { init {
setLayoutManager( setLayoutManager(
@ -31,7 +31,7 @@ class ProgramWindow private constructor(parent: TApplication, flags: Int) :
addButton("Options", CENTERED + 13, CENTERED, addButton("Options", CENTERED + 13, CENTERED,
object : TAction() { object : TAction() {
override fun DO() { override fun DO() {
TODO() TODO("Create an options screen to open")
} }
} }
) )
@ -40,7 +40,7 @@ class ProgramWindow private constructor(parent: TApplication, flags: Int) :
addButton("Login", CENTERED, CENTERED, addButton("Login", CENTERED, CENTERED,
object : TAction() { object : TAction() {
override fun DO() { override fun DO() {
TODO() TODO("Create the login prompt")
} }
} }
) )