class BasicApplication : SimpleComponent() { class val aboutAddress = "https://gitlab.com/nickthecoder/featureful/-/blob/main/README.md?ref_type=heads" class val licenseAddress = "https://gitlab.com/nickthecoder/featureful/-/blob/main/LICENSE?ref_type=heads" class val sourceCodeAddress = "https://gitlab.com/nickthecoder/featureful" // ==== Register ==== override meth register() { addFeatures( Context.NONE ).apply { val settings = settingsFeature() val about = Action( "About", HelperFunctions::openLink.curry( aboutAddress ) ) val license = Action( "License", HelperFunctions::openLink.curry( licenseAddress ) ) val sourceCode = Action( "Source Code", HelperFunctions::openLink.curry( sourceCodeAddress ) ) menus( MenuFeature( "Application", listOf( settings, separator, about, license, sourceCode ) ) ) } } }