Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v0.6.2 #177

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
714820d
Merge branch 'master' into develop
May 23, 2024
8da0619
add custom message handler
May 26, 2024
e43333b
Merge pull request #138 from saeugetier/74-log-file
saeugetier May 26, 2024
7ae71cd
Merge remote-tracking branch 'origin/develop' into feature/111-image-…
May 29, 2024
e365412
add evaluation of tag rotation
May 29, 2024
9d229e0
fix path
May 29, 2024
84a8abf
Merge branch 'develop' into feature/111-image-rotation
May 29, 2024
ccced65
rename property to imageRotation
May 29, 2024
5ff5440
use rotation in renderer
May 29, 2024
753c8c1
scale down rotated images
May 29, 2024
2331edb
intermediate state. overall size of image is needed.
May 31, 2024
486ef7b
add property collage size
May 31, 2024
0aefade
add size information to xml
May 31, 2024
c5827a5
add parsing of size information
May 31, 2024
bced613
correct xml syntax
May 31, 2024
34c87e1
use first child element instead of all subtree elements
May 31, 2024
ed296f9
use image model size instead of printer size
May 31, 2024
b829ecf
remove print size function from printer
May 31, 2024
485a4eb
fix log output in console
May 31, 2024
757ce4c
Merge pull request #141 from saeugetier/feature/140-get-rid-of-hard-c…
saeugetier May 31, 2024
7dff36d
Merge branch 'develop' into feature/111-image-rotation
May 31, 2024
064fc20
add missing element
May 31, 2024
8a2d7ee
use image size information
Jun 1, 2024
819d1f0
Merge pull request #157 from saeugetier/feature/111-image-rotation
saeugetier Jun 1, 2024
9c2b823
add gallery page
Jun 1, 2024
da59d82
implement some dummy delay for proper simulation of printer
Jun 2, 2024
b965dc6
transistion between main menu and gallery view
Jun 2, 2024
a6dd2ee
implement print function in gallery
Jun 2, 2024
97ebcf2
fix null reference warning
Jun 4, 2024
cc525ef
added toolbar for switching between photos and collages
Jun 18, 2024
b4e61a9
return to main page after start printing
Jun 18, 2024
1e15882
diable exit button while in full screen preview
Jun 18, 2024
73b4033
add app setting for enabling/disabling printing from gallery
Jun 19, 2024
f9e60bc
Merge pull request #167 from saeugetier/feature/152-photo-an-collage-…
saeugetier Jun 19, 2024
a35dc73
Merge branch 'develop' into feature/137-disable-password-for-settings…
Jun 19, 2024
9baac5f
add option to disable settings password
Jun 19, 2024
d39f2e4
Merge pull request #168 from saeugetier/feature/137-disable-password-…
saeugetier Jun 19, 2024
0589e3d
code formatting
Jun 19, 2024
9aa00df
format
Jun 19, 2024
b527c23
Merge pull request #169 from saeugetier/feature/143-code-formating
saeugetier Jun 19, 2024
de4775b
update translation
Jun 19, 2024
e9b44af
Merge branch 'develop' into feature/131-automatic-return-to-front-pag…
Jun 19, 2024
6734a6f
add poperty to enable timeout timer
Jun 19, 2024
27a7218
Merge pull request #170 from saeugetier/feature/131-automatic-return-…
saeugetier Jun 19, 2024
c6caaed
implemented timeout timer
Jun 19, 2024
d85fb61
Merge pull request #171 from saeugetier/feature/131-automatic-return-…
saeugetier Jun 19, 2024
5b5e8f6
use formatter for security of log message
saeugetier Jun 26, 2024
3978685
fix null objets
Jun 26, 2024
b6c3c21
fixes #175 print butten still available while printing is disabled
Jun 26, 2024
b64d2ab
better log messages and prevent divide by 0
Jun 26, 2024
923f4b1
Merge branch 'develop' into release/v0.6.2
Jun 26, 2024
b00fc01
improve log message
Jun 26, 2024
08686ea
Merge branch 'release/v0.6.2' into develop
Jun 26, 2024
0225e64
add debug messages
Jun 27, 2024
28d7273
fix margin around collage
Jun 27, 2024
ad7682b
#174 address issue when trying to convert a jpg to jpg
Jun 27, 2024
51fcff0
size cannot be smaller than 0
Jun 27, 2024
108da85
remove size from arguments list
Jun 28, 2024
e0537af
Merge branch 'develop' into release/v0.6.2
Jul 2, 2024
f7e80dc
add more debug messages
Jul 2, 2024
00d788f
add more debug messages
Jul 2, 2024
bd961ab
Merge branch 'develop' of https://github.com/saeugetier/photobooth in…
Jul 2, 2024
347ec43
Merge branch 'develop' into release/v0.6.2
Jul 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions XmlData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<icon>SingleNoPrint.svg</icon>
<background>WhiteBackground.png</background>
<foreground>ExampleForeground.png</foreground>
<size width="3570" height="2380"/>
<images>
<image><position x="0.0" y="0.0"/><size width="1.0" height="1.0"/></image>
</images>
Expand All @@ -14,6 +15,7 @@
<name>Single Image</name>
<icon>Single.svg</icon>
<background>WhiteBackground.png</background>
<size width="3570" height="2380"/>
<images>
<image><position x="0.0" y="0.0"/><size width="1.0" height="1.0"/></image>
</images>
Expand All @@ -22,6 +24,7 @@
<name>Two Images</name>
<icon>Double.svg</icon>
<background>WhiteBackground.png</background>
<size width="3570" height="2380"/>
<images>
<image>
<position x="0.0" y="0.0"/><size width="0.5" height="1.0"/>
Expand All @@ -38,17 +41,31 @@
<name>Four Images</name>
<icon>Four.svg</icon>
<background>WhiteBackground.png</background>
<size width="3570" height="2380"/>
<images>
<image><position x="0.0" y="0.0"/><size width="0.5" height="0.5"/></image>
<image><position x="0.5" y="0.0"/><size width="0.5" height="0.5"/></image>
<image><position x="0.0" y="0.5"/><size width="0.5" height="0.5"/></image>
<image><position x="0.5" y="0.5"/><size width="0.5" height="0.5"/></image>
</images>
</collage>
<collage>
<name>Four Images Rotation</name>
<icon>Four.svg</icon>
<background>WhiteBackground.png</background>
<size width="3570" height="2380"/>
<images>
<image><position x="0.02" y="0.02"/><size width="0.46" height="0.46"/><rotation>0.0</rotation></image>
<image><position x="0.5" y="0.06"/><size width="0.45" height="0.45"/><rotation>10.0</rotation></image>
<image><position x="0.05" y="0.5"/><size width="0.4" height="0.4"/><rotation>20.0</rotation></image>
<image><position x="0.5" y="0.47"/><size width="0.4" height="0.4"/><rotation>30.0</rotation></image>
</images>
</collage>
<collage>
<name>Four Images with Background</name>
<icon>FourStars.svg</icon>
<background>StarsBackground.jpg</background>
<size width="3570" height="2380"/>
<images>
<image><position x="0.05" y="0.05"/><size width="0.4" height="0.4"/></image>
<image><position x="0.55" y="0.05"/><size width="0.4" height="0.4"/></image>
Expand All @@ -60,6 +77,7 @@
<name>Four Images Border</name>
<icon>FourBorder.svg</icon>
<background>WhiteBackground.png</background>
<size width="3570" height="2380"/>
<images>
<image>
<position x="0.0" y="0.0"/><size width="0.5" height="0.5"/>
Expand Down
4 changes: 4 additions & 0 deletions qml.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,9 @@
<file>qml/content/PrinterPopup.qml</file>
<file>images/ExampleForeground.png</file>
<file>images/icon/SingleNoPrint.svg</file>
<file>qml/GalleryMenu.qml</file>
<file>qml/GalleryMenuForm.ui.qml</file>
<file>qml/content/DelegateGalleryItem.qml</file>
<file>qml/styles/RoundProgressBarStyle.qml</file>
</qresource>
</RCC>
17 changes: 16 additions & 1 deletion qml/Application.qml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ ApplicationWindow {
onPrinterChanged:
{
flow.collageMenu.printer = printer
flow.galleryMenu.printer = printer
}

ApplicationFlow
Expand All @@ -85,6 +86,11 @@ ApplicationWindow {
applicationSettings.multiplePrints = mainMenu.settingsPopup.switchMultiplePrints.checked
}

mainMenu.settingsPopup.switchPrintFromGallery.onCheckedChanged:
{
applicationSettings.printFromGallery = mainMenu.settingsPopup.switchPrintFromGallery.checked
}

mainMenu.settingsPopup.switchHideSnapshotSettings.onCheckedChanged:
{
applicationSettings.disableSnapshotSettingsPane = mainMenu.settingsPopup.switchHideSnapshotSettings.checked
Expand Down Expand Up @@ -136,7 +142,12 @@ ApplicationWindow {
applicationSettings.cameraName = mainMenu.settingsPopup.comboBoxCamera.currentText
}

mainMenu.printerBusy: printer.busy
mainMenu.settingsPopup.switchEnableSettingsPassword.onCheckedChanged:
{
applicationSettings.enableSettingsPassword = mainMenu.settingsPopup.switchEnableSettingsPassword.checked
}

mainMenu.printerBusy: printer ? printer.busy : false
}

Settings
Expand All @@ -154,15 +165,19 @@ ApplicationWindow {
property bool disableSnapshotSettingsPane: false
property bool disableEffectPopup: false
property string cameraName: ""
property bool printFromGallery: true
property bool enableSettingsPassword: true

Component.onCompleted:
{
flow.mainMenu.settingsPopup.printerEnabled.checked = printEnable
flow.mainMenu.settingsPopup.switchPrintFromGallery.checked = printFromGallery
flow.mainMenu.settingsPopup.switchMultiplePrints.checked = multiplePrints
flow.mainMenu.settingsPinCode = password
flow.mainMenu.settingsPopup.mirrorCamera.checked = cameraMirrored
flow.mainMenu.settingsPopup.switchHideSnapshotSettings.checked = disableSnapshotSettingsPane
flow.mainMenu.settingsPopup.switchHideEffectPopup.checked = disableEffectPopup
flow.mainMenu.settingsPopup.switchEnableSettingsPassword.checked = enableSettingsPassword
flow.mainMenuModel.setShowPrintable(printEnable)
flow.collageMenu.multiplePrints = multiplePrints
flow.snapshotMenu.hideSnapshotSettingsPane = disableSnapshotSettingsPane
Expand Down
22 changes: 22 additions & 0 deletions qml/ApplicationFlow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ ApplicationFlowForm {
mainMenu.selectedCollageName = ""
}

mainMenu.onGalleryEnter:
{
state = "gallery"
}

snapshotMenu.onCaptured:
{
state = "imagePreview"
Expand Down Expand Up @@ -79,6 +84,16 @@ ApplicationFlowForm {
state = "collageSelection"
}

collageMenu.collageImage.onCollageImagesChanged:
{
snapshotMenu.snapshotTimeoutEnable = (count == 0)
}

galleryMenu.onExitGallery:
{
state = "collageSelection"
}

Behavior on slideValueCollageSelection {
PropertyAnimation {
duration: flow.animationDuration
Expand Down Expand Up @@ -106,6 +121,13 @@ ApplicationFlowForm {
easing.type: Easing.InOutQuad
}
}

Behavior on slideValueGalleryMenu {
PropertyAnimation {
duration: flow.animationDuration
easing.type: Easing.InOutQuad
}
}
}


39 changes: 39 additions & 0 deletions qml/ApplicationFlowForm.ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ Item {
property alias snapshotMenu: snapshotMenu
property alias imagePreview: imagePreview
property alias collageMenu: collageMenu
property alias galleryMenu: galleryMenu

property real slideValueCollageSelection: 0.0
property real slideValueSnapshotMenu: 1.0
property real slideValuePreviewMenu: 1.0
property real slideValueCollageMenu: 1.0
property real slideValueGalleryMenu: 1.0

MainMenu {
id: mainMenu
Expand Down Expand Up @@ -47,6 +49,16 @@ Item {
width: root.width
height: root.height
}

GalleryMenu
{
id: galleryMenu
x: root.width * slideValueGalleryMenu
y: 0
width: root.width
height: root.height
}

states: [
State {
name: "collageSelection"
Expand Down Expand Up @@ -108,6 +120,33 @@ Item {
target: snapshotMenu
visible: false
}
},
State {
name: "gallery"

PropertyChanges {
target: root
slideValueCollageSelection: -1.0
slideValueSnapshotMenu: -1.0
slideValuePreviewMenu: -1.0
slideValueCollageMenu: -1.0
slideValueGalleryMenu: 0.0
}

PropertyChanges {
target: snapshotMenu
visible: false
}

PropertyChanges {
target: imagePreview
visible: false
}

PropertyChanges {
target: collageMenu
visible: false
}
}
]
}
Expand Down
13 changes: 7 additions & 6 deletions qml/CollageMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ CollageMenuForm {
signal next
signal exit

printButton.enabled: !printer.busy
property real printerHeight : printer.getPrintSize().height
property real printerWidth : printer.getPrintSize().width
printButton.enabled: printer ? !printer.busy : false
property real printerHeight : form.collageImage.imageModel ? form.collageImage.imageModel.collagePixelSize.height : 0
property real printerWidth : form.collageImage.imageModel ? form.collageImage.imageModel.collagePixelSize.width : 0
printerRatio: printerHeight / printerWidth

nextButton.onClicked:
Expand All @@ -31,10 +31,11 @@ CollageMenuForm {
var path = applicationSettings.foldername.toString()
path = path.replace(/^(file:\/{2})/,"");
var cleanPath = decodeURIComponent(path);
console.log(cleanPath)
var filename = cleanPath + "/collage/Coll_"+ new Date().toLocaleString(locale, "dd_MM_yyyy_hh_mm_ss") + ".png"
collageRenderer.saveImage(filename, printer.getPrintSize())
console.log("Collage rendered")
console.log("Save files to: " + filename)
collageRenderer.saveImage(filename, form.collageImage.imageModel.collagePixelSize)
console.log("Collage rendered width: " + Number(form.collageImage.imageModel.collagePixelSize.width).toString()
+ " height: " + form.collageImage.imageModel.collagePixelSize.height)
}

collageRenderer.onSavingChanged:
Expand Down
7 changes: 5 additions & 2 deletions qml/CollageMenuForm.ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ Item {
property double aimedRatio: printerRatio

// SIZING
property double availableWidth: parent.width - rightMargin - leftMargin
property double availableHeight: parent.height - bottomMargin - topMargin
property double calculatedWidth: parent.width - rightMargin - leftMargin
property double calculatedHeight: parent.height - bottomMargin - topMargin

property double availableWidth: calculatedWidth > 10 ? calculatedWidth : 10
property double availableHeight: calculatedHeight > 10 ? calculatedHeight : 10

property bool parentIsLarge: parentRatio > aimedRatio

Expand Down
55 changes: 55 additions & 0 deletions qml/GalleryMenu.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import QtQuick 2.5
import Printer 1.0

GalleryMenuForm {
property alias foldermodel: galleryForm.foldermodel
signal exitGallery
property alias printer: galleryForm.printer

id: galleryForm


scrollDownButton.onPressed:
{
scrollBar.increase()
}

scrollUpButton.onPressed:
{
scrollBar.decrease()
}

photosGrid.onCurrentIndexChanged: {
photoView.positionViewAtIndex(photosGrid.currentIndex, ListView.Contain)
}

photoView.onCurrentIndexChanged: {
photosGrid.positionViewAtIndex(photoView.currentIndex, GridView.Contain)
}

function resetGallery()
{
viewState = "inGrid"
}

exitButton.onClicked:
{
exitGallery()
}

photoButton.onClicked:
{
foldermodel.folder = applicationSettings.foldername
}

collageButton.onClicked:
{
foldermodel.folder = applicationSettings.foldername + "/collage"
}
}


/*##^## Designer {
D{i:0;autoSize:true;height:480;width:640}
}
##^##*/
Loading