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
c6847bad
Commit
c6847bad
authored
1 year ago
by
Kaj Koivunen
Browse files
Options
Downloads
Patches
Plain Diff
dokumentaatiota
parent
e48237f6
No related branches found
Branches containing commit
Tags
vaihe6
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/kotlin/Project.kt
+5
-0
5 additions, 0 deletions
src/main/kotlin/Project.kt
src/main/kotlin/Ronove.kt
+3
-0
3 additions, 0 deletions
src/main/kotlin/Ronove.kt
with
8 additions
and
0 deletions
src/main/kotlin/Project.kt
+
5
−
0
View file @
c6847bad
...
...
@@ -94,8 +94,13 @@ class Project {
}
}
/**
* Runs automated translation on page with provided number
* @param page number of page to translate
*/
fun
translatePage
(
page
:
Int
)
=
pages
[
page
].
translatePage
()
/** Runs automated translaiton on all pages */
fun
translateAllPages
()
{
TranslationBackend
.
sourceLanguage
=
"ja"
TranslationBackend
.
destinationLanguage
=
"en-US"
...
...
This diff is collapsed.
Click to expand it.
src/main/kotlin/Ronove.kt
+
3
−
0
View file @
c6847bad
...
...
@@ -23,6 +23,7 @@ class Ronove: App(MainView::class, RonoveStylesheet::class) {
/** Amount of pages in project */
var
pageCount
=
SimpleIntegerProperty
(
project
.
pages
.
size
)
/** Reference to [TableView] in [MainView], used to call refresh on it. */
lateinit
var
table
:
TableView
<
Line
>
/**
...
...
@@ -42,11 +43,13 @@ class Ronove: App(MainView::class, RonoveStylesheet::class) {
table
.
refresh
()
}
/** Adds new line to the end of page */
fun
addLine
()
{
project
.
pages
[
currentPage
.
value-1
].
lines
.
add
(
Line
())
table
.
refresh
()
}
/** Removes current page */
fun
removePage
()
{
project
.
pages
.
removeAt
(
currentPage
.
value-1
)
pageCount
.
set
(
project
.
pages
.
size
)
...
...
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