Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ronove
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kaj Koivunen
Ronove
Commits
846c217d
Commit
846c217d
authored
1 year ago
by
Kaj Koivunen
Browse files
Options
Downloads
Patches
Plain Diff
menutoimintojen selkeytys
parent
39236c19
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/kotlin/MainView.kt
+8
-4
8 additions, 4 deletions
src/main/kotlin/MainView.kt
with
8 additions
and
4 deletions
src/main/kotlin/MainView.kt
+
8
−
4
View file @
846c217d
...
@@ -34,7 +34,7 @@ class MainView : View("Ronove") {
...
@@ -34,7 +34,7 @@ class MainView : View("Ronove") {
enableWhen
{(
app
as
Ronove
).
project
.
projectFileSet
}
enableWhen
{(
app
as
Ronove
).
project
.
projectFileSet
}
}
}
item
(
"Save as..."
,
"Shortcut+Shift+S"
)
{
action
{
(
app
as
Ronove
).
project
.
saveAs
()
}}
item
(
"Save as..."
,
"Shortcut+Shift+S"
)
{
action
{
(
app
as
Ronove
).
project
.
saveAs
()
}}
item
(
"Export..."
)
{
action
{
TODO
()
}
}
//
item("Export...") { action { TODO() } }
separator
()
separator
()
item
(
"Exit"
)
{
item
(
"Exit"
)
{
action
{
action
{
...
@@ -50,11 +50,15 @@ class MainView : View("Ronove") {
...
@@ -50,11 +50,15 @@ class MainView : View("Ronove") {
item
(
"Add line"
,
"Shortcut+N"
)
{
action
{
(
app
as
Ronove
).
addLine
()
}
}
item
(
"Add line"
,
"Shortcut+N"
)
{
action
{
(
app
as
Ronove
).
addLine
()
}
}
//item("Remove line") { action { TODO() } }
//item("Remove line") { action { TODO() } }
separator
()
separator
()
item
(
"Project settings..."
)
{
action
{
TODO
()
}
}
item
(
"Project settings..."
)
{
action
{
ProjectSettings
().
openModal
()
}
}
}
}
menu
(
"Machine translation"
)
{
menu
(
"Machine translation"
)
{
item
(
"Translate line"
)
{
action
{
TODO
()
}
}
//item("Translate line") { action { TODO() } }
item
(
"Translate page"
)
{
action
{
TODO
()
}
}
item
(
"Translate page"
)
{
action
{
with
(
app
as
Ronove
)
{
project
.
translatePage
(
currentPage
.
value
)
}
}
}
item
(
"Translate all pages"
)
{
action
{
item
(
"Translate all pages"
)
{
action
{
(
app
as
Ronove
).
project
.
translateAllPages
()
(
app
as
Ronove
).
project
.
translateAllPages
()
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment