Remove width/height from config, and hardcode.
This commit is contained in:
parent
0a9c50e97b
commit
c6fdc4c26d
2 changed files with 3 additions and 11 deletions
|
@ -32,8 +32,6 @@ class Config {
|
|||
FileInputStream(confFile).use {
|
||||
prop.load(it)
|
||||
prop.setProperty("configVersion", "1")
|
||||
prop.setProperty("windowWidth", "46")
|
||||
prop.setProperty("windowHeight", "18")
|
||||
}
|
||||
val out: OutputStream = FileOutputStream(confFile)
|
||||
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,
|
||||
// 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()
|
||||
|
||||
var progressTimer = 0;
|
||||
}
|
|
@ -8,7 +8,7 @@ import java.io.IOException
|
|||
import java.util.*
|
||||
|
||||
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)
|
||||
init {
|
||||
setLayoutManager(
|
||||
|
@ -31,7 +31,7 @@ class ProgramWindow private constructor(parent: TApplication, flags: Int) :
|
|||
addButton("Options", CENTERED + 13, CENTERED,
|
||||
object : TAction() {
|
||||
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,
|
||||
object : TAction() {
|
||||
override fun DO() {
|
||||
TODO()
|
||||
TODO("Create the login prompt")
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue