better debugging: all print statements are now console.log
This commit is contained in:
parent
d868571d72
commit
d6da3b546c
16 changed files with 109 additions and 109 deletions
|
@ -24,7 +24,7 @@ Kirigami.ApplicationWindow {
|
||||||
|
|
||||||
signal edit()
|
signal edit()
|
||||||
|
|
||||||
onActiveFocusItemChanged: print("FOCUS CHANGED TO: " + activeFocusControl)
|
onActiveFocusItemChanged: console.log("FOCUS CHANGED TO: " + activeFocusControl)
|
||||||
|
|
||||||
/* pageStack.initialPage: mainPage */
|
/* pageStack.initialPage: mainPage */
|
||||||
header: Presenter.Header {}
|
header: Presenter.Header {}
|
||||||
|
@ -60,7 +60,7 @@ Kirigami.ApplicationWindow {
|
||||||
id: menuLoader
|
id: menuLoader
|
||||||
active: Kirigami.Settings.hasPlatformMenuBar
|
active: Kirigami.Settings.hasPlatformMenuBar
|
||||||
sourceComponent: globalMenuComponent
|
sourceComponent: globalMenuComponent
|
||||||
onLoaded: print("Loaded global menu")
|
onLoaded: console.log("Loaded global menu")
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
|
@ -125,7 +125,7 @@ Kirigami.ApplicationWindow {
|
||||||
save(saveFileDialog.fileUrl);
|
save(saveFileDialog.fileUrl);
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
print("Canceled")
|
console.log("Canceled")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ Kirigami.ApplicationWindow {
|
||||||
load(loadFileDialog.fileUrl);
|
load(loadFileDialog.fileUrl);
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
print("Canceled")
|
console.log("Canceled")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -180,25 +180,25 @@ Kirigami.ApplicationWindow {
|
||||||
const loaded = mainPage.serviceItems.load(file);
|
const loaded = mainPage.serviceItems.load(file);
|
||||||
loaded ? showPassiveNotification("Loaded: " + file)
|
loaded ? showPassiveNotification("Loaded: " + file)
|
||||||
: showPassiveNotification("FAILED!");
|
: showPassiveNotification("FAILED!");
|
||||||
/* print("Number of items: " + loaded.length); */
|
/* console.log("Number of items: " + loaded.length); */
|
||||||
/* print(loaded[0].audio); */
|
/* console.log(loaded[0].audio); */
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
/* showPassiveNotification(Kirigami.Settings.style); */
|
/* showPassiveNotification(Kirigami.Settings.style); */
|
||||||
/* Kirigami.Settings.style = "Plasma"; */
|
/* Kirigami.Settings.style = "Plasma"; */
|
||||||
/* showPassiveNotification(Kirigami.Settings.style); */
|
/* showPassiveNotification(Kirigami.Settings.style); */
|
||||||
print("OS is: " + Qt.platform.os);
|
console.log("OS is: " + Qt.platform.os);
|
||||||
print("MENU " + Kirigami.Settings.hasPlatformMenuBar)
|
console.log("MENU " + Kirigami.Settings.hasPlatformMenuBar)
|
||||||
/* print("checking screens"); */
|
/* console.log("checking screens"); */
|
||||||
print("Present Mode is " + presenting);
|
console.log("Present Mode is " + presenting);
|
||||||
/* print(Qt.application.state); */
|
/* console.log(Qt.application.state); */
|
||||||
screens = Qt.application.screens;
|
screens = Qt.application.screens;
|
||||||
presentationScreen = screens[1]
|
presentationScreen = screens[1]
|
||||||
print(Kirigami.Settings.Style);
|
console.log(Kirigami.Settings.Style);
|
||||||
for (let i = 0; i < screens.length; i++) {
|
for (let i = 0; i < screens.length; i++) {
|
||||||
/* print(screens[i]); */
|
/* console.log(screens[i]); */
|
||||||
/* print(screens[i].name); */
|
/* console.log(screens[i].name); */
|
||||||
screenModel.append({
|
screenModel.append({
|
||||||
"name": screens[i].name,
|
"name": screens[i].name,
|
||||||
"width": (screens[i].width * screens[i].devicePixelRatio),
|
"width": (screens[i].width * screens[i].devicePixelRatio),
|
||||||
|
@ -206,13 +206,13 @@ Kirigami.ApplicationWindow {
|
||||||
"pixeldensity": screens[i].pixelDensity,
|
"pixeldensity": screens[i].pixelDensity,
|
||||||
"pixelratio": screens[i].devicePixelRatio
|
"pixelratio": screens[i].devicePixelRatio
|
||||||
})
|
})
|
||||||
/* print("width of screen: " + (screens[i].width * screens[i].devicePixelRatio)); */
|
/* console.log("width of screen: " + (screens[i].width * screens[i].devicePixelRatio)); */
|
||||||
/* print("height of screen: " + (screens[i].height * screens[i].devicePixelRatio)); */
|
/* console.log("height of screen: " + (screens[i].height * screens[i].devicePixelRatio)); */
|
||||||
/* print("pixeldensity of screen: " + screens[i].pixelDensity); */
|
/* console.log("pixeldensity of screen: " + screens[i].pixelDensity); */
|
||||||
/* print("pixelratio of screen: " + screens[i].devicePixelRatio); */
|
/* console.log("pixelratio of screen: " + screens[i].devicePixelRatio); */
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
print("Current Screens available: ");
|
console.log("Current Screens available: ");
|
||||||
print(screenModel.get(i).name);
|
console.log(screenModel.get(i).name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ Item {
|
||||||
|
|
||||||
if (Math.abs(listItem.y - mouseArea.startY) > height && newIndex > -1 &&
|
if (Math.abs(listItem.y - mouseArea.startY) > height && newIndex > -1 &&
|
||||||
newIndex !== index) {
|
newIndex !== index) {
|
||||||
print("old index is: " + index + " and new index is: " + newIndex);
|
console.log("old index is: " + index + " and new index is: " + newIndex);
|
||||||
root.moveRequested(index, newIndex);
|
root.moveRequested(index, newIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ Kirigami.ActionToolBar {
|
||||||
icon.name: "view-presentation"
|
icon.name: "view-presentation"
|
||||||
text: presenting ? "Presenting" : "Go Live"
|
text: presenting ? "Presenting" : "Go Live"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
print("Window is loading");
|
console.log("Window is loading");
|
||||||
togglePresenting();
|
togglePresenting();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -126,7 +126,7 @@ Item {
|
||||||
|
|
||||||
function changeImage(image) {
|
function changeImage(image) {
|
||||||
root.image = image;
|
root.image = image;
|
||||||
print(image.filePath.toString());
|
console.log(image.filePath.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTitle(text) {
|
function updateTitle(text) {
|
||||||
|
|
|
@ -38,7 +38,7 @@ ColumnLayout {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
onDropped: (drag) => {
|
onDropped: (drag) => {
|
||||||
print("DROPPED AT END");
|
console.log("DROPPED AT END");
|
||||||
appendItem(dragItemTitle,
|
appendItem(dragItemTitle,
|
||||||
dragItemType,
|
dragItemType,
|
||||||
dragItemBackground,
|
dragItemBackground,
|
||||||
|
@ -113,8 +113,8 @@ ColumnLayout {
|
||||||
/* onExited: dropHighlightLine.visible = false; */
|
/* onExited: dropHighlightLine.visible = false; */
|
||||||
|
|
||||||
onDropped: (drag) => {
|
onDropped: (drag) => {
|
||||||
print("DROPPED IN ITEM AREA: " + drag.keys);
|
console.log("DROPPED IN ITEM AREA: " + drag.keys);
|
||||||
print(dragItemIndex + " " + index);
|
console.log(dragItemIndex + " " + index);
|
||||||
const hlIndex = serviceItemList.currentIndex;
|
const hlIndex = serviceItemList.currentIndex;
|
||||||
if (drag.keys[0] === "library") {
|
if (drag.keys[0] === "library") {
|
||||||
addItem(index,
|
addItem(index,
|
||||||
|
@ -238,7 +238,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
onReleased: {
|
onReleased: {
|
||||||
print("should drop");
|
console.log("should drop");
|
||||||
visServiceItem.Drag.drop();
|
visServiceItem.Drag.drop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -284,7 +284,7 @@ ColumnLayout {
|
||||||
return;
|
return;
|
||||||
if (newIndex === -1)
|
if (newIndex === -1)
|
||||||
newIndex = 0;
|
newIndex = 0;
|
||||||
print("moveRequested: ", oldIndex, newIndex);
|
console.log("moveRequested: ", oldIndex, newIndex);
|
||||||
visualModel.items.move(oldIndex, newIndex);
|
visualModel.items.move(oldIndex, newIndex);
|
||||||
indexDragged = newIndex;
|
indexDragged = newIndex;
|
||||||
serviceItemList.currentIndex = indexDragged;
|
serviceItemList.currentIndex = indexDragged;
|
||||||
|
@ -370,7 +370,7 @@ ColumnLayout {
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
totalServiceItems = serviceItemList.count;
|
totalServiceItems = serviceItemList.count;
|
||||||
print("THE TOTAL SERVICE ITEMS: " + totalServiceItems);
|
console.log("THE TOTAL SERVICE ITEMS: " + totalServiceItems);
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeItem(index) {
|
function removeItem(index) {
|
||||||
|
@ -381,7 +381,7 @@ ColumnLayout {
|
||||||
function addItem(index, name, type,
|
function addItem(index, name, type,
|
||||||
background, backgroundType, text, itemID) {
|
background, backgroundType, text, itemID) {
|
||||||
const newtext = songsqlmodel.getLyricList(itemID);
|
const newtext = songsqlmodel.getLyricList(itemID);
|
||||||
print("adding: " + name + " of type " + type);
|
console.log("adding: " + name + " of type " + type);
|
||||||
serviceItemModel.insertItem(index, name,
|
serviceItemModel.insertItem(index, name,
|
||||||
type, background,
|
type, background,
|
||||||
backgroundType, newtext);
|
backgroundType, newtext);
|
||||||
|
@ -389,16 +389,16 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
function appendItem(name, type, background, backgroundType, text, itemID) {
|
function appendItem(name, type, background, backgroundType, text, itemID) {
|
||||||
print("adding: " + name + " of type " + type);
|
console.log("adding: " + name + " of type " + type);
|
||||||
let lyrics;
|
let lyrics;
|
||||||
if (type === "song") {
|
if (type === "song") {
|
||||||
print(itemID);
|
console.log(itemID);
|
||||||
lyrics = songsqlmodel.getLyricList(itemID);
|
lyrics = songsqlmodel.getLyricList(itemID);
|
||||||
print(lyrics);
|
console.log(lyrics);
|
||||||
}
|
}
|
||||||
|
|
||||||
print(background);
|
console.log(background);
|
||||||
print(backgroundType);
|
console.log(backgroundType);
|
||||||
|
|
||||||
serviceItemModel.addItem(name, type, background,
|
serviceItemModel.addItem(name, type, background,
|
||||||
backgroundType, lyrics);
|
backgroundType, lyrics);
|
||||||
|
|
|
@ -75,7 +75,7 @@ Item {
|
||||||
selectedLibrary = ""
|
selectedLibrary = ""
|
||||||
else
|
else
|
||||||
selectedLibrary = "songs"
|
selectedLibrary = "songs"
|
||||||
print(selectedLibrary)
|
console.log(selectedLibrary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -369,7 +369,7 @@ Item {
|
||||||
selectedLibrary = ""
|
selectedLibrary = ""
|
||||||
else
|
else
|
||||||
selectedLibrary = "videos"
|
selectedLibrary = "videos"
|
||||||
print(selectedLibrary)
|
console.log(selectedLibrary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -652,7 +652,7 @@ Item {
|
||||||
selectedLibrary = ""
|
selectedLibrary = ""
|
||||||
else
|
else
|
||||||
selectedLibrary = "images"
|
selectedLibrary = "images"
|
||||||
print(selectedLibrary)
|
console.log(selectedLibrary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -934,7 +934,7 @@ Item {
|
||||||
selectedLibrary = ""
|
selectedLibrary = ""
|
||||||
else
|
else
|
||||||
selectedLibrary = "presentations"
|
selectedLibrary = "presentations"
|
||||||
print(selectedLibrary)
|
console.log(selectedLibrary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1186,7 +1186,7 @@ Item {
|
||||||
selectedLibrary = ""
|
selectedLibrary = ""
|
||||||
else
|
else
|
||||||
selectedLibrary = "slides"
|
selectedLibrary = "slides"
|
||||||
print(selectedLibrary)
|
console.log(selectedLibrary)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1309,15 +1309,15 @@ Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onDropped: drop => {
|
onDropped: drop => {
|
||||||
overlay = false;
|
overlay = false;
|
||||||
print("dropped");
|
console.log("dropped");
|
||||||
print(drop.urls);
|
console.log(drop.urls);
|
||||||
/* thumbnailer.loadFile(drop.urls[0]); */
|
/* thumbnailer.loadFile(drop.urls[0]); */
|
||||||
if (drop.urls.length > 1){
|
if (drop.urls.length > 1){
|
||||||
addFiles(drop.urls);
|
addFiles(drop.urls);
|
||||||
} else if (drop.urls.length === 1)
|
} else if (drop.urls.length === 1)
|
||||||
addFile(drop.urls[0]);
|
addFile(drop.urls[0]);
|
||||||
else if (drop.urls.length === 0)
|
else if (drop.urls.length === 0)
|
||||||
print("stoppp it ya dum dum");
|
console.log("stoppp it ya dum dum");
|
||||||
}
|
}
|
||||||
onEntered: {
|
onEntered: {
|
||||||
if (isDragFile(drag.urls[0]))
|
if (isDragFile(drag.urls[0]))
|
||||||
|
@ -1329,7 +1329,7 @@ Item {
|
||||||
videosqlmodel.newVideo(url);
|
videosqlmodel.newVideo(url);
|
||||||
selectedLibrary = "videos";
|
selectedLibrary = "videos";
|
||||||
videoLibraryList.currentIndex = videosqlmodel.rowCount();
|
videoLibraryList.currentIndex = videosqlmodel.rowCount();
|
||||||
print(videosqlmodel.getVideo(videoLibraryList.currentIndex));
|
console.log(videosqlmodel.getVideo(videoLibraryList.currentIndex));
|
||||||
const video = videosqlmodel.getVideo(videoLibraryList.currentIndex);
|
const video = videosqlmodel.getVideo(videoLibraryList.currentIndex);
|
||||||
showPassiveNotification("newest video: " + video.title);
|
showPassiveNotification("newest video: " + video.title);
|
||||||
if (!editMode)
|
if (!editMode)
|
||||||
|
@ -1341,7 +1341,7 @@ Item {
|
||||||
imagesqlmodel.newImage(url);
|
imagesqlmodel.newImage(url);
|
||||||
selectedLibrary = "images";
|
selectedLibrary = "images";
|
||||||
imageLibraryList.currentIndex = imagesqlmodel.rowCount();
|
imageLibraryList.currentIndex = imagesqlmodel.rowCount();
|
||||||
print(imagesqlmodel.getImage(imageLibraryList.currentIndex));
|
console.log(imagesqlmodel.getImage(imageLibraryList.currentIndex));
|
||||||
const image = imagesqlmodel.getImage(imageLibraryList.currentIndex);
|
const image = imagesqlmodel.getImage(imageLibraryList.currentIndex);
|
||||||
showPassiveNotification("newest image: " + image.title);
|
showPassiveNotification("newest image: " + image.title);
|
||||||
if (!editMode)
|
if (!editMode)
|
||||||
|
@ -1350,16 +1350,16 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function addPres(url) {
|
function addPres(url) {
|
||||||
print(pdf.status);
|
console.log(pdf.status);
|
||||||
pdf.source = url;
|
pdf.source = url;
|
||||||
while (pdf.status != 2) {
|
while (pdf.status != 2) {
|
||||||
print(pdf.status);
|
console.log(pdf.status);
|
||||||
print("PAGECOUNT: " + pdf.pageCount);
|
console.log("PAGECOUNT: " + pdf.pageCount);
|
||||||
}
|
}
|
||||||
pressqlmodel.newPresentation(url, pdf.pageCount);
|
pressqlmodel.newPresentation(url, pdf.pageCount);
|
||||||
selectedLibrary = "presentations";
|
selectedLibrary = "presentations";
|
||||||
presentationLibraryList.currentIndex = pressqlmodel.rowCount();
|
presentationLibraryList.currentIndex = pressqlmodel.rowCount();
|
||||||
print(pressqlmodel.getPresentation(presentationLibraryList.currentIndex));
|
console.log(pressqlmodel.getPresentation(presentationLibraryList.currentIndex));
|
||||||
const presentation = pressqlmodel.getImage(presentationLibraryList.currentIndex);
|
const presentation = pressqlmodel.getImage(presentationLibraryList.currentIndex);
|
||||||
showPassiveNotification("newest image: " + presentation.title);
|
showPassiveNotification("newest image: " + presentation.title);
|
||||||
if (!editMode)
|
if (!editMode)
|
||||||
|
@ -1373,7 +1373,7 @@ Item {
|
||||||
var valid = false;
|
var valid = false;
|
||||||
|
|
||||||
if(extension) {
|
if(extension) {
|
||||||
print(extension);
|
console.log(extension);
|
||||||
valid = true;
|
valid = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1440,10 +1440,10 @@ Item {
|
||||||
enableAudio: false
|
enableAudio: false
|
||||||
width: 0
|
width: 0
|
||||||
height: 0
|
height: 0
|
||||||
Component.onCompleted: print("ready")
|
Component.onCompleted: console.log("ready")
|
||||||
onFileLoaded: {
|
onFileLoaded: {
|
||||||
thumbnailer.pause();
|
thumbnailer.pause();
|
||||||
print("FILE: " + thumbnailer.mediaTitle);
|
console.log("FILE: " + thumbnailer.mediaTitle);
|
||||||
thumbnailer.screenshotToFile(thumbnailFile(thumbnailer.mediaTitle));
|
thumbnailer.screenshotToFile(thumbnailFile(thumbnailer.mediaTitle));
|
||||||
showPassiveNotification("Screenshot Taken to: " + thumbnailFile(thumbnailer.mediaTitle));
|
showPassiveNotification("Screenshot Taken to: " + thumbnailFile(thumbnailer.mediaTitle));
|
||||||
thumbnailer.stop();
|
thumbnailer.stop();
|
||||||
|
|
|
@ -157,13 +157,13 @@ Controls.Page {
|
||||||
function changeServiceItem(index) {
|
function changeServiceItem(index) {
|
||||||
const item = serviceItemModel.getItem(index);
|
const item = serviceItemModel.getItem(index);
|
||||||
currentServiceItem = index;
|
currentServiceItem = index;
|
||||||
print("index grabbed: " + index);
|
console.log("index grabbed: " + index);
|
||||||
print(item);
|
console.log(item);
|
||||||
|
|
||||||
presentation.stopVideo();
|
presentation.stopVideo();
|
||||||
pWindow.stopVideo();
|
pWindow.stopVideo();
|
||||||
/* presentation.itemType = item.type; */
|
/* presentation.itemType = item.type; */
|
||||||
print("Time to start changing");
|
console.log("Time to start changing");
|
||||||
|
|
||||||
serviceItemModel.activate(index);
|
serviceItemModel.activate(index);
|
||||||
SlideObject.changeSlide(item);
|
SlideObject.changeSlide(item);
|
||||||
|
@ -177,7 +177,7 @@ Controls.Page {
|
||||||
/* serviceItemModel.select(index); */
|
/* serviceItemModel.select(index); */
|
||||||
/* presentation.changeSlide(); */
|
/* presentation.changeSlide(); */
|
||||||
|
|
||||||
print("Slide changed to: " + item.name);
|
console.log("Slide changed to: " + item.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
function loopVideo() {
|
function loopVideo() {
|
||||||
|
@ -256,10 +256,10 @@ Controls.Page {
|
||||||
if (present)
|
if (present)
|
||||||
{
|
{
|
||||||
presentation.loadVideo();
|
presentation.loadVideo();
|
||||||
print("For window: Screen is: " + pWindow.screen + " And selected screen is: " + presentationScreen);
|
console.log("For window: Screen is: " + pWindow.screen + " And selected screen is: " + presentationScreen);
|
||||||
pWindow.showFullScreen();
|
pWindow.showFullScreen();
|
||||||
/* pWindow.screen = presentationScreen; */
|
/* pWindow.screen = presentationScreen; */
|
||||||
print("For window: Screen is: " + pWindow.screen + " And selected screen is: " + presentationScreen);
|
console.log("For window: Screen is: " + pWindow.screen + " And selected screen is: " + presentationScreen);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
pWindow.close();
|
pWindow.close();
|
||||||
|
|
|
@ -253,14 +253,14 @@ FocusScope {
|
||||||
|
|
||||||
function nextSlideAction() {
|
function nextSlideAction() {
|
||||||
keyHandler.forceActiveFocus();
|
keyHandler.forceActiveFocus();
|
||||||
print(currentServiceItem);
|
console.log(currentServiceItem);
|
||||||
const nextServiceItemIndex = currentServiceItem + 1;
|
const nextServiceItemIndex = currentServiceItem + 1;
|
||||||
const nextItem = serviceItemModel.getItem(nextServiceItemIndex);
|
const nextItem = serviceItemModel.getItem(nextServiceItemIndex);
|
||||||
print("currentServiceItem " + currentServiceItem);
|
console.log("currentServiceItem " + currentServiceItem);
|
||||||
print("nextServiceItem " + nextServiceItemIndex);
|
console.log("nextServiceItem " + nextServiceItemIndex);
|
||||||
print(nextItem.name);
|
console.log(nextItem.name);
|
||||||
const change = SlideObject.next(nextItem);
|
const change = SlideObject.next(nextItem);
|
||||||
print(change);
|
console.log(change);
|
||||||
if (currentServiceItem === totalServiceItems - 1 & change)
|
if (currentServiceItem === totalServiceItems - 1 & change)
|
||||||
return;
|
return;
|
||||||
if (change) {
|
if (change) {
|
||||||
|
@ -273,18 +273,18 @@ FocusScope {
|
||||||
|
|
||||||
function nextSlide() {
|
function nextSlide() {
|
||||||
changeServiceItem(currentServiceItem++);
|
changeServiceItem(currentServiceItem++);
|
||||||
print(slideItem);
|
console.log(slideItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
function previousSlideAction() {
|
function previousSlideAction() {
|
||||||
keyHandler.forceActiveFocus();
|
keyHandler.forceActiveFocus();
|
||||||
const prevServiceItemIndex = currentServiceItem - 1;
|
const prevServiceItemIndex = currentServiceItem - 1;
|
||||||
const prevItem = serviceItemModel.getItem(prevServiceItemIndex);
|
const prevItem = serviceItemModel.getItem(prevServiceItemIndex);
|
||||||
print("currentServiceItem " + currentServiceItem);
|
console.log("currentServiceItem " + currentServiceItem);
|
||||||
print("prevServiceItem " + prevServiceItemIndex);
|
console.log("prevServiceItem " + prevServiceItemIndex);
|
||||||
print(prevItem.name);
|
console.log(prevItem.name);
|
||||||
const change = SlideObject.previous(prevItem);
|
const change = SlideObject.previous(prevItem);
|
||||||
print(change);
|
console.log(change);
|
||||||
if (currentServiceItem === 0 & change) {
|
if (currentServiceItem === 0 & change) {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
@ -298,13 +298,13 @@ FocusScope {
|
||||||
|
|
||||||
function previousSlide() {
|
function previousSlide() {
|
||||||
changeServiceItem(--currentServiceItem);
|
changeServiceItem(--currentServiceItem);
|
||||||
print(slideItem);
|
console.log(slideItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeSlide() {
|
function changeSlide() {
|
||||||
if (itemType === "song") {
|
if (itemType === "song") {
|
||||||
SlideObject.setText(root.text[textIndex]);
|
SlideObject.setText(root.text[textIndex]);
|
||||||
print(root.text[textIndex]);
|
console.log(root.text[textIndex]);
|
||||||
textIndex++;
|
textIndex++;
|
||||||
} else if (itemType === "video") {
|
} else if (itemType === "video") {
|
||||||
clearText();
|
clearText();
|
||||||
|
|
|
@ -149,7 +149,7 @@ Item {
|
||||||
|
|
||||||
function changePresentation(presentation) {
|
function changePresentation(presentation) {
|
||||||
root.presentation = presentation;
|
root.presentation = presentation;
|
||||||
print(presentation.filePath.toString());
|
console.log(presentation.filePath.toString());
|
||||||
updatePageCount(presentationPreview.frameCount);
|
updatePageCount(presentationPreview.frameCount);
|
||||||
console.log("page count " + presentation.pageCount);
|
console.log("page count " + presentation.pageCount);
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
print(screen.name);
|
console.log(screen.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
Presenter.Slide {
|
Presenter.Slide {
|
||||||
|
@ -71,7 +71,7 @@ Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopVideo() {
|
function stopVideo() {
|
||||||
print("####I STOPPING####");
|
console.log("####I STOPPING####");
|
||||||
presentationSlide.stopVideo()
|
presentationSlide.stopVideo()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,8 +39,8 @@ Item {
|
||||||
model: outerModelData.slideNumber === 0 ? 1 : outerModelData.slideNumber
|
model: outerModelData.slideNumber === 0 ? 1 : outerModelData.slideNumber
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (name === "Death Was Arrested") {
|
if (name === "Death Was Arrested") {
|
||||||
showPassiveNotification("Number of slides: " + outerModelData.slideNumber);
|
console.log("Number of slides: " + outerModelData.slideNumber);
|
||||||
showPassiveNotification("model number: " + model);
|
console.log("model number: " + model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Rectangle { width: 20; height: 20; radius: 10; color: "green" } */
|
/* Rectangle { width: 20; height: 20; radius: 10; color: "green" } */
|
||||||
|
|
|
@ -59,7 +59,7 @@ Item {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
onDropped: (drag) => {
|
onDropped: (drag) => {
|
||||||
print("DROPPED AT END");
|
console.log("DROPPED AT END");
|
||||||
showPassiveNotification(drag.source.title);
|
showPassiveNotification(drag.source.title);
|
||||||
appendItem(dragItemTitle,
|
appendItem(dragItemTitle,
|
||||||
dragItemType,
|
dragItemType,
|
||||||
|
@ -105,8 +105,8 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
onDropped: (drag) => {
|
onDropped: (drag) => {
|
||||||
print("DROPPED IN ITEM AREA: " + drag.keys);
|
console.log("DROPPED IN ITEM AREA: " + drag.keys);
|
||||||
print(dragItemIndex + " " + index);
|
console.log(dragItemIndex + " " + index);
|
||||||
const hlIndex = serviceItemList.currentIndex;
|
const hlIndex = serviceItemList.currentIndex;
|
||||||
if (drag.keys[0] === "library") {
|
if (drag.keys[0] === "library") {
|
||||||
addItem(index,
|
addItem(index,
|
||||||
|
@ -251,7 +251,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
onReleased: {
|
onReleased: {
|
||||||
print("should drop");
|
console.log("should drop");
|
||||||
visServiceItem.Drag.drop();
|
visServiceItem.Drag.drop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -347,7 +347,7 @@ Item {
|
||||||
/* } */
|
/* } */
|
||||||
|
|
||||||
/* function moveRequested(oldIndex, newIndex) { */
|
/* function moveRequested(oldIndex, newIndex) { */
|
||||||
/* print("moveRequested: ", oldIndex, newIndex); */
|
/* console.log("moveRequested: ", oldIndex, newIndex); */
|
||||||
/* serviceItemModel.moveRows(oldIndex, newIndex, 1); */
|
/* serviceItemModel.moveRows(oldIndex, newIndex, 1); */
|
||||||
/* indexDragged = newIndex; */
|
/* indexDragged = newIndex; */
|
||||||
/* serviceItemList.currentIndex = newIndex; */
|
/* serviceItemList.currentIndex = newIndex; */
|
||||||
|
@ -373,7 +373,7 @@ Item {
|
||||||
contextType: "2d"
|
contextType: "2d"
|
||||||
renderStrategy: Canvas.Threaded
|
renderStrategy: Canvas.Threaded
|
||||||
onPaint: {
|
onPaint: {
|
||||||
print(Kirigami.Theme.hoverColor.name());
|
console.log(Kirigami.Theme.hoverColor.name());
|
||||||
var ctx = getContext("2d");
|
var ctx = getContext("2d");
|
||||||
ctx.fillRule = Qt.OddEvenFill
|
ctx.fillRule = Qt.OddEvenFill
|
||||||
ctx.fillStyle = Kirigami.Theme.hoverColor.rgb();
|
ctx.fillStyle = Kirigami.Theme.hoverColor.rgb();
|
||||||
|
@ -495,7 +495,7 @@ Item {
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
totalServiceItems = serviceItemList.count;
|
totalServiceItems = serviceItemList.count;
|
||||||
print("THE TOTAL SERVICE ITEMS: " + totalServiceItems);
|
console.log("THE TOTAL SERVICE ITEMS: " + totalServiceItems);
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeItem(index) {
|
function removeItem(index) {
|
||||||
|
@ -508,7 +508,7 @@ Item {
|
||||||
font, fontSize, itemID) {
|
font, fontSize, itemID) {
|
||||||
if (type === "song") {
|
if (type === "song") {
|
||||||
const newtext = songsqlmodel.getLyricList(itemID);
|
const newtext = songsqlmodel.getLyricList(itemID);
|
||||||
print("adding: " + name + " of type " + type + " with " + newtext.length + " slides");
|
console.log("adding: " + name + " of type " + type + " with " + newtext.length + " slides");
|
||||||
serviceItemModel.insertItem(index, name,
|
serviceItemModel.insertItem(index, name,
|
||||||
type, background,
|
type, background,
|
||||||
backgroundType, newtext,
|
backgroundType, newtext,
|
||||||
|
@ -517,7 +517,7 @@ Item {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (type === "presentation") {
|
if (type === "presentation") {
|
||||||
print("adding: " + name + " of type " + type + " with " + dragItemSlideNumber + " slides");
|
console.log("adding: " + name + " of type " + type + " with " + dragItemSlideNumber + " slides");
|
||||||
serviceItemModel.insertItem(index, name,
|
serviceItemModel.insertItem(index, name,
|
||||||
type, background,
|
type, background,
|
||||||
backgroundType, "",
|
backgroundType, "",
|
||||||
|
@ -525,7 +525,7 @@ Item {
|
||||||
totalServiceItems++;
|
totalServiceItems++;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
print("adding: " + name + " of type " + type);
|
console.log("adding: " + name + " of type " + type);
|
||||||
serviceItemModel.insertItem(index, name,
|
serviceItemModel.insertItem(index, name,
|
||||||
type, background,
|
type, background,
|
||||||
backgroundType);
|
backgroundType);
|
||||||
|
@ -534,13 +534,13 @@ Item {
|
||||||
|
|
||||||
function appendItem(name, type, background, backgroundType,
|
function appendItem(name, type, background, backgroundType,
|
||||||
text, audio, font, fontSize, itemID) {
|
text, audio, font, fontSize, itemID) {
|
||||||
print("adding: " + name + " of type " + type);
|
console.log("adding: " + name + " of type " + type);
|
||||||
let lyrics;
|
let lyrics;
|
||||||
if (type === "song") {
|
if (type === "song") {
|
||||||
print("THIS IS A SONG!!!!!");
|
console.log("THIS IS A SONG!!!!!");
|
||||||
print(itemID);
|
console.log(itemID);
|
||||||
lyrics = songsqlmodel.getLyricList(itemID);
|
lyrics = songsqlmodel.getLyricList(itemID);
|
||||||
print(lyrics);
|
console.log(lyrics);
|
||||||
serviceItemModel.addItem(name, type, background,
|
serviceItemModel.addItem(name, type, background,
|
||||||
backgroundType, lyrics,
|
backgroundType, lyrics,
|
||||||
audio, font, fontSize);
|
audio, font, fontSize);
|
||||||
|
@ -548,8 +548,8 @@ Item {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
print(background);
|
console.log(background);
|
||||||
print(backgroundType);
|
console.log(backgroundType);
|
||||||
|
|
||||||
serviceItemModel.addItem(name, type, background,
|
serviceItemModel.addItem(name, type, background,
|
||||||
backgroundType);
|
backgroundType);
|
||||||
|
|
|
@ -79,7 +79,7 @@ Item {
|
||||||
/* showPassiveNotification("YIPPEEE!") */
|
/* showPassiveNotification("YIPPEEE!") */
|
||||||
mpv.loadFile(videoSource.toString());
|
mpv.loadFile(videoSource.toString());
|
||||||
if (editMode) {
|
if (editMode) {
|
||||||
print("WHY AREN'T YOU PASUING!");
|
console.log("WHY AREN'T YOU PASUING!");
|
||||||
pauseTimer.restart();
|
pauseTimer.restart();
|
||||||
}
|
}
|
||||||
blackTimer.restart();
|
blackTimer.restart();
|
||||||
|
@ -194,7 +194,7 @@ Item {
|
||||||
function stopVideo() {
|
function stopVideo() {
|
||||||
mpv.stop();
|
mpv.stop();
|
||||||
black.visible = true;
|
black.visible = true;
|
||||||
print("Stopped video");
|
console.log("Stopped video");
|
||||||
}
|
}
|
||||||
|
|
||||||
function seek(pos) {
|
function seek(pos) {
|
||||||
|
|
|
@ -109,8 +109,8 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function appendVerse(verse) {
|
function appendVerse(verse) {
|
||||||
/* print("Let's append some verses") */
|
/* console.log("Let's append some verses") */
|
||||||
/* print(verse); */
|
/* console.log(verse); */
|
||||||
songModel.append({"verse": verse})
|
songModel.append({"verse": verse})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ Item {
|
||||||
|
|
||||||
function playPauseSlide() {
|
function playPauseSlide() {
|
||||||
firstItem = slideList.itemAtIndex(0);
|
firstItem = slideList.itemAtIndex(0);
|
||||||
print(firstItem);
|
console.log(firstItem);
|
||||||
playingVideo = !playingVideo;
|
playingVideo = !playingVideo;
|
||||||
/* firstItem.editMode = false; */
|
/* firstItem.editMode = false; */
|
||||||
firstItem.playPauseVideo();
|
firstItem.playPauseVideo();
|
||||||
|
@ -166,7 +166,7 @@ Item {
|
||||||
for (var i = 0; i < slideList.count; ++i) {
|
for (var i = 0; i < slideList.count; ++i) {
|
||||||
slideList.currentIndex = i;
|
slideList.currentIndex = i;
|
||||||
slideList.currentItem.representation.loadVideo();
|
slideList.currentItem.representation.loadVideo();
|
||||||
print(slideList.currentItem);
|
console.log(slideList.currentItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -278,10 +278,10 @@ Item {
|
||||||
nameFilters: ["Audio files (*.mp3 *.flac *.wav *.opus *.MP3 *.FLAC *.WAV *.OPUS)"]
|
nameFilters: ["Audio files (*.mp3 *.flac *.wav *.opus *.MP3 *.FLAC *.WAV *.OPUS)"]
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
updateAudioFile(audioFileDialog.fileUrls[0]);
|
updateAudioFile(audioFileDialog.fileUrls[0]);
|
||||||
print("audio = " + audioFileDialog.fileUrls[0]);
|
console.log("audio = " + audioFileDialog.fileUrls[0]);
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
print("Canceled")
|
console.log("Canceled")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -294,10 +294,10 @@ Item {
|
||||||
nameFilters: ["Video files (*.mp4 *.mkv *.mov *.wmv *.avi *.MP4 *.MOV *.MKV)"]
|
nameFilters: ["Video files (*.mp4 *.mkv *.mov *.wmv *.avi *.MP4 *.MOV *.MKV)"]
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
updateBackground(videoFileDialog.fileUrls[0], "video");
|
updateBackground(videoFileDialog.fileUrls[0], "video");
|
||||||
print("video background = " + videoFileDialog.fileUrls[0]);
|
console.log("video background = " + videoFileDialog.fileUrls[0]);
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
print("Canceled")
|
console.log("Canceled")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -310,17 +310,17 @@ Item {
|
||||||
nameFilters: ["Image files (*.jpg *.jpeg *.png *.JPG *.JPEG *.PNG)"]
|
nameFilters: ["Image files (*.jpg *.jpeg *.png *.JPG *.JPEG *.PNG)"]
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
updateBackground(imageFileDialog.fileUrls[0], "image");
|
updateBackground(imageFileDialog.fileUrls[0], "image");
|
||||||
print("image background = " + imageFileDialog.fileUrls[0]);
|
console.log("image background = " + imageFileDialog.fileUrls[0]);
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
print("Canceled")
|
console.log("Canceled")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeSong(index) {
|
function changeSong(index) {
|
||||||
clearSlides();
|
clearSlides();
|
||||||
print(index);
|
console.log(index);
|
||||||
const s = songsqlmodel.getSong(index);
|
const s = songsqlmodel.getSong(index);
|
||||||
song = s;
|
song = s;
|
||||||
songLyrics = s.lyrics;
|
songLyrics = s.lyrics;
|
||||||
|
@ -340,7 +340,7 @@ Item {
|
||||||
changeSlideFont(song.font, true);
|
changeSlideFont(song.font, true);
|
||||||
changeSlideFontSize(song.fontSize, true)
|
changeSlideFontSize(song.fontSize, true)
|
||||||
changeSlideText(songIndex);
|
changeSlideText(songIndex);
|
||||||
print(s.title);
|
console.log(s.title);
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateLyrics(lyrics) {
|
function updateLyrics(lyrics) {
|
||||||
|
@ -379,7 +379,7 @@ Item {
|
||||||
song.background = background;
|
song.background = background;
|
||||||
songsqlmodel.updateBackground(songIndex, background);
|
songsqlmodel.updateBackground(songIndex, background);
|
||||||
songsqlmodel.updateBackgroundType(songIndex, backgroundType);
|
songsqlmodel.updateBackgroundType(songIndex, backgroundType);
|
||||||
print("changed background");
|
console.log("changed background");
|
||||||
if (backgroundType === "image") {
|
if (backgroundType === "image") {
|
||||||
//todo
|
//todo
|
||||||
slideEditor.videoBackground = "";
|
slideEditor.videoBackground = "";
|
||||||
|
@ -467,7 +467,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeSlideText(id) {
|
function changeSlideText(id) {
|
||||||
/* print("Here are the verses: " + verses); */
|
/* console.log("Here are the verses: " + verses); */
|
||||||
const verses = songsqlmodel.getLyricList(id);
|
const verses = songsqlmodel.getLyricList(id);
|
||||||
verses.forEach(slideEditor.appendVerse);
|
verses.forEach(slideEditor.appendVerse);
|
||||||
/* slideEditor.loadVideo(); */
|
/* slideEditor.loadVideo(); */
|
||||||
|
|
|
@ -223,9 +223,9 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function stop() {
|
function stop() {
|
||||||
print("stopping video");
|
console.log("stopping video");
|
||||||
videoPreview.pause();
|
videoPreview.pause();
|
||||||
print("quit mpv");
|
console.log("quit mpv");
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateEndTime(value) {
|
function updateEndTime(value) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue