Skip to content

Commit

Permalink
Time line : time slider added and few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Cossais committed Jun 9, 2023
1 parent 5a4a9eb commit d1c0adf
Show file tree
Hide file tree
Showing 2 changed files with 158 additions and 145 deletions.
6 changes: 3 additions & 3 deletions src/com/cubaix/kai/KaiEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ public void run() {

void seek(long aTimeMS) {

//Ajout boolean pour savoir si des threads sont déjà en cours d'execution
//flag to avoid multiple thread execution that can desynchronize players (mainly used in the time line menu, advance and forward buttons)
currentlySeeking = true;

Thread aTh = new Thread(new Runnable() {
Expand Down Expand Up @@ -1058,7 +1058,7 @@ public void run() {
// editorContentHistory.add(editor.getText().replaceAll("\r*\n","\n"));
editorContentHistory.add(editor.getText());
song.kaiSrt.setLinesChunk(editor.getText());
kaiTimeLine.needRedraw("init");
kaiTimeLine.needRedraw(3);
}
}
});
Expand Down Expand Up @@ -1169,7 +1169,7 @@ public void run() {
if (notCtrlPressed) {
viewer.screener.needRedraw();
logoPanel.needRedraw();
kaiTimeLine.needRedraw("editor");
kaiTimeLine.needRedraw(1);
}
}

Expand Down
Loading

0 comments on commit d1c0adf

Please sign in to comment.