songEditor opens the song now
This commit is contained in:
parent
f197099346
commit
c5ed583522
2 changed files with 22 additions and 22 deletions
|
@ -482,7 +482,7 @@ Item {
|
|||
Utils.dbg("Changing Lyrics");
|
||||
/* songEditorModel.lyrics = lyricsEditor.text; */
|
||||
/* showPassiveNotification("Lyrics changed"); */
|
||||
songProxyModel.songModel.updateLyrics(songID, lyricsEditor.text);
|
||||
songModel.updateLyrics(songID, lyricsEditor.text);
|
||||
clearSlides();
|
||||
changeSlideText(songID);
|
||||
Utils.dbg("Lyrics changed");
|
||||
|
@ -492,10 +492,10 @@ Item {
|
|||
}
|
||||
|
||||
function changeSong(index) {
|
||||
Utils.dbg("Preparing to change song: " + index + 1 + " out of " + songProxyModel.songModel.count);
|
||||
Utils.dbg("Preparing to change song: " + index + 1 + " out of " + songModel.count);
|
||||
editorTimer.running = false;
|
||||
clearSlides();
|
||||
const updatedSong = songProxyModel.songModel.getItem(index);
|
||||
const updatedSong = songModel.getItem(index);
|
||||
Utils.dbg(updatedSong.vorder + " " + updatedSong.title + " " + updatedSong.audio);
|
||||
songEditorModel.title = updatedSong.title;
|
||||
songEditorModel.lyrics = updatedSong.lyrics;
|
||||
|
@ -531,31 +531,31 @@ Item {
|
|||
}
|
||||
|
||||
/* function updateLyrics(lyrics) { */
|
||||
/* songProxyModel.songModel.updateLyrics(songID, lyrics); */
|
||||
/* songModel.updateLyrics(songID, lyrics); */
|
||||
/* /\* songLyrics = lyrics; *\/ */
|
||||
/* clearSlides(); */
|
||||
/* changeSlideText(songID); */
|
||||
/* } */
|
||||
|
||||
function updateTitle(title) {
|
||||
songProxyModel.songModel.updateTitle(songID, title)
|
||||
songModel.updateTitle(songID, title)
|
||||
song.title = title;
|
||||
}
|
||||
|
||||
function updateAuthor(author) {
|
||||
songProxyModel.songModel.updateAuthor(songID, author)
|
||||
songModel.updateAuthor(songID, author)
|
||||
}
|
||||
|
||||
function updateAudio(audio) {
|
||||
songProxyModel.songModel.updateAudio(songID, audio)
|
||||
songModel.updateAudio(songID, audio)
|
||||
}
|
||||
|
||||
function updateCcli(ccli) {
|
||||
songProxyModel.songModel.updateCcli(songID, ccli)
|
||||
songModel.updateCcli(songID, ccli)
|
||||
}
|
||||
|
||||
function updateVerseOrder(vorder) {
|
||||
songProxyModel.songModel.updateVerseOrder(songID, vorder)
|
||||
songModel.updateVerseOrder(songID, vorder)
|
||||
songEditorModel.verseOrder = vorder;
|
||||
songEditorModel.checkVerseOrder();
|
||||
}
|
||||
|
@ -565,7 +565,7 @@ Item {
|
|||
Utils.dbg("song: " + songID);
|
||||
Utils.dbg("song-title: " + songEditorModel.title)
|
||||
songEditorModel.audio = file;
|
||||
songProxyModel.songModel.updateAudio(songID, file);
|
||||
songModel.updateAudio(songID, file);
|
||||
songEditorModel.checkFiles();
|
||||
}
|
||||
|
||||
|
@ -573,32 +573,32 @@ Item {
|
|||
songEditorModel.backgroundType = backgroundType;
|
||||
const file = fileHelper.loadFile("Pick Background", backgroundType);
|
||||
songEditorModel.background = file;
|
||||
songProxyModel.songModel.updateBackground(songID, file);
|
||||
songProxyModel.songModel.updateBackgroundType(songID, backgroundType);
|
||||
songModel.updateBackground(songID, file);
|
||||
songModel.updateBackgroundType(songID, backgroundType);
|
||||
Utils.dbg("changed background");
|
||||
}
|
||||
|
||||
|
||||
function updateHorizontalTextAlignment(textAlignment) {
|
||||
changeSlideHAlignment(textAlignment);
|
||||
songProxyModel.songModel.updateHorizontalTextAlignment(songID, textAlignment);
|
||||
songModel.updateHorizontalTextAlignment(songID, textAlignment);
|
||||
}
|
||||
|
||||
function updateVerticalTextAlignment(textAlignment) {
|
||||
changeSlideVAlignment(textAlignment);
|
||||
songProxyModel.songModel.updateVerticalTextAlignment(songID, textAlignment)
|
||||
songModel.updateVerticalTextAlignment(songID, textAlignment)
|
||||
}
|
||||
|
||||
function updateFont(font) {
|
||||
showPassiveNotification(font);
|
||||
changeSlideFont(font, false);
|
||||
songProxyModel.songModel.updateFont(songID, font);
|
||||
songModel.updateFont(songID, font);
|
||||
song.font = font;
|
||||
}
|
||||
|
||||
function updateFontSize(fontSize) {
|
||||
changeSlideFontSize(fontSize, false);
|
||||
songProxyModel.songModel.updateFontSize(songID, fontSize);
|
||||
songModel.updateFontSize(songID, fontSize);
|
||||
song.fontSize = fontSize;
|
||||
}
|
||||
|
||||
|
@ -654,7 +654,7 @@ Item {
|
|||
}
|
||||
|
||||
function changeSlideText(id) {
|
||||
const verses = songProxyModel.songModel.getLyricList(id);
|
||||
const verses = songModel.getLyricList(id);
|
||||
verses.forEach(songList.appendVerse);
|
||||
/* songList.loadVideo(); */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue