more cleanup
This commit is contained in:
parent
1759e5c3de
commit
ec67a80389
|
@ -9,6 +9,7 @@ import org.pango.WrapMode
|
||||||
class InstanceGridEntryFactory(
|
class InstanceGridEntryFactory(
|
||||||
private val instanceList: List<Instance>
|
private val instanceList: List<Instance>
|
||||||
) : KSignalListItemFactory<InstanceGridEntryFactory.Decomposed, Box>() {
|
) : KSignalListItemFactory<InstanceGridEntryFactory.Decomposed, Box>() {
|
||||||
|
//TODO better design
|
||||||
override fun setup(): Box {
|
override fun setup(): Box {
|
||||||
val box = Box(Orientation.VERTICAL, 5)
|
val box = Box(Orientation.VERTICAL, 5)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ import org.gnome.gio.SimpleAction
|
||||||
import org.gnome.gio.ThemedIcon
|
import org.gnome.gio.ThemedIcon
|
||||||
|
|
||||||
abstract class BuiltMenuItem protected constructor(action: SimpleAction, protected val menuItem: MenuItem?) {
|
abstract class BuiltMenuItem protected constructor(action: SimpleAction, protected val menuItem: MenuItem?) {
|
||||||
@JvmField
|
|
||||||
protected val action: SimpleAction
|
protected val action: SimpleAction
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
|
|
@ -7,11 +7,9 @@ object I18n {
|
||||||
const val BUNDLE = "inceptum"
|
const val BUNDLE = "inceptum"
|
||||||
private val bundle = ResourceBundle.getBundle(BUNDLE)
|
private val bundle = ResourceBundle.getBundle(BUNDLE)
|
||||||
|
|
||||||
@JvmStatic
|
|
||||||
operator fun get(key: @PropertyKey(resourceBundle = BUNDLE) String): String =
|
operator fun get(key: @PropertyKey(resourceBundle = BUNDLE) String): String =
|
||||||
bundle.getString(key)
|
bundle.getString(key)
|
||||||
|
|
||||||
@JvmStatic
|
|
||||||
operator fun get(key: @PropertyKey(resourceBundle = BUNDLE) String, vararg args: Any?): String =
|
operator fun get(key: @PropertyKey(resourceBundle = BUNDLE) String, vararg args: Any?): String =
|
||||||
String.format(bundle.getString(key), *args)
|
String.format(bundle.getString(key), *args)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue