Skip to content

Commit 191f0a1

Browse files
authored
Settings app (#4)
* Add separate endpoint for building app * Remove unwanted things * Update icon * Added available settings * Improved installation assets * Store VST lookup path in config so that VarnamApp can also access govarnam * Remove dependency on lipika-engine completely
1 parent 999a71d commit 191f0a1

40 files changed

+149
-988
lines changed

Application/LanguageTable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
22
* VarnamApp is companion application for VarnamIME.
3-
* Copyright (C) 2020 Ranganath Atreya
3+
* Copyright (C) 2020 Ranganath Atreya - LipikaIME
4+
* Copyright (C) 2021 Subin Siby - VarnamIME
45
*
56
* This program is distributed in the hope that it will be useful,
67
* but WITHOUT ANY WARRANTY; without even the implied warranty of
78
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
89
*/
910

1011
import SwiftUI
11-
import LipikaEngine_OSX
1212
import ShortcutRecorder
1313

1414
struct ShortcutView: View {

Application/LanguageView.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
22
* VarnamApp is companion application for VarnamIME.
3-
* Copyright (C) 2020 Ranganath Atreya
3+
* Copyright (C) 2020 Ranganath Atreya - LipikaIME
4+
* Copyright (C) 2021 Subin Siby - VarnamIME
45
*
56
* This program is distributed in the hope that it will be useful,
67
* but WITHOUT ANY WARRANTY; without even the implied warranty of
78
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
89
*/
910

1011
import SwiftUI
11-
import LipikaEngine_OSX
1212
import Carbon.HIToolbox.Events
1313

1414
class LanguageModel: ObservableObject, PersistenceModel {
@@ -23,6 +23,7 @@ class LanguageModel: ObservableObject, PersistenceModel {
2323
let config = VarnamConfig()
2424

2525
init() {
26+
Varnam.setVSTLookupDir(config.vstDir)
2627
mappings = config.languageConfig
2728
reeval()
2829
}
@@ -36,8 +37,8 @@ class LanguageModel: ObservableObject, PersistenceModel {
3637
func save() {
3738
config.languageConfig = mappings
3839
let validScripts = config.languageConfig.filter({ $0.isEnabled }).map({ $0.identifier })
39-
if !validScripts.contains(config.scriptName) {
40-
config.scriptName = validScripts.first!
40+
if !validScripts.contains(config.schemeID) {
41+
config.schemeID = validScripts.first!
4142
}
4243
reeval()
4344
}

Application/LiteratorView.swift

Lines changed: 0 additions & 214 deletions
This file was deleted.

Application/MainView.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ struct MainView: View {
1414

1515
var body: some View {
1616
TabView(selection: $currentTab) {
17-
LiteratorView().tabItem {
18-
Text("Transliterator")
19-
}.tag(0)
20-
.onAppear() {
21-
self.currentTab = 0
22-
}
23-
MappingsView().tabItem {
24-
Text("Mapping")
25-
}.tag(1)
26-
.onAppear() {
27-
self.currentTab = 1
28-
}
2917
SettingsView().tabItem {
3018
Text("Settings")
3119
}.tag(2)

0 commit comments

Comments
 (0)