Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c81571464 | ||
|
|
8394ecff9c | ||
|
|
6c7f8ddea3 | ||
|
|
b45a280acb | ||
|
|
2121857fc1 | ||
|
|
a912f47c95 | ||
|
|
0cfaedebfa | ||
|
|
be156d1df5 | ||
|
|
f651297bdf | ||
|
|
851b7c53c6 | ||
|
|
c060ba5596 | ||
|
|
c772e20e67 | ||
|
|
361b083a1d | ||
|
|
3d34b9c1ec | ||
|
|
052257ea98 | ||
|
|
c9bc4b1ef0 | ||
|
|
83044b94d4 | ||
|
|
1eb3b40e4b | ||
|
|
8bad88ce04 | ||
|
|
042e0d52c9 | ||
|
|
b35d6712f4 | ||
|
|
85cb638be9 | ||
|
|
014372b9c0 | ||
|
|
2131f4ffa3 | ||
|
|
1cb4d55335 | ||
|
|
9b67599979 | ||
|
|
6ff4330f26 | ||
|
|
aa8e8fecf4 | ||
|
|
56af1c154a | ||
|
|
22cae20707 | ||
|
|
447a6b45af | ||
|
|
f946247d1d | ||
|
|
f9991998ed | ||
|
|
40d82e757e | ||
|
|
da190a22c1 | ||
|
|
2995f06d49 | ||
|
|
ff6a9ebfae | ||
|
|
e01718928c | ||
|
|
f5dbf44ec7 | ||
|
|
f55f8c731d | ||
|
|
4ed491c78a | ||
|
|
b54cde2cbf | ||
|
|
b1d12cc406 | ||
|
|
aa13355966 | ||
|
|
bd35a8c3e0 | ||
|
|
81413b51da | ||
|
|
a01d640c27 | ||
|
|
16800df138 | ||
|
|
7e8fd4ea21 | ||
|
|
04fa491cd8 | ||
|
|
dbf8c09368 | ||
|
|
369a17ed7d | ||
|
|
b19a4f8723 | ||
|
|
a8e5464e9f | ||
|
|
46f46480cb | ||
|
|
c06f900ac5 | ||
|
|
31303a20c7 | ||
|
|
319fd64fc6 | ||
|
|
cdd0b764a7 | ||
|
|
2a69482adb | ||
|
|
fc3ef1cd7f | ||
|
|
1de1517a81 | ||
|
|
04a4ab9bff | ||
|
|
011c1e858f | ||
|
|
4fe09757b3 | ||
|
|
82f1f10cca | ||
|
|
60eebea741 | ||
|
|
9b151e2fea | ||
|
|
9db9c3e9f7 | ||
|
|
9a18a41b8f | ||
|
|
c93ed94210 | ||
|
|
f4d272e014 | ||
|
|
d536e8c611 | ||
|
|
c8dfccb460 | ||
|
|
6fde9474ae | ||
|
|
c19fcaa560 | ||
|
|
602e2cccf8 | ||
|
|
3c1a3c54a7 | ||
|
|
032752faf9 | ||
|
|
457647c59f | ||
|
|
821e0f9fd6 | ||
|
|
26f51e418d | ||
|
|
cd2eac44f1 | ||
|
|
f0bb945c7d | ||
|
|
870e472f53 | ||
|
|
76677381de | ||
|
|
d2bd521ad0 | ||
|
|
265e894b3f | ||
|
|
6339a93c6c | ||
|
|
6da53ced81 | ||
|
|
8f0d4da7ad | ||
|
|
9c8ffb6c1b | ||
|
|
4c5c5e6fc6 | ||
|
|
b8cb10bb33 | ||
|
|
6e2f40633e | ||
|
|
a0ba7c1d17 | ||
|
|
b6d759d7c6 | ||
|
|
437c2f5618 | ||
|
|
7fd4924e64 | ||
|
|
c77808f3d8 | ||
|
|
86075a1ad0 | ||
|
|
a8e40a725c | ||
|
|
8edb6b015e | ||
|
|
5b2255e903 | ||
|
|
4948ea7445 | ||
|
|
e09348e064 | ||
|
|
fce6a835b7 | ||
|
|
afcd126c00 | ||
|
|
aa025b0f3b | ||
|
|
e6e738412d | ||
|
|
2e748e19e1 | ||
|
|
4b5c9e9ebd | ||
|
|
cdfa8b78a4 | ||
|
|
1ba5ae60dc | ||
|
|
08d1c09033 | ||
|
|
612b542e2a | ||
|
|
d74db66ab5 | ||
|
|
9dd34b3fce | ||
|
|
adfe6c51da | ||
|
|
96565b2ccf | ||
|
|
107440145a | ||
|
|
1c55e3194e | ||
|
|
9021ff2579 | ||
|
|
10e1e91e7b | ||
|
|
ef887d7a06 | ||
|
|
5446d94966 | ||
|
|
a2f42c2e3d | ||
|
|
56b18353db | ||
|
|
9170765344 | ||
|
|
ee7b3beda4 | ||
|
|
919a672c17 | ||
|
|
e52a6d8eed | ||
|
|
8b0c8ec194 | ||
|
|
1da7fff518 | ||
|
|
e216592205 | ||
|
|
8fc9d06937 | ||
|
|
73b15da182 | ||
|
|
f4f7d93e38 | ||
|
|
591b01a83a | ||
|
|
f8d3dcc899 | ||
|
|
f0ed9d0ca1 | ||
|
|
13227cfac9 | ||
|
|
b73df5ea1a | ||
|
|
4375fe1c2d | ||
|
|
4654cb21a0 | ||
|
|
ba23208a7a | ||
|
|
ed5a602332 | ||
|
|
347681e604 | ||
|
|
505ab9e2a6 | ||
|
|
c787e14a69 | ||
|
|
29c5783a66 | ||
|
|
ddc75f7cd0 | ||
|
|
f976fea418 | ||
|
|
2846e4907b | ||
|
|
c828f86b74 | ||
|
|
040e2a7b5f | ||
|
|
b566096b1f | ||
|
|
2bee79c064 | ||
|
|
91696963ae | ||
|
|
1623ca315a | ||
|
|
3cfb25db9a | ||
|
|
36854d19f4 | ||
|
|
3f7ebd2f6c | ||
|
|
291a98ea97 | ||
|
|
24a0b581f3 | ||
|
|
369aa13be3 | ||
|
|
b964fdc77f | ||
|
|
d6d2703c93 | ||
|
|
c6068ba23d | ||
|
|
fbdd858fbd | ||
|
|
8333f17199 | ||
|
|
30eb06cba7 | ||
|
|
0a45cd7c22 | ||
|
|
fc417b30e5 | ||
|
|
8568f6d4ef | ||
|
|
8832c2daa9 | ||
|
|
da9d7d6989 | ||
|
|
317d296507 | ||
|
|
f24743e381 | ||
|
|
fd4af282af | ||
|
|
4de03dd02e | ||
|
|
bfaf702606 | ||
|
|
3203d7f598 | ||
|
|
cbd006bae7 | ||
|
|
fc13a497d3 | ||
|
|
183a61b2f6 | ||
|
|
ae07c5fe44 | ||
|
|
a33381557b | ||
|
|
6d8ec6a54a | ||
|
|
dd3209e3ff | ||
|
|
088066197f | ||
|
|
3a8e907f28 | ||
|
|
eb04ac362b | ||
|
|
6d7d0e4e1d | ||
|
|
ff4f71c1e6 | ||
|
|
101f111209 | ||
|
|
c227c74e23 | ||
|
|
32ff813609 | ||
|
|
2de9ff810d | ||
|
|
57354fc135 | ||
|
|
07d0b0270e | ||
|
|
78e3e45a2e | ||
|
|
5a34441c72 | ||
|
|
b01601085b | ||
|
|
64c4d2e064 | ||
|
|
e64b871a2f | ||
|
|
06af632914 | ||
|
|
99abf3b69d | ||
|
|
42b6510877 | ||
|
|
aa746721f0 | ||
|
|
42e3d4c691 | ||
|
|
a993437983 | ||
|
|
8cce48e6b0 | ||
|
|
d0bdc71cf5 | ||
|
|
2071e82e1d | ||
|
|
b2f10b9193 | ||
|
|
9eb91dedf9 | ||
|
|
6f3c30fc5b | ||
|
|
3eade9c3cf |
No files matched your search
@@ -0,0 +1,3 @@
|
|||||||
|
# .git-blame-ignore-revs
|
||||||
|
# CR LF to LF
|
||||||
|
ed5a6023326fd2ab420ded76976501be33e0b389
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
*.txt text eol=lf
|
||||||
|
*.cpp text eol=lf
|
||||||
|
*.h text eol=lf
|
||||||
|
*.ui text eol=lf
|
||||||
|
*.qml text eol=lf
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
ko_fi: blumia
|
|
||||||
custom: ["https://blumia.itch.io/pineapple-pictures"]
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
name: macOS CI
|
name: macOS CI
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -8,12 +8,38 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- name: Install Qt
|
- name: Install uv
|
||||||
uses: jurplel/install-qt-action@v3
|
uses: astral-sh/setup-uv@v6
|
||||||
with:
|
with:
|
||||||
version: '6.4.2'
|
enable-cache: true
|
||||||
- name: Run a qt project
|
- name: Install MetaGlot
|
||||||
|
run: uv tool install git+https://github.com/SarasasChipWorkshop/metaglot.git
|
||||||
|
- name: Install Qt
|
||||||
|
uses: jurplel/install-qt-action@v4
|
||||||
|
with:
|
||||||
|
version: '6.11.2'
|
||||||
|
modules: 'qtimageformats'
|
||||||
|
cache: true
|
||||||
|
- name: Install Conan and Dependencies
|
||||||
|
id: conan
|
||||||
|
working-directory: ./
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cmake ./ -DPREFER_QT_5=OFF
|
pip3 install wheel setuptools
|
||||||
make
|
pip3 install conan --upgrade
|
||||||
|
conan --version
|
||||||
|
conan profile detect
|
||||||
|
conan install --requires=exiv2/0.28.3 --generator CMakeDeps --generator CMakeToolchain --build=missing
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
cmake . -DTRANSLATION_RESOURCE_EMBEDDING=ON --preset conan-release
|
||||||
|
cmake --build --preset conan-release
|
||||||
|
- name: Deploy
|
||||||
|
run: |
|
||||||
|
macdeployqt ./scwpic.app -dmg
|
||||||
|
ls
|
||||||
|
- uses: actions/upload-artifact@v6
|
||||||
|
with:
|
||||||
|
name: "macos-bundle"
|
||||||
|
path: "*.dmg"
|
||||||
@@ -7,9 +7,11 @@ name: REUSE Compliance Check
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
reuse-compliance-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: REUSE Compliance Check
|
- name: REUSE Compliance Check
|
||||||
uses: fsfe/reuse-action@v2
|
uses: fsfe/reuse-action@v5
|
||||||
@@ -1,36 +1,18 @@
|
|||||||
name: Ubuntu CI
|
name: Ubuntu CI
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-22-04-build:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Get build dept.
|
|
||||||
run: |
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install cmake qtbase5-dev libqt5svg5-dev qttools5-dev libexiv2-dev
|
|
||||||
- name: Build it
|
|
||||||
run: |
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake ../ -DPREFER_QT_5=ON
|
|
||||||
make
|
|
||||||
cpack -G DEB
|
|
||||||
- name: Try install it
|
|
||||||
run: |
|
|
||||||
cd build
|
|
||||||
sudo apt install ./*.deb
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ubuntu-22.04-deb-package
|
|
||||||
path: build/*.deb
|
|
||||||
|
|
||||||
ubuntu-24-04-build:
|
ubuntu-24-04-build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v6
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
- name: Install MetaGlot
|
||||||
|
run: uv tool install git+https://github.com/SarasasChipWorkshop/metaglot.git
|
||||||
- name: Get build dept.
|
- name: Get build dept.
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
@@ -39,14 +21,44 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ../ -DPREFER_QT_5=OFF
|
cmake ../
|
||||||
make
|
make
|
||||||
cpack -G DEB
|
cpack -G DEB
|
||||||
- name: Try install it
|
- name: Try install it
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
sudo apt install ./*.deb
|
sudo apt install ./*.deb
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: ubuntu-24.04-deb-package
|
name: ubuntu-24.04-deb-package
|
||||||
path: build/*.deb
|
path: build/*.deb
|
||||||
|
|
||||||
|
ubuntu-26-04-build:
|
||||||
|
runs-on: ubuntu-26.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v6
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
- name: Install MetaGlot
|
||||||
|
run: uv tool install git+https://github.com/SarasasChipWorkshop/metaglot.git
|
||||||
|
- name: Get build dept.
|
||||||
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install cmake qt6-base-dev qt6-svg-dev qt6-tools-dev libexiv2-dev
|
||||||
|
- name: Build it
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ../
|
||||||
|
make
|
||||||
|
cpack -G DEB
|
||||||
|
- name: Try install it
|
||||||
|
run: |
|
||||||
|
cd build
|
||||||
|
sudo apt install ./*.deb
|
||||||
|
- uses: actions/upload-artifact@v6
|
||||||
|
with:
|
||||||
|
name: ubuntu-26.04-deb-package
|
||||||
|
path: build/*.deb
|
||||||
@@ -3,48 +3,12 @@ name: Windows CI
|
|||||||
on: [push, pull_request, workflow_dispatch]
|
on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
msvc-qmake-build:
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- qt_ver: '6.8.0'
|
|
||||||
vs: '2022'
|
|
||||||
aqt_arch: 'win64_msvc2022_64'
|
|
||||||
msvc_arch: 'x64'
|
|
||||||
|
|
||||||
runs-on: windows-2022
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install Qt
|
|
||||||
uses: jurplel/install-qt-action@v4
|
|
||||||
with:
|
|
||||||
arch: ${{ matrix.aqt_arch }}
|
|
||||||
version: ${{ matrix.qt_ver }}
|
|
||||||
modules: 'qtimageformats'
|
|
||||||
- name: Build
|
|
||||||
shell: cmd
|
|
||||||
run: |
|
|
||||||
set VS=${{ matrix.vs }}
|
|
||||||
set VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
|
|
||||||
if not exist %VCVARS% set VCVARS="C:\Program Files\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
|
|
||||||
call %VCVARS% ${{ matrix.msvc_arch }}
|
|
||||||
qmake pineapple-pictures.pro
|
|
||||||
nmake
|
|
||||||
nmake clean
|
|
||||||
windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler --no-system-dxc-compiler --skip-plugin-types tls,networkinformation release\ppic.exe
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: "windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-qmake-package"
|
|
||||||
path: release/*
|
|
||||||
|
|
||||||
msvc-cmake-build:
|
msvc-cmake-build:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- qt_ver: '6.8.0'
|
- qt_ver: '6.11.2'
|
||||||
vs: '2022'
|
vs: '2022'
|
||||||
aqt_arch: 'win64_msvc2022_64'
|
aqt_arch: 'win64_msvc2022_64'
|
||||||
msvc_arch: 'x64'
|
msvc_arch: 'x64'
|
||||||
@@ -52,13 +16,22 @@ jobs:
|
|||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v6
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
- name: Install MetaGlot
|
||||||
|
run: uv tool install git+https://github.com/SarasasChipWorkshop/metaglot.git
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v4
|
||||||
with:
|
with:
|
||||||
arch: ${{ matrix.aqt_arch }}
|
arch: ${{ matrix.aqt_arch }}
|
||||||
version: ${{ matrix.qt_ver }}
|
version: ${{ matrix.qt_ver }}
|
||||||
modules: 'qtimageformats'
|
modules: 'qtimageformats'
|
||||||
|
cache: true
|
||||||
|
# we need this until miurahr/aqtinstall#1007 ships 3.3.1 for Qt >= 6.11.0 for Windows.
|
||||||
|
aqtsource: 'aqtinstall @ git+https://github.com/miurahr/aqtinstall@16db45a70b5905ad596941b223469bc86a56901a'
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
@@ -71,55 +44,71 @@ jobs:
|
|||||||
:: ------ dep ------
|
:: ------ dep ------
|
||||||
set CMAKE_PREFIX_PATH=%PWD%/dependencies_bin
|
set CMAKE_PREFIX_PATH=%PWD%/dependencies_bin
|
||||||
mkdir dependencies_src
|
mkdir dependencies_src
|
||||||
:: ===== exiv2 =====
|
echo ::group::===== exiv2 =====
|
||||||
curl -fsSL -o exiv2_bin.zip https://github.com/Exiv2/exiv2/releases/download/v0.28.3/exiv2-0.28.3-2019msvc64.zip
|
curl -fsSL -o exiv2_bin.zip https://github.com/Exiv2/exiv2/releases/download/v0.28.7/exiv2-0.28.7-2022msvc-AMD64.zip
|
||||||
7z x exiv2_bin.zip -y
|
7z x exiv2_bin.zip -y
|
||||||
ren .\exiv2-0.28.3-2019msvc64 dependencies_bin
|
ren .\exiv2-0.28.7-2022msvc-AMD64 dependencies_bin
|
||||||
:: ===== zlib =====
|
echo ::endgroup::
|
||||||
curl -fsSL -o zlib_src.zip https://zlib.net/zlib131.zip
|
echo ::group::===== zlib =====
|
||||||
|
curl -fsSL -o zlib_src.zip https://github.com/madler/zlib/releases/download/v1.3.2/zlib132.zip
|
||||||
7z x zlib_src.zip -y -o"dependencies_src"
|
7z x zlib_src.zip -y -o"dependencies_src"
|
||||||
ren .\dependencies_src\zlib-1.3.1 zlib || goto :error
|
ren .\dependencies_src\zlib-1.3.2 zlib || goto :error
|
||||||
cmake ./dependencies_src/zlib -Bbuild_dependencies/zlib -DCMAKE_INSTALL_PREFIX="dependencies_bin" || goto :error
|
cmake ./dependencies_src/zlib -Bbuild_dependencies/zlib -DCMAKE_INSTALL_PREFIX="dependencies_bin" || goto :error
|
||||||
cmake --build build_dependencies/zlib --config Release --target=install || goto :error
|
cmake --build build_dependencies/zlib --config Release --target=install || goto :error
|
||||||
curl -fsSL -o expat_src.zip https://github.com/libexpat/libexpat/archive/R_2_6_2.zip
|
echo ::endgroup::
|
||||||
:: ===== AOM for libavif AVI decoding support =====
|
echo ::group::===== AOM for libavif AVI decoding support =====
|
||||||
git clone -q -b v3.10.0 --depth 1 https://aomedia.googlesource.com/aom dependencies_src/aom
|
git clone -q -b v3.13.1 --depth 1 https://aomedia.googlesource.com/aom dependencies_src/aom
|
||||||
cmake ./dependencies_src/aom -Bbuild_dependencies/aom -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DENABLE_DOCS=OFF -DBUILD_SHARED_LIBS=ON -DAOM_TARGET_CPU=generic -DENABLE_TESTS=OFF -DENABLE_TESTDATA=OFF -DENABLE_TOOLS=OFF -DENABLE_EXAMPLES=0 || goto :error
|
cmake ./dependencies_src/aom -Bbuild_dependencies/aom -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DENABLE_DOCS=OFF -DBUILD_SHARED_LIBS=ON -DAOM_TARGET_CPU=generic -DENABLE_TESTS=OFF -DENABLE_TESTDATA=OFF -DENABLE_TOOLS=OFF -DENABLE_EXAMPLES=0 || goto :error
|
||||||
cmake --build build_dependencies/aom --config Release --target=install || goto :error
|
cmake --build build_dependencies/aom --config Release --target=install || goto :error
|
||||||
:: ===== libavif =====
|
echo ::endgroup::
|
||||||
curl -fsSL -o libavif-v1_1_1.zip https://github.com/AOMediaCodec/libavif/archive/v1.1.1.zip
|
echo ::group::===== libavif =====
|
||||||
7z x libavif-v1_1_1.zip -y -o"dependencies_src"
|
curl -fsSL -o libavif-v1_3_0.zip https://github.com/AOMediaCodec/libavif/archive/v1.3.0.zip
|
||||||
ren .\dependencies_src\libavif-1.1.1 libavif || goto :error
|
7z x libavif-v1_3_0.zip -y -o"dependencies_src"
|
||||||
cmake ./dependencies_src/libavif -Bbuild_dependencies/libavif -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DAVIF_CODEC_AOM=ON -DAVIF_LOCAL_LIBYUV=ON
|
ren .\dependencies_src\libavif-1.3.0 libavif || goto :error
|
||||||
|
cmake ./dependencies_src/libavif -Bbuild_dependencies/libavif -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DAVIF_CODEC_AOM=SYSTEM -DAVIF_CODEC_AOM_DECODE=ON -DAVIF_CODEC_AOM_ENCODE=ON -DAVIF_LIBYUV=LOCAL || goto :error
|
||||||
cmake --build build_dependencies/libavif --config Release --target=install || goto :error
|
cmake --build build_dependencies/libavif --config Release --target=install || goto :error
|
||||||
:: ===== expat =====
|
echo ::endgroup::
|
||||||
|
echo ::group::===== expat =====
|
||||||
|
curl -fsSL -o expat_src.zip https://github.com/libexpat/libexpat/archive/R_2_7_3.zip
|
||||||
7z x expat_src.zip -y -o"dependencies_src"
|
7z x expat_src.zip -y -o"dependencies_src"
|
||||||
ren .\dependencies_src\libexpat-R_2_6_2 expat || goto :error
|
ren .\dependencies_src\libexpat-R_2_7_3 expat || goto :error
|
||||||
cmake ./dependencies_src/expat/expat -Bbuild_dependencies/expat -DCMAKE_INSTALL_PREFIX="dependencies_bin" || goto :error
|
cmake ./dependencies_src/expat/expat -Bbuild_dependencies/expat -DCMAKE_INSTALL_PREFIX="dependencies_bin" || goto :error
|
||||||
cmake --build build_dependencies/expat --config Release --target=install || goto :error
|
cmake --build build_dependencies/expat --config Release --target=install || goto :error
|
||||||
:: ===== ECM =====
|
echo ::endgroup::
|
||||||
|
echo ::group::===== ECM =====
|
||||||
git clone -q https://invent.kde.org/frameworks/extra-cmake-modules.git dependencies_src/extra-cmake-modules
|
git clone -q https://invent.kde.org/frameworks/extra-cmake-modules.git dependencies_src/extra-cmake-modules
|
||||||
cmake .\dependencies_src\extra-cmake-modules -Bbuild_dependencies/extra-cmake-modules -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DBUILD_TESTING=OFF || goto :error
|
cmake .\dependencies_src\extra-cmake-modules -Bbuild_dependencies/extra-cmake-modules -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DBUILD_TESTING=OFF || goto :error
|
||||||
cmake --build build_dependencies/extra-cmake-modules --config Release --target=install || goto :error
|
cmake --build build_dependencies/extra-cmake-modules --config Release --target=install || goto :error
|
||||||
:: ===== KArchive =====
|
echo ::endgroup::
|
||||||
|
echo ::group::===== KArchive =====
|
||||||
git clone -q https://invent.kde.org/frameworks/karchive.git dependencies_src/karchive
|
git clone -q https://invent.kde.org/frameworks/karchive.git dependencies_src/karchive
|
||||||
cmake .\dependencies_src\karchive -Bbuild_dependencies/karchive -DWITH_LIBZSTD=OFF -DWITH_BZIP2=OFF -DWITH_LIBLZMA=OFF -DCMAKE_INSTALL_PREFIX="dependencies_bin" || goto :error
|
cmake .\dependencies_src\karchive -Bbuild_dependencies/karchive -DBUILD_TESTING=OFF -DWITH_LIBZSTD=OFF -DWITH_BZIP2=OFF -DWITH_LIBLZMA=OFF -DCMAKE_INSTALL_PREFIX="dependencies_bin" || goto :error
|
||||||
cmake --build build_dependencies/karchive --config Release --target=install || goto :error
|
cmake --build build_dependencies/karchive --config Release --target=install || goto :error
|
||||||
:: ===== KImageFormats =====
|
echo ::endgroup::
|
||||||
|
echo ::group::===== KImageFormats =====
|
||||||
git clone -q https://invent.kde.org/frameworks/kimageformats.git dependencies_src/kimageformats
|
git clone -q https://invent.kde.org/frameworks/kimageformats.git dependencies_src/kimageformats
|
||||||
cmake .\dependencies_src\kimageformats -Bbuild_dependencies/kimageformats -DKDE_INSTALL_QTPLUGINDIR=%QT_ROOT_DIR%\plugins || goto :error
|
cmake .\dependencies_src\kimageformats -Bbuild_dependencies/kimageformats -DBUILD_TESTING=OFF -DKDE_INSTALL_QTPLUGINDIR=%QT_ROOT_DIR%\plugins || goto :error
|
||||||
cmake --build build_dependencies/kimageformats --config Release --target=install || goto :error
|
cmake --build build_dependencies/kimageformats --config Release --target=install || goto :error
|
||||||
|
echo ::endgroup::
|
||||||
:: ------ app ------
|
:: ------ app ------
|
||||||
cmake -Bbuild . -DCMAKE_INSTALL_PREFIX="%PWD%\build\"
|
echo ::group::===== App (Build'n'Install) =====
|
||||||
cmake --build build --config Release
|
cmake -Bbuild . || goto :error
|
||||||
cmake --build build --config Release --target=install
|
cmake --build build --config Release || goto :error
|
||||||
|
cmake --install build --config Release --prefix "%PWD%\build" || goto :error
|
||||||
|
echo ::endgroup::
|
||||||
:: ------ pkg ------
|
:: ------ pkg ------
|
||||||
windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler --no-system-dxc-compiler --skip-plugin-types tls,networkinformation build\bin\ppic.exe
|
windeployqt --verbose=2 --no-compiler-runtime --no-quick-import --no-translations --no-network --no-opengl-sw --no-system-d3d-compiler --no-system-dxc-compiler --skip-plugin-types tls,networkinformation build\bin\scwpic.exe
|
||||||
robocopy ./dependencies_bin/bin build/bin *.dll
|
robocopy ./dependencies_bin/bin build/bin *.dll
|
||||||
if ErrorLevel 8 (exit /B 1)
|
if ErrorLevel 8 goto :error
|
||||||
copy LICENSE build\bin
|
copy LICENSE build\bin
|
||||||
|
copy build\inno-metadata\scwpic.iss build\bin\scwpic.iss
|
||||||
|
robocopy build\inno-metadata\Strings build\bin\Strings
|
||||||
|
if ErrorLevel 8 goto :error
|
||||||
|
iscc /Q build\bin\scwpic.iss || goto :error
|
||||||
exit /B 0
|
exit /B 0
|
||||||
- uses: actions/upload-artifact@v4
|
:error
|
||||||
|
exit /B 1
|
||||||
|
- uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: "windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-cmake-package"
|
name: "scwpic-windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-cmake-setup"
|
||||||
path: build/bin/*
|
path: build/bin/scwpic-setup.exe
|
||||||
@@ -2,12 +2,21 @@
|
|||||||
*.user
|
*.user
|
||||||
*.user.*
|
*.user.*
|
||||||
|
|
||||||
|
# Why, macOS, why?
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
# Translation files
|
# Translation files
|
||||||
*.qm
|
*.qm
|
||||||
*.mo
|
*.mo
|
||||||
|
|
||||||
# Generic Build Dir
|
# Generic Build Dir
|
||||||
[Bb]uild/
|
[Bb]uild/
|
||||||
|
cmake-build-*/
|
||||||
|
|
||||||
# IDE/Editor config folders
|
# IDE/Editor config folders
|
||||||
.vscode/
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
.qtcreator/
|
||||||
|
|
||||||
|
# Clangd cache
|
||||||
|
.cache/
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
||||||
Upstream-Name: Pineapple Pictures
|
|
||||||
Source: https://github.com/BLumia/pineapple-pictures
|
|
||||||
|
|
||||||
# Config files
|
|
||||||
Files: .gitignore appveyor.yml .github/*
|
|
||||||
Copyright: None
|
|
||||||
License: CC0-1.0
|
|
||||||
|
|
||||||
# README, resource files and Metadata files
|
|
||||||
Files: README*.md NEWS assets/*.rc assets/*.qrc dist/*
|
|
||||||
Copyright: None
|
|
||||||
License: CC0-1.0
|
|
||||||
|
|
||||||
# Translation files
|
|
||||||
# See assets/plain/translators.html for a list of translators
|
|
||||||
Files: app/translations/*.ts assets/plain/translators.html
|
|
||||||
Copyright: Translators from hosted.weblate.org
|
|
||||||
License: MIT
|
|
||||||
|
|
||||||
# Assets
|
|
||||||
Files: assets/icons/*.svg
|
|
||||||
Copyright: 2022 Gary Wang
|
|
||||||
License: MIT
|
|
||||||
|
|
||||||
Files: assets/icons/app-icon.*
|
|
||||||
Copyright: 2020 Lovelyblack
|
|
||||||
License: MIT
|
|
||||||
@@ -1,64 +1,50 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 - 2024 Gary Wang <git@blumia.net>
|
# SPDX-FileCopyrightText: 2022 - 2025 Gary Wang <git@blumia.net>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
cmake_minimum_required (VERSION 3.9.5)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
project(pineapple-pictures VERSION 0.8.2.1) # don't forget to update NEWS file and AppStream metadata.
|
project(sarasacw-picture VERSION 1.6.0) # don't forget to update NEWS file and AppStream metadata.
|
||||||
|
|
||||||
include (GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
include (FeatureSummary)
|
include(FeatureSummary)
|
||||||
|
|
||||||
option (EXIV2_METADATA_SUPPORT "Better image metadata support via libexiv2" ON)
|
option (EXIV2_METADATA_SUPPORT "Better image metadata support via libexiv2" ON)
|
||||||
option (PREFER_QT_5 "Prefer to use Qt 5" OFF)
|
option (TRANSLATION_RESOURCE_EMBEDDING "Embedding .qm translation files inside resource" OFF)
|
||||||
|
|
||||||
set (CMAKE_CXX_STANDARD 17)
|
set (CMAKE_CXX_STANDARD 17)
|
||||||
set (CMAKE_CXX_STANDARD_REQUIRED ON)
|
set (CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set (CMAKE_AUTOMOC ON)
|
set (CMAKE_AUTOMOC ON)
|
||||||
set (CMAKE_AUTORCC ON)
|
set (CMAKE_AUTORCC ON)
|
||||||
|
set (CMAKE_AUTOUIC ON)
|
||||||
|
|
||||||
if (PREFER_QT_5)
|
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core)
|
||||||
find_package(QT NAMES Qt5 REQUIRED COMPONENTS Core)
|
|
||||||
else ()
|
|
||||||
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (${QT_VERSION_MAJOR} EQUAL "5")
|
set (QT_MINIMUM_VERSION "6.5")
|
||||||
set (QT_MINIMUM_VERSION "5.15.2")
|
|
||||||
else ()
|
|
||||||
set (QT_MINIMUM_VERSION "6.4")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
find_package(Qt${QT_VERSION_MAJOR} ${QT_MINIMUM_VERSION} REQUIRED
|
find_package(Qt${QT_VERSION_MAJOR} ${QT_MINIMUM_VERSION} REQUIRED
|
||||||
COMPONENTS Widgets Svg LinguistTools
|
COMPONENTS Widgets Svg SvgWidgets LinguistTools
|
||||||
OPTIONAL_COMPONENTS DBus
|
OPTIONAL_COMPONENTS DBus
|
||||||
)
|
)
|
||||||
|
|
||||||
if (${QT_VERSION_MAJOR} EQUAL "6")
|
|
||||||
find_package(Qt${QT_DEFAULT_MAJOR_VERSION} ${QT_MINIMUM_VERSION} CONFIG REQUIRED SvgWidgets)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (EXIV2_METADATA_SUPPORT)
|
if (EXIV2_METADATA_SUPPORT)
|
||||||
find_package(Exiv2)
|
find_package(exiv2)
|
||||||
set_package_properties(Exiv2 PROPERTIES
|
set_package_properties(exiv2 PROPERTIES
|
||||||
URL "https://www.exiv2.org"
|
URL "https://www.exiv2.org"
|
||||||
DESCRIPTION "image metadata support"
|
DESCRIPTION "image metadata support"
|
||||||
TYPE OPTIONAL
|
TYPE RECOMMENDED
|
||||||
PURPOSE "Bring better image metadata support"
|
PURPOSE "Bring better image metadata support"
|
||||||
)
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
set (PPIC_CPP_FILES
|
set (SCWPIC_CPP_FILES
|
||||||
app/main.cpp
|
app/main.cpp
|
||||||
app/framelesswindow.cpp
|
|
||||||
app/mainwindow.cpp
|
app/mainwindow.cpp
|
||||||
app/actionmanager.cpp
|
app/actionmanager.cpp
|
||||||
app/graphicsview.cpp
|
app/graphicsview.cpp
|
||||||
app/graphicsscene.cpp
|
app/graphicsscene.cpp
|
||||||
app/bottombuttongroup.cpp
|
app/bottombuttongroup.cpp
|
||||||
app/navigatorview.cpp
|
app/navigatorview.cpp
|
||||||
app/opacityhelper.cpp
|
|
||||||
app/toolbutton.cpp
|
|
||||||
app/settings.cpp
|
app/settings.cpp
|
||||||
app/settingsdialog.cpp
|
app/settingsdialog.cpp
|
||||||
app/aboutdialog.cpp
|
app/aboutdialog.cpp
|
||||||
@@ -66,18 +52,19 @@ set (PPIC_CPP_FILES
|
|||||||
app/metadatadialog.cpp
|
app/metadatadialog.cpp
|
||||||
app/exiv2wrapper.cpp
|
app/exiv2wrapper.cpp
|
||||||
app/playlistmanager.cpp
|
app/playlistmanager.cpp
|
||||||
|
app/fileopeneventhandler.cpp
|
||||||
|
app/playlistscout.cpp
|
||||||
|
app/playlistscouts/qtscout.cpp
|
||||||
|
app/playlistscouts/explorerscout.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set (PPIC_HEADER_FILES
|
set (SCWPIC_HEADER_FILES
|
||||||
app/framelesswindow.h
|
|
||||||
app/mainwindow.h
|
app/mainwindow.h
|
||||||
app/actionmanager.h
|
app/actionmanager.h
|
||||||
app/graphicsview.h
|
app/graphicsview.h
|
||||||
app/graphicsscene.h
|
app/graphicsscene.h
|
||||||
app/bottombuttongroup.h
|
app/bottombuttongroup.h
|
||||||
app/navigatorview.h
|
app/navigatorview.h
|
||||||
app/opacityhelper.h
|
|
||||||
app/toolbutton.h
|
|
||||||
app/settings.h
|
app/settings.h
|
||||||
app/settingsdialog.h
|
app/settingsdialog.h
|
||||||
app/aboutdialog.h
|
app/aboutdialog.h
|
||||||
@@ -85,60 +72,107 @@ set (PPIC_HEADER_FILES
|
|||||||
app/metadatadialog.h
|
app/metadatadialog.h
|
||||||
app/exiv2wrapper.h
|
app/exiv2wrapper.h
|
||||||
app/playlistmanager.h
|
app/playlistmanager.h
|
||||||
|
app/fileopeneventhandler.h
|
||||||
|
app/playlistscout.h
|
||||||
|
app/playlistscouts/qtscout.h
|
||||||
|
app/playlistscouts/explorerscout.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set (PPIC_QRC_FILES
|
set (SCWPIC_UI_FILES
|
||||||
|
app/settingsdialog.ui
|
||||||
|
app/aboutdialog.ui
|
||||||
|
app/metadatadialog.ui
|
||||||
|
app/mainwindow.ui
|
||||||
|
)
|
||||||
|
|
||||||
|
set (SCWPIC_QRC_FILES
|
||||||
assets/resources.qrc
|
assets/resources.qrc
|
||||||
)
|
)
|
||||||
|
|
||||||
set (PPIC_RC_FILES
|
set (SCWPIC_RC_FILES
|
||||||
# yeah, it's empty.
|
# yeah, it's empty.
|
||||||
)
|
)
|
||||||
|
|
||||||
set (EXE_NAME ppic)
|
set (EXE_NAME scwpic)
|
||||||
|
|
||||||
# Translation
|
# Translation
|
||||||
file (GLOB PPIC_TS_FILES app/translations/*.ts)
|
file (GLOB SCWPIC_TS_FILES locales/app/*.ts)
|
||||||
set (PPIC_CPP_FILES_FOR_I18N ${PPIC_CPP_FILES})
|
set (SCWPIC_CPP_FILES_FOR_I18N ${SCWPIC_CPP_FILES})
|
||||||
|
|
||||||
|
find_program (UV_EXECUTABLE uv)
|
||||||
|
if (NOT UV_EXECUTABLE)
|
||||||
|
message (FATAL_ERROR "uv is required to run the metaglot tool, install it from https://docs.astral.sh/uv/")
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
list(APPEND PPIC_RC_FILES assets/pineapple-pictures.rc)
|
# Setup Windows RC files
|
||||||
|
set (SCWPIC_RC_TEMPLATE_FILE ${CMAKE_CURRENT_BINARY_DIR}/sarasacw-picture.rc.in)
|
||||||
|
execute_process (
|
||||||
|
COMMAND ${UV_EXECUTABLE} tool run metaglot render rc
|
||||||
|
--manifest ${CMAKE_SOURCE_DIR}/dist/sarasacw-picture.rc.in.toml
|
||||||
|
--po ${CMAKE_SOURCE_DIR}/locales/winrc/*.po
|
||||||
|
--template ${CMAKE_SOURCE_DIR}/dist/sarasacw-picture.rc.in.liquid
|
||||||
|
--output ${SCWPIC_RC_TEMPLATE_FILE}
|
||||||
|
RESULT_VARIABLE METAGLOT_RESULT
|
||||||
|
)
|
||||||
|
if (NOT METAGLOT_RESULT EQUAL 0)
|
||||||
|
message (FATAL_ERROR "Failed to generate Windows RC file template via MetaGlot (exit code: ${METAGLOT_RESULT}).")
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
configure_file (${SCWPIC_RC_TEMPLATE_FILE} ${CMAKE_CURRENT_BINARY_DIR}/sarasacw-picture.rc @ONLY)
|
||||||
|
list (APPEND SCWPIC_RC_FILES ${CMAKE_CURRENT_BINARY_DIR}/sarasacw-picture.rc)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_executable (${EXE_NAME} WIN32
|
add_executable (${EXE_NAME}
|
||||||
${PPIC_HEADER_FILES}
|
${SCWPIC_HEADER_FILES}
|
||||||
${PPIC_CPP_FILES}
|
${SCWPIC_CPP_FILES}
|
||||||
${PPIC_QRC_FILES}
|
${SCWPIC_UI_FILES}
|
||||||
${PPIC_RC_FILES}
|
${SCWPIC_QRC_FILES}
|
||||||
|
${SCWPIC_RC_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (${QT_VERSION_MAJOR} EQUAL "6")
|
set(ADD_TRANSLATIONS_ADDITIONAL_ARGS)
|
||||||
qt_add_translations(${EXE_NAME} TS_FILES ${PPIC_TS_FILES} QM_FILES_OUTPUT_VARIABLE PPIC_QM_FILES)
|
|
||||||
else()
|
if (Qt6_VERSION VERSION_GREATER_EQUAL "6.9.0")
|
||||||
qt_create_translation(PPIC_QM_FILES ${PPIC_CPP_FILES_FOR_I18N} ${PPIC_TS_FILES})
|
set(ADD_TRANSLATIONS_ADDITIONAL_ARGS MERGE_QT_TRANSLATIONS)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_sources(${EXE_NAME} PRIVATE ${PPIC_QM_FILES})
|
if (TRANSLATION_RESOURCE_EMBEDDING)
|
||||||
|
qt_add_translations(${EXE_NAME} ${ADD_TRANSLATIONS_ADDITIONAL_ARGS} TS_FILES ${SCWPIC_TS_FILES})
|
||||||
|
else()
|
||||||
|
qt_add_translations(${EXE_NAME} ${ADD_TRANSLATIONS_ADDITIONAL_ARGS} TS_FILES ${SCWPIC_TS_FILES} QM_FILES_OUTPUT_VARIABLE SCWPIC_QM_FILES)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries (${EXE_NAME} Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Svg)
|
# YYC MARK:
|
||||||
if (${QT_VERSION_MAJOR} EQUAL "6")
|
# We use this to disable that Qt UIC generate code like `QMetaObject::connectSlotsByName(foobar);`
|
||||||
target_link_libraries (${EXE_NAME} Qt::SvgWidgets)
|
# for the header file of `.ui` file, which cause this application outputs log at runtime like
|
||||||
endif ()
|
# `qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_actionXxx_triggered()`,
|
||||||
|
# because we only use UIC for building user interface and all signals and actions are managed by ourselves.
|
||||||
|
set_target_properties(${EXE_NAME} PROPERTIES AUTOUIC_OPTIONS "-a")
|
||||||
|
|
||||||
if (Exiv2_FOUND)
|
# YYC MARK:
|
||||||
|
# This is essential, otherwise Qt UIC generated UI header file
|
||||||
|
# can not find our header files if there are custom widgets inside UI file.
|
||||||
|
target_include_directories(${EXE_NAME} PRIVATE app/)
|
||||||
|
|
||||||
|
target_sources(${EXE_NAME} PRIVATE ${SCWPIC_QM_FILES})
|
||||||
|
|
||||||
|
target_link_libraries (${EXE_NAME} Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Svg Qt${QT_VERSION_MAJOR}::SvgWidgets)
|
||||||
|
|
||||||
|
if (exiv2_FOUND)
|
||||||
if(NOT TARGET Exiv2::exiv2lib AND TARGET exiv2lib)
|
if(NOT TARGET Exiv2::exiv2lib AND TARGET exiv2lib)
|
||||||
# for exiv2 0.27.x
|
# for exiv2 0.27.x and (macOS?) conan build
|
||||||
add_library(Exiv2::exiv2lib ALIAS exiv2lib)
|
add_library(Exiv2::exiv2lib ALIAS exiv2lib)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries (${EXE_NAME}
|
target_link_libraries (${EXE_NAME}
|
||||||
Exiv2::exiv2lib
|
Exiv2::exiv2lib
|
||||||
)
|
)
|
||||||
target_compile_definitions(${EXE_NAME} PRIVATE
|
target_compile_definitions(${EXE_NAME} PRIVATE
|
||||||
HAVE_EXIV2_VERSION="${Exiv2_VERSION}"
|
HAVE_EXIV2_VERSION="${exiv2_VERSION}"
|
||||||
)
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (TARGET Qt5::DBus OR TARGET Qt6::DBus)
|
if (TARGET Qt6::DBus)
|
||||||
target_link_libraries (${EXE_NAME}
|
target_link_libraries (${EXE_NAME}
|
||||||
Qt${QT_VERSION_MAJOR}::DBus
|
Qt${QT_VERSION_MAJOR}::DBus
|
||||||
)
|
)
|
||||||
@@ -155,7 +189,7 @@ if (WIN32)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Helper macros for parsing and setting project version from `git describe --long` result
|
# Helper macros for parsing and setting project version from `git describe --long` result
|
||||||
macro (ppic_set_version_via_describe _describe_long)
|
macro (scwpic_set_version_via_describe _describe_long)
|
||||||
string (
|
string (
|
||||||
REGEX REPLACE
|
REGEX REPLACE
|
||||||
"^([0-9a-z.]*)-[0-9]+-g[0-9a-f]*$"
|
"^([0-9a-z.]*)-[0-9]+-g[0-9a-f]*$"
|
||||||
@@ -179,7 +213,7 @@ macro (ppic_set_version_via_describe _describe_long)
|
|||||||
endmacro ()
|
endmacro ()
|
||||||
|
|
||||||
# Version setup
|
# Version setup
|
||||||
target_compile_definitions(${EXE_NAME} PRIVATE PPIC_VERSION_STRING="${CMAKE_PROJECT_VERSION}")
|
target_compile_definitions(${EXE_NAME} PRIVATE SCWPIC_VERSION_STRING="${CMAKE_PROJECT_VERSION}")
|
||||||
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
|
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
|
||||||
find_package(Git)
|
find_package(Git)
|
||||||
set_package_properties(Git PROPERTIES TYPE OPTIONAL PURPOSE "Determine exact build version.")
|
set_package_properties(Git PROPERTIES TYPE OPTIONAL PURPOSE "Determine exact build version.")
|
||||||
@@ -190,7 +224,7 @@ if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
|
|||||||
OUTPUT_VARIABLE _git_describe_long
|
OUTPUT_VARIABLE _git_describe_long
|
||||||
)
|
)
|
||||||
string (REGEX REPLACE "\n" "" _git_describe_long "${_git_describe_long}")
|
string (REGEX REPLACE "\n" "" _git_describe_long "${_git_describe_long}")
|
||||||
ppic_set_version_via_describe(${_git_describe_long})
|
scwpic_set_version_via_describe(${_git_describe_long})
|
||||||
target_compile_definitions(${EXE_NAME} PRIVATE
|
target_compile_definitions(${EXE_NAME} PRIVATE
|
||||||
GIT_DESCRIBE_VERSION_STRING="${_git_describe_long}"
|
GIT_DESCRIBE_VERSION_STRING="${_git_describe_long}"
|
||||||
)
|
)
|
||||||
@@ -199,8 +233,90 @@ endif ()
|
|||||||
|
|
||||||
# Install settings
|
# Install settings
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
# TODO: try to avoid install to a "bin" subfolder under windows...
|
set_target_properties(${EXE_NAME} PROPERTIES
|
||||||
# when fixed, don't forget to update the CI config file...
|
WIN32_EXECUTABLE TRUE
|
||||||
|
)
|
||||||
|
|
||||||
|
# Setup Inno Setup script file
|
||||||
|
set (SCWPIC_INNO_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/inno-metadata)
|
||||||
|
execute_process (
|
||||||
|
COMMAND ${UV_EXECUTABLE} tool run metaglot render inno
|
||||||
|
--manifest ${CMAKE_SOURCE_DIR}/dist/scwpic.iss.in.toml
|
||||||
|
--po ${CMAKE_SOURCE_DIR}/locales/inno/*.po
|
||||||
|
--iss-template ${CMAKE_SOURCE_DIR}/dist/scwpic.iss.in.liquid
|
||||||
|
--isl-template ${CMAKE_SOURCE_DIR}/dist/scwpic.isl.liquid
|
||||||
|
--iss-path scwpic.iss.in
|
||||||
|
--isl-path "Strings/{{ lang }}.isl"
|
||||||
|
--output ${SCWPIC_INNO_OUTPUT_DIR}
|
||||||
|
RESULT_VARIABLE METAGLOT_INNO_RESULT
|
||||||
|
)
|
||||||
|
if (NOT METAGLOT_INNO_RESULT EQUAL 0)
|
||||||
|
message (FATAL_ERROR "Failed to render Inno Setup script via MetaGlot (exit code: ${METAGLOT_INNO_RESULT}).")
|
||||||
|
endif ()
|
||||||
|
configure_file (${SCWPIC_INNO_OUTPUT_DIR}/scwpic.iss.in ${SCWPIC_INNO_OUTPUT_DIR}/scwpic.iss @ONLY)
|
||||||
|
|
||||||
|
# Setup MSIX metadata. NOTE: the package cannot be built yet: the logo assets
|
||||||
|
# referenced by the manifest are not provided (marked with TODO comments).
|
||||||
|
set (SCWPIC_MSIX_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/msix-metadata)
|
||||||
|
execute_process (
|
||||||
|
COMMAND ${UV_EXECUTABLE} tool run metaglot render msix
|
||||||
|
--manifest ${CMAKE_SOURCE_DIR}/dist/AppxManifest.xml.in.toml
|
||||||
|
--po ${CMAKE_SOURCE_DIR}/locales/msix/*.po
|
||||||
|
--manifest-template ${CMAKE_SOURCE_DIR}/dist/AppxManifest.xml.in.liquid
|
||||||
|
--resources-template ${CMAKE_SOURCE_DIR}/dist/Resources.resjson.liquid
|
||||||
|
--manifest-path AppxManifest.xml.in
|
||||||
|
--resources-path "Strings/{{ lang }}/Resources.resjson"
|
||||||
|
--output ${SCWPIC_MSIX_OUTPUT_DIR}
|
||||||
|
RESULT_VARIABLE METAGLOT_MSIX_RESULT
|
||||||
|
)
|
||||||
|
if (NOT METAGLOT_MSIX_RESULT EQUAL 0)
|
||||||
|
message (FATAL_ERROR "Failed to render MSIX metadata via MetaGlot (exit code: ${METAGLOT_MSIX_RESULT}).")
|
||||||
|
endif ()
|
||||||
|
configure_file (${SCWPIC_MSIX_OUTPUT_DIR}/AppxManifest.xml.in ${SCWPIC_MSIX_OUTPUT_DIR}/AppxManifest.xml @ONLY)
|
||||||
|
elseif (APPLE)
|
||||||
|
# Include icon to project
|
||||||
|
set_source_files_properties(dist/sarasacw-picture.icns PROPERTIES
|
||||||
|
MACOSX_PACKAGE_LOCATION "Resources"
|
||||||
|
)
|
||||||
|
target_sources(${EXE_NAME} PRIVATE dist/sarasacw-picture.icns)
|
||||||
|
|
||||||
|
# Setup Info.plist related directory.
|
||||||
|
set (SCWPIC_PLIST_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/plist-metadata)
|
||||||
|
# Render Info.plist and its strings.
|
||||||
|
execute_process (
|
||||||
|
COMMAND ${UV_EXECUTABLE} tool run metaglot render plist
|
||||||
|
--manifest ${CMAKE_SOURCE_DIR}/dist/Info.plist.in.toml
|
||||||
|
--po ${CMAKE_SOURCE_DIR}/locales/plist/*.po
|
||||||
|
--plist-template ${CMAKE_SOURCE_DIR}/dist/Info.plist.in.liquid
|
||||||
|
--strings-template ${CMAKE_SOURCE_DIR}/dist/InfoPlist.strings.liquid
|
||||||
|
--plist-path Info.plist.in
|
||||||
|
--strings-path "Resources/{{ lang }}.lproj/InfoPlist.strings"
|
||||||
|
--output ${SCWPIC_PLIST_OUTPUT_DIR}
|
||||||
|
RESULT_VARIABLE METAGLOT_PLIST_RESULT
|
||||||
|
)
|
||||||
|
if (NOT METAGLOT_PLIST_RESULT EQUAL 0)
|
||||||
|
message (FATAL_ERROR "Failed to render Info.plist metadata via MetaGlot (exit code: ${METAGLOT_PLIST_RESULT}).")
|
||||||
|
endif ()
|
||||||
|
# Include these to project.
|
||||||
|
file (GLOB SCWPIC_PLIST_STRINGS_FILES ${SCWPIC_PLIST_OUTPUT_DIR}/Resources/*.lproj/InfoPlist.strings)
|
||||||
|
foreach (plist_strings_file ${SCWPIC_PLIST_STRINGS_FILES})
|
||||||
|
get_filename_component (plist_lproj_dir ${plist_strings_file} DIRECTORY)
|
||||||
|
get_filename_component (plist_lproj_name ${plist_lproj_dir} NAME)
|
||||||
|
set_source_files_properties (${plist_strings_file} PROPERTIES
|
||||||
|
MACOSX_PACKAGE_LOCATION "Resources/${plist_lproj_name}"
|
||||||
|
)
|
||||||
|
target_sources (${EXE_NAME} PRIVATE ${plist_strings_file})
|
||||||
|
endforeach ()
|
||||||
|
# See https://cmake.org/cmake/help/v3.15/prop_tgt/MACOSX_BUNDLE_INFO_PLIST.html
|
||||||
|
set_target_properties(${EXE_NAME} PROPERTIES
|
||||||
|
MACOSX_BUNDLE TRUE
|
||||||
|
MACOSX_BUNDLE_INFO_PLIST ${SCWPIC_PLIST_OUTPUT_DIR}/Info.plist.in
|
||||||
|
MACOSX_BUNDLE_INFO_STRING "${PROJECT_VERSION}, Copyright (C) 2026 Sarasa's Chip Workshop"
|
||||||
|
MACOSX_BUNDLE_GUI_IDENTIFIER org.sarasaschipworkshop.picture
|
||||||
|
MACOSX_BUNDLE_ICON_FILE sarasacw-picture.icns # contains the .icns file name, *without* the path.
|
||||||
|
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
|
||||||
|
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}
|
||||||
|
)
|
||||||
elseif (UNIX)
|
elseif (UNIX)
|
||||||
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||||
set(CMAKE_INSTALL_PREFIX /usr)
|
set(CMAKE_INSTALL_PREFIX /usr)
|
||||||
@@ -208,25 +324,51 @@ elseif (UNIX)
|
|||||||
|
|
||||||
# install icon
|
# install icon
|
||||||
install (
|
install (
|
||||||
FILES assets/icons/app-icon.svg
|
DIRECTORY dist/freedesktop-icons/
|
||||||
DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps"
|
DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor"
|
||||||
RENAME net.blumia.pineapple-pictures.svg
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# install shortcut
|
# generate and install desktop entry file
|
||||||
|
set (SCWPIC_DESKTOP_FILE ${CMAKE_CURRENT_BINARY_DIR}/org.sarasaschipworkshop.picture.desktop)
|
||||||
|
execute_process (
|
||||||
|
COMMAND ${UV_EXECUTABLE} tool run metaglot render desktop
|
||||||
|
--manifest ${CMAKE_SOURCE_DIR}/dist/org.sarasaschipworkshop.picture.desktop.toml
|
||||||
|
--po ${CMAKE_SOURCE_DIR}/locales/desktop/*.po
|
||||||
|
--template ${CMAKE_SOURCE_DIR}/dist/org.sarasaschipworkshop.picture.desktop.liquid
|
||||||
|
--output ${SCWPIC_DESKTOP_FILE}
|
||||||
|
RESULT_VARIABLE METAGLOT_DESKTOP_RESULT
|
||||||
|
)
|
||||||
|
if (NOT METAGLOT_DESKTOP_RESULT EQUAL 0)
|
||||||
|
message (FATAL_ERROR "Failed to generate .desktop via MetaGlot (exit code: ${METAGLOT_DESKTOP_RESULT}).")
|
||||||
|
endif ()
|
||||||
|
|
||||||
install (
|
install (
|
||||||
FILES dist/net.blumia.pineapple-pictures.desktop
|
FILES ${SCWPIC_DESKTOP_FILE}
|
||||||
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications"
|
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications"
|
||||||
)
|
)
|
||||||
|
|
||||||
# install app metadata file for appstream (and some other stuff using this metadata like snapcraft)
|
# generate and install app metadata file for appstream (and some other stuff using this metadata like snapcraft)
|
||||||
|
set (SCWPIC_METAINFO_FILE ${CMAKE_CURRENT_BINARY_DIR}/org.sarasaschipworkshop.picture.metainfo.xml)
|
||||||
|
execute_process (
|
||||||
|
COMMAND ${UV_EXECUTABLE} tool run metaglot render appstream
|
||||||
|
--manifest ${CMAKE_SOURCE_DIR}/dist/org.sarasaschipworkshop.picture.metainfo.xml.toml
|
||||||
|
--po ${CMAKE_SOURCE_DIR}/locales/appstream/*.po
|
||||||
|
--template ${CMAKE_SOURCE_DIR}/dist/org.sarasaschipworkshop.picture.metainfo.xml.liquid
|
||||||
|
--output ${SCWPIC_METAINFO_FILE}
|
||||||
|
RESULT_VARIABLE METAGLOT_METAINFO_RESULT
|
||||||
|
)
|
||||||
|
if (NOT METAGLOT_METAINFO_RESULT EQUAL 0)
|
||||||
|
message (FATAL_ERROR "Failed to generate .metainfo.xml via MetaGlot (exit code: ${METAGLOT_METAINFO_RESULT}).")
|
||||||
|
endif ()
|
||||||
|
|
||||||
install (
|
install (
|
||||||
FILES dist/appstream/net.blumia.pineapple-pictures.metainfo.xml
|
FILES ${SCWPIC_METAINFO_FILE}
|
||||||
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo"
|
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set (INSTALL_TARGETS_DEFAULT_ARGS
|
set (INSTALL_TARGETS_DEFAULT_ARGS
|
||||||
|
BUNDLE DESTINATION .
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Devel
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Devel
|
||||||
@@ -237,28 +379,33 @@ install (
|
|||||||
${INSTALL_TARGETS_DEFAULT_ARGS}
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (WIN32)
|
if (TRANSLATION_RESOURCE_EMBEDDING)
|
||||||
set (QM_FILE_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}/translations")
|
|
||||||
else ()
|
|
||||||
set (QM_FILE_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR}/pineapple-pictures/translations")
|
|
||||||
target_compile_definitions(${EXE_NAME}
|
target_compile_definitions(${EXE_NAME}
|
||||||
PRIVATE QM_FILE_INSTALL_DIR=${QM_FILE_INSTALL_DIR}
|
PRIVATE TRANSLATION_RESOURCE_EMBEDDING
|
||||||
)
|
)
|
||||||
endif ()
|
elseif (WIN32)
|
||||||
|
set (QM_FILE_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}/translations")
|
||||||
|
else()
|
||||||
|
set (QM_FILE_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR}/sarasacw-picture/translations")
|
||||||
|
target_compile_definitions(${EXE_NAME}
|
||||||
|
PRIVATE QM_FILE_INSTALL_ABSOLUTE_DIR=${QM_FILE_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
install (
|
if (DEFINED QM_FILE_INSTALL_DIR)
|
||||||
FILES ${PPIC_QM_FILES}
|
install(
|
||||||
|
FILES ${SCWPIC_QM_FILES}
|
||||||
DESTINATION ${QM_FILE_INSTALL_DIR}
|
DESTINATION ${QM_FILE_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||||
|
|
||||||
# CPACK: General Settings
|
# CPACK: General Settings
|
||||||
set (CPACK_GENERATOR "TBZ2")
|
set (CPACK_GENERATOR "TBZ2")
|
||||||
set (CPACK_PACKAGE_NAME "pineapple-pictures")
|
set (CPACK_PACKAGE_NAME "sarasacw-picture")
|
||||||
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Yet another image viewer")
|
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Yet another image viewer")
|
||||||
set (CPACK_PACKAGE_VENDOR "Gary Wang")
|
set (CPACK_PACKAGE_VENDOR "Sarasa's Chip Workshop")
|
||||||
set (CPACK_PACKAGE_CONTACT "https://github.com/BLumia/pineapple-pictures/issues/")
|
set (CPACK_PACKAGE_CONTACT "https://github.com/SarasasChipWorkshop/sarasacw-picture/issues/")
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
# ...
|
# ...
|
||||||
elseif (APPLE)
|
elseif (APPLE)
|
||||||
@@ -266,7 +413,7 @@ elseif (APPLE)
|
|||||||
elseif (UNIX)
|
elseif (UNIX)
|
||||||
set (CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
|
set (CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
|
||||||
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
||||||
set (CPACK_DEBIAN_PACKAGE_RECOMMENDS "kimageformat-plugins")
|
set (CPACK_DEBIAN_PACKAGE_RECOMMENDS "kimageformat6-plugins")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(CPack)
|
include(CPack)
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2020 BLumia
|
Copyright (c) 2026 BLumia
|
||||||
|
Copyright (c) 2026 Sarasa's Chip Workshop
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -1,3 +1,219 @@
|
|||||||
|
Version 1.6.0
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2026-08-22
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Allow dragging window from titlebar to move window when maximized
|
||||||
|
* Add an option to show/hide bird-eye view
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
* Maximize the window when the image size matches the screen size
|
||||||
|
* Fix window might stuck when drag move on some ill-formed window manager
|
||||||
|
* Make titlebar respect RTL layout
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Update translations
|
||||||
|
* Update Qt version to 6.11.2 for Windows and macOS pre-built binaries
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Tech-Tac, Heimen Stoffels (vistaus), VenusGirl, Oğuz Ersen
|
||||||
|
|
||||||
|
Version 1.5.0
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2026-07-04
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Introduced an optional titlebar that display file name and allows drag and double-click to move and toggle maximize state
|
||||||
|
* Windows: Now the application will use the system's built-in animation for open window animation
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
* Show empty url list should also reset window title to blank
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Update translations
|
||||||
|
* Add vcs-browser link to AppStream metadata
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Heimen Stoffels (vistaus), VenusGirl (VenusGirl)
|
||||||
|
|
||||||
|
Version 1.4.1
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2026-04-05
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Update translations
|
||||||
|
* Update Qt version to 6.10.3 for Windows and macOS pre-built binaries
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Heimen Stoffels (vistaus), Loc Huynh (hthienloc)
|
||||||
|
|
||||||
|
Version 1.4.0
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2026-02-11
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Action to save image as new file with different format
|
||||||
|
* Add Vietnamese and Slovenian translation
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Update copyright year to 2026
|
||||||
|
* Update translations
|
||||||
|
* Update Qt version to 6.10.2 for Windows and macOS pre-built binaries
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Loc Huynh, Sabri Ünal, VenusGirl, Andrej Poženel, Andrey
|
||||||
|
|
||||||
|
Version 1.3.0
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2025-12-20
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* New option to limit SVG support to SVG Tiny 1.2 standard
|
||||||
|
* Windows: ship tools and configurations that help user associate image files to this program
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
* Fix window not appear at the screen that the mouse cursor is at
|
||||||
|
* Fix Windows prebuilt binary having AVIF plugin included but not actually support it
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* CPack DEB: will now recommend "kimageformat6-plugins" instead of the KF5 version
|
||||||
|
* Update translations
|
||||||
|
* Update exiv2 version for Windows binary build
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
VenusGirl, Andrey
|
||||||
|
|
||||||
|
Version 1.2.1
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2025-11-22
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
* Fix incorrect color when display some CMYK images.
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Now use Qt 6.10.1 for pre-built binary
|
||||||
|
* Update README description and AppStream metainfo
|
||||||
|
* Update translations
|
||||||
|
* Update libavif, AOM and expat version for Windows binary build
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
albanobattistella
|
||||||
|
|
||||||
|
Version 1.2.0
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2025-09-21
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Long image mode that detect extra wide image and auto fit by its thin side
|
||||||
|
* Windows: Add product version to binary metadata / resource file
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Update translations
|
||||||
|
* Update libavif version for Windows binary build
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Heimen Stoffels, albanobattistella, Sabri Ünal
|
||||||
|
|
||||||
|
Version 1.1.1
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2025-08-02
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Click dock icon should show window when it's hidden on macOS
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
* Ensure "Fit by Width" position the view to the beginning of the image
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Update translations
|
||||||
|
* Update Exiv2 version for Windows binary build
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Heimen Stoffels, VenusGirl, தமிழ்நேரம்
|
||||||
|
|
||||||
|
Version 1.1.0
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2025-07-06
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* New option to disable built-in close window animation
|
||||||
|
* New option to disable gallery looping
|
||||||
|
* Support load m3u8 as image gallery playlist
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Drop Qt 5 support
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Heimen Stoffels, albanobattistella, தமிழ்நேரம்
|
||||||
|
|
||||||
|
Version 1.0.0
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2025-05-03
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Support enforces windowed mode on start-up
|
||||||
|
* Reload image automatically when current image gets updated
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
* Display correct text language on macOS
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Use native text for shortcut editor's label
|
||||||
|
* Display native commandline message when possible
|
||||||
|
* Merge Qt translations into app applications as well
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Heimen Stoffels, albanobattistella, mmahhi
|
||||||
|
|
||||||
|
Version 0.9.2
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2025-03-05
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
* Refer to the right exiv2 CMake module so it can be found on Linux
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Convert DEP5 to REUSE.toml for better REUSE compliance
|
||||||
|
* Update translations
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
Pino Toscano, TamilNeram
|
||||||
|
|
||||||
|
Version 0.9.1
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2025-01-25
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Option to double-click to fullscreen
|
||||||
|
* Build-time option to embed translation resources
|
||||||
|
|
||||||
|
Bugfixes:
|
||||||
|
* Fix window size not adjusted when open file on macOS
|
||||||
|
* Should center window according to available screen geometry
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Change close window bahavior on macOS
|
||||||
|
* Update translations
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
albanobattistella, Sabri Ünal
|
||||||
|
|
||||||
|
Version 0.9.0
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
Released: 2024-12-08
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Support custom shortcuts for existing actions
|
||||||
|
* Actions for frame-by-frame animated image playback support
|
||||||
|
|
||||||
|
Miscellaneous:
|
||||||
|
* Initial macOS bundle support
|
||||||
|
* bump minimum required CMake version to 3.16
|
||||||
|
* Update translations
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
albanobattistella, VenusGirl, gallegonovato, Sabri Ünal
|
||||||
|
|
||||||
Version 0.8.2.1
|
Version 0.8.2.1
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
Released: 2024-10-27
|
Released: 2024-10-27
|
||||||
@@ -74,7 +290,7 @@ Version 0.7.1
|
|||||||
Released: 2023-07-08
|
Released: 2023-07-08
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
* TIF and TIFF format files in the same folder will now be automatedly added to the gallery
|
* TIF and TIFF format files in the same folder will now be automatically added to the gallery
|
||||||
* Built-in window resizing now also supports Linux desktop. (macOS might also works as well)
|
* Built-in window resizing now also supports Linux desktop. (macOS might also works as well)
|
||||||
|
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
@@ -83,4 +299,3 @@ Bugfixes:
|
|||||||
|
|
||||||
Contributors:
|
Contributors:
|
||||||
yyc12345
|
yyc12345
|
||||||
|
|
||||||
@@ -1,84 +1,62 @@
|
|||||||
Yet another image viewer.
|
# Sarasa's Chip Workshop Photo Viewer
|
||||||
|
|
||||||
|CI|Build Status|
|
> [!IMPORTANT]
|
||||||
|---|---|
|
> SCW Photo Viewer is still in refactoring. Please do not use it until this message removes.
|
||||||
|Windows Build|[](https://ci.appveyor.com/project/BLumia/pineapplepictures/branch/master)|
|
|
||||||
|macOS Build|[](https://github.com/BLumia/pineapple-pictures/actions/workflows/macos.yml)|
|
|
||||||
|Ubuntu Build|[](https://github.com/BLumia/pineapple-pictures/actions/workflows/ubuntu.yml)|
|
|
||||||
|
|
||||||

|
Yet another legacy Windows Photo Viewer with cross-platform support.
|
||||||
|
|
||||||
|
[](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/windows.yml)
|
||||||
|
[](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/macos.yml)
|
||||||
|
[](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/ubuntu.yml)
|
||||||
|
|
||||||
|
<!--
|
||||||
|
TODO: Add main window illustration in future.
|
||||||
|

|
||||||
|
-->
|
||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
|
|
||||||
Pineapple Pictures is a lightweight image viewer that allows you view JPEG, PNG, GIF, SVG, PSD, KRA, XCF, TGA, HDR, AVIF and some other frequently used image formats files quickly and easily, and also provide a Stay-on-Top window setting that allows you pin the window so you can use it to pin a reference image at the top and then you can work with other software.
|
Sarasa's Chip Workshop Photo Viewer (abbr. SCW Photo Viewer) is a lightweight image viewer that has cross-platform support and similar user interface about legacy Windows Photo Viewer. It allows you view JPEG, PNG, GIF, SVG, PSD, KRA, XCF, TGA, HDR, AVIF and some other frequently used image formats files quickly and easily without changing your long-term Windows usage experience.
|
||||||
|
|
||||||
## Get it!
|
SCW Photo Viewer is the **hard fork** of [Pineapple Pictures](https://github.com/BLumia/pineapple-pictures) since Pineapple Pictures 1.4.1 version.
|
||||||
|
|
||||||
### Maintained by the original author
|
## Installation
|
||||||
|
|
||||||
- [GitHub Release Page](https://github.com/BLumia/pineapple-pictures/releases)
|
Download from the places maintained by the author of this repository:
|
||||||
- [SourceForge](https://sourceforge.net/projects/pineapple-pictures/)
|
|
||||||
- Archlinux AUR: [pineapple-pictures](https://aur.archlinux.org/packages/pineapple-pictures/) | [pineapple-pictures-git](https://aur.archlinux.org/packages/pineapple-pictures-git/)
|
|
||||||
- [Itch.io Store](https://blumia.itch.io/pineapple-pictures)
|
|
||||||
|
|
||||||
### Maintained by contributors / curtain distro's package maintainers
|
- [GitHub Release Page](https://github.com/SarasasChipWorkshop/sarasacw-picture/releases)
|
||||||
|
|
||||||
- Debian (since bullseye) or Ubuntu (since 21.04): `sudo apt install pineapple-pictures`
|
## Contribution
|
||||||
- Nix / NixOS: [pineapple-pictures](https://search.nixos.org/packages?channel=unstable&show=pineapple-pictures&from=0&size=50&sort=relevance&type=packages&query=pineapple-pictures) (maintained by @wineee)
|
|
||||||
|
|
||||||
## Help Translation!
|
The new feature request of this application are freezed now because this application basically is a replica of legacy Windows Photo Viewer with additional cross-platform support. However, bug report and translation are welcome.
|
||||||
|
|
||||||
[Translate this project on Weblate!](https://hosted.weblate.org/projects/pineapple-pictures/)
|
## Build Instruction
|
||||||
|
|
||||||
## Build it manually:
|
|
||||||
|
|
||||||
Current state, we need:
|
Current state, we need:
|
||||||
|
|
||||||
- `cmake`: as the build system.
|
- `cmake`: as the build system.
|
||||||
- `qt6` with `qt6-svg` and `qt6-tools`: since the app is using Qt.
|
- `python3`, `uv` and [`metaglot`](https://github.com/SarasasChipWorkshop/metaglot): as the metadata localization processor.
|
||||||
- `libexiv2`: able to display more image metadata. (optional, but recommended)
|
- `qt6` with `qt6-svg` and `qt6-tools`: since the app is using Qt.
|
||||||
|
- `libexiv2`: able to display more image metadata. (optional, but recommended)
|
||||||
|
|
||||||
Then we can build it with any proper c++ compiler like g++ or msvc.
|
Then we can build it with any proper C++ compiler like g++ or MSVC.
|
||||||
|
|
||||||
Building it just requires normal cmake building steps:
|
Building it just requires normal cmake building steps:
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
$ mkdir build && cd build
|
$ mkdir build && cd build
|
||||||
$ cmake ..
|
$ cmake ..
|
||||||
$ cmake --build . # or simply using `make` if you are using Makefile as the cmake generator.
|
$ cmake --build .
|
||||||
```
|
```
|
||||||
|
|
||||||
After that, a `ppic` executable file will be available to use. You can also optionally install it by using the target `install` (or simply `make install` in case you are using Makefile). After the build process, you can also use `cpack` to make a package.
|
After that, a `scwpic` executable file will be available to use. You can also optionally install it by using the target `install`. After the build process, you can also use `cpack` to make a package.
|
||||||
|
|
||||||
The project will try to build with `exiv2` when it's available at build time, if you would like to build the project without `exiv2`, pass `-DEXIV2_METADATA_SUPPORT=OFF` to `cmake`. The project will also not use `exiv2` if it's not found, the `EXIV2_METADATA_SUPPORT` option can be useful if you have `exiv2` but specifically don't want to use it.
|
The project will try to build with `exiv2` when it's available at build time, if you would like to build the project without `exiv2`, pass `-DEXIV2_METADATA_SUPPORT=OFF` to `cmake`. The project will also not use `exiv2` if it's not found, the `EXIV2_METADATA_SUPPORT` option can be useful if you have `exiv2` but specifically don't want to use it.
|
||||||
|
|
||||||
Image formats supports rely on Qt's imageformats plugins, just get the plugins you need from your distro's package manager will be fine. For Windows user, you may need build and install the imageformats plugin manually, read the content below.
|
Image formats supports rely on Qt's imageformats plugins, just get the plugins you need from your distro's package manager will be fine. For Windows user, you may need build and install the imageformats plugin manually, read the content below.
|
||||||
|
|
||||||
> [!NOTE]
|
It's possible to build it under Windows, Linux, macOS, and maybe other desktop platforms that Qt is ported to.
|
||||||
> Although there is a `pineapple-pictures.pro` file which can be used for QMake build, it's only for testing purpose and it doesn't have `exiv2` support included. Using QMake to build this project is NOT supported, please use CMake if possible.
|
|
||||||
|
|
||||||
### Linux
|
|
||||||
|
|
||||||
Just normal build process as other program will be fine. Nothing special ;)
|
|
||||||
|
|
||||||
For Archlinux there are also a [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pineapple-pictures-git) you can use.
|
|
||||||
|
|
||||||
For packaging to debian-based distro, the `CMakeLists.txt` provides some cpack configurations for generating a `.deb` package. After the build process, use `cpack -G DEB` to generate the package. You can also take `.github/workflows/ubuntu.yml` as a reference.
|
|
||||||
|
|
||||||
For this project, `DEB` is the only supported cpack generator in current state, feel free to submit a PR if you like improving `cpack` support for this project.
|
|
||||||
|
|
||||||
### Windows
|
|
||||||
|
|
||||||
The normal build steps for Linux is also applied to Windows, but since Windows doesn't have a decent package manager, so if you need any other image formats support other than the supported formats which Qt provided, you need to get and build these imageformats plugins manually and vendor it. It's optional and can be skipped if you don't need extra image formats support.
|
|
||||||
|
|
||||||
For the Windows binary I provided, kimageformats plugin is used (for formats like kra, xcf, psd and etc.). You can take `appveyor.yml` as a reference to learn what I did when building the Windows binary.
|
|
||||||
|
|
||||||
[KDE Craft](https://community.kde.org/Craft) environment also can be used to build and package this program. I did also created a blueprint for building this project that you can found it at [here](https://github.com/BearKidsTeam/craft-shmooprint-bkt). It's not the way I used to create the release binary, but still worth trying.
|
|
||||||
|
|
||||||
### macOS
|
|
||||||
|
|
||||||
I don't have a mac, so no support at all. There is also a GitHub Action (see `.github/workflows/macos.yml`) running macOS build though so at least it can build. Feel free to submit a PR if you would like to give some love to the macOS build ;P
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Pineapple Pictures as a whole is licensed under MIT license. Individual files may have a different, but compatible license.
|
SCW Photo Viewer as a whole is licensed under MIT license. Individual files may have a different, but compatible license.
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
# Sarasa's Chip Workshop 照片查看器
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> SCW 照片查看器还在重构中。在这条信息被移除之前请不要使用它。
|
||||||
|
|
||||||
|
简单轻量的、具有跨平台支持的、经典样式的 Windows 照片查看器。
|
||||||
|
|
||||||
|
[](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/windows.yml)
|
||||||
|
[](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/macos.yml)
|
||||||
|
[](https://github.com/SarasasChipWorkshop/sarasacw-picture/actions/workflows/ubuntu.yml)
|
||||||
|
|
||||||
|
<!--
|
||||||
|
TODO: Add main window illustration in future.
|
||||||
|

|
||||||
|
-->
|
||||||
|
|
||||||
|
## 简介
|
||||||
|
|
||||||
|
Sarasa's Chip Workshop 照片查看器(简称 SCW 照片查看器)是一个轻量级的图片查看器。支持跨平台。界面风格类似于经典的 Windows 照片查看器。它可以让你快速轻松地浏览 JPEG、PNG、GIF、SVG、PSD、KRA、XCF、TGA、HDR、AVIF 以及其他一些常用的图片格式,且无需改变你长期的 Windows 使用习惯。
|
||||||
|
|
||||||
|
SCW 照片查看器是[菠萝看图](https://github.com/BLumia/pineapple-pictures)的**硬分叉**,该分叉自菠萝看图 1.4.1 版本开始。
|
||||||
|
|
||||||
|
## 安装
|
||||||
|
|
||||||
|
从本仓库作者维护的地方下载:
|
||||||
|
|
||||||
|
- [GitHub Release 页面](https://github.com/SarasasChipWorkshop/sarasacw-picture/releases)
|
||||||
|
|
||||||
|
## 参与贡献
|
||||||
|
|
||||||
|
现在已冻结该应用的新功能请求,因为这个应用基本上是经典样式的 Windows 照片查看器的复刻,只是增加了跨平台支持。不过仍然欢迎针对该项目的错误报告和翻译。
|
||||||
|
|
||||||
|
## 构建指导
|
||||||
|
|
||||||
|
当前状态,我们需要先确保如下依赖可用:
|
||||||
|
|
||||||
|
- `cmake`:我们所使用的构建系统
|
||||||
|
- `python3`、`uv` 和 [`metaglot`](https://github.com/SarasasChipWorkshop/metaglot):我们所使用的元数据本地化处理器
|
||||||
|
- 包含 `qt6-svg` 与 `qt6-tools` 组件的 `qt6`:此应用基于 Qt
|
||||||
|
- `libexiv2`:用以获取和显示更多的图像元信息(可选,推荐)
|
||||||
|
|
||||||
|
然后我们就可以使用任何常规的 C++ 编译器如 g++ 或 MSVC 来进行构建了
|
||||||
|
|
||||||
|
构建过程就是常规的 CMake 应用构建过程:
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
$ mkdir build && cd build
|
||||||
|
$ cmake ..
|
||||||
|
$ cmake --build . # 如果你使用 Makefile 作为 CMake 生成器,也可以直接简单的使用 `make`
|
||||||
|
```
|
||||||
|
|
||||||
|
完毕后,一个名为 `scwpic` 的可执行程序即会被生成以供使用。您也可以选择通过使用 CMake 生成的 `install` 目标继续将其安装到您的设备上。构建步骤完毕后,您也可以使用 `cpack` 来对应用程序进行打包。
|
||||||
|
|
||||||
|
当 `exiv2` 在构建时可用时,此项目将尝试使用其进行构建,若您不希望使用 `exiv2`,请传递 `-DEXIV2_METADATA_SUPPORT=OFF` 参数给 `cmake`。此项目在找不到 `exiv2` 时并不会使用 `exiv2`,`EXIV2_METADATA_SUPPORT` 选项可供尽管存在可用的 `exiv2` 但您明确不希望启用其支持时使用。
|
||||||
|
|
||||||
|
此应用的图片格式支持依赖于 Qt 的 imageformats 插件,直接从您所用的发行版获取对应的图像格式插件即可。对于 Windows 用户,您可能需要手动构建和使用图像格式插件。下方给出了进一步的说明。
|
||||||
|
|
||||||
|
在 Windows、Linux 以及 macOS 系统均可构建此应用,其它有移植 Qt 支持的平台也可能可以进行构建。
|
||||||
|
|
||||||
|
## 许可协议
|
||||||
|
|
||||||
|
SCW 照片查看器整体使用 MIT 协议进行发布。项目所随的部分源文件可能具备不同但与之兼容的许可协议。
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
简单轻量的跨平台看图工具。
|
|
||||||
|
|
||||||
|CI|构建状态|
|
|
||||||
|---|---|
|
|
||||||
|Windows Build|[](https://ci.appveyor.com/project/BLumia/pineapplepictures/branch/master)|
|
|
||||||
|macOS Build|[](https://github.com/BLumia/pineapple-pictures/actions/workflows/macos.yml)|
|
|
||||||
|Ubuntu Build|[](https://github.com/BLumia/pineapple-pictures/actions/workflows/ubuntu.yml)|
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## 简介
|
|
||||||
|
|
||||||
菠萝看图是一个轻量图像查看器,允许你简单快捷的查看 JPEG, PNG, GIF, SVG, PSD, KRA, XCF, TGA, HDR, AVIF 等常用格式的图像文件,并提供了置顶窗口的选项以便你在使用其它软件时也可以将参考图片固定在顶端。
|
|
||||||
|
|
||||||
## 立即获取!
|
|
||||||
|
|
||||||
### 由原作者维护
|
|
||||||
|
|
||||||
- [GitHub Release 页面](https://github.com/BLumia/pineapple-pictures/releases) | [gitee 发布页面](https://gitee.com/blumia/pineapple-pictures/releases)
|
|
||||||
- [SourceForge](https://sourceforge.net/projects/pineapple-pictures/)
|
|
||||||
- Archlinux AUR: [pineapple-pictures](https://aur.archlinux.org/packages/pineapple-pictures/) | [pineapple-pictures-git](https://aur.archlinux.org/packages/pineapple-pictures-git/)
|
|
||||||
- [Itch.io 商店](https://blumia.itch.io/pineapple-pictures)
|
|
||||||
- Flatpak (于 FlatHub): [net.blumia.pineapple-pictures](https://flathub.org/apps/net.blumia.pineapple-pictures) *([我应当使用 flatpak 版吗?](https://github.com/BLumia/pineapple-pictures/wiki/Container%E2%80%90based-Packaging-Solutions-Support))*
|
|
||||||
|
|
||||||
### 由贡献者/对应发行版的打包人员维护
|
|
||||||
|
|
||||||
- Debian (自 bullseye 起) 或 Ubuntu (自 21.04 起): `sudo apt install pineapple-pictures`
|
|
||||||
- Nix / NixOS: [pineapple-pictures](https://search.nixos.org/packages?channel=unstable&show=pineapple-pictures&from=0&size=50&sort=relevance&type=packages&query=pineapple-pictures) (由 [@wineee](https://github.com/wineee) 维护)
|
|
||||||
|
|
||||||
## 帮助翻译!
|
|
||||||
|
|
||||||
[在 Weblate 上帮助此项目翻译到更多语言!](https://hosted.weblate.org/projects/pineapple-pictures/)
|
|
||||||
|
|
||||||
## 手动构建步骤:
|
|
||||||
|
|
||||||
当前状态,我们需要先确保如下依赖可用:
|
|
||||||
|
|
||||||
- `cmake`: 我们所使用的构建系统
|
|
||||||
- 包含 `qt6-svg` 与 `qt6-tools` 组件的 `qt6`: 此应用基于 Qt
|
|
||||||
- `libexiv2`: 用以获取和显示更多的图像元信息(可选,推荐)
|
|
||||||
|
|
||||||
然后我们就可以使用任何常规的 c++ 编译器如 g++ 或 msvc 来进行构建了
|
|
||||||
|
|
||||||
构建过程就是常规的 CMake 应用构建过程:
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
$ mkdir build && cd build
|
|
||||||
$ cmake ..
|
|
||||||
$ cmake --build . # 如果你使用 Makefile 作为 CMake 生成器,也可以直接简单的使用 `make`
|
|
||||||
```
|
|
||||||
|
|
||||||
完毕后,一个名为 `ppic` 的可执行程序即会被生成以供使用。您也可以选择通过使用 CMake 生成的 `install` 目标继续将其安装到您的设备上(假设您使用 Makefile,即可执行 `make install` 来进行安装)。构建步骤完毕后,您也可以使用 `cpack` 来对应用程序进行打包。
|
|
||||||
|
|
||||||
当 `exiv2` 在构建时可用时,此项目将尝试使用其进行构建,若您不希望使用 `exiv2`,请传递 `-DEXIV2_METADATA_SUPPORT=OFF` 参数给 `cmake`。此项目在找不到 `exiv2` 时并不会使用 `exiv2`,`EXIV2_METADATA_SUPPORT` 选项可供尽管存在可用的 `exiv2` 但您明确不希望启用其支持时使用。
|
|
||||||
|
|
||||||
此应用的图片格式支持依赖于 Qt 的 imageformats 插件,直接从您所用的发行版获取对应的图像格式插件即可。对于 Windows 用户,您可能需要手动构建和使用图像格式插件。下方给出了进一步的说明。
|
|
||||||
|
|
||||||
> [!NOTE]
|
|
||||||
> 尽管存在一个可用于 QMake 构建的 `pineapple-pictures.pro` 文件,但其仅供简单测试所用且其并不包含 `exiv2` 支持。使用 QMake 构建此项目是 **不受支持** 的,请尽可能考虑使用 CMake。
|
|
||||||
|
|
||||||
### Linux
|
|
||||||
|
|
||||||
常规的构建步骤即可完成构建,不需要额外的处理步骤 ;)
|
|
||||||
|
|
||||||
对于 Archlinux 发行版的用户,这里还有一个 [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pineapple-pictures-git) 可供使用和参考。
|
|
||||||
|
|
||||||
对于在基于 debian 的发行版中进行打包的需求, `CMakeLists.txt` 已经提供了一些基本的 cpack 配置以便生成一个有效的 `.deb` 软件包。在构建步骤完毕后,使用 `cpack -G DEB` 即可生成 DEB 软件包。您也可以参考 `.github/workflows/ubuntu.yml` 来查看当前正在使用的 CI 配置是如何进行打包的。
|
|
||||||
|
|
||||||
目前,`DEB` 是当前唯一受到直接支持的 cpack 生成目标。若希望为此项目添加其它的 cpack 目标支持,欢迎发起合并请求。
|
|
||||||
|
|
||||||
### Windows
|
|
||||||
|
|
||||||
上述的构建步骤在 Windows 中也适用,但由于 Windows 中不具备类如大多 Linux 发行版中所提供的方便的软件包管理机制,故如果您需要任何 Qt 官方支持之外的图像格式例如 psd,xcf,kra 等格式的支持,你就可能需要自行获取并构建对应的 imageformats 插件,并在您最终生成的可执行文件中一并提供这些插件。若您不需要这些额外的图像格式支持,这个步骤也可以直接跳过。
|
|
||||||
|
|
||||||
我们所提供的预编译好的 Windows 程序包含了 kimageformats 插件来提供额外(kra, xcf, psd 等)格式的支持。您可以参考 `appveyor.yml` 来查看我们是如何构建并打包 Windows 可执行程序的。
|
|
||||||
|
|
||||||
[KDE Craft](https://community.kde.org/Craft) 环境也可以被用来构建此应用程序。我也创建了一个蓝图来进行此项目的构建和打包,可参见[这里](https://github.com/BearKidsTeam/craft-shmooprint-bkt)。尽管这不是我用于构建发布二进制所使用的方案,但仍值得一试。
|
|
||||||
|
|
||||||
### macOS
|
|
||||||
|
|
||||||
由于我没有 mac 设备,故 macOS 暂时不受任何支持。不过我们目前有一个 GitHub Action 来执行 macOS 环境下的构建(见 `.github/workflows/macos.yml`)所以至少 macOS 下是可以顺利进行构建的。如果您想完善对 macOS 的支持,也欢迎您创建合并请求 ;P
|
|
||||||
|
|
||||||
## 许可协议
|
|
||||||
|
|
||||||
菠萝看图整体使用 MIT 协议进行发布。项目所随的部分源文件可能具备不同但与之兼容的许可协议。
|
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
version = 1
|
||||||
|
SPDX-PackageName = "Pineapple Pictures"
|
||||||
|
SPDX-PackageDownloadLocation = "https://github.com/BLumia/pineapple-pictures"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = [".gitattributes", ".git-blame-ignore-revs", ".gitignore", "appveyor.yml", ".github/**"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "None"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["README**.md", "NEWS", "assets/**.rc.in", "assets/**.qrc", "dist/appstream/**", "dist/**.in", "dist/**.desktop", "dist/**.rc.in.toml", "dist/**.rc.in.liquid"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "None"
|
||||||
|
SPDX-License-Identifier = "CC0-1.0"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["locales/app/**.ts", "locales/winrc/**", "assets/plain/translators.html"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "Translators from hosted.weblate.org"
|
||||||
|
SPDX-License-Identifier = "MIT"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["dist/msix/**.svg", "dist/msix/**.toml"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2026 Gary Wang"
|
||||||
|
SPDX-License-Identifier = "MIT"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = ["app/translations/**.ts", "assets/plain/translators.html"]
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2026 yyc12345"
|
||||||
|
SPDX-License-Identifier = "MIT"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "assets/icons/**.svg"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2022 Gary Wang"
|
||||||
|
SPDX-License-Identifier = "MIT"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = "assets/icons/app-icon.**"
|
||||||
|
precedence = "aggregate"
|
||||||
|
SPDX-FileCopyrightText = "2020 Lovelyblack"
|
||||||
|
SPDX-License-Identifier = "MIT"
|
||||||
@@ -1,176 +1,95 @@
|
|||||||
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
|
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net>
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#include "aboutdialog.h"
|
#include "aboutdialog.h"
|
||||||
|
#include "ui_aboutdialog.h"
|
||||||
|
|
||||||
#include <QAbstractButton>
|
|
||||||
#include <QDialogButtonBox>
|
|
||||||
#include <QTextBrowser>
|
|
||||||
#include <QTabWidget>
|
|
||||||
#include <QVBoxLayout>
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QLabel>
|
|
||||||
#include <QPushButton>
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
|
||||||
|
using namespace Qt::Literals::StringLiterals;
|
||||||
|
|
||||||
|
static QString loadEmbeddedHtml(QString&& path) {
|
||||||
|
QFile htmlFile(path);
|
||||||
|
bool canOpenFile = htmlFile.open(QIODevice::ReadOnly);
|
||||||
|
QByteArray htmlRawContent = canOpenFile ? htmlFile.readAll() : QByteArrayLiteral("");
|
||||||
|
return QString::fromUtf8(htmlRawContent);
|
||||||
|
}
|
||||||
|
|
||||||
AboutDialog::AboutDialog(QWidget *parent)
|
AboutDialog::AboutDialog(QWidget *parent)
|
||||||
: QDialog(parent)
|
: QDialog(parent), ui(new QT_PREPEND_NAMESPACE(Ui::AboutDialog))
|
||||||
, m_tabWidget(new QTabWidget)
|
|
||||||
, m_buttonBox(new QDialogButtonBox)
|
|
||||||
, m_helpTextEdit(new QTextBrowser)
|
|
||||||
, m_aboutTextEdit(new QTextBrowser)
|
|
||||||
, m_specialThanksTextEdit(new QTextBrowser)
|
|
||||||
, m_licenseTextEdit(new QTextBrowser)
|
|
||||||
, m_3rdPartyLibsTextEdit(new QTextBrowser)
|
|
||||||
{
|
{
|
||||||
this->setWindowTitle(tr("About"));
|
ui->setupUi(this);
|
||||||
|
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
|
||||||
|
|
||||||
const QStringList helpStr {
|
|
||||||
QStringLiteral("<p>%1</p>").arg(tr("Launch application with image file path as argument to load the file.")),
|
|
||||||
QStringLiteral("<p>%1</p>").arg(tr("Drag and drop image file onto the window is also supported.")),
|
|
||||||
QStringLiteral("<p>%1</p>").arg(tr("None of the operations in this application will alter the pictures on disk.")),
|
|
||||||
QStringLiteral("<p>%1</p>").arg(tr("Context menu option explanation:")),
|
|
||||||
QStringLiteral("<ul>"),
|
|
||||||
// blumia: Chain two arg() here since it seems lupdate will remove one of them if we use
|
// blumia: Chain two arg() here since it seems lupdate will remove one of them if we use
|
||||||
// the old `arg(QCoreApp::translate(), tr())` way, but it's worth to mention
|
// the old `arg(QCoreApp::translate(), tr())` way, but it's worth to mention
|
||||||
// `arg(QCoreApp::translate(), this->tr())` works, but lupdate will complain about the usage.
|
// `arg(QCoreApp::translate(), this->tr())` works, but lupdate will complain about the usage.
|
||||||
QStringLiteral("<li><b>%1</b>:<br/>%2</li>")
|
const QString HELP_HTML = loadEmbeddedHtml(u":/htmls/help.html"_s)
|
||||||
.arg(QCoreApplication::translate("MainWindow", "Stay on top"))
|
.arg(tr("General Help"))
|
||||||
.arg(tr("Make window stay on top of all other windows.")),
|
.arg(tr("Launch application with image file path as argument to load the file."))
|
||||||
QStringLiteral("<li><b>%1</b>:<br/>%2</li>")
|
.arg(tr("Passing in a single image file will load all the images in that directory and start viewing from that image."))
|
||||||
.arg(QCoreApplication::translate("MainWindow", "Protected mode"))
|
.arg(tr("Passing in multiple image files lets you view them one by one."))
|
||||||
.arg(tr("Avoid close window accidentally. (eg. by double clicking the window)")),
|
.arg(tr("Drag and drop image file onto the window is also supported."))
|
||||||
QStringLiteral("<li><b>%1</b>:<br/>%2</li>")
|
.arg(tr("None of the operations in this application will alter the pictures on disk."))
|
||||||
.arg(QCoreApplication::translate("MainWindow", "Keep transformation", "The 'transformation' means the flip/rotation status that currently applied to the image view"))
|
.arg(tr("Context Menu Help"))
|
||||||
.arg(tr("Avoid resetting the zoom/rotation/flip state that was applied to the image view when switching between images.")),
|
.arg(tr("Keep transformation", "The same meaning of MainWindow's Keep transformation."))
|
||||||
QStringLiteral("</ul>")
|
.arg(tr("Avoid resetting the zoom/rotation/flip state that was applied to the image view when switching between images."))
|
||||||
};
|
.arg(tr("Checkerboard", "The same meaning of MainWindow's Checkerboard."))
|
||||||
|
.arg(tr("Checkerboard light and dark theme can be adjusted in the configuration window, or easily switch it by holding Shift and clicking the button."));
|
||||||
|
|
||||||
const QStringList aboutStr {
|
const QString APP_NAME_ARG = qApp->applicationDisplayName();
|
||||||
QStringLiteral("<center><img width='128' height='128' src=':/icons/app-icon.svg'/><br/>"),
|
const QString APP_VERSION_ARG =
|
||||||
qApp->applicationDisplayName(),
|
|
||||||
(QStringLiteral("<br/>") + tr("Version: %1").arg(
|
|
||||||
#ifdef GIT_DESCRIBE_VERSION_STRING
|
#ifdef GIT_DESCRIBE_VERSION_STRING
|
||||||
GIT_DESCRIBE_VERSION_STRING
|
GIT_DESCRIBE_VERSION_STRING;
|
||||||
#else
|
#else
|
||||||
qApp->applicationVersion()
|
qApp->applicationVersion();
|
||||||
#endif // GIT_DESCRIBE_VERSION_STRING
|
#endif // GIT_DESCRIBE_VERSION_STRING
|
||||||
)),
|
const QString QT_VERSION_ARG = QT_VERSION_STR;
|
||||||
QStringLiteral("<hr/>"),
|
const QString QT_ARCH_ARG = QSysInfo::buildCpuArchitecture();
|
||||||
tr("Copyright (c) %1 %2", "%1 is year, %2 is the name of copyright holder(s)")
|
const QString ABOUT_HTML = loadEmbeddedHtml(u":/htmls/about.html"_s)
|
||||||
.arg(QStringLiteral("2024"), QStringLiteral("<a href='https://github.com/BLumia'>@BLumia</a>")),
|
.arg(APP_NAME_ARG)
|
||||||
QStringLiteral("<br/>"),
|
.arg(tr("Version: %1").arg(APP_VERSION_ARG))
|
||||||
tr("Logo designed by %1").arg(QStringLiteral("<a href='https://github.com/Lovelyblack'>@Lovelyblack</a>")),
|
.arg(tr("Upstream author"))
|
||||||
QStringLiteral("<hr/>"),
|
.arg(tr("Hard fork author"))
|
||||||
tr("Built with Qt %1 (%2)").arg(QT_VERSION_STR, QSysInfo::buildCpuArchitecture()),
|
.arg(tr("Built with Qt %1 (%2)").arg(QT_VERSION_ARG).arg(QT_ARCH_ARG))
|
||||||
QStringLiteral("<br/><a href='%1'>%2</a>").arg("https://github.com/BLumia/pineapple-pictures", tr("Source code")),
|
.arg(tr("Source code"));
|
||||||
QStringLiteral("</center>")
|
|
||||||
};
|
|
||||||
|
|
||||||
QFile translaterHtml(":/plain/translators.html");
|
const QString SPECIAL_THANKS_HTML = loadEmbeddedHtml(u":/htmls/special-thanks.html"_s)
|
||||||
bool canOpenFile = translaterHtml.open(QIODevice::ReadOnly);
|
.arg(tr("Contributors"))
|
||||||
const QByteArray & translatorList = canOpenFile ? translaterHtml.readAll() : QByteArrayLiteral("");
|
.arg(tr("List of contributors on GitHub"))
|
||||||
|
.arg(tr("Thanks to all people who contributed to this project."))
|
||||||
|
.arg(tr("Translators"))
|
||||||
|
.arg(tr("I would like to thank the following people who volunteered to translate this application."));
|
||||||
|
|
||||||
const QStringList specialThanksStr {
|
const QString LICENSE_HTML = loadEmbeddedHtml(u":/htmls/license.html"_s)
|
||||||
QStringLiteral("<h1 align='center'>%1</h1><a href='%2'>%3</a><p>%4</p>").arg(
|
.arg(tr("License"))
|
||||||
tr("Contributors"),
|
.arg(tr("This application is released under the MIT License."))
|
||||||
QStringLiteral("https://github.com/BLumia/pineapple-pictures/graphs/contributors"),
|
.arg(tr("License Verbatim Copy"));
|
||||||
tr("List of contributors on GitHub"),
|
|
||||||
tr("Thanks to all people who contributed to this project.")
|
|
||||||
),
|
|
||||||
|
|
||||||
QStringLiteral("<h1 align='center'>%1</h1><p>%2</p>%3").arg(
|
const QString THIRD_PARTY_LIBS_HTML = loadEmbeddedHtml(u":/htmls/third-party-libs.html"_s)
|
||||||
tr("Translators"),
|
.arg(tr("Third-party Libraries"))
|
||||||
tr("I would like to thank the following people who volunteered to translate this application."),
|
.arg(tr("This application is built on the following free software libraries.", "Free as in freedom"))
|
||||||
translatorList
|
.arg(tr("Some of them are optional and might not be included with this distribution depending on the build environment."));
|
||||||
)
|
|
||||||
};
|
|
||||||
|
|
||||||
const QStringList licenseStr {
|
ui->m_helpTextEdit->setHtml(HELP_HTML);
|
||||||
QStringLiteral("<h1 align='center'><b>%1</b></h1>").arg(tr("Your Rights")),
|
ui->m_aboutTextEdit->setHtml(ABOUT_HTML);
|
||||||
QStringLiteral("<p>%1</p><p>%2</p><ul><li>%3</li><li>%4</li><li>%5</li><li>%6</li></ul>").arg(
|
ui->m_specialThanksTextEdit->setHtml(SPECIAL_THANKS_HTML);
|
||||||
tr("%1 is released under the MIT License."), // %1
|
ui->m_licenseTextEdit->setHtml(LICENSE_HTML);
|
||||||
tr("This license grants people a number of freedoms:"), // %2
|
ui->m_3rdPartyLibsTextEdit->setHtml(THIRD_PARTY_LIBS_HTML);
|
||||||
tr("You are free to use %1, for any purpose"), // %3
|
|
||||||
tr("You are free to distribute %1"), // %4
|
|
||||||
tr("You can study how %1 works and change it"), // %5
|
|
||||||
tr("You can distribute changed versions of %1") // %6
|
|
||||||
).arg(QStringLiteral("<i>%1</i>")),
|
|
||||||
QStringLiteral("<p>%1</p>").arg(tr("The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.")),
|
|
||||||
QStringLiteral("<hr/><pre>%2</pre>")
|
|
||||||
};
|
|
||||||
|
|
||||||
const QString mitLicense(QStringLiteral(R"(Expat/MIT License
|
connect(ui->m_buttonBox, QOverload<QAbstractButton *>::of(&QDialogButtonBox::clicked), this, [this](QAbstractButton * btn){
|
||||||
|
Q_UNUSED(btn)
|
||||||
Copyright (c) 2024 BLumia
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
)"));
|
|
||||||
|
|
||||||
const QStringList thirdPartyLibsStr {
|
|
||||||
QStringLiteral("<h1 align='center'><b>%1</b></h1>").arg(tr("Third-party Libraries used by %1")),
|
|
||||||
tr("%1 is built on the following free software libraries:", "Free as in freedom"),
|
|
||||||
QStringLiteral("<ul>"),
|
|
||||||
#ifdef HAVE_EXIV2_VERSION
|
|
||||||
QStringLiteral("<li><a href='%1'>%2</a>: %3</li>").arg("https://www.exiv2.org/", "Exiv2", "GPLv2"),
|
|
||||||
#endif // EXIV2_VERSION
|
|
||||||
QStringLiteral("<li><a href='%1'>%2</a>: %3</li>").arg("https://www.qt.io/", "Qt", "GPLv2 + GPLv3 + LGPLv2.1 + LGPLv3"),
|
|
||||||
QStringLiteral("</ul>")
|
|
||||||
};
|
|
||||||
|
|
||||||
m_helpTextEdit->setText(helpStr.join('\n'));
|
|
||||||
|
|
||||||
m_aboutTextEdit->setText(aboutStr.join('\n'));
|
|
||||||
m_aboutTextEdit->setOpenExternalLinks(true);
|
|
||||||
|
|
||||||
m_specialThanksTextEdit->setText(specialThanksStr.join('\n'));
|
|
||||||
m_specialThanksTextEdit->setOpenExternalLinks(true);
|
|
||||||
|
|
||||||
m_licenseTextEdit->setText(licenseStr.join('\n').arg(qApp->applicationDisplayName(), mitLicense));
|
|
||||||
|
|
||||||
m_3rdPartyLibsTextEdit->setText(thirdPartyLibsStr.join('\n').arg(QStringLiteral("<i>%1</i>").arg(qApp->applicationDisplayName())));
|
|
||||||
m_3rdPartyLibsTextEdit->setOpenExternalLinks(true);
|
|
||||||
|
|
||||||
m_tabWidget->addTab(m_helpTextEdit, tr("&Help"));
|
|
||||||
m_tabWidget->addTab(m_aboutTextEdit, tr("&About"));
|
|
||||||
m_tabWidget->addTab(m_specialThanksTextEdit, tr("&Special Thanks"));
|
|
||||||
m_tabWidget->addTab(m_licenseTextEdit, tr("&License"));
|
|
||||||
m_tabWidget->addTab(m_3rdPartyLibsTextEdit, tr("&Third-party Libraries"));
|
|
||||||
|
|
||||||
m_buttonBox->setStandardButtons(QDialogButtonBox::Close);
|
|
||||||
connect(m_buttonBox, QOverload<QAbstractButton *>::of(&QDialogButtonBox::clicked), this, [this](){
|
|
||||||
this->close();
|
this->close();
|
||||||
});
|
});
|
||||||
|
|
||||||
setLayout(new QVBoxLayout);
|
|
||||||
|
|
||||||
layout()->addWidget(m_tabWidget);
|
|
||||||
layout()->addWidget(m_buttonBox);
|
|
||||||
|
|
||||||
setMinimumSize(361, 161); // not sure why it complain "Unable to set geometry"
|
setMinimumSize(361, 161); // not sure why it complain "Unable to set geometry"
|
||||||
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AboutDialog::~AboutDialog()
|
AboutDialog::~AboutDialog()
|
||||||
{
|
{
|
||||||
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize AboutDialog::sizeHint() const
|
QSize AboutDialog::sizeHint() const
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
class QTextBrowser;
|
namespace Ui {
|
||||||
class QTabWidget;
|
class AboutDialog;
|
||||||
class QDialogButtonBox;
|
}
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
class AboutDialog : public QDialog
|
class AboutDialog : public QDialog
|
||||||
@@ -23,14 +23,7 @@ public:
|
|||||||
QSize sizeHint() const override;
|
QSize sizeHint() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QTabWidget * m_tabWidget = nullptr;
|
QT_PREPEND_NAMESPACE(Ui::AboutDialog) *ui;
|
||||||
QDialogButtonBox * m_buttonBox = nullptr;
|
|
||||||
|
|
||||||
QTextBrowser * m_helpTextEdit = nullptr;
|
|
||||||
QTextBrowser * m_aboutTextEdit = nullptr;
|
|
||||||
QTextBrowser * m_specialThanksTextEdit = nullptr;
|
|
||||||
QTextBrowser * m_licenseTextEdit = nullptr;
|
|
||||||
QTextBrowser * m_3rdPartyLibsTextEdit = nullptr;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ABOUTDIALOG_H
|
#endif // ABOUTDIALOG_H
|
||||||
@@ -0,0 +1,106 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>AboutDialog</class>
|
||||||
|
<widget class="QDialog" name="AboutDialog">
|
||||||
|
<property name="windowModality">
|
||||||
|
<enum>Qt::NonModal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>About</string>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>361</width>
|
||||||
|
<height>161</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QTabWidget" name="m_tabWidget">
|
||||||
|
<property name="currentIndex">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="helpTab">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>&Help</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QVBoxLayout" name="helpTabLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QTextBrowser" name="m_helpTextEdit">
|
||||||
|
<property name="openExternalLinks">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="aboutTab">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>&About</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QVBoxLayout" name="aboutTabLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QTextBrowser" name="m_aboutTextEdit">
|
||||||
|
<property name="openExternalLinks">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="specialThanksTab">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>&Special Thanks</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QVBoxLayout" name="specialThanksTabLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QTextBrowser" name="m_specialThanksTextEdit">
|
||||||
|
<property name="openExternalLinks">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="licenseTab">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>&License</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QVBoxLayout" name="licenseTabLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QTextBrowser" name="m_licenseTextEdit">
|
||||||
|
<property name="openExternalLinks">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="thirdPartyLibsTab">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>&Third-party Libraries</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QVBoxLayout" name="thirdPartyLibsTabLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QTextBrowser" name="m_3rdPartyLibsTextEdit">
|
||||||
|
<property name="openExternalLinks">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QDialogButtonBox" name="m_buttonBox">
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::Close</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
||||||
@@ -4,116 +4,127 @@
|
|||||||
|
|
||||||
#include "actionmanager.h"
|
#include "actionmanager.h"
|
||||||
|
|
||||||
|
#include "settings.h"
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
#include "playlistmanager.h"
|
||||||
|
#include "graphicsview.h"
|
||||||
|
#include "graphicsscene.h"
|
||||||
|
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QSvgRenderer>
|
#include <QSvgRenderer>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
|
||||||
#define ICON_NAME(name)\
|
static QIcon loadHidpiIcon(const QString &resp, QSize sz = QSize(32, 32))
|
||||||
QStringLiteral(":/icons/" #name ".svg")
|
|
||||||
|
|
||||||
#define ACTION_NAME(s) QStringLiteral(STRIFY(s))
|
|
||||||
#define STRIFY(s) #s
|
|
||||||
|
|
||||||
ActionManager::ActionManager()
|
|
||||||
{
|
{
|
||||||
|
QPixmap pm = QPixmap(resp);
|
||||||
}
|
pm.scaled(sz * qApp->devicePixelRatio(), Qt::KeepAspectRatio);
|
||||||
|
|
||||||
ActionManager::~ActionManager()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
QIcon ActionManager::loadHidpiIcon(const QString &resp, QSize sz)
|
|
||||||
{
|
|
||||||
QSvgRenderer r(resp);
|
|
||||||
QPixmap pm = QPixmap(sz * qApp->devicePixelRatio());
|
|
||||||
pm.fill(Qt::transparent);
|
|
||||||
QPainter p(&pm);
|
|
||||||
r.render(&p);
|
|
||||||
pm.setDevicePixelRatio(qApp->devicePixelRatio());
|
pm.setDevicePixelRatio(qApp->devicePixelRatio());
|
||||||
return QIcon(pm);
|
return QIcon(pm);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ActionManager::setupAction(MainWindow *mainWindow)
|
void ActionManager::setupAction(MainWindow *mainWindow)
|
||||||
{
|
{
|
||||||
|
// region: Action and Its Icon Creation
|
||||||
|
|
||||||
|
// Declare some convenient macros and lambdas.
|
||||||
|
|
||||||
|
#define ICON_NAME(name)\
|
||||||
|
QStringLiteral(":/icons/" #name ".png")
|
||||||
|
|
||||||
|
#define ACTION_NAME(s) QStringLiteral(STRIFY(s))
|
||||||
|
#define STRIFY(s) #s
|
||||||
|
|
||||||
auto create_action = [] (QWidget *w, QAction **a, QString i, QString an, bool iconFromTheme = false) {
|
auto create_action = [] (QWidget *w, QAction **a, QString i, QString an, bool iconFromTheme = false) {
|
||||||
*a = new QAction(w);
|
*a = new QAction(w);
|
||||||
if (!i.isNull())
|
if (!i.isNull())
|
||||||
(*a)->setIcon(iconFromTheme ? QIcon::fromTheme(i) : ActionManager::loadHidpiIcon(i));
|
(*a)->setIcon(iconFromTheme ? QIcon::fromTheme(i) : loadHidpiIcon(i));
|
||||||
(*a)->setObjectName(an);
|
(*a)->setObjectName(an);
|
||||||
w->addAction(*a);
|
w->addAction(*a);
|
||||||
};
|
};
|
||||||
#define CREATE_NEW_ICON_ACTION(w, a, i) create_action(w, &a, ICON_NAME(i), ACTION_NAME(a))
|
|
||||||
CREATE_NEW_ICON_ACTION(mainWindow, actionActualSize, zoom-original);
|
/// This macro for register normal action.
|
||||||
CREATE_NEW_ICON_ACTION(mainWindow, actionToggleMaximize, view-fullscreen);
|
#define CREATE_NEW_ACTION(w, a) create_action(w, &a, QString(), ACTION_NAME(a))
|
||||||
|
/// This macro for register Qt theme action.
|
||||||
|
#define CREATE_NEW_THEMEICON_ACTION(w, a, i) create_action(w, &a, QLatin1String(STRIFY(i)), ACTION_NAME(a), true)
|
||||||
|
/// This macro for register action with our custom icon.
|
||||||
|
#define CREATE_NEW_ICON_ACTION(w, a, i) create_action(w, &a, ICON_NAME(i), ACTION_NAME(a), false)
|
||||||
|
|
||||||
|
CREATE_NEW_ACTION(mainWindow, actionCopyPixmap);
|
||||||
|
CREATE_NEW_ACTION(mainWindow, actionCopyFilePath);
|
||||||
|
|
||||||
|
CREATE_NEW_ICON_ACTION(mainWindow, actionPrevPicture, go-previous);
|
||||||
|
CREATE_NEW_ICON_ACTION(mainWindow, actionNextPicture, go-next);
|
||||||
|
|
||||||
|
CREATE_NEW_ICON_ACTION(mainWindow, actionActualSize, fit-to-size);
|
||||||
|
CREATE_NEW_ICON_ACTION(mainWindow, actionFitToScreen, fit-to-screen);
|
||||||
|
CREATE_NEW_ACTION(mainWindow, actionFitByWidth);
|
||||||
|
CREATE_NEW_ACTION(mainWindow, actionFitByHeight);
|
||||||
CREATE_NEW_ICON_ACTION(mainWindow, actionZoomIn, zoom-in);
|
CREATE_NEW_ICON_ACTION(mainWindow, actionZoomIn, zoom-in);
|
||||||
CREATE_NEW_ICON_ACTION(mainWindow, actionZoomOut, zoom-out);
|
CREATE_NEW_ICON_ACTION(mainWindow, actionZoomOut, zoom-out);
|
||||||
CREATE_NEW_ICON_ACTION(mainWindow, actionToggleCheckerboard, view-background-checkerboard);
|
|
||||||
CREATE_NEW_ICON_ACTION(mainWindow, actionRotateClockwise, object-rotate-right);
|
|
||||||
#undef CREATE_NEW_ICON_ACTION
|
|
||||||
|
|
||||||
#define CREATE_NEW_ACTION(w, a) create_action(w, &a, QString(), ACTION_NAME(a))
|
CREATE_NEW_ICON_ACTION(mainWindow, actionFlipHorizontal, flip-horizontal);
|
||||||
#define CREATE_NEW_THEMEICON_ACTION(w, a, i) create_action(w, &a, QLatin1String(STRIFY(i)), ACTION_NAME(a), true)
|
CREATE_NEW_ICON_ACTION(mainWindow, actionFlipVertical, flip-vertical);
|
||||||
CREATE_NEW_ACTION(mainWindow, actionRotateCounterClockwise);
|
CREATE_NEW_ICON_ACTION(mainWindow, actionRotateClockwise, rotate-right);
|
||||||
CREATE_NEW_ACTION(mainWindow, actionPrevPicture);
|
CREATE_NEW_ICON_ACTION(mainWindow, actionRotateCounterClockwise, rotate-left);
|
||||||
CREATE_NEW_ACTION(mainWindow, actionNextPicture);
|
|
||||||
|
|
||||||
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionOpen, document-open);
|
|
||||||
CREATE_NEW_ACTION(mainWindow, actionHorizontalFlip);
|
|
||||||
CREATE_NEW_ACTION(mainWindow, actionFitInView);
|
|
||||||
CREATE_NEW_ACTION(mainWindow, actionFitByWidth);
|
|
||||||
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionCopyPixmap, edit-copy);
|
|
||||||
CREATE_NEW_ACTION(mainWindow, actionCopyFilePath);
|
|
||||||
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionPaste, edit-paste);
|
|
||||||
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionTrash, edit-delete);
|
|
||||||
CREATE_NEW_ACTION(mainWindow, actionToggleStayOnTop);
|
|
||||||
CREATE_NEW_ACTION(mainWindow, actionToggleProtectMode);
|
|
||||||
CREATE_NEW_ACTION(mainWindow, actionToggleAvoidResetTransform);
|
CREATE_NEW_ACTION(mainWindow, actionToggleAvoidResetTransform);
|
||||||
|
CREATE_NEW_ACTION(mainWindow, actionToggleCheckerboard);
|
||||||
|
CREATE_NEW_ACTION(mainWindow, actionTogglePauseAnimation);
|
||||||
|
CREATE_NEW_ACTION(mainWindow, actionAnimationNextFrame);
|
||||||
|
|
||||||
|
CREATE_NEW_ACTION(mainWindow, actionTrash/*, edit-delete*/);
|
||||||
|
CREATE_NEW_ACTION(mainWindow, actionLocateInFileManager/*, system-file-manager*/);
|
||||||
|
CREATE_NEW_ICON_ACTION(mainWindow, actionProperties, image-info);
|
||||||
|
|
||||||
CREATE_NEW_ACTION(mainWindow, actionSettings);
|
CREATE_NEW_ACTION(mainWindow, actionSettings);
|
||||||
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionHelp, system-help);
|
CREATE_NEW_ACTION(mainWindow, actionHelp/*, system-help*/);
|
||||||
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionLocateInFileManager, system-file-manager);
|
|
||||||
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionProperties, document-properties);
|
// Remove convenient macros
|
||||||
CREATE_NEW_ACTION(mainWindow, actionQuitApp);
|
|
||||||
#undef CREATE_NEW_ACTION
|
#undef CREATE_NEW_ICON_ACTION
|
||||||
#undef CREATE_NEW_THEMEICON_ACTION
|
#undef CREATE_NEW_THEMEICON_ACTION
|
||||||
|
#undef CREATE_NEW_ACTION
|
||||||
|
|
||||||
retranslateUi(mainWindow);
|
#undef STRIFY
|
||||||
|
#undef ACTION_NAME
|
||||||
|
#undef ICON_NAME
|
||||||
|
|
||||||
QMetaObject::connectSlotsByName(mainWindow);
|
// endregion
|
||||||
}
|
|
||||||
|
|
||||||
void ActionManager::retranslateUi(MainWindow *mainWindow)
|
// region: Setup Checkable Action
|
||||||
{
|
|
||||||
Q_UNUSED(mainWindow);
|
|
||||||
|
|
||||||
actionOpen->setText(QCoreApplication::translate("MainWindow", "&Open...", nullptr));
|
actionToggleAvoidResetTransform->setCheckable(true);
|
||||||
|
actionToggleCheckerboard->setCheckable(true);
|
||||||
|
actionTogglePauseAnimation->setCheckable(true);
|
||||||
|
|
||||||
actionActualSize->setText(QCoreApplication::translate("MainWindow", "Actual size", nullptr));
|
// endregion
|
||||||
actionToggleMaximize->setText(QCoreApplication::translate("MainWindow", "Toggle maximize", nullptr));
|
|
||||||
actionZoomIn->setText(QCoreApplication::translate("MainWindow", "Zoom in", nullptr));
|
// region: Action Translatable Text Setup
|
||||||
actionZoomOut->setText(QCoreApplication::translate("MainWindow", "Zoom out", nullptr));
|
|
||||||
actionToggleCheckerboard->setText(QCoreApplication::translate("MainWindow", "Toggle Checkerboard", nullptr));
|
actionCopyPixmap->setText(QCoreApplication::translate("MainWindow", "Copy P&ixmap", nullptr));
|
||||||
actionRotateClockwise->setText(QCoreApplication::translate("MainWindow", "Rotate right", nullptr));
|
actionCopyFilePath->setText(QCoreApplication::translate("MainWindow", "Copy &File Path", nullptr));
|
||||||
actionRotateCounterClockwise->setText(QCoreApplication::translate("MainWindow", "Rotate left", nullptr));
|
|
||||||
|
|
||||||
actionPrevPicture->setText(QCoreApplication::translate("MainWindow", "Previous image", nullptr));
|
actionPrevPicture->setText(QCoreApplication::translate("MainWindow", "Previous image", nullptr));
|
||||||
actionNextPicture->setText(QCoreApplication::translate("MainWindow", "Next image", nullptr));
|
actionNextPicture->setText(QCoreApplication::translate("MainWindow", "Next image", nullptr));
|
||||||
|
|
||||||
actionHorizontalFlip->setText(QCoreApplication::translate("MainWindow", "Flip &Horizontally", nullptr));
|
actionActualSize->setText(QCoreApplication::translate("MainWindow", "Actual size", nullptr));
|
||||||
actionFitInView->setText(QCoreApplication::translate("MainWindow", "Fit to view", nullptr));
|
actionFitToScreen->setText(QCoreApplication::translate("MainWindow", "Fit to screen", nullptr));
|
||||||
actionFitByWidth->setText(QCoreApplication::translate("MainWindow", "Fit to width", nullptr));
|
actionFitByWidth->setText(QCoreApplication::translate("MainWindow", "Fit by width", nullptr));
|
||||||
actionCopyPixmap->setText(QCoreApplication::translate("MainWindow", "Copy P&ixmap", nullptr));
|
actionFitByHeight->setText(QCoreApplication::translate("MainWindow", "Fit by height", nullptr));
|
||||||
actionCopyFilePath->setText(QCoreApplication::translate("MainWindow", "Copy &File Path", nullptr));
|
actionZoomIn->setText(QCoreApplication::translate("MainWindow", "Zoom in", nullptr));
|
||||||
actionPaste->setText(QCoreApplication::translate("MainWindow", "&Paste", nullptr));
|
actionZoomOut->setText(QCoreApplication::translate("MainWindow", "Zoom out", nullptr));
|
||||||
actionTrash->setText(QCoreApplication::translate("MainWindow", "Move to Trash", nullptr));
|
|
||||||
actionToggleStayOnTop->setText(QCoreApplication::translate("MainWindow", "Stay on top", nullptr));
|
actionFlipHorizontal->setText(QCoreApplication::translate("MainWindow", "Flip &Horizontally", nullptr));
|
||||||
actionToggleProtectMode->setText(QCoreApplication::translate("MainWindow", "Protected mode", nullptr));
|
actionFlipVertical->setText(QCoreApplication::translate("MainWindow", "Flip &Vertically", nullptr));
|
||||||
|
actionRotateClockwise->setText(QCoreApplication::translate("MainWindow", "Rotate right", nullptr));
|
||||||
|
actionRotateCounterClockwise->setText(QCoreApplication::translate("MainWindow", "Rotate left", nullptr));
|
||||||
|
|
||||||
actionToggleAvoidResetTransform->setText(QCoreApplication::translate("MainWindow", "Keep transformation", "The 'transformation' means the flip/rotation status that currently applied to the image view"));
|
actionToggleAvoidResetTransform->setText(QCoreApplication::translate("MainWindow", "Keep transformation", "The 'transformation' means the flip/rotation status that currently applied to the image view"));
|
||||||
actionSettings->setText(QCoreApplication::translate("MainWindow", "Configure...", nullptr));
|
actionToggleCheckerboard->setText(QCoreApplication::translate("MainWindow", "Toggle Checkerboard", nullptr));
|
||||||
actionHelp->setText(QCoreApplication::translate("MainWindow", "Help", nullptr));
|
actionTogglePauseAnimation->setText(QCoreApplication::translate("MainWindow", "Pause/Resume Animation", nullptr));
|
||||||
|
actionAnimationNextFrame->setText(QCoreApplication::translate("MainWindow", "Animation Go to Next Frame", nullptr));
|
||||||
|
|
||||||
|
actionTrash->setText(QCoreApplication::translate("MainWindow", "Move to Trash", nullptr));
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
actionLocateInFileManager->setText(
|
actionLocateInFileManager->setText(
|
||||||
QCoreApplication::translate(
|
QCoreApplication::translate(
|
||||||
@@ -125,33 +136,81 @@ void ActionManager::retranslateUi(MainWindow *mainWindow)
|
|||||||
actionLocateInFileManager->setText(QCoreApplication::translate("MainWindow", "Show in directory", nullptr));
|
actionLocateInFileManager->setText(QCoreApplication::translate("MainWindow", "Show in directory", nullptr));
|
||||||
#endif // Q_OS_WIN
|
#endif // Q_OS_WIN
|
||||||
actionProperties->setText(QCoreApplication::translate("MainWindow", "Properties", nullptr));
|
actionProperties->setText(QCoreApplication::translate("MainWindow", "Properties", nullptr));
|
||||||
actionQuitApp->setText(QCoreApplication::translate("MainWindow", "Quit", nullptr));
|
|
||||||
|
actionSettings->setText(QCoreApplication::translate("MainWindow", "Configure...", nullptr));
|
||||||
|
actionHelp->setText(QCoreApplication::translate("MainWindow", "Help", nullptr));
|
||||||
|
// endregion
|
||||||
|
|
||||||
|
QMetaObject::connectSlotsByName(mainWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ActionManager::setupShortcuts()
|
void ActionManager::setupShortcuts()
|
||||||
{
|
{
|
||||||
actionOpen->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_O));
|
actionCopyPixmap->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_C));
|
||||||
actionActualSize->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_0));
|
actionCopyFilePath->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_C));
|
||||||
actionZoomIn->setShortcut(QKeySequence(QKeySequence::ZoomIn));
|
|
||||||
actionZoomOut->setShortcut(QKeySequence(QKeySequence::ZoomOut));
|
|
||||||
actionPrevPicture->setShortcuts({
|
actionPrevPicture->setShortcuts({
|
||||||
QKeySequence(Qt::Key_PageUp),
|
|
||||||
QKeySequence(Qt::Key_Left),
|
QKeySequence(Qt::Key_Left),
|
||||||
|
QKeySequence(Qt::Key_PageUp),
|
||||||
});
|
});
|
||||||
actionNextPicture->setShortcuts({
|
actionNextPicture->setShortcuts({
|
||||||
QKeySequence(Qt::Key_PageDown),
|
|
||||||
QKeySequence(Qt::Key_Right),
|
QKeySequence(Qt::Key_Right),
|
||||||
|
QKeySequence(Qt::Key_PageDown),
|
||||||
});
|
});
|
||||||
actionHorizontalFlip->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_R));
|
|
||||||
actionCopyPixmap->setShortcut(QKeySequence(QKeySequence::Copy));
|
actionFitToScreen->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_0));
|
||||||
actionPaste->setShortcut(QKeySequence::Paste);
|
actionActualSize->setShortcut(QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_0));
|
||||||
|
|
||||||
|
actionZoomIn->setShortcut(QKeySequence::ZoomIn);
|
||||||
|
actionZoomOut->setShortcut(QKeySequence::ZoomOut);
|
||||||
|
|
||||||
|
actionFlipHorizontal->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_M));
|
||||||
|
actionFlipVertical->setShortcut(QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_M));
|
||||||
|
|
||||||
|
actionRotateClockwise->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Comma));
|
||||||
|
actionRotateCounterClockwise->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Period));
|
||||||
|
|
||||||
actionTrash->setShortcut(QKeySequence::Delete);
|
actionTrash->setShortcut(QKeySequence::Delete);
|
||||||
actionHelp->setShortcut(QKeySequence::HelpContents);
|
actionProperties->setShortcut(QKeySequence(Qt::ALT | Qt::Key_Enter));
|
||||||
actionSettings->setShortcut(QKeySequence::Preferences);
|
actionSettings->setShortcut(QKeySequence::Preferences);
|
||||||
actionProperties->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_I));
|
actionHelp->setShortcut(QKeySequence::HelpContents);
|
||||||
actionQuitApp->setShortcuts({
|
}
|
||||||
QKeySequence(Qt::Key_Space),
|
|
||||||
QKeySequence(Qt::Key_Escape)
|
void ActionManager::updateActionState(PlaylistManager* pm, GraphicsView* gv)
|
||||||
});
|
{
|
||||||
|
const auto* gs = gv->scene();
|
||||||
|
const auto* settings = Settings::instance();
|
||||||
|
|
||||||
|
// Update copy actions
|
||||||
|
bool canCopy = pm->currentIndex().has_value();
|
||||||
|
actionCopyPixmap->setEnabled(canCopy);
|
||||||
|
actionCopyFilePath->setEnabled(canCopy);
|
||||||
|
|
||||||
|
// Update Prev/Next Picture State
|
||||||
|
const int galleryFileCount = pm->totalCount();
|
||||||
|
const bool loopGallery = settings->loopGallery();
|
||||||
|
actionPrevPicture->setEnabled(galleryFileCount > 1 && (loopGallery || !pm->isFirstIndex()));
|
||||||
|
actionNextPicture->setEnabled(galleryFileCount > 1 && (loopGallery || !pm->isLastIndex()));
|
||||||
|
|
||||||
|
// Update Avoid Reset Transform
|
||||||
|
actionToggleAvoidResetTransform->setChecked(gv->isAvoidResetTransform());
|
||||||
|
// Update Checkerboard
|
||||||
|
actionToggleCheckerboard->setChecked(gv->isCheckerboard());
|
||||||
|
// Update Animation Graphics Action
|
||||||
|
bool canPauseAnimation = gs->canPauseAnimation();
|
||||||
|
actionTogglePauseAnimation->setEnabled(canPauseAnimation);
|
||||||
|
if (canPauseAnimation) {
|
||||||
|
actionTogglePauseAnimation->setChecked(gs->isPauseAnimation());
|
||||||
|
} else {
|
||||||
|
actionTogglePauseAnimation->setChecked(false);
|
||||||
|
}
|
||||||
|
bool canSkipAnimation = gs->canSkipAnimationFrame();
|
||||||
|
actionAnimationNextFrame->setEnabled(canSkipAnimation);
|
||||||
|
|
||||||
|
// Update trash, located in explorer and properties.
|
||||||
|
bool hasLoadedFile = pm->currentIndex().has_value();
|
||||||
|
actionTrash->setEnabled(hasLoadedFile);
|
||||||
|
actionLocateInFileManager->setEnabled(hasLoadedFile);
|
||||||
|
actionProperties->setEnabled(hasLoadedFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
|
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net>
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
@@ -8,48 +8,52 @@
|
|||||||
#include <QAction>
|
#include <QAction>
|
||||||
|
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
class PlaylistManager;
|
||||||
|
class GraphicsView;
|
||||||
|
|
||||||
|
/// Action Manager is separated from Main Window
|
||||||
|
/// to manage all actions specifically.
|
||||||
class ActionManager
|
class ActionManager
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ActionManager();
|
explicit ActionManager() = default;
|
||||||
~ActionManager();
|
~ActionManager() = default;
|
||||||
|
|
||||||
void setupAction(MainWindow * mainWindow);
|
void setupAction(MainWindow * mainWindow);
|
||||||
void retranslateUi(MainWindow *MainWindow);
|
|
||||||
void setupShortcuts();
|
void setupShortcuts();
|
||||||
|
|
||||||
static QIcon loadHidpiIcon(const QString &resp, QSize sz = QSize(32, 32));
|
void updateActionState(PlaylistManager* pm, GraphicsView* gv);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QAction *actionOpen;
|
QAction *actionCopyPixmap;
|
||||||
|
QAction *actionCopyFilePath;
|
||||||
QAction *actionActualSize;
|
|
||||||
QAction *actionToggleMaximize;
|
|
||||||
QAction *actionZoomIn;
|
|
||||||
QAction *actionZoomOut;
|
|
||||||
QAction *actionToggleCheckerboard;
|
|
||||||
QAction *actionRotateClockwise;
|
|
||||||
QAction *actionRotateCounterClockwise;
|
|
||||||
|
|
||||||
QAction *actionPrevPicture;
|
QAction *actionPrevPicture;
|
||||||
QAction *actionNextPicture;
|
QAction *actionNextPicture;
|
||||||
|
|
||||||
QAction *actionHorizontalFlip;
|
QAction *actionActualSize;
|
||||||
QAction *actionFitInView;
|
QAction *actionFitToScreen;
|
||||||
QAction *actionFitByWidth;
|
QAction *actionFitByWidth;
|
||||||
QAction *actionCopyPixmap;
|
QAction *actionFitByHeight;
|
||||||
QAction *actionCopyFilePath;
|
QAction *actionZoomIn;
|
||||||
QAction *actionPaste;
|
QAction *actionZoomOut;
|
||||||
QAction *actionTrash;
|
|
||||||
QAction *actionToggleStayOnTop;
|
QAction *actionFlipHorizontal;
|
||||||
QAction *actionToggleProtectMode;
|
QAction *actionFlipVertical;
|
||||||
|
QAction *actionRotateClockwise;
|
||||||
|
QAction *actionRotateCounterClockwise;
|
||||||
|
|
||||||
QAction *actionToggleAvoidResetTransform;
|
QAction *actionToggleAvoidResetTransform;
|
||||||
QAction *actionSettings;
|
QAction *actionToggleCheckerboard;
|
||||||
QAction *actionHelp;
|
QAction *actionTogglePauseAnimation;
|
||||||
|
QAction *actionAnimationNextFrame;
|
||||||
|
|
||||||
|
QAction *actionTrash;
|
||||||
QAction *actionLocateInFileManager;
|
QAction *actionLocateInFileManager;
|
||||||
QAction *actionProperties;
|
QAction *actionProperties;
|
||||||
QAction *actionQuitApp;
|
|
||||||
|
QAction *actionSettings;
|
||||||
|
QAction *actionHelp;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ACTIONMANAGER_H
|
#endif // ACTIONMANAGER_H
|
||||||
@@ -4,56 +4,42 @@
|
|||||||
|
|
||||||
#include "bottombuttongroup.h"
|
#include "bottombuttongroup.h"
|
||||||
|
|
||||||
#include "opacityhelper.h"
|
|
||||||
|
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
#include <QToolButton>
|
#include <QToolButton>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
BottomButtonGroup::BottomButtonGroup(const std::vector<QAction *> &actionList, QWidget *parent)
|
BottomButtonGroup::BottomButtonGroup(QWidget *parent)
|
||||||
: QGroupBox (parent)
|
: QGroupBox (parent)
|
||||||
, m_opacityHelper(new OpacityHelper(this))
|
|
||||||
{
|
{
|
||||||
QHBoxLayout * mainLayout = new QHBoxLayout(this);
|
QHBoxLayout * mainLayout = new QHBoxLayout(this);
|
||||||
mainLayout->setSizeConstraint(QLayout::SetFixedSize);
|
mainLayout->setSizeConstraint(QLayout::SetFixedSize);
|
||||||
this->setLayout(mainLayout);
|
this->setLayout(mainLayout);
|
||||||
this->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
this->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
||||||
this->setStyleSheet("BottomButtonGroup {"
|
this->setStyleSheet(R"#(
|
||||||
"border: 1px solid gray;"
|
BottomButtonGroup {
|
||||||
"border-top-left-radius: 10px;"
|
border-style: none;
|
||||||
"border-top-right-radius: 10px;"
|
background: transparent;
|
||||||
"border-style: none;"
|
}
|
||||||
"background-color:rgba(0,0,0,120)"
|
QToolButton {
|
||||||
"}"
|
background: transparent;
|
||||||
"QToolButton {"
|
border-style: none;
|
||||||
"background:transparent;"
|
}
|
||||||
"}"
|
)#");
|
||||||
"QToolButton:!focus {"
|
}
|
||||||
"border-style: none;"
|
|
||||||
"}");
|
|
||||||
|
|
||||||
auto newActionBtn = [this](QAction * action) -> QToolButton * {
|
void BottomButtonGroup::addActions(const std::vector<QAction *> & actionList) {
|
||||||
|
for (QAction * action : actionList) {
|
||||||
|
// Create button
|
||||||
QToolButton * btn = new QToolButton(this);
|
QToolButton * btn = new QToolButton(this);
|
||||||
btn->setDefaultAction(action);
|
btn->setDefaultAction(action);
|
||||||
btn->setIconSize(QSize(32, 32));
|
btn->setIconSize(QSize(32, 32));
|
||||||
btn->setFixedSize(40, 40);
|
btn->setFixedSize(40, 40);
|
||||||
return btn;
|
// Add button
|
||||||
};
|
layout()->addWidget(btn);
|
||||||
|
|
||||||
for (QAction * action : actionList) {
|
|
||||||
addButton(newActionBtn(action));
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void BottomButtonGroup::setOpacity(qreal opacity, bool animated)
|
|
||||||
{
|
|
||||||
m_opacityHelper->setOpacity(opacity, animated);
|
|
||||||
}
|
|
||||||
|
|
||||||
void BottomButtonGroup::addButton(QAbstractButton *button)
|
|
||||||
{
|
|
||||||
layout()->addWidget(button);
|
|
||||||
updateGeometry();
|
updateGeometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BottomButtonGroup::addAction(QAction* action) {
|
||||||
|
addActions({action});
|
||||||
|
}
|
||||||
@@ -10,18 +10,14 @@
|
|||||||
#include <QAbstractButton>
|
#include <QAbstractButton>
|
||||||
#include <QGroupBox>
|
#include <QGroupBox>
|
||||||
|
|
||||||
class OpacityHelper;
|
|
||||||
class BottomButtonGroup : public QGroupBox
|
class BottomButtonGroup : public QGroupBox
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit BottomButtonGroup(const std::vector<QAction *> & actionList, QWidget *parent = nullptr);
|
explicit BottomButtonGroup(QWidget *parent = nullptr);
|
||||||
|
|
||||||
void setOpacity(qreal opacity, bool animated = true);
|
void addActions(const std::vector<QAction *> & actionList);
|
||||||
void addButton(QAbstractButton *button);
|
void addAction(QAction* action);
|
||||||
|
|
||||||
private:
|
|
||||||
OpacityHelper * m_opacityHelper;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BOTTOMBUTTONGROUP_H
|
#endif // BOTTOMBUTTONGROUP_H
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Gary Wang <git@blumia.net>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
#include "fileopeneventhandler.h"
|
||||||
|
|
||||||
|
#include <QFileOpenEvent>
|
||||||
|
|
||||||
|
FileOpenEventHandler::FileOpenEventHandler(QObject *parent)
|
||||||
|
: QObject(parent)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
bool FileOpenEventHandler::eventFilter(QObject *obj, QEvent *event)
|
||||||
|
{
|
||||||
|
if (event->type() == QEvent::FileOpen) {
|
||||||
|
QFileOpenEvent *fileOpenEvent = static_cast<QFileOpenEvent *>(event);
|
||||||
|
emit fileOpen(fileOpenEvent->url());
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return QObject::eventFilter(obj, event);
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 Gary Wang <git@blumia.net>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
|
class FileOpenEventHandler : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit FileOpenEventHandler(QObject *parent = nullptr);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
bool eventFilter(QObject *obj, QEvent *event) override;
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void fileOpen(const QUrl &url);
|
||||||
|
};
|
||||||
@@ -1,147 +0,0 @@
|
|||||||
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
|
|
||||||
// SPDX-FileCopyrightText: 2023 Tad Young <yyc12321@outlook.com>
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
#include "framelesswindow.h"
|
|
||||||
|
|
||||||
#include <QMouseEvent>
|
|
||||||
#include <QHoverEvent>
|
|
||||||
#include <QApplication>
|
|
||||||
#include <QVBoxLayout>
|
|
||||||
#include <QWindow>
|
|
||||||
|
|
||||||
FramelessWindow::FramelessWindow(QWidget *parent)
|
|
||||||
: QWidget(parent)
|
|
||||||
, m_centralLayout(new QVBoxLayout(this))
|
|
||||||
, m_oldCursorShape(Qt::ArrowCursor)
|
|
||||||
, m_oldEdges()
|
|
||||||
{
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowMinMaxButtonsHint);
|
|
||||||
#else
|
|
||||||
// There is a bug in Qt 5 that will make pressing Meta+Up cause the app
|
|
||||||
// fullscreen under Windows, see QTBUG-91226 to learn more.
|
|
||||||
// The bug seems no longer exists in Qt 6 (I only tested it under Qt 6.3.0).
|
|
||||||
this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint);
|
|
||||||
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
this->setMouseTracking(true);
|
|
||||||
this->setAttribute(Qt::WA_Hover, true);
|
|
||||||
this->installEventFilter(this);
|
|
||||||
|
|
||||||
m_centralLayout->setContentsMargins(QMargins());
|
|
||||||
}
|
|
||||||
|
|
||||||
void FramelessWindow::setCentralWidget(QWidget *widget)
|
|
||||||
{
|
|
||||||
if (m_centralWidget) {
|
|
||||||
m_centralLayout->removeWidget(m_centralWidget);
|
|
||||||
m_centralWidget->deleteLater();
|
|
||||||
}
|
|
||||||
|
|
||||||
m_centralLayout->addWidget(widget);
|
|
||||||
m_centralWidget = widget;
|
|
||||||
}
|
|
||||||
|
|
||||||
void FramelessWindow::installResizeCapture(QObject* widget)
|
|
||||||
{
|
|
||||||
widget->installEventFilter(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool FramelessWindow::eventFilter(QObject* o, QEvent* e)
|
|
||||||
{
|
|
||||||
switch (e->type()) {
|
|
||||||
case QEvent::HoverMove:
|
|
||||||
{
|
|
||||||
QWidget* wg = qobject_cast<QWidget*>(o);
|
|
||||||
if (wg != nullptr)
|
|
||||||
return mouseHover(static_cast<QHoverEvent*>(e), wg);
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case QEvent::MouseButtonPress:
|
|
||||||
return mousePress(static_cast<QMouseEvent*>(e));
|
|
||||||
}
|
|
||||||
|
|
||||||
return QWidget::eventFilter(o, e);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool FramelessWindow::mouseHover(QHoverEvent* event, QWidget* wg)
|
|
||||||
{
|
|
||||||
if (!isMaximized() && !isFullScreen()) {
|
|
||||||
QWindow* win = window()->windowHandle();
|
|
||||||
Qt::Edges edges = this->getEdgesByPos(wg->mapToGlobal(event->oldPos()), win->frameGeometry());
|
|
||||||
|
|
||||||
// backup & restore cursor shape
|
|
||||||
if (edges && !m_oldEdges)
|
|
||||||
// entering the edge. backup cursor shape
|
|
||||||
m_oldCursorShape = win->cursor().shape();
|
|
||||||
if (!edges && m_oldEdges)
|
|
||||||
// leaving the edge. restore cursor shape
|
|
||||||
win->setCursor(m_oldCursorShape);
|
|
||||||
|
|
||||||
// save the latest edges status
|
|
||||||
m_oldEdges = edges;
|
|
||||||
|
|
||||||
// show resize cursor shape if cursor is within border
|
|
||||||
if (edges) {
|
|
||||||
win->setCursor(this->getCursorByEdge(edges, Qt::ArrowCursor));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool FramelessWindow::mousePress(QMouseEvent* event)
|
|
||||||
{
|
|
||||||
if (event->buttons() & Qt::LeftButton && !isMaximized() && !isFullScreen()) {
|
|
||||||
QWindow* win = window()->windowHandle();
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
Qt::Edges edges = this->getEdgesByPos(event->globalPosition().toPoint(), win->frameGeometry());
|
|
||||||
#else
|
|
||||||
Qt::Edges edges = this->getEdgesByPos(event->globalPos(), win->frameGeometry());
|
|
||||||
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
if (edges) {
|
|
||||||
win->startSystemResize(edges);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Qt::CursorShape FramelessWindow::getCursorByEdge(const Qt::Edges& edges, Qt::CursorShape default_cursor)
|
|
||||||
{
|
|
||||||
if ((edges == (Qt::TopEdge | Qt::LeftEdge)) || (edges == (Qt::RightEdge | Qt::BottomEdge)))
|
|
||||||
return Qt::SizeFDiagCursor;
|
|
||||||
else if ((edges == (Qt::TopEdge | Qt::RightEdge)) || (edges == (Qt::LeftEdge | Qt::BottomEdge)))
|
|
||||||
return Qt::SizeBDiagCursor;
|
|
||||||
else if (edges & (Qt::TopEdge | Qt::BottomEdge))
|
|
||||||
return Qt::SizeVerCursor;
|
|
||||||
else if (edges & (Qt::LeftEdge | Qt::RightEdge))
|
|
||||||
return Qt::SizeHorCursor;
|
|
||||||
else
|
|
||||||
return default_cursor;
|
|
||||||
}
|
|
||||||
|
|
||||||
Qt::Edges FramelessWindow::getEdgesByPos(const QPoint gpos, const QRect& winrect)
|
|
||||||
{
|
|
||||||
const int borderWidth = 8;
|
|
||||||
Qt::Edges edges;
|
|
||||||
|
|
||||||
int x = gpos.x() - winrect.x();
|
|
||||||
int y = gpos.y() - winrect.y();
|
|
||||||
|
|
||||||
if (x < borderWidth)
|
|
||||||
edges |= Qt::LeftEdge;
|
|
||||||
if (x > (winrect.width() - borderWidth))
|
|
||||||
edges |= Qt::RightEdge;
|
|
||||||
if (y < borderWidth)
|
|
||||||
edges |= Qt::TopEdge;
|
|
||||||
if (y > (winrect.height() - borderWidth))
|
|
||||||
edges |= Qt::BottomEdge;
|
|
||||||
|
|
||||||
return edges;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
#ifndef FRAMELESSWINDOW_H
|
|
||||||
#define FRAMELESSWINDOW_H
|
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
|
||||||
class QVBoxLayout;
|
|
||||||
QT_END_NAMESPACE
|
|
||||||
|
|
||||||
class FramelessWindow : public QWidget
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
explicit FramelessWindow(QWidget *parent = nullptr);
|
|
||||||
|
|
||||||
void setCentralWidget(QWidget * widget);
|
|
||||||
void installResizeCapture(QObject* widget);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
bool eventFilter(QObject *o, QEvent *e) override;
|
|
||||||
bool mouseHover(QHoverEvent* event, QWidget* wg);
|
|
||||||
bool mousePress(QMouseEvent* event);
|
|
||||||
|
|
||||||
private:
|
|
||||||
Qt::Edges m_oldEdges;
|
|
||||||
Qt::CursorShape m_oldCursorShape;
|
|
||||||
|
|
||||||
Qt::CursorShape getCursorByEdge(const Qt::Edges& edges, Qt::CursorShape default_cursor);
|
|
||||||
Qt::Edges getEdgesByPos(const QPoint pos, const QRect& winrect);
|
|
||||||
|
|
||||||
QVBoxLayout * m_centralLayout = nullptr;
|
|
||||||
QWidget * m_centralWidget = nullptr; // just a pointer, doesn't take the ownership.
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // FRAMELESSWINDOW_H
|
|
||||||
@@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
#include "graphicsscene.h"
|
#include "graphicsscene.h"
|
||||||
|
|
||||||
|
#include "settings.h"
|
||||||
|
|
||||||
|
#include <QStyleHints>
|
||||||
|
#include <QOperatingSystemVersion>
|
||||||
|
#include <QGuiApplication>
|
||||||
#include <QGraphicsSceneMouseEvent>
|
#include <QGraphicsSceneMouseEvent>
|
||||||
#include <QMimeData>
|
#include <QMimeData>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@@ -14,6 +19,33 @@
|
|||||||
#include <QMovie>
|
#include <QMovie>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
|
||||||
|
static const QColor& ColorSchemaToTextForeground(Qt::ColorScheme colorScheme) {
|
||||||
|
// YYC MARK:
|
||||||
|
// If we are using Windows 10 and lower system or Qt which do not support "Windows 11"
|
||||||
|
// theme (lower than Qt 6.7), we should only support light mode.
|
||||||
|
// Because Qt's dark-mode-aware "Windows 11" theme is only well-supported on Windows 11.
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
|
||||||
|
colorScheme = Qt::ColorScheme::Light;
|
||||||
|
#else
|
||||||
|
if (QOperatingSystemVersion::current() < QOperatingSystemVersion::Windows11) {
|
||||||
|
colorScheme = Qt::ColorScheme::Light;
|
||||||
|
}
|
||||||
|
#endif // QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
|
||||||
|
#endif // defined(Q_OS_WIN)
|
||||||
|
|
||||||
|
switch (colorScheme) {
|
||||||
|
case Qt::ColorScheme::Dark:
|
||||||
|
static QColor WHITE = QColor("White");
|
||||||
|
return WHITE;
|
||||||
|
case Qt::ColorScheme::Light:
|
||||||
|
case Qt::ColorScheme::Unknown:
|
||||||
|
default:
|
||||||
|
static QColor BLACK = QColor("Black");
|
||||||
|
return BLACK;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class PGraphicsPixmapItem : public QGraphicsPixmapItem
|
class PGraphicsPixmapItem : public QGraphicsPixmapItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -21,6 +53,9 @@ public:
|
|||||||
: QGraphicsPixmapItem(pixmap, parent)
|
: QGraphicsPixmapItem(pixmap, parent)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
enum { Type = UserType + 1 };
|
||||||
|
int type() const override { return Type; }
|
||||||
|
|
||||||
void setScaleHint(float scaleHint) {
|
void setScaleHint(float scaleHint) {
|
||||||
m_scaleHint = scaleHint;
|
m_scaleHint = scaleHint;
|
||||||
}
|
}
|
||||||
@@ -61,6 +96,9 @@ class PGraphicsMovieItem : public QGraphicsItem
|
|||||||
public:
|
public:
|
||||||
PGraphicsMovieItem(QGraphicsItem *parent = nullptr) : QGraphicsItem(parent) {}
|
PGraphicsMovieItem(QGraphicsItem *parent = nullptr) : QGraphicsItem(parent) {}
|
||||||
|
|
||||||
|
enum { Type = UserType + 2 };
|
||||||
|
int type() const override { return Type; }
|
||||||
|
|
||||||
void setMovie(QMovie* movie) {
|
void setMovie(QMovie* movie) {
|
||||||
if (m_movie) m_movie->disconnect();
|
if (m_movie) m_movie->disconnect();
|
||||||
m_movie.reset(movie);
|
m_movie.reset(movie);
|
||||||
@@ -80,6 +118,10 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline QMovie * movie() const {
|
||||||
|
return m_movie.data();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QScopedPointer<QMovie> m_movie;
|
QScopedPointer<QMovie> m_movie;
|
||||||
};
|
};
|
||||||
@@ -87,7 +129,8 @@ private:
|
|||||||
GraphicsScene::GraphicsScene(QObject *parent)
|
GraphicsScene::GraphicsScene(QObject *parent)
|
||||||
: QGraphicsScene(parent)
|
: QGraphicsScene(parent)
|
||||||
{
|
{
|
||||||
showText(tr("Drag image here"));
|
showText(tr("Drag image here", "The same meaning of MainWindow's hint."));
|
||||||
|
connect(qGuiApp->styleHints(), &QStyleHints::colorSchemeChanged, this, &GraphicsScene::updateStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
GraphicsScene::~GraphicsScene()
|
GraphicsScene::~GraphicsScene()
|
||||||
@@ -109,7 +152,7 @@ void GraphicsScene::showText(const QString &text)
|
|||||||
{
|
{
|
||||||
this->clear();
|
this->clear();
|
||||||
QGraphicsTextItem * textItem = this->addText(text);
|
QGraphicsTextItem * textItem = this->addText(text);
|
||||||
textItem->setDefaultTextColor(QColor("White"));
|
textItem->setDefaultTextColor(ColorSchemaToTextForeground(qGuiApp->styleHints()->colorScheme()));
|
||||||
m_theThing = textItem;
|
m_theThing = textItem;
|
||||||
this->setSceneRect(m_theThing->boundingRect());
|
this->setSceneRect(m_theThing->boundingRect());
|
||||||
}
|
}
|
||||||
@@ -120,10 +163,9 @@ void GraphicsScene::showSvg(const QString &filepath)
|
|||||||
QGraphicsSvgItem * svgItem = new QGraphicsSvgItem();
|
QGraphicsSvgItem * svgItem = new QGraphicsSvgItem();
|
||||||
QSvgRenderer * render = new QSvgRenderer(svgItem);
|
QSvgRenderer * render = new QSvgRenderer(svgItem);
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
||||||
// Qt 6.7.0's SVG support is terrible caused by huge memory usage, see QTBUG-124287
|
if (Settings::instance()->svgTiny12Only()) {
|
||||||
// Qt 6.7.1's is somewhat better, memory issue seems fixed, but still laggy when zoom in
|
|
||||||
// Anyway let's disable it for now.
|
|
||||||
render->setOptions(QtSvg::Tiny12FeaturesOnly);
|
render->setOptions(QtSvg::Tiny12FeaturesOnly);
|
||||||
|
}
|
||||||
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
||||||
render->load(filepath);
|
render->load(filepath);
|
||||||
svgItem->setSharedRenderer(render);
|
svgItem->setSharedRenderer(render);
|
||||||
@@ -158,6 +200,59 @@ bool GraphicsScene::trySetTransformationMode(Qt::TransformationMode mode, float
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Fetch graphics item as our custom animated item.
|
||||||
|
/// Return nullptr means this item is not animated item.
|
||||||
|
static PGraphicsMovieItem* fetchAnimatedItem(QGraphicsItem *item) {
|
||||||
|
return qgraphicsitem_cast<PGraphicsMovieItem *>(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GraphicsScene::canPauseAnimation() const {
|
||||||
|
return fetchAnimatedItem(m_theThing) != nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GraphicsScene::isPauseAnimation() const {
|
||||||
|
auto* animatedItem = fetchAnimatedItem(m_theThing);
|
||||||
|
if (animatedItem != nullptr) {
|
||||||
|
return animatedItem->movie()->state() == QMovie::Paused;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GraphicsScene::togglePauseAnimation()
|
||||||
|
{
|
||||||
|
auto* animatedItem = fetchAnimatedItem(m_theThing);
|
||||||
|
if (animatedItem != nullptr) {
|
||||||
|
animatedItem->movie()->setPaused(animatedItem->movie()->state() != QMovie::Paused);
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GraphicsScene::canSkipAnimationFrame() const {
|
||||||
|
return isPauseAnimation();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GraphicsScene::skipAnimationFrame(int delta)
|
||||||
|
{
|
||||||
|
auto* animatedItem = fetchAnimatedItem(m_theThing);
|
||||||
|
|
||||||
|
// Only paused animated item can skip frame
|
||||||
|
if (animatedItem == nullptr) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (animatedItem->movie()->state() != QMovie::Paused) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Perform skip
|
||||||
|
const int frameCount = animatedItem->movie()->frameCount();
|
||||||
|
const int currentFrame = animatedItem->movie()->currentFrameNumber();
|
||||||
|
const int targetFrame = (currentFrame + delta) % frameCount;
|
||||||
|
return animatedItem->movie()->jumpToFrame(targetFrame);
|
||||||
|
}
|
||||||
|
|
||||||
QPixmap GraphicsScene::renderToPixmap()
|
QPixmap GraphicsScene::renderToPixmap()
|
||||||
{
|
{
|
||||||
PGraphicsPixmapItem * pixmapItem = qgraphicsitem_cast<PGraphicsPixmapItem *>(m_theThing);
|
PGraphicsPixmapItem * pixmapItem = qgraphicsitem_cast<PGraphicsPixmapItem *>(m_theThing);
|
||||||
@@ -172,3 +267,14 @@ QPixmap GraphicsScene::renderToPixmap()
|
|||||||
|
|
||||||
return pixmap;
|
return pixmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GraphicsScene::updateStyle(Qt::ColorScheme colorScheme) {
|
||||||
|
Q_UNUSED(colorScheme)
|
||||||
|
|
||||||
|
QGraphicsItem * item = this->m_theThing;
|
||||||
|
if (item == nullptr) return;
|
||||||
|
QGraphicsTextItem * textItem = qgraphicsitem_cast<QGraphicsTextItem*>(item);
|
||||||
|
if (textItem == nullptr) return;
|
||||||
|
|
||||||
|
textItem->setDefaultTextColor(ColorSchemaToTextForeground(colorScheme));
|
||||||
|
}
|
||||||
@@ -21,10 +21,28 @@ public:
|
|||||||
|
|
||||||
bool trySetTransformationMode(Qt::TransformationMode mode, float scaleHint);
|
bool trySetTransformationMode(Qt::TransformationMode mode, float scaleHint);
|
||||||
|
|
||||||
|
/// Check whether current thing is animation.
|
||||||
|
/// Only animation thing can be paused.
|
||||||
|
bool canPauseAnimation() const;
|
||||||
|
/// Check whether we are pasuing an animation graphics.
|
||||||
|
bool isPauseAnimation() const;
|
||||||
|
/// Toggle animation graphics pause state.
|
||||||
|
/// Return true for successfully toggle, otherwise false.
|
||||||
|
bool togglePauseAnimation();
|
||||||
|
/// Check whether we can skip animation frame.
|
||||||
|
/// Only paused animation graphics can skip frame.
|
||||||
|
bool canSkipAnimationFrame() const;
|
||||||
|
/// Skip paused animation graphics with given frame.
|
||||||
|
/// Return true for successfully skip, otherwise false.
|
||||||
|
bool skipAnimationFrame(int delta = 1);
|
||||||
|
|
||||||
QPixmap renderToPixmap();
|
QPixmap renderToPixmap();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void updateStyle(Qt::ColorScheme colorScheme);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QGraphicsItem * m_theThing;
|
QGraphicsItem * m_theThing = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // GRAPHICSSCENE_H
|
#endif // GRAPHICSSCENE_H
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
|
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net>
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
@@ -7,7 +7,10 @@
|
|||||||
#include "graphicsscene.h"
|
#include "graphicsscene.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
|
#include <QStyleHints>
|
||||||
|
#include <QOperatingSystemVersion>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include <QColorSpace>
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
#include <QMimeData>
|
#include <QMimeData>
|
||||||
@@ -22,11 +25,12 @@ GraphicsView::GraphicsView(QWidget *parent)
|
|||||||
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
setResizeAnchor(QGraphicsView::AnchorUnderMouse);
|
setResizeAnchor(QGraphicsView::AnchorUnderMouse);
|
||||||
setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
|
setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
|
||||||
setStyleSheet("background-color: rgba(0, 0, 0, 220);"
|
|
||||||
"border-radius: 3px;");
|
|
||||||
setAcceptDrops(false);
|
setAcceptDrops(false);
|
||||||
setCheckerboardEnabled(false);
|
setCheckerboardEnabled(false);
|
||||||
|
|
||||||
|
updateStyle(qGuiApp->styleHints()->colorScheme());
|
||||||
|
connect(qGuiApp->styleHints(), &QStyleHints::colorSchemeChanged, this, &GraphicsView::updateStyle);
|
||||||
|
|
||||||
connect(horizontalScrollBar(), &QScrollBar::valueChanged, this, &GraphicsView::viewportRectChanged);
|
connect(horizontalScrollBar(), &QScrollBar::valueChanged, this, &GraphicsView::viewportRectChanged);
|
||||||
connect(verticalScrollBar(), &QScrollBar::valueChanged, this, &GraphicsView::viewportRectChanged);
|
connect(verticalScrollBar(), &QScrollBar::valueChanged, this, &GraphicsView::viewportRectChanged);
|
||||||
}
|
}
|
||||||
@@ -41,9 +45,7 @@ void GraphicsView::showFileFromPath(const QString &filePath)
|
|||||||
QImageReader imageReader(filePath);
|
QImageReader imageReader(filePath);
|
||||||
imageReader.setAutoTransform(true);
|
imageReader.setAutoTransform(true);
|
||||||
imageReader.setDecideFormatFromContent(true);
|
imageReader.setDecideFormatFromContent(true);
|
||||||
#if QT_VERSION > QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
imageReader.setAllocationLimit(0);
|
imageReader.setAllocationLimit(0);
|
||||||
#endif //QT_VERSION > QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
|
|
||||||
// Since if the image format / plugin does not support this feature, imageFormat() will returns an invalid format.
|
// Since if the image format / plugin does not support this feature, imageFormat() will returns an invalid format.
|
||||||
// So we cannot use imageFormat() and check if it returns QImage::Format_Invalid to detect if we support the file.
|
// So we cannot use imageFormat() and check if it returns QImage::Format_Invalid to detect if we support the file.
|
||||||
@@ -55,6 +57,18 @@ void GraphicsView::showFileFromPath(const QString &filePath)
|
|||||||
} else if (!imageReader.canRead()) {
|
} else if (!imageReader.canRead()) {
|
||||||
showText(tr("Image data is invalid or currently unsupported"));
|
showText(tr("Image data is invalid or currently unsupported"));
|
||||||
} else {
|
} else {
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
|
||||||
|
QImage && img = imageReader.read();
|
||||||
|
if (img.isNull()) {
|
||||||
|
showText(tr("Image data is invalid or currently unsupported"));
|
||||||
|
} else {
|
||||||
|
if (img.format() == QImage::Format_CMYK8888) {
|
||||||
|
img.convertToColorSpace(QColorSpace::SRgb);
|
||||||
|
}
|
||||||
|
img.setDevicePixelRatio(devicePixelRatioF());
|
||||||
|
showImage(img);
|
||||||
|
}
|
||||||
|
#else
|
||||||
QPixmap && pixmap = QPixmap::fromImageReader(&imageReader);
|
QPixmap && pixmap = QPixmap::fromImageReader(&imageReader);
|
||||||
if (pixmap.isNull()) {
|
if (pixmap.isNull()) {
|
||||||
showText(tr("Image data is invalid or currently unsupported"));
|
showText(tr("Image data is invalid or currently unsupported"));
|
||||||
@@ -62,6 +76,7 @@ void GraphicsView::showFileFromPath(const QString &filePath)
|
|||||||
pixmap.setDevicePixelRatio(devicePixelRatioF());
|
pixmap.setDevicePixelRatio(devicePixelRatioF());
|
||||||
showImage(pixmap);
|
showImage(pixmap);
|
||||||
}
|
}
|
||||||
|
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -118,14 +133,14 @@ qreal GraphicsView::scaleFactor() const
|
|||||||
|
|
||||||
void GraphicsView::resetTransform()
|
void GraphicsView::resetTransform()
|
||||||
{
|
{
|
||||||
if (!m_avoidResetTransform) {
|
if (!shouldAvoidTransform()) {
|
||||||
QGraphicsView::resetTransform();
|
QGraphicsView::resetTransform();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphicsView::zoomView(qreal scaleFactor)
|
void GraphicsView::zoomView(qreal scaleFactor)
|
||||||
{
|
{
|
||||||
m_enableFitInView = false;
|
m_enableFitToScreen = false;
|
||||||
scale(scaleFactor, scaleFactor);
|
scale(scaleFactor, scaleFactor);
|
||||||
applyTransformationModeByScaleFactor();
|
applyTransformationModeByScaleFactor();
|
||||||
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform());
|
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform());
|
||||||
@@ -142,6 +157,10 @@ void GraphicsView::rotateView(bool clockwise)
|
|||||||
0, 0, 1);
|
0, 0, 1);
|
||||||
tf = transform() * tf;
|
tf = transform() * tf;
|
||||||
setTransform(tf);
|
setTransform(tf);
|
||||||
|
|
||||||
|
// Apply transformation mode but don't emit navigator signal here
|
||||||
|
// Let displayScene() handle the navigator visibility correctly
|
||||||
|
applyTransformationModeByScaleFactor();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphicsView::flipView(bool horizontal)
|
void GraphicsView::flipView(bool horizontal)
|
||||||
@@ -173,22 +192,104 @@ void GraphicsView::fitByOrientation(Qt::Orientation ori, bool scaleDownOnly)
|
|||||||
{
|
{
|
||||||
resetScale();
|
resetScale();
|
||||||
|
|
||||||
QRectF viewRect = this->viewport()->rect().adjusted(2, 2, -2, -2);
|
QRectF viewRect = this->viewport()->rect();
|
||||||
QRectF imageRect = transform().mapRect(sceneRect());
|
QRectF imageRect = transform().mapRect(sceneRect());
|
||||||
|
QSize viewSize = viewRect.size().toSize();
|
||||||
|
|
||||||
qreal ratio;
|
qreal ratio;
|
||||||
|
|
||||||
if (ori == Qt::Horizontal) {
|
if (ori == Qt::Horizontal) {
|
||||||
|
// Horizontal fit means fit by width
|
||||||
|
if (scaleDownOnly && imageRect.width() <= viewSize.width()) {
|
||||||
|
// Image width already fits, no scaling needed
|
||||||
|
ratio = 1;
|
||||||
|
} else {
|
||||||
ratio = viewRect.width() / imageRect.width();
|
ratio = viewRect.width() / imageRect.width();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Vertical fit means fit by height
|
||||||
|
if (scaleDownOnly && imageRect.height() <= viewSize.height()) {
|
||||||
|
// Image height already fits, no scaling needed
|
||||||
|
ratio = 1;
|
||||||
} else {
|
} else {
|
||||||
ratio = viewRect.height() / imageRect.height();
|
ratio = viewRect.height() / imageRect.height();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (scaleDownOnly && ratio > 1) ratio = 1;
|
if (ratio != 1) {
|
||||||
|
|
||||||
scale(ratio, ratio);
|
scale(ratio, ratio);
|
||||||
centerOn(imageRect.top(), 0);
|
}
|
||||||
m_enableFitInView = false;
|
|
||||||
|
// Position the image correctly based on orientation with rotation consideration
|
||||||
|
QRectF originalScene = sceneRect();
|
||||||
|
QTransform currentTransform = transform();
|
||||||
|
|
||||||
|
// TODO:
|
||||||
|
// I guess following code may be optimized by matrix arithmetic operation.
|
||||||
|
// There is an AI given solution. But I didn't use it.
|
||||||
|
// Because I want to keep the same behavior of upstream.
|
||||||
|
|
||||||
|
// // Horizontal fit: Let the position of top center of viewport, (cx, 0), be inversely mapped to scene.
|
||||||
|
// // And compensate the behavior of `centerOn` which put given point to the center of viewport.
|
||||||
|
// QTransform inv = currentTransform.inverted();
|
||||||
|
// QPointF viewCx = viewport()->rect().center().x();
|
||||||
|
// QPointF viewCy = viewport()->rect().center().y();
|
||||||
|
// // The target is viewport top center. Its y=0, so `centerOn` required scene point is (viewCx, -viewCy).
|
||||||
|
// centerOn(inv.map(QPointF(viewCx, -viewCy)));
|
||||||
|
|
||||||
|
if (ori == Qt::Horizontal) {
|
||||||
|
// For horizontal fit (fit by width), position at top (for tall images)
|
||||||
|
// Find the scene point that corresponds to the top-center of the transformed image
|
||||||
|
QPointF sceneTopCenter;
|
||||||
|
|
||||||
|
if (qFuzzyIsNull(currentTransform.m12()) && qFuzzyIsNull(currentTransform.m21())) {
|
||||||
|
// 0° or 180° rotation
|
||||||
|
if (currentTransform.m11() > 0 && currentTransform.m22() > 0) {
|
||||||
|
// 0° rotation: use original top-center
|
||||||
|
sceneTopCenter = QPointF(originalScene.center().x(), originalScene.top());
|
||||||
|
} else {
|
||||||
|
// 180° rotation: the visual "top" is now at the scene bottom
|
||||||
|
sceneTopCenter = QPointF(originalScene.center().x(), originalScene.bottom());
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// 90/270 degree rotation: the "top" in view corresponds to left/right in scene
|
||||||
|
if (currentTransform.m12() > 0) {
|
||||||
|
// 90 degree: top in view = left in scene
|
||||||
|
sceneTopCenter = QPointF(originalScene.left(), originalScene.center().y());
|
||||||
|
} else {
|
||||||
|
// 270 degree: top in view = right in scene
|
||||||
|
sceneTopCenter = QPointF(originalScene.right(), originalScene.center().y());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
centerOn(sceneTopCenter);
|
||||||
|
} else {
|
||||||
|
// For vertical fit (fit by height), position at left (for wide images)
|
||||||
|
// Find the scene point that corresponds to the left-center of the transformed image
|
||||||
|
QPointF sceneLeftCenter;
|
||||||
|
|
||||||
|
if (qFuzzyIsNull(currentTransform.m12()) && qFuzzyIsNull(currentTransform.m21())) {
|
||||||
|
// 0° or 180° rotation
|
||||||
|
if (currentTransform.m11() > 0 && currentTransform.m22() > 0) {
|
||||||
|
// 0° rotation: use original left-center
|
||||||
|
sceneLeftCenter = QPointF(originalScene.left(), originalScene.center().y());
|
||||||
|
} else {
|
||||||
|
// 180° rotation: the visual "left" is now at the scene right
|
||||||
|
sceneLeftCenter = QPointF(originalScene.right(), originalScene.center().y());
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// 90/270 degree rotation: the "left" in view corresponds to top/bottom in scene
|
||||||
|
if (currentTransform.m21() > 0) {
|
||||||
|
// 90 degree: left in view = top in scene
|
||||||
|
sceneLeftCenter = QPointF(originalScene.center().x(), originalScene.top());
|
||||||
|
} else {
|
||||||
|
// 270 degree: left in view = bottom in scene
|
||||||
|
sceneLeftCenter = QPointF(originalScene.center().x(), originalScene.bottom());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
centerOn(sceneLeftCenter);
|
||||||
|
}
|
||||||
|
|
||||||
|
m_enableFitToScreen = false;
|
||||||
|
|
||||||
applyTransformationModeByScaleFactor();
|
applyTransformationModeByScaleFactor();
|
||||||
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform());
|
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform());
|
||||||
@@ -196,16 +297,23 @@ void GraphicsView::fitByOrientation(Qt::Orientation ori, bool scaleDownOnly)
|
|||||||
|
|
||||||
void GraphicsView::displayScene()
|
void GraphicsView::displayScene()
|
||||||
{
|
{
|
||||||
if (m_avoidResetTransform) {
|
if (shouldAvoidTransform()) {
|
||||||
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform());
|
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isSceneBiggerThanView()) {
|
if (isSceneBiggerThanView()) {
|
||||||
|
// Do fit-in-view
|
||||||
fitInView(sceneRect(), Qt::KeepAspectRatio);
|
fitInView(sceneRect(), Qt::KeepAspectRatio);
|
||||||
|
// After fitInView, the image should fit the window, so hide navigator
|
||||||
|
emit navigatorViewRequired(false, transform());
|
||||||
|
} else {
|
||||||
|
// Image is already smaller than window, no navigator needed
|
||||||
|
emit navigatorViewRequired(false, transform());
|
||||||
}
|
}
|
||||||
|
|
||||||
m_enableFitInView = true;
|
m_enableFitToScreen = true;
|
||||||
|
m_firstUserMediaLoaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GraphicsView::isSceneBiggerThanView() const
|
bool GraphicsView::isSceneBiggerThanView() const
|
||||||
@@ -218,12 +326,12 @@ bool GraphicsView::isSceneBiggerThanView() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Automately do fit in view when viewport(window) smaller than image original size.
|
// Automately do fit in view when viewport(window) smaller than image original size.
|
||||||
void GraphicsView::setEnableAutoFitInView(bool enable)
|
void GraphicsView::setEnableAutoFitToScreen(bool enable)
|
||||||
{
|
{
|
||||||
m_enableFitInView = enable;
|
m_enableFitToScreen = enable;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GraphicsView::avoidResetTransform() const
|
bool GraphicsView::isAvoidResetTransform() const
|
||||||
{
|
{
|
||||||
return m_avoidResetTransform;
|
return m_avoidResetTransform;
|
||||||
}
|
}
|
||||||
@@ -233,6 +341,15 @@ void GraphicsView::setAvoidResetTransform(bool avoidReset)
|
|||||||
m_avoidResetTransform = avoidReset;
|
m_avoidResetTransform = avoidReset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool GraphicsView::isCheckerboard() const {
|
||||||
|
return m_checkerboardEnabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GraphicsView::toggleCheckerboard(bool invertCheckerboardColor)
|
||||||
|
{
|
||||||
|
setCheckerboardEnabled(!m_checkerboardEnabled, invertCheckerboardColor);
|
||||||
|
}
|
||||||
|
|
||||||
inline double zeroOrOne(double number)
|
inline double zeroOrOne(double number)
|
||||||
{
|
{
|
||||||
return qFuzzyIsNull(number) ? 0 : (number > 0 ? 1 : -1);
|
return qFuzzyIsNull(number) ? 0 : (number > 0 ? 1 : -1);
|
||||||
@@ -247,9 +364,37 @@ QTransform GraphicsView::resetScale(const QTransform & orig)
|
|||||||
orig.dx(), orig.dy());
|
orig.dx(), orig.dy());
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphicsView::toggleCheckerboard(bool invertCheckerboardColor)
|
void GraphicsView::updateStyle(Qt::ColorScheme colorScheme) {
|
||||||
{
|
// YYC MARK:
|
||||||
setCheckerboardEnabled(!m_checkerboardEnabled, invertCheckerboardColor);
|
// If we are using Windows 10 and lower system or Qt which do not support "Windows 11"
|
||||||
|
// theme (lower than Qt 6.7), we should only support light mode.
|
||||||
|
// Because Qt's dark-mode-aware "Windows 11" theme is only well-supported on Windows 11.
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
|
||||||
|
colorScheme = Qt::ColorScheme::Light;
|
||||||
|
#else
|
||||||
|
if (QOperatingSystemVersion::current() < QOperatingSystemVersion::Windows11) {
|
||||||
|
colorScheme = Qt::ColorScheme::Light;
|
||||||
|
}
|
||||||
|
#endif // QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
|
||||||
|
#endif // defined(Q_OS_WIN)
|
||||||
|
|
||||||
|
switch (colorScheme) {
|
||||||
|
case Qt::ColorScheme::Dark:
|
||||||
|
setStyleSheet(R"#(
|
||||||
|
border-style: none;
|
||||||
|
background-color: black;
|
||||||
|
)#");
|
||||||
|
break;
|
||||||
|
case Qt::ColorScheme::Light:
|
||||||
|
case Qt::ColorScheme::Unknown:
|
||||||
|
default:
|
||||||
|
setStyleSheet(R"#(
|
||||||
|
border-style: none;
|
||||||
|
background-color: white;
|
||||||
|
)#");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphicsView::mousePressEvent(QMouseEvent *event)
|
void GraphicsView::mousePressEvent(QMouseEvent *event)
|
||||||
@@ -295,11 +440,11 @@ void GraphicsView::wheelEvent(QWheelEvent *event)
|
|||||||
|
|
||||||
void GraphicsView::resizeEvent(QResizeEvent *event)
|
void GraphicsView::resizeEvent(QResizeEvent *event)
|
||||||
{
|
{
|
||||||
if (m_enableFitInView) {
|
if (m_enableFitToScreen) {
|
||||||
bool originalSizeSmallerThanWindow = isThingSmallerThanWindowWith(resetScale(transform()));
|
bool originalSizeSmallerThanWindow = isThingSmallerThanWindowWith(resetScale(transform()));
|
||||||
if (originalSizeSmallerThanWindow && scaleFactor() >= 1) {
|
if (originalSizeSmallerThanWindow && scaleFactor() >= 1) {
|
||||||
// no longer need to do fitInView()
|
// no longer need to do fitInView()
|
||||||
// but we leave the m_enableFitInView value unchanged in case
|
// but we leave the m_enableToScreen value unchanged in case
|
||||||
// user resize down the window again.
|
// user resize down the window again.
|
||||||
} else if (originalSizeSmallerThanWindow && scaleFactor() < 1) {
|
} else if (originalSizeSmallerThanWindow && scaleFactor() < 1) {
|
||||||
resetScale();
|
resetScale();
|
||||||
@@ -365,3 +510,8 @@ void GraphicsView::applyTransformationModeByScaleFactor()
|
|||||||
scene()->trySetTransformationMode(Qt::FastTransformation, this->scaleFactor());
|
scene()->trySetTransformationMode(Qt::FastTransformation, this->scaleFactor());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool GraphicsView::shouldAvoidTransform() const
|
||||||
|
{
|
||||||
|
return m_firstUserMediaLoaded && m_avoidResetTransform;
|
||||||
|
}
|
||||||
@@ -38,19 +38,22 @@ public:
|
|||||||
|
|
||||||
void displayScene();
|
void displayScene();
|
||||||
bool isSceneBiggerThanView() const;
|
bool isSceneBiggerThanView() const;
|
||||||
void setEnableAutoFitInView(bool enable = true);
|
void setEnableAutoFitToScreen(bool enable = true);
|
||||||
|
|
||||||
bool avoidResetTransform() const;
|
bool isAvoidResetTransform() const;
|
||||||
void setAvoidResetTransform(bool avoidReset);
|
void setAvoidResetTransform(bool avoidReset);
|
||||||
|
|
||||||
|
bool isCheckerboard() const;
|
||||||
|
void toggleCheckerboard(bool invertCheckerboardColor = false);
|
||||||
|
|
||||||
static QTransform resetScale(const QTransform & orig);
|
static QTransform resetScale(const QTransform & orig);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void navigatorViewRequired(bool required, QTransform transform);
|
void navigatorViewRequired(bool required, QTransform transform);
|
||||||
void viewportRectChanged();
|
void viewportRectChanged();
|
||||||
|
|
||||||
public slots:
|
private slots:
|
||||||
void toggleCheckerboard(bool invertCheckerboardColor = false);
|
void updateStyle(Qt::ColorScheme colorScheme);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void mousePressEvent(QMouseEvent * event) override;
|
void mousePressEvent(QMouseEvent * event) override;
|
||||||
@@ -64,13 +67,16 @@ private:
|
|||||||
void setCheckerboardEnabled(bool enabled, bool invertColor = false);
|
void setCheckerboardEnabled(bool enabled, bool invertColor = false);
|
||||||
void applyTransformationModeByScaleFactor();
|
void applyTransformationModeByScaleFactor();
|
||||||
|
|
||||||
|
inline bool shouldAvoidTransform() const;
|
||||||
|
|
||||||
// Consider switch to 3 state for "no fit", "always fit" and "fit when view is smaller"?
|
// Consider switch to 3 state for "no fit", "always fit" and "fit when view is smaller"?
|
||||||
// ... or even more? e.g. "fit/snap width" things...
|
// ... or even more? e.g. "fit/snap width" things...
|
||||||
// Currently it's "no fit" when it's false and "fit when view is smaller" when it's true.
|
// Currently it's "no fit" when it's false and "fit when view is smaller" when it's true.
|
||||||
bool m_enableFitInView = false;
|
bool m_enableFitToScreen = false;
|
||||||
bool m_avoidResetTransform = false;
|
bool m_avoidResetTransform = false;
|
||||||
bool m_checkerboardEnabled = false;
|
bool m_checkerboardEnabled = false;
|
||||||
bool m_useLightCheckerboard = false;
|
bool m_useLightCheckerboard = false;
|
||||||
|
bool m_firstUserMediaLoaded = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // GRAPHICSVIEW_H
|
#endif // GRAPHICSVIEW_H
|
||||||
@@ -4,46 +4,44 @@
|
|||||||
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
#include "playlistmanager.h"
|
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
|
#ifdef Q_OS_MACOS
|
||||||
|
#include "fileopeneventhandler.h"
|
||||||
|
#endif // Q_OS_MACOS
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
|
||||||
// QM_FILE_INSTALL_DIR should be defined from the CMakeLists file.
|
using namespace Qt::Literals::StringLiterals;
|
||||||
#ifndef QM_FILE_INSTALL_DIR
|
|
||||||
#define QM_FILE_INSTALL_DIR ":/i18n/"
|
|
||||||
#endif // QM_FILE_INSTALL_DIR
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QCoreApplication::setApplicationName("Pineapple Pictures");
|
QCoreApplication::setApplicationName(u"SCW Photo Viewer"_s);
|
||||||
QCoreApplication::setApplicationVersion(PPIC_VERSION_STRING);
|
QCoreApplication::setApplicationVersion(SCWPIC_VERSION_STRING);
|
||||||
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Settings::instance()->hiDpiScaleFactorBehavior());
|
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Settings::instance()->hiDpiScaleFactorBehavior());
|
||||||
|
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
a.setAttribute(Qt::ApplicationAttribute::AA_UseHighDpiPixmaps);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
QTranslator translator;
|
QTranslator translator;
|
||||||
QString qmDir;
|
#if defined(TRANSLATION_RESOURCE_EMBEDDING)
|
||||||
#ifdef _WIN32
|
const QString qmDir = u":/i18n/"_s;
|
||||||
qmDir = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath("translations");
|
#elif defined(QM_FILE_INSTALL_ABSOLUTE_DIR)
|
||||||
|
const QString qmDir = QT_STRINGIFY(QM_FILE_INSTALL_ABSOLUTE_DIR);
|
||||||
#else
|
#else
|
||||||
qmDir = QT_STRINGIFY(QM_FILE_INSTALL_DIR);
|
const QString qmDir = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath("translations");
|
||||||
#endif
|
#endif
|
||||||
if (translator.load(QLocale(), QLatin1String("PineapplePictures"), QLatin1String("_"), qmDir)) {
|
if (translator.load(QLocale(), u"SarasaCWPicture"_s, u"_"_s, qmDir)) {
|
||||||
QCoreApplication::installTranslator(&translator);
|
QCoreApplication::installTranslator(&translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
QGuiApplication::setApplicationDisplayName(QCoreApplication::translate("main", "Pineapple Pictures"));
|
QGuiApplication::setApplicationDisplayName(QCoreApplication::translate("main", "SCW Photo Viewer"));
|
||||||
|
|
||||||
// commandline options
|
// commandline options
|
||||||
QCommandLineOption supportedImageFormats(QStringLiteral("supported-image-formats"), QCoreApplication::translate("main", "List supported image format suffixes, and quit program."));
|
QCommandLineOption supportedImageFormats(u"supported-image-formats"_s, QCoreApplication::translate("main", "List supported image format suffixes, and quit program."));
|
||||||
// parse commandline arguments
|
// parse commandline arguments
|
||||||
QCommandLineParser parser;
|
QCommandLineParser parser;
|
||||||
parser.addOption(supportedImageFormats);
|
parser.addOption(supportedImageFormats);
|
||||||
@@ -52,19 +50,45 @@ int main(int argc, char *argv[])
|
|||||||
parser.process(a);
|
parser.process(a);
|
||||||
|
|
||||||
if (parser.isSet(supportedImageFormats)) {
|
if (parser.isSet(supportedImageFormats)) {
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
|
||||||
fputs(qPrintable(MainWindow::supportedImageFormats().join(QChar('\n'))), stdout);
|
fputs(qPrintable(MainWindow::supportedImageFormats().join(QChar('\n'))), stdout);
|
||||||
::exit(EXIT_SUCCESS);
|
::exit(EXIT_SUCCESS);
|
||||||
|
#else
|
||||||
|
QCommandLineParser::showMessageAndExit(QCommandLineParser::MessageType::Information,
|
||||||
|
MainWindow::supportedImageFormats().join(QChar('\n')));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow w;
|
MainWindow w;
|
||||||
w.show();
|
w.show();
|
||||||
|
|
||||||
QStringList urlStrList = parser.positionalArguments();
|
#ifdef Q_OS_MACOS
|
||||||
QList<QUrl> && urlList = PlaylistManager::convertToUrlList(urlStrList);
|
FileOpenEventHandler * fileOpenEventHandler = new FileOpenEventHandler(&a);
|
||||||
|
a.installEventFilter(fileOpenEventHandler);
|
||||||
if (!urlList.isEmpty()) {
|
a.connect(fileOpenEventHandler, &FileOpenEventHandler::fileOpen, [&w](const QUrl & url){
|
||||||
w.showUrls(urlList);
|
if (w.isHidden()) {
|
||||||
|
w.showNormal();
|
||||||
|
} else {
|
||||||
|
w.activateWindow();
|
||||||
}
|
}
|
||||||
|
w.showFiles({url});
|
||||||
|
w.initWindowSize();
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle dock icon clicks to show hidden window
|
||||||
|
a.connect(&a, &QApplication::applicationStateChanged, [&w](Qt::ApplicationState state) {
|
||||||
|
if (state == Qt::ApplicationActive && w.isHidden()) {
|
||||||
|
w.showFiles({});
|
||||||
|
w.galleryCurrent(false);
|
||||||
|
w.showNormal();
|
||||||
|
w.raise();
|
||||||
|
w.activateWindow();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
#endif // Q_OS_MACOS
|
||||||
|
|
||||||
|
QStringList fileList = parser.positionalArguments();
|
||||||
|
w.showFiles(fileList);
|
||||||
|
|
||||||
w.initWindowSize();
|
w.initWindowSize();
|
||||||
|
|
||||||
|
|||||||
@@ -1,34 +1,23 @@
|
|||||||
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
|
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net>
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#ifndef MAINWINDOW_H
|
#ifndef MAINWINDOW_H
|
||||||
#define MAINWINDOW_H
|
#define MAINWINDOW_H
|
||||||
|
|
||||||
#include "framelesswindow.h"
|
#include <QWidget>
|
||||||
|
|
||||||
#include <QParallelAnimationGroup>
|
|
||||||
#include <QPropertyAnimation>
|
|
||||||
#include <QPushButton>
|
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
typedef QEnterEvent QT_ENTER_EVENT;
|
|
||||||
#else
|
|
||||||
typedef QEvent QT_ENTER_EVENT;
|
|
||||||
#endif // QT_VERSION_CHECK(6, 0, 0)
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
class QGraphicsOpacityEffect;
|
class QFileSystemWatcher;
|
||||||
class QGraphicsView;
|
namespace Ui {
|
||||||
|
class MainWindow;
|
||||||
|
}
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
class ActionManager;
|
class ActionManager;
|
||||||
class PlaylistManager;
|
class PlaylistManager;
|
||||||
class ToolButton;
|
|
||||||
class GraphicsView;
|
class MainWindow : public QWidget
|
||||||
class NavigatorView;
|
|
||||||
class BottomButtonGroup;
|
|
||||||
class MainWindow : public FramelessWindow
|
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
@@ -36,42 +25,26 @@ public:
|
|||||||
explicit MainWindow(QWidget *parent = nullptr);
|
explicit MainWindow(QWidget *parent = nullptr);
|
||||||
~MainWindow() override;
|
~MainWindow() override;
|
||||||
|
|
||||||
void showUrls(const QList<QUrl> &urls);
|
void showFiles(const QStringList& files);
|
||||||
|
void showFiles(const QList<QUrl>& urls);
|
||||||
void initWindowSize();
|
void initWindowSize();
|
||||||
void adjustWindowSizeBySceneRect();
|
|
||||||
QUrl currentImageFileUrl() const;
|
|
||||||
|
|
||||||
void clearGallery();
|
void clearGallery();
|
||||||
void galleryPrev();
|
void galleryPrev();
|
||||||
void galleryNext();
|
void galleryNext();
|
||||||
void galleryCurrent(bool showLoadImageHintWhenEmpty, bool reloadImage);
|
void galleryCurrent(bool fromFileWatcher);
|
||||||
|
|
||||||
static QStringList supportedImageFormats();
|
static QStringList supportedImageFormats();
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void showEvent(QShowEvent *event) override;
|
|
||||||
void enterEvent(QT_ENTER_EVENT *event) override;
|
|
||||||
void leaveEvent(QEvent *event) override;
|
|
||||||
void mousePressEvent(QMouseEvent *event) override;
|
|
||||||
void mouseMoveEvent(QMouseEvent *event) override;
|
|
||||||
void mouseReleaseEvent(QMouseEvent *event) override;
|
|
||||||
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
|
||||||
void wheelEvent(QWheelEvent *event) override;
|
void wheelEvent(QWheelEvent *event) override;
|
||||||
void resizeEvent(QResizeEvent *event) override;
|
|
||||||
void contextMenuEvent(QContextMenuEvent *event) override;
|
void contextMenuEvent(QContextMenuEvent *event) override;
|
||||||
void dragEnterEvent(QDragEnterEvent *event) override;
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||||
void dragMoveEvent(QDragMoveEvent *event) override;
|
void dragMoveEvent(QDragMoveEvent *event) override;
|
||||||
void dropEvent(QDropEvent *event) override;
|
void dropEvent(QDropEvent *event) override;
|
||||||
|
|
||||||
void centerWindow();
|
void centerWindow();
|
||||||
void closeWindow();
|
|
||||||
void updateWidgetsPosition();
|
|
||||||
void toggleProtectedMode();
|
|
||||||
void toggleStayOnTop();
|
|
||||||
void toggleAvoidResetTransform();
|
void toggleAvoidResetTransform();
|
||||||
bool stayOnTop() const;
|
|
||||||
bool canPaste() const;
|
|
||||||
void quitAppAction(bool force = false);
|
|
||||||
void toggleFullscreen();
|
void toggleFullscreen();
|
||||||
void toggleMaximize();
|
void toggleMaximize();
|
||||||
|
|
||||||
@@ -79,51 +52,46 @@ protected:
|
|||||||
QSize sizeHint() const override;
|
QSize sizeHint() const override;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_actionOpen_triggered();
|
void on_actionCopyPixmap_triggered();
|
||||||
|
void on_actionCopyFilePath_triggered();
|
||||||
void on_actionActualSize_triggered();
|
|
||||||
void on_actionToggleMaximize_triggered();
|
|
||||||
void on_actionZoomIn_triggered();
|
|
||||||
void on_actionZoomOut_triggered();
|
|
||||||
void on_actionToggleCheckerboard_triggered();
|
|
||||||
void on_actionRotateClockwise_triggered();
|
|
||||||
void on_actionRotateCounterClockwise_triggered();
|
|
||||||
|
|
||||||
void on_actionPrevPicture_triggered();
|
void on_actionPrevPicture_triggered();
|
||||||
void on_actionNextPicture_triggered();
|
void on_actionNextPicture_triggered();
|
||||||
|
|
||||||
void on_actionHorizontalFlip_triggered();
|
void on_actionActualSize_triggered();
|
||||||
void on_actionFitInView_triggered();
|
void on_actionFitToScreen_triggered();
|
||||||
void on_actionFitByWidth_triggered();
|
void on_actionFitByWidth_triggered();
|
||||||
void on_actionCopyPixmap_triggered();
|
void on_actionFitByHeight_triggered();
|
||||||
void on_actionCopyFilePath_triggered();
|
void on_actionZoomIn_triggered();
|
||||||
void on_actionPaste_triggered();
|
void on_actionZoomOut_triggered();
|
||||||
void on_actionTrash_triggered();
|
|
||||||
void on_actionToggleStayOnTop_triggered();
|
void on_actionFlipHorizontal_triggered();
|
||||||
void on_actionToggleProtectMode_triggered();
|
void on_actionFlipVertical_triggered();
|
||||||
|
void on_actionRotateClockwise_triggered();
|
||||||
|
void on_actionRotateCounterClockwise_triggered();
|
||||||
|
|
||||||
void on_actionToggleAvoidResetTransform_triggered();
|
void on_actionToggleAvoidResetTransform_triggered();
|
||||||
|
void on_actionToggleCheckerboard_triggered();
|
||||||
|
void on_actionTogglePauseAnimation_triggered();
|
||||||
|
void on_actionAnimationNextFrame_triggered();
|
||||||
|
|
||||||
|
void on_actionTrash_triggered();
|
||||||
|
void on_actionLocateInFileManager_triggered();
|
||||||
|
void on_actionProperties_triggered();
|
||||||
|
|
||||||
void on_actionSettings_triggered();
|
void on_actionSettings_triggered();
|
||||||
void on_actionHelp_triggered();
|
void on_actionHelp_triggered();
|
||||||
void on_actionProperties_triggered();
|
|
||||||
void on_actionLocateInFileManager_triggered();
|
|
||||||
void on_actionQuitApp_triggered();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
bool updateFileWatcher(const QString & basePath = QString());
|
||||||
|
void updateActionState();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QT_PREPEND_NAMESPACE(Ui::MainWindow) *ui;
|
||||||
|
|
||||||
ActionManager *m_am;
|
ActionManager *m_am;
|
||||||
PlaylistManager *m_pm;
|
PlaylistManager *m_pm;
|
||||||
|
QFileSystemWatcher *m_fileSystemWatcher;
|
||||||
QPoint m_oldMousePos;
|
|
||||||
QPropertyAnimation *m_fadeOutAnimation;
|
|
||||||
QPropertyAnimation *m_floatUpAnimation;
|
|
||||||
QParallelAnimationGroup *m_exitAnimationGroup;
|
|
||||||
ToolButton *m_closeButton;
|
|
||||||
ToolButton *m_prevButton;
|
|
||||||
ToolButton *m_nextButton;
|
|
||||||
GraphicsView *m_graphicsView;
|
|
||||||
NavigatorView *m_gv;
|
|
||||||
BottomButtonGroup *m_bottomButtonGroup;
|
|
||||||
bool m_protectedMode = false;
|
|
||||||
bool m_clickedOnWindow = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MAINWINDOW_H
|
#endif // MAINWINDOW_H
|
||||||
@@ -0,0 +1,169 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>MainWindow</class>
|
||||||
|
<widget class="QWidget" name="MainWindow">
|
||||||
|
<property name="windowModality">
|
||||||
|
<enum>Qt::NonModal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>640</width>
|
||||||
|
<height>480</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="acceptDrops">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="m_centralLayout">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="GraphicsView" name="m_gv">
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::NoFrame</enum>
|
||||||
|
</property>
|
||||||
|
<property name="verticalScrollBarPolicy">
|
||||||
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||||
|
</property>
|
||||||
|
<property name="horizontalScrollBarPolicy">
|
||||||
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QWidget" name="bottomBar" native="true">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>72</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16777215</width>
|
||||||
|
<height>72</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<layout class="QHBoxLayout" name="bottomBarLayout">
|
||||||
|
<property name="spacing">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QWidget" name="m_navPH" native="true">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>99</width>
|
||||||
|
<height>72</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>99</width>
|
||||||
|
<height>72</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="leftSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="BottomButtonGroup" name="m_bottomButtonGroup"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="rightSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="NavigatorView" name="m_nav">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>99</width>
|
||||||
|
<height>72</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>99</width>
|
||||||
|
<height>72</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::NoFrame</enum>
|
||||||
|
</property>
|
||||||
|
<property name="verticalScrollBarPolicy">
|
||||||
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||||
|
</property>
|
||||||
|
<property name="horizontalScrollBarPolicy">
|
||||||
|
<enum>Qt::ScrollBarAlwaysOff</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
<widget class="QMenu" name="m_subMenuCopy">
|
||||||
|
<property name="title">
|
||||||
|
<string>&Copy</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QMenu" name="m_subMenuTransform">
|
||||||
|
<property name="title">
|
||||||
|
<string>&Transform</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QMenu" name="m_menu"/>
|
||||||
|
</widget>
|
||||||
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>GraphicsView</class>
|
||||||
|
<extends>QGraphicsView</extends>
|
||||||
|
<header>graphicsview.h</header>
|
||||||
|
</customwidget>
|
||||||
|
<customwidget>
|
||||||
|
<class>NavigatorView</class>
|
||||||
|
<extends>QGraphicsView</extends>
|
||||||
|
<header>navigatorview.h</header>
|
||||||
|
</customwidget>
|
||||||
|
<customwidget>
|
||||||
|
<class>BottomButtonGroup</class>
|
||||||
|
<extends>QGroupBox</extends>
|
||||||
|
<header>bottombuttongroup.h</header>
|
||||||
|
</customwidget>
|
||||||
|
</customwidgets>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
||||||
@@ -3,12 +3,12 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#include "metadatadialog.h"
|
#include "metadatadialog.h"
|
||||||
|
#include "ui_metadatadialog.h"
|
||||||
|
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QStyledItemDelegate>
|
#include <QStyledItemDelegate>
|
||||||
#include <QTreeView>
|
#include <QTreeView>
|
||||||
#include <QVBoxLayout>
|
|
||||||
#include <QHeaderView>
|
#include <QHeaderView>
|
||||||
|
|
||||||
#include "metadatamodel.h"
|
#include "metadatamodel.h"
|
||||||
@@ -73,30 +73,33 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
MetadataDialog::MetadataDialog(QWidget *parent)
|
MetadataDialog::MetadataDialog(QWidget *parent)
|
||||||
: QDialog(parent)
|
: QDialog(parent), ui(new QT_PREPEND_NAMESPACE(Ui::MetadataDialog))
|
||||||
, m_treeView(new PropertyTreeView(this))
|
|
||||||
{
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
|
||||||
|
|
||||||
|
// YYC MARK:
|
||||||
|
// Because we use custom QTreeView and we do not want to expose it to public domain.
|
||||||
|
// So I have to use this way as the compromise.
|
||||||
|
|
||||||
|
// Create our custom QTreeView and insert them
|
||||||
|
m_treeView = new PropertyTreeView(this);
|
||||||
|
auto* layout = ui->verticalLayout;
|
||||||
|
const int index = layout->indexOf(ui->m_buttonBox);
|
||||||
|
layout->insertWidget(index, m_treeView);
|
||||||
|
|
||||||
|
// Setup our custom QTreeView
|
||||||
m_treeView->setRootIsDecorated(false);
|
m_treeView->setRootIsDecorated(false);
|
||||||
m_treeView->setIndentation(0);
|
m_treeView->setIndentation(0);
|
||||||
m_treeView->setItemDelegate(new PropertyTreeItemDelegate(m_treeView));
|
m_treeView->setItemDelegate(new PropertyTreeItemDelegate(m_treeView));
|
||||||
m_treeView->header()->resizeSection(0, sizeHint().width() / 2);
|
m_treeView->header()->resizeSection(0, sizeHint().width() / 2);
|
||||||
|
|
||||||
setWindowTitle(tr("Image Metadata"));
|
connect(ui->m_buttonBox, &QDialogButtonBox::rejected, this, &QDialog::close);
|
||||||
|
|
||||||
QDialogButtonBox * buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
|
|
||||||
|
|
||||||
setLayout(new QVBoxLayout);
|
|
||||||
layout()->addWidget(m_treeView);
|
|
||||||
layout()->addWidget(buttonBox);
|
|
||||||
|
|
||||||
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::close);
|
|
||||||
|
|
||||||
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MetadataDialog::~MetadataDialog()
|
MetadataDialog::~MetadataDialog()
|
||||||
{
|
{
|
||||||
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetadataDialog::setMetadataModel(MetadataModel * model)
|
void MetadataDialog::setMetadataModel(MetadataModel * model)
|
||||||
|
|||||||
@@ -11,6 +11,12 @@ QT_BEGIN_NAMESPACE
|
|||||||
class QTreeView;
|
class QTreeView;
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
namespace Ui {
|
||||||
|
class MetadataDialog;
|
||||||
|
}
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
class MetadataModel;
|
class MetadataModel;
|
||||||
class MetadataDialog : public QDialog
|
class MetadataDialog : public QDialog
|
||||||
{
|
{
|
||||||
@@ -25,6 +31,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QTreeView * m_treeView = nullptr;
|
QTreeView * m_treeView = nullptr;
|
||||||
|
QT_PREPEND_NAMESPACE(Ui::MetadataDialog) *ui;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // METADATADIALOG_H
|
#endif // METADATADIALOG_H
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>MetadataDialog</class>
|
||||||
|
<widget class="QDialog" name="MetadataDialog">
|
||||||
|
<property name="windowModality">
|
||||||
|
<enum>Qt::NonModal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Image Metadata</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QDialogButtonBox" name="m_buttonBox">
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::Close</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
||||||
@@ -11,6 +11,8 @@
|
|||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QImageReader>
|
#include <QImageReader>
|
||||||
|
|
||||||
|
using namespace Qt::Literals::StringLiterals;
|
||||||
|
|
||||||
MetadataModel::MetadataModel(QObject *parent)
|
MetadataModel::MetadataModel(QObject *parent)
|
||||||
: QAbstractItemModel(parent)
|
: QAbstractItemModel(parent)
|
||||||
{
|
{
|
||||||
@@ -37,131 +39,131 @@ void MetadataModel::setFile(const QString &imageFilePath)
|
|||||||
const QString & imageDimensionsString = imageSize(imgReader.size());
|
const QString & imageDimensionsString = imageSize(imgReader.size());
|
||||||
const QString & imageRatioString = imageSizeRatio(imgReader.size());
|
const QString & imageRatioString = imageSizeRatio(imgReader.size());
|
||||||
|
|
||||||
appendSection(QStringLiteral("Description"), tr("Description", "Section name."));
|
appendSection(u"Description"_s, tr("Description", "Section name."));
|
||||||
appendSection(QStringLiteral("Origin"), tr("Origin", "Section name."));
|
appendSection(u"Origin"_s, tr("Origin", "Section name."));
|
||||||
appendSection(QStringLiteral("Image"), tr("Image", "Section name."));
|
appendSection(u"Image"_s, tr("Image", "Section name."));
|
||||||
appendSection(QStringLiteral("Camera"), tr("Camera", "Section name."));
|
appendSection(u"Camera"_s, tr("Camera", "Section name."));
|
||||||
appendSection(QStringLiteral("AdvancedPhoto"), tr("Advanced photo", "Section name."));
|
appendSection(u"AdvancedPhoto"_s, tr("Advanced photo", "Section name."));
|
||||||
appendSection(QStringLiteral("GPS"), tr("GPS", "Section name."));
|
appendSection(u"GPS"_s, tr("GPS", "Section name."));
|
||||||
appendSection(QStringLiteral("File"), tr("File", "Section name."));
|
appendSection(u"File"_s, tr("File", "Section name."));
|
||||||
|
|
||||||
if (imgReader.supportsOption(QImageIOHandler::Size)) {
|
if (imgReader.supportsOption(QImageIOHandler::Size)) {
|
||||||
appendProperty(QStringLiteral("Image"), QStringLiteral("Image.Dimensions"),
|
appendProperty(u"Image"_s, u"Image.Dimensions"_s,
|
||||||
tr("Dimensions"), imageDimensionsString);
|
tr("Dimensions"), imageDimensionsString);
|
||||||
appendProperty(QStringLiteral("Image"), QStringLiteral("Image.SizeRatio"),
|
appendProperty(u"Image"_s, u"Image.SizeRatio"_s,
|
||||||
tr("Aspect ratio"), imageRatioString);
|
tr("Aspect ratio"), imageRatioString);
|
||||||
}
|
}
|
||||||
if (imgReader.supportsAnimation() && imgReader.imageCount() > 1) {
|
if (imgReader.supportsAnimation() && imgReader.imageCount() > 1) {
|
||||||
appendProperty(QStringLiteral("Image"), QStringLiteral("Image.FrameCount"),
|
appendProperty(u"Image"_s, u"Image.FrameCount"_s,
|
||||||
tr("Frame count"), QString::number(imgReader.imageCount()));
|
tr("Frame count"), QString::number(imgReader.imageCount()));
|
||||||
}
|
}
|
||||||
|
|
||||||
appendProperty(QStringLiteral("File"), QStringLiteral("File.Name"),
|
appendProperty(u"File"_s, u"File.Name"_s,
|
||||||
tr("Name"), fileInfo.fileName());
|
tr("Name"), fileInfo.fileName());
|
||||||
appendProperty(QStringLiteral("File"), QStringLiteral("File.ItemType"),
|
appendProperty(u"File"_s, u"File.ItemType"_s,
|
||||||
tr("Item type"), itemTypeString);
|
tr("Item type"), itemTypeString);
|
||||||
appendProperty(QStringLiteral("File"), QStringLiteral("File.Path"),
|
appendProperty(u"File"_s, u"File.Path"_s,
|
||||||
tr("Folder path"), QDir::toNativeSeparators(fileInfo.path()));
|
tr("Folder path"), QDir::toNativeSeparators(fileInfo.path()));
|
||||||
appendProperty(QStringLiteral("File"), QStringLiteral("File.Size"),
|
appendProperty(u"File"_s, u"File.Size"_s,
|
||||||
tr("Size"), sizeString);
|
tr("Size"), sizeString);
|
||||||
appendProperty(QStringLiteral("File"), QStringLiteral("File.CreatedTime"),
|
appendProperty(u"File"_s, u"File.CreatedTime"_s,
|
||||||
tr("Date created"), birthTimeString);
|
tr("Date created"), birthTimeString);
|
||||||
appendProperty(QStringLiteral("File"), QStringLiteral("File.LastModified"),
|
appendProperty(u"File"_s, u"File.LastModified"_s,
|
||||||
tr("Date modified"), lastModifiedTimeString);
|
tr("Date modified"), lastModifiedTimeString);
|
||||||
|
|
||||||
Exiv2Wrapper wrapper;
|
Exiv2Wrapper wrapper;
|
||||||
if (wrapper.load(imageFilePath)) {
|
if (wrapper.load(imageFilePath)) {
|
||||||
wrapper.cacheSections();
|
wrapper.cacheSections();
|
||||||
|
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Description"),
|
appendExivPropertyIfExist(wrapper, u"Description"_s,
|
||||||
QStringLiteral("Xmp.dc.title"), tr("Title"), true);
|
u"Xmp.dc.title"_s, tr("Title"), true);
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Description"),
|
appendExivPropertyIfExist(wrapper, u"Description"_s,
|
||||||
QStringLiteral("Exif.Image.ImageDescription"), tr("Subject"), true);
|
u"Exif.Image.ImageDescription"_s, tr("Subject"), true);
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Description"),
|
appendExivPropertyIfExist(wrapper, u"Description"_s,
|
||||||
QStringLiteral("Exif.Image.Rating"), tr("Rating"));
|
u"Exif.Image.Rating"_s, tr("Rating"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Description"),
|
appendExivPropertyIfExist(wrapper, u"Description"_s,
|
||||||
QStringLiteral("Xmp.dc.subject"), tr("Tags"));
|
u"Xmp.dc.subject"_s, tr("Tags"));
|
||||||
appendPropertyIfNotEmpty(QStringLiteral("Description"), QStringLiteral("Description.Comments"),
|
appendPropertyIfNotEmpty(u"Description"_s, u"Description.Comments"_s,
|
||||||
tr("Comments"), wrapper.comment());
|
tr("Comments"), wrapper.comment());
|
||||||
|
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Origin"),
|
appendExivPropertyIfExist(wrapper, u"Origin"_s,
|
||||||
QStringLiteral("Exif.Image.Artist"), tr("Authors"));
|
u"Exif.Image.Artist"_s, tr("Authors"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Origin"),
|
appendExivPropertyIfExist(wrapper, u"Origin"_s,
|
||||||
QStringLiteral("Exif.Photo.DateTimeOriginal"), tr("Date taken"));
|
u"Exif.Photo.DateTimeOriginal"_s, tr("Date taken"));
|
||||||
// FIXME: We may fetch the same type of metadata from different metadata collection.
|
// FIXME: We may fetch the same type of metadata from different metadata collection.
|
||||||
// Current implementation is not pretty and may need to do a rework...
|
// Current implementation is not pretty and may need to do a rework...
|
||||||
// appendExivPropertyIfExist(wrapper, QStringLiteral("Origin"),
|
// appendExivPropertyIfExist(wrapper, QStringLiteral("Origin"),
|
||||||
// QStringLiteral("Xmp.xmp.CreatorTool"), tr("Program name"));
|
// QStringLiteral("Xmp.xmp.CreatorTool"), tr("Program name"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Origin"),
|
appendExivPropertyIfExist(wrapper, u"Origin"_s,
|
||||||
QStringLiteral("Exif.Image.Software"), tr("Program name"));
|
u"Exif.Image.Software"_s, tr("Program name"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Origin"),
|
appendExivPropertyIfExist(wrapper, u"Origin"_s,
|
||||||
QStringLiteral("Exif.Image.Copyright"), tr("Copyright"));
|
u"Exif.Image.Copyright"_s, tr("Copyright"));
|
||||||
|
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Image"),
|
appendExivPropertyIfExist(wrapper, u"Image"_s,
|
||||||
QStringLiteral("Exif.Image.XResolution"), tr("Horizontal resolution"));
|
u"Exif.Image.XResolution"_s, tr("Horizontal resolution"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Image"),
|
appendExivPropertyIfExist(wrapper, u"Image"_s,
|
||||||
QStringLiteral("Exif.Image.YResolution"), tr("Vertical resolution"));
|
u"Exif.Image.YResolution"_s, tr("Vertical resolution"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Image"),
|
appendExivPropertyIfExist(wrapper, u"Image"_s,
|
||||||
QStringLiteral("Exif.Image.ResolutionUnit"), tr("Resolution unit"));
|
u"Exif.Image.ResolutionUnit"_s, tr("Resolution unit"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Image"),
|
appendExivPropertyIfExist(wrapper, u"Image"_s,
|
||||||
QStringLiteral("Exif.Photo.ColorSpace"), tr("Colour representation"));
|
u"Exif.Photo.ColorSpace"_s, tr("Colour representation"));
|
||||||
|
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Image.Make"), tr("Camera maker"));
|
u"Exif.Image.Make"_s, tr("Camera maker"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Image.Model"), tr("Camera model"));
|
u"Exif.Image.Model"_s, tr("Camera model"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Photo.FNumber"), tr("F-stop"));
|
u"Exif.Photo.FNumber"_s, tr("F-stop"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Photo.ExposureTime"), tr("Exposure time"));
|
u"Exif.Photo.ExposureTime"_s, tr("Exposure time"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Photo.ISOSpeedRatings"), tr("ISO speed"));
|
u"Exif.Photo.ISOSpeedRatings"_s, tr("ISO speed"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Photo.ExposureBiasValue"), tr("Exposure bias"));
|
u"Exif.Photo.ExposureBiasValue"_s, tr("Exposure bias"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Photo.FocalLength"), tr("Focal length"));
|
u"Exif.Photo.FocalLength"_s, tr("Focal length"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Photo.MaxApertureValue"), tr("Max aperture"));
|
u"Exif.Photo.MaxApertureValue"_s, tr("Max aperture"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Photo.MeteringMode"), tr("Metering mode"));
|
u"Exif.Photo.MeteringMode"_s, tr("Metering mode"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Photo.SubjectDistance"), tr("Subject distance"));
|
u"Exif.Photo.SubjectDistance"_s, tr("Subject distance"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Photo.Flash"), tr("Flash mode"));
|
u"Exif.Photo.Flash"_s, tr("Flash mode"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
|
appendExivPropertyIfExist(wrapper, u"Camera"_s,
|
||||||
QStringLiteral("Exif.Photo.FocalLengthIn35mmFilm"), tr("35mm focal length"));
|
u"Exif.Photo.FocalLengthIn35mmFilm"_s, tr("35mm focal length"));
|
||||||
|
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
|
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s,
|
||||||
QStringLiteral("Exif.Photo.LensModel"), tr("Lens model"));
|
u"Exif.Photo.LensModel"_s, tr("Lens model"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
|
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s,
|
||||||
QStringLiteral("Exif.Photo.Contrast"), tr("Contrast"));
|
u"Exif.Photo.Contrast"_s, tr("Contrast"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
|
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s,
|
||||||
QStringLiteral("Exif.Photo.BrightnessValue"), tr("Brightness"));
|
u"Exif.Photo.BrightnessValue"_s, tr("Brightness"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
|
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s,
|
||||||
QStringLiteral("Exif.Photo.ExposureProgram"), tr("Exposure program"));
|
u"Exif.Photo.ExposureProgram"_s, tr("Exposure program"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
|
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s,
|
||||||
QStringLiteral("Exif.Photo.Saturation"), tr("Saturation"));
|
u"Exif.Photo.Saturation"_s, tr("Saturation"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
|
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s,
|
||||||
QStringLiteral("Exif.Photo.Sharpness"), tr("Sharpness"));
|
u"Exif.Photo.Sharpness"_s, tr("Sharpness"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
|
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s,
|
||||||
QStringLiteral("Exif.Photo.WhiteBalance"), tr("White balance"));
|
u"Exif.Photo.WhiteBalance"_s, tr("White balance"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
|
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s,
|
||||||
QStringLiteral("Exif.Photo.DigitalZoomRatio"), tr("Digital zoom"));
|
u"Exif.Photo.DigitalZoomRatio"_s, tr("Digital zoom"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
|
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s,
|
||||||
QStringLiteral("Exif.Photo.ExifVersion"), tr("EXIF version"));
|
u"Exif.Photo.ExifVersion"_s, tr("EXIF version"));
|
||||||
|
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
|
appendExivPropertyIfExist(wrapper, u"GPS"_s,
|
||||||
QStringLiteral("Exif.GPSInfo.GPSLatitudeRef"), tr("Latitude reference"));
|
u"Exif.GPSInfo.GPSLatitudeRef"_s, tr("Latitude reference"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
|
appendExivPropertyIfExist(wrapper, u"GPS"_s,
|
||||||
QStringLiteral("Exif.GPSInfo.GPSLatitude"), tr("Latitude"));
|
u"Exif.GPSInfo.GPSLatitude"_s, tr("Latitude"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
|
appendExivPropertyIfExist(wrapper, u"GPS"_s,
|
||||||
QStringLiteral("Exif.GPSInfo.GPSLongitudeRef"), tr("Longitude reference"));
|
u"Exif.GPSInfo.GPSLongitudeRef"_s, tr("Longitude reference"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
|
appendExivPropertyIfExist(wrapper, u"GPS"_s,
|
||||||
QStringLiteral("Exif.GPSInfo.GPSLongitude"), tr("Longitude"));
|
u"Exif.GPSInfo.GPSLongitude"_s, tr("Longitude"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
|
appendExivPropertyIfExist(wrapper, u"GPS"_s,
|
||||||
QStringLiteral("Exif.GPSInfo.GPSAltitudeRef"), tr("Altitude reference"));
|
u"Exif.GPSInfo.GPSAltitudeRef"_s, tr("Altitude reference"));
|
||||||
appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
|
appendExivPropertyIfExist(wrapper, u"GPS"_s,
|
||||||
QStringLiteral("Exif.GPSInfo.GPSAltitude"), tr("Altitude"));
|
u"Exif.GPSInfo.GPSAltitude"_s, tr("Altitude"));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,20 +5,22 @@
|
|||||||
#include "navigatorview.h"
|
#include "navigatorview.h"
|
||||||
|
|
||||||
#include "graphicsview.h"
|
#include "graphicsview.h"
|
||||||
#include "opacityhelper.h"
|
|
||||||
|
|
||||||
|
#include <QStyleHints>
|
||||||
|
#include <QOperatingSystemVersion>
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include <QTimer>
|
||||||
|
|
||||||
NavigatorView::NavigatorView(QWidget *parent)
|
NavigatorView::NavigatorView(QWidget *parent)
|
||||||
: QGraphicsView (parent)
|
: QGraphicsView (parent)
|
||||||
, m_viewportRegion(this->rect())
|
, m_viewportRegion(this->rect())
|
||||||
, m_opacityHelper(new OpacityHelper(this))
|
|
||||||
{
|
{
|
||||||
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
setStyleSheet("background-color: rgba(0, 0, 0, 120);"
|
|
||||||
"border-radius: 3px;");
|
updateStyle(qGuiApp->styleHints()->colorScheme());
|
||||||
|
connect(qGuiApp->styleHints(), &QStyleHints::colorSchemeChanged, this, &NavigatorView::updateStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
// doesn't take or manage its ownership
|
// doesn't take or manage its ownership
|
||||||
@@ -27,17 +29,49 @@ void NavigatorView::setMainView(GraphicsView *mainView)
|
|||||||
m_mainView = mainView;
|
m_mainView = mainView;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NavigatorView::setOpacity(qreal opacity, bool animated)
|
|
||||||
{
|
|
||||||
m_opacityHelper->setOpacity(opacity, animated);
|
|
||||||
}
|
|
||||||
|
|
||||||
void NavigatorView::updateMainViewportRegion()
|
void NavigatorView::updateMainViewportRegion()
|
||||||
{
|
{
|
||||||
|
// Use QTimer::singleShot with lambda to delay the update
|
||||||
|
// This ensures all geometry updates are complete before calculating viewport region
|
||||||
|
QTimer::singleShot(0, [this]() {
|
||||||
if (m_mainView != nullptr) {
|
if (m_mainView != nullptr) {
|
||||||
m_viewportRegion = mapFromScene(m_mainView->mapToScene(m_mainView->rect()));
|
m_viewportRegion = mapFromScene(m_mainView->mapToScene(m_mainView->rect()));
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
void NavigatorView::updateStyle(Qt::ColorScheme colorScheme) {
|
||||||
|
// YYC MARK:
|
||||||
|
// If we are using Windows 10 and lower system or Qt which do not support "Windows 11"
|
||||||
|
// theme (lower than Qt 6.7), we should only support light mode.
|
||||||
|
// Because Qt's dark-mode-aware "Windows 11" theme is only well-supported on Windows 11.
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
|
||||||
|
colorScheme = Qt::ColorScheme::Light;
|
||||||
|
#else
|
||||||
|
if (QOperatingSystemVersion::current() < QOperatingSystemVersion::Windows11) {
|
||||||
|
colorScheme = Qt::ColorScheme::Light;
|
||||||
|
}
|
||||||
|
#endif // QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
|
||||||
|
#endif // defined(Q_OS_WIN)
|
||||||
|
|
||||||
|
switch (colorScheme) {
|
||||||
|
case Qt::ColorScheme::Dark:
|
||||||
|
setStyleSheet(R"#(
|
||||||
|
border-style: none;
|
||||||
|
background-color: rgba(255, 255, 255, 70);
|
||||||
|
)#");
|
||||||
|
break;
|
||||||
|
case Qt::ColorScheme::Light:
|
||||||
|
case Qt::ColorScheme::Unknown:
|
||||||
|
default:
|
||||||
|
setStyleSheet(R"#(
|
||||||
|
border-style: none;
|
||||||
|
background-color: rgba(0, 0, 0, 70);
|
||||||
|
)#");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void NavigatorView::mousePressEvent(QMouseEvent *event)
|
void NavigatorView::mousePressEvent(QMouseEvent *event)
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include <QGraphicsView>
|
#include <QGraphicsView>
|
||||||
|
|
||||||
class OpacityHelper;
|
|
||||||
class GraphicsView;
|
class GraphicsView;
|
||||||
class NavigatorView : public QGraphicsView
|
class NavigatorView : public QGraphicsView
|
||||||
{
|
{
|
||||||
@@ -16,11 +15,13 @@ public:
|
|||||||
NavigatorView(QWidget *parent = nullptr);
|
NavigatorView(QWidget *parent = nullptr);
|
||||||
|
|
||||||
void setMainView(GraphicsView *mainView);
|
void setMainView(GraphicsView *mainView);
|
||||||
void setOpacity(qreal opacity, bool animated = true);
|
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void updateMainViewportRegion();
|
void updateMainViewportRegion();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void updateStyle(Qt::ColorScheme colorScheme);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void mousePressEvent(QMouseEvent * event) override;
|
void mousePressEvent(QMouseEvent * event) override;
|
||||||
void mouseMoveEvent(QMouseEvent * event) override;
|
void mouseMoveEvent(QMouseEvent * event) override;
|
||||||
@@ -32,7 +33,6 @@ private:
|
|||||||
bool m_mouseDown = false;
|
bool m_mouseDown = false;
|
||||||
QPolygon m_viewportRegion;
|
QPolygon m_viewportRegion;
|
||||||
QGraphicsView *m_mainView = nullptr;
|
QGraphicsView *m_mainView = nullptr;
|
||||||
OpacityHelper *m_opacityHelper = nullptr;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // NAVIGATORVIEW_H
|
#endif // NAVIGATORVIEW_H
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
#include "opacityhelper.h"
|
|
||||||
|
|
||||||
#include <QGraphicsOpacityEffect>
|
|
||||||
#include <QPropertyAnimation>
|
|
||||||
|
|
||||||
OpacityHelper::OpacityHelper(QWidget *parent)
|
|
||||||
: QObject(parent)
|
|
||||||
, m_opacityFx(new QGraphicsOpacityEffect(parent))
|
|
||||||
, m_opacityAnimation(new QPropertyAnimation(m_opacityFx, "opacity"))
|
|
||||||
{
|
|
||||||
parent->setGraphicsEffect(m_opacityFx);
|
|
||||||
|
|
||||||
m_opacityAnimation->setDuration(300);
|
|
||||||
}
|
|
||||||
|
|
||||||
void OpacityHelper::setOpacity(qreal opacity, bool animated)
|
|
||||||
{
|
|
||||||
if (!animated) {
|
|
||||||
m_opacityFx->setOpacity(opacity);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_opacityAnimation->stop();
|
|
||||||
m_opacityAnimation->setStartValue(m_opacityFx->opacity());
|
|
||||||
m_opacityAnimation->setEndValue(opacity);
|
|
||||||
m_opacityAnimation->start();
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
#ifndef OPACITYHELPER_H
|
|
||||||
#define OPACITYHELPER_H
|
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
|
||||||
class QGraphicsOpacityEffect;
|
|
||||||
class QPropertyAnimation;
|
|
||||||
QT_END_NAMESPACE
|
|
||||||
|
|
||||||
class OpacityHelper : QObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
OpacityHelper(QWidget * parent);
|
|
||||||
|
|
||||||
void setOpacity(qreal opacity, bool animated = true);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
QGraphicsOpacityEffect * m_opacityFx;
|
|
||||||
QPropertyAnimation * m_opacityAnimation;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // OPACITYHELPER_H
|
|
||||||
@@ -1,162 +1,22 @@
|
|||||||
// SPDX-FileCopyrightText: 2024 Gary Wang <git@blumia.net>
|
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net>
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#include "playlistmanager.h"
|
#include "playlistmanager.h"
|
||||||
|
#include "playlistscout.h"
|
||||||
|
|
||||||
#include <QCollator>
|
#include <QCollator>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
|
||||||
PlaylistModel::PlaylistModel(QObject *parent)
|
|
||||||
: QAbstractListModel(parent)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
PlaylistModel::~PlaylistModel()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void PlaylistModel::setPlaylist(const QList<QUrl> &urls)
|
|
||||||
{
|
|
||||||
beginResetModel();
|
|
||||||
m_playlist = urls;
|
|
||||||
endResetModel();
|
|
||||||
}
|
|
||||||
|
|
||||||
QModelIndex PlaylistModel::loadPlaylist(const QList<QUrl> & urls)
|
|
||||||
{
|
|
||||||
if (urls.isEmpty()) return QModelIndex();
|
|
||||||
if (urls.count() == 1) {
|
|
||||||
return loadPlaylist(urls.constFirst());
|
|
||||||
} else {
|
|
||||||
setPlaylist(urls);
|
|
||||||
return index(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
QModelIndex PlaylistModel::loadPlaylist(const QUrl &url)
|
|
||||||
{
|
|
||||||
QFileInfo info(url.toLocalFile());
|
|
||||||
QDir dir(info.path());
|
|
||||||
QString && currentFileName = info.fileName();
|
|
||||||
|
|
||||||
if (dir.path() == m_currentDir) {
|
|
||||||
int idx = indexOf(url);
|
|
||||||
return idx == -1 ? appendToPlaylist(url) : index(idx);
|
|
||||||
}
|
|
||||||
|
|
||||||
QStringList entryList = dir.entryList(
|
|
||||||
m_autoLoadSuffixes,
|
|
||||||
QDir::Files | QDir::NoSymLinks, QDir::NoSort);
|
|
||||||
|
|
||||||
QCollator collator;
|
|
||||||
collator.setNumericMode(true);
|
|
||||||
|
|
||||||
std::sort(entryList.begin(), entryList.end(), collator);
|
|
||||||
|
|
||||||
QList<QUrl> playlist;
|
|
||||||
|
|
||||||
int idx = -1;
|
|
||||||
for (int i = 0; i < entryList.count(); i++) {
|
|
||||||
const QString & fileName = entryList.at(i);
|
|
||||||
const QString & oneEntry = dir.absoluteFilePath(fileName);
|
|
||||||
const QUrl & url = QUrl::fromLocalFile(oneEntry);
|
|
||||||
playlist.append(url);
|
|
||||||
if (fileName == currentFileName) {
|
|
||||||
idx = i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (idx == -1) {
|
|
||||||
idx = playlist.count();
|
|
||||||
playlist.append(url);
|
|
||||||
}
|
|
||||||
m_currentDir = dir.path();
|
|
||||||
|
|
||||||
setPlaylist(playlist);
|
|
||||||
|
|
||||||
return index(idx);
|
|
||||||
}
|
|
||||||
|
|
||||||
QModelIndex PlaylistModel::appendToPlaylist(const QUrl &url)
|
|
||||||
{
|
|
||||||
const int lastIndex = rowCount();
|
|
||||||
beginInsertRows(QModelIndex(), lastIndex, lastIndex);
|
|
||||||
m_playlist.append(url);
|
|
||||||
endInsertRows();
|
|
||||||
return index(lastIndex);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool PlaylistModel::removeAt(int index)
|
|
||||||
{
|
|
||||||
if (index < 0 || index >= rowCount()) return false;
|
|
||||||
beginRemoveRows(QModelIndex(), index, index);
|
|
||||||
m_playlist.removeAt(index);
|
|
||||||
endRemoveRows();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
int PlaylistModel::indexOf(const QUrl &url) const
|
|
||||||
{
|
|
||||||
return m_playlist.indexOf(url);
|
|
||||||
}
|
|
||||||
|
|
||||||
QUrl PlaylistModel::urlByIndex(int index) const
|
|
||||||
{
|
|
||||||
return m_playlist.value(index);
|
|
||||||
}
|
|
||||||
|
|
||||||
QStringList PlaylistModel::autoLoadFilterSuffixes() const
|
|
||||||
{
|
|
||||||
return m_autoLoadSuffixes;
|
|
||||||
}
|
|
||||||
|
|
||||||
QHash<int, QByteArray> PlaylistModel::roleNames() const
|
|
||||||
{
|
|
||||||
QHash<int, QByteArray> result = QAbstractListModel::roleNames();
|
|
||||||
result.insert(UrlRole, "url");
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
int PlaylistModel::rowCount(const QModelIndex &parent) const
|
|
||||||
{
|
|
||||||
return m_playlist.count();
|
|
||||||
}
|
|
||||||
|
|
||||||
QVariant PlaylistModel::data(const QModelIndex &index, int role) const
|
|
||||||
{
|
|
||||||
if (!index.isValid()) return QVariant();
|
|
||||||
|
|
||||||
switch (role) {
|
|
||||||
case Qt::DisplayRole:
|
|
||||||
return m_playlist.at(index.row()).fileName();
|
|
||||||
case UrlRole:
|
|
||||||
return m_playlist.at(index.row());
|
|
||||||
}
|
|
||||||
|
|
||||||
return QVariant();
|
|
||||||
}
|
|
||||||
|
|
||||||
PlaylistManager::PlaylistManager(QObject *parent)
|
PlaylistManager::PlaylistManager(QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
|
, m_currentIndex(std::nullopt)
|
||||||
|
, m_playlist()
|
||||||
|
, m_allowedSuffixes()
|
||||||
{
|
{
|
||||||
connect(&m_model, &PlaylistModel::rowsRemoved, this,
|
|
||||||
[this](const QModelIndex &, int, int) {
|
|
||||||
if (m_model.rowCount() <= m_currentIndex) {
|
|
||||||
setProperty("currentIndex", m_currentIndex - 1);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
auto onRowCountChanged = [this](){
|
|
||||||
emit totalCountChanged(m_model.rowCount());
|
|
||||||
};
|
|
||||||
|
|
||||||
connect(&m_model, &PlaylistModel::rowsInserted, this, onRowCountChanged);
|
|
||||||
connect(&m_model, &PlaylistModel::rowsRemoved, this, onRowCountChanged);
|
|
||||||
connect(&m_model, &PlaylistModel::modelReset, this, onRowCountChanged);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PlaylistManager::~PlaylistManager()
|
PlaylistManager::~PlaylistManager()
|
||||||
@@ -164,92 +24,272 @@ PlaylistManager::~PlaylistManager()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PlaylistModel *PlaylistManager::model()
|
// region: Allowed Suffixes Operations
|
||||||
{
|
|
||||||
return &m_model;
|
const QStringList& PlaylistManager::allowedSuffixes() const {
|
||||||
|
return m_allowedSuffixes;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlaylistManager::setPlaylist(const QList<QUrl> &urls)
|
void PlaylistManager::setAllowedSuffixes(const QStringList& nameFilters) {
|
||||||
{
|
m_allowedSuffixes = nameFilters;
|
||||||
m_model.setPlaylist(urls);
|
emit allowedSuffixesChanged(m_allowedSuffixes);
|
||||||
}
|
}
|
||||||
|
|
||||||
QModelIndex PlaylistManager::loadPlaylist(const QList<QUrl> &urls)
|
// endregion
|
||||||
{
|
|
||||||
QModelIndex idx = m_model.loadPlaylist(urls);
|
// region: Playlist Loader and Reset
|
||||||
setProperty("currentIndex", idx.row());
|
|
||||||
return idx;
|
bool PlaylistManager::loadPlaylist(const QStringList& files) {
|
||||||
|
// Convert string list to url list first
|
||||||
|
QList<QUrl> urls;
|
||||||
|
for (const QString & file : std::as_const(files)) {
|
||||||
|
urls.append(urlFromString(file));
|
||||||
|
}
|
||||||
|
|
||||||
|
return loadPlaylist(urls);
|
||||||
}
|
}
|
||||||
|
|
||||||
QModelIndex PlaylistManager::loadPlaylist(const QUrl &url)
|
bool PlaylistManager::loadPlaylist(const QList<QUrl>& urls) {
|
||||||
{
|
// Check its count, and check M3U8 playlist for single file case.
|
||||||
QModelIndex idx = m_model.loadPlaylist(url);
|
if (urls.isEmpty()) {
|
||||||
setProperty("currentIndex", idx.row());
|
clearPlaylist();
|
||||||
return idx;
|
return true;
|
||||||
}
|
} else if (urls.count() == 1) {
|
||||||
|
const QUrl& firstUrl = urls.first();
|
||||||
int PlaylistManager::totalCount() const
|
const QString lowerCaseUrlPath(firstUrl.path().toLower());
|
||||||
{
|
if (lowerCaseUrlPath.endsWith(".m3u8") || lowerCaseUrlPath.endsWith(".m3u")) {
|
||||||
return m_model.rowCount();
|
return loadM3U8Playlist(firstUrl);
|
||||||
}
|
} else {
|
||||||
|
return loadSingleFilePlaylist(firstUrl);
|
||||||
QModelIndex PlaylistManager::previousIndex() const
|
}
|
||||||
{
|
} else {
|
||||||
int count = totalCount();
|
return loadMultipleFilesPlaylist(std::move(urls));
|
||||||
if (count == 0) return QModelIndex();
|
|
||||||
|
|
||||||
return m_model.index(m_currentIndex - 1 < 0 ? count - 1 : m_currentIndex - 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
QModelIndex PlaylistManager::nextIndex() const
|
|
||||||
{
|
|
||||||
int count = totalCount();
|
|
||||||
if (count == 0) return QModelIndex();
|
|
||||||
|
|
||||||
return m_model.index(m_currentIndex + 1 == count ? 0 : m_currentIndex + 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
QModelIndex PlaylistManager::curIndex() const
|
|
||||||
{
|
|
||||||
return m_model.index(m_currentIndex);
|
|
||||||
}
|
|
||||||
|
|
||||||
void PlaylistManager::setCurrentIndex(const QModelIndex &index)
|
|
||||||
{
|
|
||||||
if (index.isValid() && index.row() >= 0 && index.row() < totalCount()) {
|
|
||||||
setProperty("currentIndex", index.row());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QUrl PlaylistManager::urlByIndex(const QModelIndex &index)
|
bool PlaylistManager::loadSingleFilePlaylist(const QUrl& url) {
|
||||||
{
|
// Check URL at first
|
||||||
return m_model.urlByIndex(index.row());
|
if (!checkUrl(url))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// Scout playlist by given file
|
||||||
|
auto scoutResult = PlaylistScout::scout(url, m_allowedSuffixes);
|
||||||
|
if (!scoutResult.has_value()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Setup playlist with index
|
||||||
|
setPlaylist(std::move(scoutResult->playlist), scoutResult->indexHint);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString PlaylistManager::localFileByIndex(const QModelIndex &index)
|
bool PlaylistManager::loadMultipleFilesPlaylist(const QList<QUrl>&& urls) {
|
||||||
|
// Check all of them are valid
|
||||||
|
for (const auto& url : std::as_const(urls)) {
|
||||||
|
if (!checkUrl(url)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set playlist and return
|
||||||
|
setPlaylist(std::move(urls));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PlaylistManager::loadM3U8Playlist(const QUrl& url) {
|
||||||
|
// Check URL at first
|
||||||
|
if (!checkUrl(url))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
QList<QUrl> urls;
|
||||||
|
QFile file(url.toLocalFile());
|
||||||
|
if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||||
|
while (!file.atEnd()) {
|
||||||
|
QString line = file.readLine();
|
||||||
|
if (line.startsWith('#')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
QFileInfo fileInfo(file);
|
||||||
|
QUrl item = QUrl::fromUserInput(line, fileInfo.absolutePath());
|
||||||
|
if (!checkUrl(item)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
urls.append(item);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
setPlaylist(std::move(urls));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void PlaylistManager::setPlaylist(const QList<QUrl>&& urls, std::optional<qsizetype> indexHint) {
|
||||||
|
// Setup playlist
|
||||||
|
m_playlist = std::move(urls);
|
||||||
|
|
||||||
|
// Set index with hint
|
||||||
|
if (indexHint.has_value()) {
|
||||||
|
m_currentIndex = *indexHint;
|
||||||
|
}
|
||||||
|
sanitizeIndex();
|
||||||
|
|
||||||
|
// Raise signal
|
||||||
|
emit playlistChanged(totalCount());
|
||||||
|
}
|
||||||
|
|
||||||
|
void PlaylistManager::clearPlaylist() {
|
||||||
|
m_playlist.clear();
|
||||||
|
sanitizeIndex();
|
||||||
|
emit playlistChanged(this->totalCount());
|
||||||
|
}
|
||||||
|
|
||||||
|
// endregion
|
||||||
|
|
||||||
|
// region: Playlist Operations
|
||||||
|
|
||||||
|
void PlaylistManager::appendToPlaylist(const QString &file)
|
||||||
|
{
|
||||||
|
return appendToPlaylist(urlFromString(file));
|
||||||
|
}
|
||||||
|
|
||||||
|
void PlaylistManager::appendToPlaylist(const QUrl &url)
|
||||||
|
{
|
||||||
|
m_playlist.append(url);
|
||||||
|
sanitizeIndex();
|
||||||
|
emit playlistChanged(totalCount());
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PlaylistManager::insertIntoPlaylist(qsizetype index, const QString &file)
|
||||||
|
{
|
||||||
|
return insertIntoPlaylist(index, urlFromString(file));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PlaylistManager::insertIntoPlaylist(qsizetype index, const QUrl &url)
|
||||||
|
{
|
||||||
|
if (index < 0 || index > totalCount()) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
m_playlist.insert(index, url);
|
||||||
|
sanitizeIndex();
|
||||||
|
emit playlistChanged(totalCount());
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PlaylistManager::removeFromPlaylist(qsizetype index)
|
||||||
|
{
|
||||||
|
if (index < 0 || index >= totalCount()) {
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
m_playlist.removeAt(index);
|
||||||
|
sanitizeIndex();
|
||||||
|
emit playlistChanged(totalCount());
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// endregion
|
||||||
|
|
||||||
|
// region: Index Operations
|
||||||
|
|
||||||
|
qsizetype PlaylistManager::totalCount() const
|
||||||
|
{
|
||||||
|
return m_playlist.count();
|
||||||
|
}
|
||||||
|
|
||||||
|
std::optional<qsizetype> PlaylistManager::previousIndex() const
|
||||||
|
{
|
||||||
|
if (!m_currentIndex.has_value() || totalCount() <= 0) return std::nullopt;
|
||||||
|
return (isFirstIndex() ? totalCount() - 1 : *m_currentIndex - 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::optional<qsizetype> PlaylistManager::nextIndex() const
|
||||||
|
{
|
||||||
|
if (!m_currentIndex.has_value() || totalCount() <= 0) return std::nullopt;
|
||||||
|
return (isLastIndex() ? 0 : *m_currentIndex + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PlaylistManager::isFirstIndex() const
|
||||||
|
{
|
||||||
|
return m_currentIndex.has_value() && *m_currentIndex == 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PlaylistManager::isLastIndex() const
|
||||||
|
{
|
||||||
|
return m_currentIndex.has_value() && *m_currentIndex + 1 == totalCount();
|
||||||
|
}
|
||||||
|
|
||||||
|
std::optional<qsizetype> PlaylistManager::currentIndex() const
|
||||||
|
{
|
||||||
|
return m_currentIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PlaylistManager::setCurrentIndex(qsizetype index)
|
||||||
|
{
|
||||||
|
if (!m_currentIndex.has_value()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (index < 0 || index >= totalCount()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (*m_currentIndex == index) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_currentIndex = index;
|
||||||
|
emit currentIndexChanged(index);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
QUrl PlaylistManager::urlByIndex(qsizetype index) const
|
||||||
|
{
|
||||||
|
return m_playlist.value(index);
|
||||||
|
}
|
||||||
|
|
||||||
|
QString PlaylistManager::localFileByIndex(qsizetype index) const
|
||||||
{
|
{
|
||||||
return urlByIndex(index).toLocalFile();
|
return urlByIndex(index).toLocalFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PlaylistManager::removeAt(const QModelIndex &index)
|
// endregion
|
||||||
{
|
|
||||||
return m_model.removeAt(index.row());
|
|
||||||
}
|
|
||||||
|
|
||||||
void PlaylistManager::setAutoLoadFilterSuffixes(const QStringList &nameFilters)
|
// region: Misc
|
||||||
{
|
|
||||||
m_model.setProperty("autoLoadFilterSuffixes", nameFilters);
|
|
||||||
}
|
|
||||||
|
|
||||||
QList<QUrl> PlaylistManager::convertToUrlList(const QStringList &files)
|
void PlaylistManager::sanitizeIndex()
|
||||||
{
|
{
|
||||||
QList<QUrl> urlList;
|
auto cnt = totalCount();
|
||||||
for (const QString & str : std::as_const(files)) {
|
if (cnt == 0) {
|
||||||
QUrl url = QUrl::fromLocalFile(str);
|
// If playlist is empty, current index should be invalid.
|
||||||
if (url.isValid()) {
|
m_currentIndex = std::nullopt;
|
||||||
urlList.append(url);
|
} else {
|
||||||
|
if (m_currentIndex.has_value()) {
|
||||||
|
// Clamp current index in playlist range.
|
||||||
|
// If it is already in range, not change was done.
|
||||||
|
auto currentIndex = *m_currentIndex;
|
||||||
|
if (currentIndex < 0) {
|
||||||
|
m_currentIndex = 0;
|
||||||
|
} else if (currentIndex >= cnt) {
|
||||||
|
m_currentIndex = cnt - 1;
|
||||||
|
} else {
|
||||||
|
; // No change.
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// If there is no set value for current index,
|
||||||
|
// set it at the beginning of playlist.
|
||||||
|
m_currentIndex = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return urlList;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool PlaylistManager::checkUrl(const QUrl& url)
|
||||||
|
{
|
||||||
|
return url.isValid() && url.isLocalFile();
|
||||||
|
}
|
||||||
|
|
||||||
|
QUrl PlaylistManager::urlFromString(const QString& file)
|
||||||
|
{
|
||||||
|
return QUrl::fromLocalFile(file);
|
||||||
|
}
|
||||||
|
|
||||||
|
// endregion
|
||||||
@@ -1,85 +1,130 @@
|
|||||||
// SPDX-FileCopyrightText: 2024 Gary Wang <git@blumia.net>
|
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net>
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <QAbstractListModel>
|
#include <QObject>
|
||||||
|
#include <optional>
|
||||||
class PlaylistModel : public QAbstractListModel
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
enum PlaylistRole {
|
|
||||||
UrlRole = Qt::UserRole
|
|
||||||
};
|
|
||||||
Q_ENUM(PlaylistRole)
|
|
||||||
Q_PROPERTY(QStringList autoLoadFilterSuffixes MEMBER m_autoLoadSuffixes NOTIFY autoLoadFilterSuffixesChanged)
|
|
||||||
|
|
||||||
explicit PlaylistModel(QObject *parent = nullptr);
|
|
||||||
~PlaylistModel();
|
|
||||||
|
|
||||||
void setPlaylist(const QList<QUrl> & urls);
|
|
||||||
QModelIndex loadPlaylist(const QList<QUrl> & urls);
|
|
||||||
QModelIndex loadPlaylist(const QUrl & url);
|
|
||||||
QModelIndex appendToPlaylist(const QUrl & url);
|
|
||||||
bool removeAt(int index);
|
|
||||||
int indexOf(const QUrl & url) const;
|
|
||||||
QUrl urlByIndex(int index) const;
|
|
||||||
QStringList autoLoadFilterSuffixes() const;
|
|
||||||
|
|
||||||
QHash<int, QByteArray> roleNames() const override;
|
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
|
||||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
|
||||||
|
|
||||||
signals:
|
|
||||||
void autoLoadFilterSuffixesChanged(QStringList suffixes);
|
|
||||||
|
|
||||||
private:
|
|
||||||
// model data
|
|
||||||
QList<QUrl> m_playlist;
|
|
||||||
// properties
|
|
||||||
QStringList m_autoLoadSuffixes = {};
|
|
||||||
// internal
|
|
||||||
QString m_currentDir;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
/// The manager of playlist.
|
||||||
class PlaylistManager : public QObject
|
class PlaylistManager : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
Q_PROPERTY(int currentIndex MEMBER m_currentIndex NOTIFY currentIndexChanged)
|
/// Constructs a PlaylistManager with an optional parent QObject.
|
||||||
Q_PROPERTY(QStringList autoLoadFilterSuffixes WRITE setAutoLoadFilterSuffixes)
|
explicit PlaylistManager(QObject* parent = nullptr);
|
||||||
Q_PROPERTY(PlaylistModel * model READ model CONSTANT)
|
/// Destructor.
|
||||||
|
|
||||||
explicit PlaylistManager(QObject *parent = nullptr);
|
|
||||||
~PlaylistManager();
|
~PlaylistManager();
|
||||||
|
|
||||||
PlaylistModel * model();
|
/// Get the allowed file suffixes of this playlist.
|
||||||
|
/// @return The current list of allowed suffixes.
|
||||||
|
const QStringList& allowedSuffixes() const;
|
||||||
|
/// Set the allowed file suffixes of this playlist.
|
||||||
|
/// @remark This only works for "load the whole directory by one file" case.
|
||||||
|
/// @param[in] nameFilters The new list of allowed suffixes.
|
||||||
|
void setAllowedSuffixes(const QStringList& nameFilters);
|
||||||
|
|
||||||
void setPlaylist(const QList<QUrl> & url);
|
/// Load user specified files as playlist.
|
||||||
Q_INVOKABLE QModelIndex loadPlaylist(const QList<QUrl> & urls);
|
/// @remark The wrapper for another overload.
|
||||||
Q_INVOKABLE QModelIndex loadPlaylist(const QUrl & url);
|
/// @return True for successful load, otherwise false.
|
||||||
|
bool loadPlaylist(const QStringList& files);
|
||||||
|
/// Load user specified URLs as playlist.
|
||||||
|
/// @remark This function automatically dispatch these files into correct sub-load functions.
|
||||||
|
/// @return True for successful load, otherwise false.
|
||||||
|
bool loadPlaylist(const QList<QUrl>& urls);
|
||||||
|
/// Clear the entire playlist and reset current index.
|
||||||
|
void clearPlaylist();
|
||||||
|
|
||||||
int totalCount() const;
|
/// Append a local file path to the playlist.
|
||||||
QModelIndex previousIndex() const;
|
void appendToPlaylist(const QString& file);
|
||||||
QModelIndex nextIndex() const;
|
/// Append a URL to the playlist.
|
||||||
QModelIndex curIndex() const;
|
void appendToPlaylist(const QUrl& url);
|
||||||
void setCurrentIndex(const QModelIndex & index);
|
/// Insert a local file path at the given index.
|
||||||
QUrl urlByIndex(const QModelIndex & index);
|
/// @return True if inserted successfully, false if index is out of range.
|
||||||
QString localFileByIndex(const QModelIndex & index);
|
bool insertIntoPlaylist(qsizetype index, const QString& file);
|
||||||
bool removeAt(const QModelIndex & index);
|
/// Insert a URL at the given index.
|
||||||
|
/// @return True if inserted successfully, false if index is out of range.
|
||||||
|
bool insertIntoPlaylist(qsizetype index, const QUrl& url);
|
||||||
|
/// Remove the entry at the given index.
|
||||||
|
/// @return True if removed successfully, false if index is out of range.
|
||||||
|
bool removeFromPlaylist(qsizetype index);
|
||||||
|
|
||||||
void setAutoLoadFilterSuffixes(const QStringList &nameFilters);
|
/// Returns the total number of items in the playlist.
|
||||||
|
/// @return Total count of entries in the playlist.
|
||||||
static QList<QUrl> convertToUrlList(const QStringList & files);
|
qsizetype totalCount() const;
|
||||||
|
/// Try fetching previous index.
|
||||||
|
/// @details This previous index is gallery-loop-aware.
|
||||||
|
/// @return std::nullopt if playlist is empty, otherwise the previous index considering gallery loop.
|
||||||
|
std::optional<qsizetype> previousIndex() const;
|
||||||
|
/// Try fetching next index.
|
||||||
|
/// @details This next index is gallery-loop-aware.
|
||||||
|
/// @return std::nullopt if playlist is empty, otherwise the next index considering gallery loop.
|
||||||
|
std::optional<qsizetype> nextIndex() const;
|
||||||
|
/// Check whether current index is the first index.
|
||||||
|
/// @return False if current index is not the first index or playlist is empty, otherwise true.
|
||||||
|
bool isFirstIndex() const;
|
||||||
|
/// Check whether current index is the last index.
|
||||||
|
/// @return False if current index is not the last index or playlist is empty, otherwise true.
|
||||||
|
bool isLastIndex() const;
|
||||||
|
/// Returns the current index.
|
||||||
|
/// @return std::nullopt if the playlist is empty, otherwise the current index.
|
||||||
|
std::optional<qsizetype> currentIndex() const;
|
||||||
|
/// Set the current index.
|
||||||
|
/// @remark Index only can be set when playlist is not empty.
|
||||||
|
/// @return True if successful set, including "not changed" set, otherwise false.
|
||||||
|
/// This return value only indicates whether we can set index and given index is valid for setting.
|
||||||
|
/// If "no changed" set occurs, this function returns true, but doesn't raise current index changed signal.
|
||||||
|
bool setCurrentIndex(qsizetype index);
|
||||||
|
/// Returns the URL at the given index.
|
||||||
|
/// @return The URL if index is valid.
|
||||||
|
/// This class guarantee that this QUrl is pointing to a local file.
|
||||||
|
QUrl urlByIndex(qsizetype index) const;
|
||||||
|
/// Returns the local file path at the given index.
|
||||||
|
/// @return The local file path if index is valid.
|
||||||
|
/// This class guarantee that local file path always is valid.
|
||||||
|
QString localFileByIndex(qsizetype index) const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void currentIndexChanged(int index);
|
void allowedSuffixesChanged(const QStringList& suffixes);
|
||||||
void totalCountChanged(int count);
|
/// Raised when index was changed bu setter.
|
||||||
|
/// The argument holds the new current index.
|
||||||
|
/// Please note that this signal will NOT be raised by the whole playlist change caused index change.
|
||||||
|
void currentIndexChanged(qsizetype index);
|
||||||
|
/// The whole playlist was changed, involving loading, editing and deleting some or full entries.
|
||||||
|
/// The argument holds the total count of new play list.
|
||||||
|
void playlistChanged(qsizetype count);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_currentIndex = -1;
|
/// The fundamental playlist setter.
|
||||||
PlaylistModel m_model;
|
/// @details All playlist load functions will call this function to set playlist at last.
|
||||||
|
/// @param[in] urls ALl urls in this list should be checked by checkUrl() function.
|
||||||
|
/// @param[in] indexHint Try to set current index to this index if possible.
|
||||||
|
void setPlaylist(const QList<QUrl>&& urls, std::optional<qsizetype> indexHint = std::nullopt);
|
||||||
|
/// Load playlist from a single file.
|
||||||
|
/// @details This function scans the same directory for siblings matching allowed suffixes, sorted naturally.
|
||||||
|
/// @return True if the playlist was loaded successfully, false otherwise.
|
||||||
|
bool loadSingleFilePlaylist(const QUrl& url);
|
||||||
|
/// Load playlist from multiple URLs directly.
|
||||||
|
/// @return True if all URLs are valid, false otherwise.
|
||||||
|
bool loadMultipleFilesPlaylist(const QList<QUrl>&& urls);
|
||||||
|
/// Load playlist from an M3U/M3U8 playlist file.
|
||||||
|
/// @return True if loaded successfully, false otherwise.
|
||||||
|
bool loadM3U8Playlist(const QUrl& url);
|
||||||
|
|
||||||
|
/// Make sure that current index is valid.
|
||||||
|
/// @details This function usually is used by those functions manipulating playlist.
|
||||||
|
void sanitizeIndex();
|
||||||
|
|
||||||
|
/// Check whether given QUrl is proper to be put into playlist.
|
||||||
|
/// @details Only the url pointing to local file can be put into playlist.
|
||||||
|
static bool checkUrl(const QUrl& url);
|
||||||
|
/// Convert a string to local file into a QUrl.
|
||||||
|
/// @param[in] file The string pointing to local file.
|
||||||
|
static QUrl urlFromString(const QString& file);
|
||||||
|
|
||||||
|
std::optional<qsizetype> m_currentIndex;
|
||||||
|
QList<QUrl> m_playlist;
|
||||||
|
QStringList m_allowedSuffixes;
|
||||||
};
|
};
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 yyc12345 <yyc12321@outlook.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
#include "playlistscout.h"
|
||||||
|
|
||||||
|
#include "playlistscouts/qtscout.h"
|
||||||
|
#include "playlistscouts/explorerscout.h"
|
||||||
|
|
||||||
|
std::optional<PlaylistScout::ScoutResult> PlaylistScout::scout(
|
||||||
|
const QUrl &url, const QStringList &allowedSuffixes) {
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
// In Windows, Qt approach can not aware Windows Explorer custom sort order.
|
||||||
|
// So we need to try using Win32 functions for fetching it at first.
|
||||||
|
if (auto rv = PlaylistScout::Explorer::scout(url, allowedSuffixes); rv.has_value()) {
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
#endif // Q_OS_WIN
|
||||||
|
|
||||||
|
// TODO: We may add macOS Finder, KDE Dolphin and etc supports in future.
|
||||||
|
|
||||||
|
// Qt way is the last fallback.
|
||||||
|
return PlaylistScout::Qt::scout(url, allowedSuffixes);
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 yyc12345 <yyc12321@outlook.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QUrl>
|
||||||
|
#include <QStringList>
|
||||||
|
#include <QList>
|
||||||
|
#include <optional>
|
||||||
|
|
||||||
|
namespace PlaylistScout {
|
||||||
|
/// The result of scout
|
||||||
|
struct ScoutResult {
|
||||||
|
/// The final fetched playlist (it can be empty).
|
||||||
|
/// Each item must be a QUrl pointing to a local file.
|
||||||
|
QList<QUrl> playlist;
|
||||||
|
/// The index of given file located in playlist.
|
||||||
|
/// Nullopt if it is not presented in playlist.
|
||||||
|
std::optional<qsizetype> indexHint;
|
||||||
|
};
|
||||||
|
|
||||||
|
/// @brief Scout available image files in given file's parent dir with given allowed suffixes.
|
||||||
|
/// @param[in] url The path to file whose parent dir is our target dir for finding image files.
|
||||||
|
/// @param[in] allowedSuffixes
|
||||||
|
/// Each items in this list is a wildcard pattern for matching allowed file name, like \c *.png .
|
||||||
|
/// The fetched item will be preserved if its name matching any of them.
|
||||||
|
/// If this list is empty, there is no restrictions for finding files.
|
||||||
|
/// @return Scout result if success, otherwise nullopt.
|
||||||
|
std::optional<ScoutResult> scout(const QUrl &url, const QStringList &allowedSuffixes);
|
||||||
|
}
|
||||||
@@ -0,0 +1,332 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 yyc12345 <yyc12321@outlook.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
#include "explorerscout.h"
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
|
||||||
|
#include <QDir>
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QFileInfo>
|
||||||
|
#include <QRegularExpression>
|
||||||
|
|
||||||
|
#include <optional>
|
||||||
|
|
||||||
|
#include <exdisp.h> // IShellWindows, CLSID_ShellWindows
|
||||||
|
#include <servprov.h> // IServiceProvider
|
||||||
|
#include <shlguid.h> // SID_STopLevelBrowser
|
||||||
|
#include <shlobj.h>
|
||||||
|
|
||||||
|
// YYC MARK:
|
||||||
|
// We use custom RAII wrappers instead of existing COM smart pointers because the
|
||||||
|
// project may be built with MinGW, which does not have good compatibility with
|
||||||
|
// CComPtr and Microsoft's WRL ComPtr (<wrl/client.h>).
|
||||||
|
// Furthermore, PIDLs are not COM objects (they are freed via ILFree, not Release),
|
||||||
|
// so no standard smart pointer covers them regardless of compiler.
|
||||||
|
|
||||||
|
/// RAII wrapper for COM initialization (CoInitialize / CoUninitialize).
|
||||||
|
/// Must be declared before any COM objects (e.g., ComPtr, UniquePidl) so that
|
||||||
|
/// CoUninitialize runs after all COM objects are released during scope exit.
|
||||||
|
class ComGuard {
|
||||||
|
public:
|
||||||
|
ComGuard() : m_hr(CoInitialize(nullptr)) {}
|
||||||
|
~ComGuard() { if (SUCCEEDED(m_hr)) CoUninitialize(); }
|
||||||
|
ComGuard(const ComGuard&) = delete;
|
||||||
|
ComGuard& operator=(const ComGuard&) = delete;
|
||||||
|
|
||||||
|
bool IsInitialized() const { return SUCCEEDED(m_hr); }
|
||||||
|
|
||||||
|
private:
|
||||||
|
HRESULT m_hr;
|
||||||
|
};
|
||||||
|
|
||||||
|
/// RAII wrapper for COM interface pointers.
|
||||||
|
template <typename T>
|
||||||
|
class ComPtr {
|
||||||
|
public:
|
||||||
|
ComPtr() = default;
|
||||||
|
ComPtr(std::nullptr_t) {}
|
||||||
|
~ComPtr() { Reset(); }
|
||||||
|
ComPtr(const ComPtr&) = delete;
|
||||||
|
ComPtr& operator=(const ComPtr&) = delete;
|
||||||
|
ComPtr(ComPtr&& other) noexcept : m_ptr(other.m_ptr) { other.m_ptr = nullptr; }
|
||||||
|
ComPtr& operator=(ComPtr&& other) noexcept {
|
||||||
|
if (this != &other) {
|
||||||
|
Reset();
|
||||||
|
m_ptr = other.m_ptr;
|
||||||
|
other.m_ptr = nullptr;
|
||||||
|
}
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
T* operator->() const { return m_ptr; }
|
||||||
|
T* Get() const { return m_ptr; }
|
||||||
|
T** GetAddressOf() { return &m_ptr; }
|
||||||
|
explicit operator bool() const { return m_ptr != nullptr; }
|
||||||
|
void Reset() { if (m_ptr) { m_ptr->Release(); m_ptr = nullptr; } }
|
||||||
|
|
||||||
|
private:
|
||||||
|
T* m_ptr = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
|
/// RAII wrapper for PIDL (Item ID List).
|
||||||
|
class UniquePidl {
|
||||||
|
public:
|
||||||
|
UniquePidl() = default;
|
||||||
|
explicit UniquePidl(LPITEMIDLIST pidl) : m_pidl(pidl) {}
|
||||||
|
~UniquePidl() { Reset(); }
|
||||||
|
UniquePidl(const UniquePidl&) = delete;
|
||||||
|
UniquePidl& operator=(const UniquePidl&) = delete;
|
||||||
|
UniquePidl(UniquePidl&& other) noexcept : m_pidl(other.m_pidl) { other.m_pidl = nullptr; }
|
||||||
|
UniquePidl& operator=(UniquePidl&& other) noexcept {
|
||||||
|
if (this != &other) {
|
||||||
|
Reset();
|
||||||
|
m_pidl = other.m_pidl;
|
||||||
|
other.m_pidl = nullptr;
|
||||||
|
}
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
LPCITEMIDLIST Get() const { return m_pidl; }
|
||||||
|
LPITEMIDLIST* GetAddressOf() { return &m_pidl; }
|
||||||
|
explicit operator bool() const { return m_pidl != nullptr; }
|
||||||
|
void Reset() { if (m_pidl) { ILFree(m_pidl); m_pidl = nullptr; } }
|
||||||
|
|
||||||
|
private:
|
||||||
|
LPITEMIDLIST m_pidl = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
|
/// Outputs a diagnostic warning for debugging Windows Explorer integration failures.
|
||||||
|
static void ReportError(const QString& detail)
|
||||||
|
{
|
||||||
|
qWarning("Windows Explorer file list fetch error: %s",
|
||||||
|
qPrintable(detail));
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Normalizes a Windows directory path for case-insensitive comparison:
|
||||||
|
/// converts to native separators, lowercases, and ensures a trailing backslash.
|
||||||
|
static QString NormalizePath(const QString& path)
|
||||||
|
{
|
||||||
|
QString result = QDir::toNativeSeparators(path).toLower();
|
||||||
|
if (!result.endsWith(QChar('\\'))) {
|
||||||
|
result += QChar('\\');
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Checks whether the Explorer window represented by the given IDispatch is
|
||||||
|
/// displaying the target folder. Returns its IFolderView2 on match, or null.
|
||||||
|
static ComPtr<IFolderView2> TryMatchWindow(IDispatch* dispatch, const QString& normalizedTarget)
|
||||||
|
{
|
||||||
|
// Navigate: IDispatch -> IServiceProvider -> IShellBrowser.
|
||||||
|
ComPtr<IServiceProvider> serviceProvider;
|
||||||
|
if (FAILED(dispatch->QueryInterface(IID_PPV_ARGS(serviceProvider.GetAddressOf())))) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
ComPtr<IShellBrowser> shellBrowser;
|
||||||
|
if (FAILED(serviceProvider->QueryService(SID_STopLevelBrowser,
|
||||||
|
IID_PPV_ARGS(shellBrowser.GetAddressOf())))) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
// IShellBrowser -> active IShellView.
|
||||||
|
ComPtr<IShellView> shellView;
|
||||||
|
if (FAILED(shellBrowser->QueryActiveShellView(shellView.GetAddressOf()))) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Retrieve the folder's path via IPersistIDList.
|
||||||
|
ComPtr<IPersistIDList> persistIdList;
|
||||||
|
if (FAILED(shellView->QueryInterface(IID_PPV_ARGS(persistIdList.GetAddressOf())))) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
UniquePidl folderPidl;
|
||||||
|
if (FAILED(persistIdList->GetIDList(folderPidl.GetAddressOf()))) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
PWSTR pathStr = nullptr;
|
||||||
|
if (FAILED(SHGetNameFromIDList(folderPidl.Get(), SIGDN_DESKTOPABSOLUTEPARSING, &pathStr))) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString windowPath = NormalizePath(QString::fromWCharArray(pathStr));
|
||||||
|
CoTaskMemFree(pathStr);
|
||||||
|
|
||||||
|
if (windowPath != normalizedTarget) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Path matches — query IFolderView2 from the ShellView.
|
||||||
|
ComPtr<IFolderView2> folderView2;
|
||||||
|
if (FAILED(shellView->QueryInterface(IID_PPV_ARGS(folderView2.GetAddressOf())))) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
return folderView2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Tries to find a live Explorer window that is currently displaying the given
|
||||||
|
/// folder path. Returns the IFolderView2 from that window, or an empty ComPtr.
|
||||||
|
///
|
||||||
|
/// Explorer's sort order is stored only in the running Explorer process's memory.
|
||||||
|
/// Creating a new shell view via IShellFolder::CreateViewObject yields a default
|
||||||
|
/// sort (always by name), so we must find the actual live IFolderView2 instead.
|
||||||
|
///
|
||||||
|
/// Reference:
|
||||||
|
/// - https://www.stephenli.ca/getting-windows-explorers-current-directory-sort-order
|
||||||
|
/// - https://github.com/d2phap/ImageGlass/blob/75a296287f338edcf409eee3917531b25ff5d927/v9/Components/ImageGlass.Base/FileSystem/FileFinder.cs
|
||||||
|
/// - NuGet Package: D2Phap.EggShell
|
||||||
|
static ComPtr<IFolderView2> FindLiveFolderView(const QString& targetFolderPath)
|
||||||
|
{
|
||||||
|
// Create the Shell windows collection (all open Explorer windows).
|
||||||
|
ComPtr<IShellWindows> shellWindows;
|
||||||
|
if (FAILED(CoCreateInstance(CLSID_ShellWindows, nullptr, CLSCTX_ALL,
|
||||||
|
IID_PPV_ARGS(shellWindows.GetAddressOf())))) {
|
||||||
|
ReportError("Failed to create IShellWindows instance");
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString normalizedTarget = NormalizePath(targetFolderPath);
|
||||||
|
|
||||||
|
// 1. Try the Desktop window first — it may contain the file the user opened.
|
||||||
|
{
|
||||||
|
VARIANT varLoc;
|
||||||
|
VariantInit(&varLoc);
|
||||||
|
varLoc.vt = VT_I4;
|
||||||
|
varLoc.lVal = 0;
|
||||||
|
|
||||||
|
VARIANT varLocRoot;
|
||||||
|
VariantInit(&varLocRoot);
|
||||||
|
|
||||||
|
long desktopHwnd = 0;
|
||||||
|
ComPtr<IDispatch> desktopDispatch;
|
||||||
|
HRESULT findHr = shellWindows->FindWindowSW(
|
||||||
|
&varLoc, &varLocRoot, SWC_DESKTOP,
|
||||||
|
&desktopHwnd, SWFO_NEEDDISPATCH,
|
||||||
|
desktopDispatch.GetAddressOf());
|
||||||
|
|
||||||
|
VariantClear(&varLoc);
|
||||||
|
VariantClear(&varLocRoot);
|
||||||
|
|
||||||
|
if (SUCCEEDED(findHr) && desktopDispatch) {
|
||||||
|
ComPtr<IFolderView2> result = TryMatchWindow(desktopDispatch.Get(), normalizedTarget);
|
||||||
|
if (result) return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 2. Iterate regular Explorer windows.
|
||||||
|
LONG count = 0;
|
||||||
|
shellWindows->get_Count(&count);
|
||||||
|
|
||||||
|
for (LONG i = 0; i < count; i++) {
|
||||||
|
VARIANT varIndex;
|
||||||
|
VariantInit(&varIndex);
|
||||||
|
varIndex.vt = VT_I4;
|
||||||
|
varIndex.lVal = i;
|
||||||
|
|
||||||
|
ComPtr<IDispatch> dispatch;
|
||||||
|
HRESULT itemHr = shellWindows->Item(varIndex, dispatch.GetAddressOf());
|
||||||
|
VariantClear(&varIndex);
|
||||||
|
|
||||||
|
if (FAILED(itemHr) || !dispatch) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
ComPtr<IFolderView2> result = TryMatchWindow(dispatch.Get(), normalizedTarget);
|
||||||
|
if (result) return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::optional<PlaylistScout::ScoutResult> PlaylistScout::Explorer::scout(
|
||||||
|
const QUrl &url, const QStringList &allowedSuffixes) {
|
||||||
|
PlaylistScout::ScoutResult rv;
|
||||||
|
|
||||||
|
QFileInfo info(url.toLocalFile());
|
||||||
|
QString folderPath = info.path();
|
||||||
|
QString currentFileName = info.fileName();
|
||||||
|
|
||||||
|
// Pre-compile wildcard suffix filters into regular expressions for performance.
|
||||||
|
QList<QRegularExpression> nameRegexps;
|
||||||
|
for (const QString &pattern : allowedSuffixes) {
|
||||||
|
nameRegexps.append(QRegularExpression(
|
||||||
|
QRegularExpression::wildcardToRegularExpression(pattern),
|
||||||
|
QRegularExpression::CaseInsensitiveOption));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Initialize COM. The ComGuard must be declared before any COM objects
|
||||||
|
// below so that CoUninitialize runs after all of them are released.
|
||||||
|
ComGuard comGuard;
|
||||||
|
if (!comGuard.IsInitialized()) {
|
||||||
|
ReportError("COM initialization failed");
|
||||||
|
return std::nullopt;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Find a live Explorer window that is currently displaying the target folder.
|
||||||
|
ComPtr<IFolderView2> folderView2 = FindLiveFolderView(folderPath);
|
||||||
|
if (!folderView2) {
|
||||||
|
ReportError("No open Explorer window matches the folder: " + folderPath);
|
||||||
|
return std::nullopt;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get items already sorted in Explorer's view order, as an IShellItemArray.
|
||||||
|
// SVGIO_ALLVIEW returns all items; SVGIO_FLAG_VIEWORDER respects the view's sort.
|
||||||
|
ComPtr<IShellItemArray> itemArray;
|
||||||
|
if (FAILED(folderView2->Items(SVGIO_ALLVIEW | SVGIO_FLAG_VIEWORDER,
|
||||||
|
IID_PPV_ARGS(itemArray.GetAddressOf())))) {
|
||||||
|
ReportError("IFolderView2::Items(SVGIO_ALLVIEW | SVGIO_FLAG_VIEWORDER) failed");
|
||||||
|
return std::nullopt;
|
||||||
|
}
|
||||||
|
|
||||||
|
DWORD itemCount = 0;
|
||||||
|
itemArray->GetCount(&itemCount);
|
||||||
|
|
||||||
|
// Enumerate sorted items, filter by pattern, and build the playlist.
|
||||||
|
for (DWORD i = 0; i < itemCount; i++) {
|
||||||
|
ComPtr<IShellItem> shellItem;
|
||||||
|
if (FAILED(itemArray->GetItemAt(i, shellItem.GetAddressOf()))) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the full parsing path of the item.
|
||||||
|
PWSTR pathStr = nullptr;
|
||||||
|
if (FAILED(shellItem->GetDisplayName(SIGDN_DESKTOPABSOLUTEPARSING, &pathStr)) || !pathStr) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
QString filePath = QString::fromWCharArray(pathStr);
|
||||||
|
CoTaskMemFree(pathStr);
|
||||||
|
|
||||||
|
// Skip directories — the view may include folders alongside files.
|
||||||
|
QFileInfo fileInfo(filePath);
|
||||||
|
if (!fileInfo.isFile()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString fileName = fileInfo.fileName();
|
||||||
|
|
||||||
|
// Match against compiled wildcard patterns.
|
||||||
|
bool matches = nameRegexps.isEmpty();
|
||||||
|
for (const QRegularExpression &re : std::as_const(nameRegexps)) {
|
||||||
|
if (re.match(fileName).hasMatch()) {
|
||||||
|
matches = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!matches) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
rv.playlist.append(QUrl::fromLocalFile(filePath));
|
||||||
|
if (fileName == currentFileName) {
|
||||||
|
rv.indexHint = rv.playlist.size() - 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // Q_OS_WIN
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 yyc12345 <yyc12321@outlook.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "../playlistscout.h"
|
||||||
|
#include <QtSystemDetection>
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
|
||||||
|
namespace PlaylistScout::Explorer {
|
||||||
|
std::optional<ScoutResult> scout(const QUrl &url, const QStringList &allowedSuffixes);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // Q_OS_WIN
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net>
|
||||||
|
// SPDX-FileCopyrightText: 2026 yyc12345 <yyc12321@outlook.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
#include "qtscout.h"
|
||||||
|
|
||||||
|
#include <QFileInfo>
|
||||||
|
#include <QDir>
|
||||||
|
#include <QCollator>
|
||||||
|
|
||||||
|
std::optional<PlaylistScout::ScoutResult> PlaylistScout::Qt::scout(
|
||||||
|
const QUrl &url, const QStringList &allowedSuffixes) {
|
||||||
|
PlaylistScout::ScoutResult rv;
|
||||||
|
|
||||||
|
QFileInfo info(url.toLocalFile());
|
||||||
|
QDir dir(info.path());
|
||||||
|
QString currentFileName = info.fileName();
|
||||||
|
|
||||||
|
QStringList entryList = dir.entryList(
|
||||||
|
allowedSuffixes, QDir::Files | QDir::NoSymLinks, QDir::NoSort);
|
||||||
|
|
||||||
|
QCollator collator;
|
||||||
|
collator.setNumericMode(true);
|
||||||
|
|
||||||
|
std::sort(entryList.begin(), entryList.end(), collator);
|
||||||
|
|
||||||
|
for (qsizetype i = 0; i < entryList.count(); i++) {
|
||||||
|
const QString &fileName = entryList.at(i);
|
||||||
|
const QString &oneEntry = dir.absoluteFilePath(fileName);
|
||||||
|
const QUrl &url = QUrl::fromLocalFile(oneEntry);
|
||||||
|
|
||||||
|
rv.playlist.append(url);
|
||||||
|
if (fileName == currentFileName) {
|
||||||
|
rv.indexHint = i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2026 yyc12345 <yyc12321@outlook.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "../playlistscout.h"
|
||||||
|
|
||||||
|
namespace PlaylistScout::Qt {
|
||||||
|
std::optional<ScoutResult> scout(const QUrl &url, const QStringList &allowedSuffixes);
|
||||||
|
}
|
||||||
@@ -8,8 +8,19 @@
|
|||||||
#include <QStandardPaths>
|
#include <QStandardPaths>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
#include <QAction>
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QKeySequence>
|
||||||
#include <QMetaEnum>
|
#include <QMetaEnum>
|
||||||
|
|
||||||
|
Settings *Settings::instance()
|
||||||
|
{
|
||||||
|
// SAFETY:
|
||||||
|
// This is a global singleton and it is leaked by design.
|
||||||
|
static Settings* INSTANCE = new Settings(nullptr);
|
||||||
|
return INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
namespace QEnumHelper
|
namespace QEnumHelper
|
||||||
{
|
{
|
||||||
template <typename E>
|
template <typename E>
|
||||||
@@ -31,58 +42,55 @@ namespace QEnumHelper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Settings *Settings::m_settings_instance = nullptr;
|
bool Settings::showNavigatorView() const
|
||||||
|
|
||||||
Settings *Settings::instance()
|
|
||||||
{
|
{
|
||||||
if (!m_settings_instance) {
|
return m_qsettings->value("show_navigator_view", true).toBool();
|
||||||
m_settings_instance = new Settings;
|
|
||||||
}
|
|
||||||
|
|
||||||
return m_settings_instance;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Settings::stayOnTop()
|
bool Settings::useLightCheckerboard() const
|
||||||
{
|
|
||||||
return m_qsettings->value("stay_on_top", true).toBool();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Settings::useLightCheckerboard()
|
|
||||||
{
|
{
|
||||||
return m_qsettings->value("use_light_checkerboard", false).toBool();
|
return m_qsettings->value("use_light_checkerboard", false).toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
Settings::DoubleClickBehavior Settings::doubleClickBehavior() const
|
bool Settings::loopGallery() const
|
||||||
{
|
{
|
||||||
QString result = m_qsettings->value("double_click_behavior", "Close").toString();
|
return m_qsettings->value("loop_gallery", true).toBool();
|
||||||
|
}
|
||||||
|
|
||||||
return QEnumHelper::fromString<DoubleClickBehavior>(result, DoubleClickBehavior::Close);
|
bool Settings::svgTiny12Only() const
|
||||||
|
{
|
||||||
|
// Qt 6.7.0's SVG support is terrible caused by huge memory usage, see QTBUG-124287
|
||||||
|
// Qt 6.7.1's is somewhat better, memory issue seems fixed, but still laggy when zoom in, see QTBUG-126771.
|
||||||
|
// Qt 6.9.3 and Qt 6.10.1 seems no longer have the laggy issue, so let's make the default value different
|
||||||
|
// based on Qt version.
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 9, 3)
|
||||||
|
return m_qsettings->value("svg_tiny12_only", true).toBool();
|
||||||
|
#else
|
||||||
|
return m_qsettings->value("svg_tiny12_only", false).toBool();
|
||||||
|
#endif // QT_VERSION < QT_VERSION_CHECK(6, 9, 3)
|
||||||
}
|
}
|
||||||
|
|
||||||
Settings::MouseWheelBehavior Settings::mouseWheelBehavior() const
|
Settings::MouseWheelBehavior Settings::mouseWheelBehavior() const
|
||||||
{
|
{
|
||||||
QString result = m_qsettings->value("mouse_wheel_behavior", "Zoom").toString();
|
QString result = m_qsettings->value("mouse_wheel_behavior", "").toString();
|
||||||
|
|
||||||
return QEnumHelper::fromString<MouseWheelBehavior>(result, MouseWheelBehavior::Zoom);
|
return QEnumHelper::fromString<MouseWheelBehavior>(result, MouseWheelBehavior::Zoom);
|
||||||
}
|
}
|
||||||
|
|
||||||
Settings::WindowSizeBehavior Settings::initWindowSizeBehavior() const
|
Settings::WindowSizeBehavior Settings::initWindowSizeBehavior() const
|
||||||
{
|
{
|
||||||
QString result = m_qsettings->value("init_window_size_behavior", "Auto").toString();
|
QString result = m_qsettings->value("init_window_size_behavior", "").toString();
|
||||||
|
return QEnumHelper::fromString<WindowSizeBehavior>(result, WindowSizeBehavior::Windowed);
|
||||||
return QEnumHelper::fromString<WindowSizeBehavior>(result, WindowSizeBehavior::Auto);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Qt::HighDpiScaleFactorRoundingPolicy Settings::hiDpiScaleFactorBehavior() const
|
Qt::HighDpiScaleFactorRoundingPolicy Settings::hiDpiScaleFactorBehavior() const
|
||||||
{
|
{
|
||||||
QString result = m_qsettings->value("hidpi_scale_factor_behavior", "PassThrough").toString();
|
QString result = m_qsettings->value("hidpi_scale_factor_behavior", "").toString();
|
||||||
|
|
||||||
return QEnumHelper::fromString<Qt::HighDpiScaleFactorRoundingPolicy>(result, Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
return QEnumHelper::fromString<Qt::HighDpiScaleFactorRoundingPolicy>(result, Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Settings::setStayOnTop(bool on)
|
void Settings::setShowNavigatorView(bool on)
|
||||||
{
|
{
|
||||||
m_qsettings->setValue("stay_on_top", on);
|
m_qsettings->setValue("show_navigator_view", on);
|
||||||
m_qsettings->sync();
|
m_qsettings->sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,9 +100,15 @@ void Settings::setUseLightCheckerboard(bool light)
|
|||||||
m_qsettings->sync();
|
m_qsettings->sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Settings::setDoubleClickBehavior(DoubleClickBehavior dcb)
|
void Settings::setLoopGallery(bool on)
|
||||||
{
|
{
|
||||||
m_qsettings->setValue("double_click_behavior", QEnumHelper::toString(dcb));
|
m_qsettings->setValue("loop_gallery", on);
|
||||||
|
m_qsettings->sync();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Settings::setSvgTiny12Only(bool on)
|
||||||
|
{
|
||||||
|
m_qsettings->setValue("svg_tiny12_only", on);
|
||||||
m_qsettings->sync();
|
m_qsettings->sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,8 +148,8 @@ QString getApplicationDirPath()
|
|||||||
}
|
}
|
||||||
#endif // defined(FLAG_PORTABLE_MODE_SUPPORT) && defined(Q_OS_WIN)
|
#endif // defined(FLAG_PORTABLE_MODE_SUPPORT) && defined(Q_OS_WIN)
|
||||||
|
|
||||||
Settings::Settings()
|
Settings::Settings(QObject *parent)
|
||||||
: QObject(qApp)
|
: QObject(parent)
|
||||||
{
|
{
|
||||||
QString configPath;
|
QString configPath;
|
||||||
|
|
||||||
@@ -154,5 +168,7 @@ Settings::Settings()
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_qsettings = new QSettings(QDir(configPath).absoluteFilePath("config.ini"), QSettings::IniFormat, this);
|
m_qsettings = new QSettings(QDir(configPath).absoluteFilePath("config.ini"), QSettings::IniFormat, this);
|
||||||
|
|
||||||
|
qRegisterMetaType<QList<QKeySequence>>();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -11,13 +11,6 @@ class Settings : public QObject
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
enum DoubleClickBehavior {
|
|
||||||
Ignore,
|
|
||||||
Close,
|
|
||||||
Maximize,
|
|
||||||
};
|
|
||||||
Q_ENUM(DoubleClickBehavior)
|
|
||||||
|
|
||||||
enum MouseWheelBehavior {
|
enum MouseWheelBehavior {
|
||||||
Zoom,
|
Zoom,
|
||||||
Switch,
|
Switch,
|
||||||
@@ -25,31 +18,31 @@ public:
|
|||||||
Q_ENUM(MouseWheelBehavior)
|
Q_ENUM(MouseWheelBehavior)
|
||||||
|
|
||||||
enum WindowSizeBehavior {
|
enum WindowSizeBehavior {
|
||||||
Auto,
|
|
||||||
Maximized,
|
Maximized,
|
||||||
|
Windowed,
|
||||||
};
|
};
|
||||||
Q_ENUM(WindowSizeBehavior)
|
Q_ENUM(WindowSizeBehavior)
|
||||||
|
|
||||||
static Settings *instance();
|
static Settings *instance();
|
||||||
|
|
||||||
bool stayOnTop();
|
bool showNavigatorView() const;
|
||||||
bool useLightCheckerboard();
|
bool useLightCheckerboard() const;
|
||||||
DoubleClickBehavior doubleClickBehavior() const;
|
bool loopGallery() const;
|
||||||
|
bool svgTiny12Only() const;
|
||||||
MouseWheelBehavior mouseWheelBehavior() const;
|
MouseWheelBehavior mouseWheelBehavior() const;
|
||||||
WindowSizeBehavior initWindowSizeBehavior() const;
|
WindowSizeBehavior initWindowSizeBehavior() const;
|
||||||
Qt::HighDpiScaleFactorRoundingPolicy hiDpiScaleFactorBehavior() const;
|
Qt::HighDpiScaleFactorRoundingPolicy hiDpiScaleFactorBehavior() const;
|
||||||
|
|
||||||
void setStayOnTop(bool on);
|
void setShowNavigatorView(bool on);
|
||||||
void setUseLightCheckerboard(bool light);
|
void setUseLightCheckerboard(bool light);
|
||||||
void setDoubleClickBehavior(DoubleClickBehavior dcb);
|
void setLoopGallery(bool on);
|
||||||
|
void setSvgTiny12Only(bool on);
|
||||||
void setMouseWheelBehavior(MouseWheelBehavior mwb);
|
void setMouseWheelBehavior(MouseWheelBehavior mwb);
|
||||||
void setInitWindowSizeBehavior(WindowSizeBehavior wsb);
|
void setInitWindowSizeBehavior(WindowSizeBehavior wsb);
|
||||||
void setHiDpiScaleFactorBehavior(Qt::HighDpiScaleFactorRoundingPolicy hidpi);
|
void setHiDpiScaleFactorBehavior(Qt::HighDpiScaleFactorRoundingPolicy hidpi);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Settings();
|
Settings(QObject *parent = nullptr);
|
||||||
|
|
||||||
static Settings *m_settings_instance;
|
|
||||||
|
|
||||||
QSettings *m_qsettings;
|
QSettings *m_qsettings;
|
||||||
|
|
||||||
@@ -57,4 +50,3 @@ signals:
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3,126 +3,143 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#include "settingsdialog.h"
|
#include "settingsdialog.h"
|
||||||
|
#include "ui_settingsdialog.h"
|
||||||
|
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
#include <QCheckBox>
|
#include <QApplication>
|
||||||
#include <QComboBox>
|
#include <QTimer>
|
||||||
#include <QFormLayout>
|
|
||||||
#include <QStringListModel>
|
#include <QStringListModel>
|
||||||
|
#include <type_traits>
|
||||||
|
|
||||||
|
template <typename E, typename = std::enable_if_t<std::is_enum_v<E>>>
|
||||||
|
class EnumComboBoxTransformer {
|
||||||
|
public:
|
||||||
|
using Pair = QPair<E, QString>;
|
||||||
|
using Pairs = QList<QPair<E, QString>>;
|
||||||
|
|
||||||
|
EnumComboBoxTransformer(Pairs &&pairs) : pairs(std::move(pairs)) {}
|
||||||
|
~EnumComboBoxTransformer() = default;
|
||||||
|
Q_DISABLE_COPY_MOVE(EnumComboBoxTransformer)
|
||||||
|
|
||||||
|
/// Build Qt model used for QComboBox
|
||||||
|
QStringListModel* buildComboBoxModel(QObject *parent = nullptr) const {
|
||||||
|
QStringList dropDownEntries;
|
||||||
|
for (const auto& pair : std::as_const(this->pairs)) {
|
||||||
|
dropDownEntries.append(pair.second);
|
||||||
|
}
|
||||||
|
return new QStringListModel(dropDownEntries, parent);
|
||||||
|
}
|
||||||
|
/// Convert QComboBox index to enum value.
|
||||||
|
E to_value(int index) const {
|
||||||
|
return this->pairs.at(static_cast<qsizetype>(index)).first;
|
||||||
|
}
|
||||||
|
/// Convert enum value to QComboBox index.
|
||||||
|
int to_index(E value) const {
|
||||||
|
for (qsizetype i = 0; i < pairs.size(); ++i) {
|
||||||
|
if (pairs.at(i).first == value) {
|
||||||
|
return static_cast<int>(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Value not found
|
||||||
|
throw std::invalid_argument("invalid enum value for finding index");
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
Pairs pairs;
|
||||||
|
};
|
||||||
|
|
||||||
|
static EnumComboBoxTransformer<Settings::MouseWheelBehavior, QString> MW_OPTIONS {
|
||||||
|
{
|
||||||
|
{ Settings::MouseWheelBehavior::Zoom, QCoreApplication::translate("SettingsDialog", "Zoom in and out") },
|
||||||
|
{ Settings::MouseWheelBehavior::Switch, QCoreApplication::translate("SettingsDialog", "View next or previous item") }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static EnumComboBoxTransformer<Settings::WindowSizeBehavior, QString> IWS_OPTIONS {
|
||||||
|
{
|
||||||
|
{ Settings::WindowSizeBehavior::Maximized, QCoreApplication::translate("SettingsDialog", "Maximized") },
|
||||||
|
{ Settings::WindowSizeBehavior::Windowed, QCoreApplication::translate("SettingsDialog", "Windowed") }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static EnumComboBoxTransformer<Qt::HighDpiScaleFactorRoundingPolicy, QString> HIDPI_OPTIONS {
|
||||||
|
{
|
||||||
|
{ Qt::HighDpiScaleFactorRoundingPolicy::Round, QCoreApplication::translate("SettingsDialog", "Round (Integer scaling)", "This option means round up for .5 and above") },
|
||||||
|
{ Qt::HighDpiScaleFactorRoundingPolicy::Ceil, QCoreApplication::translate("SettingsDialog", "Ceil (Integer scaling)", "This option means always round up") },
|
||||||
|
{ Qt::HighDpiScaleFactorRoundingPolicy::Floor, QCoreApplication::translate("SettingsDialog", "Floor (Integer scaling)", "This option means always round down") },
|
||||||
|
{ Qt::HighDpiScaleFactorRoundingPolicy::PassThrough, QCoreApplication::translate("SettingsDialog", "Follow system (Fractional scaling)", "This option means don't round") }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
SettingsDialog::SettingsDialog(QWidget *parent)
|
SettingsDialog::SettingsDialog(QWidget *parent)
|
||||||
: QDialog(parent)
|
: QDialog(parent), ui(new QT_PREPEND_NAMESPACE(Ui::SettingsDialog))
|
||||||
, m_stayOnTop(new QCheckBox)
|
|
||||||
, m_useLightCheckerboard(new QCheckBox)
|
|
||||||
, m_doubleClickBehavior(new QComboBox)
|
|
||||||
, m_mouseWheelBehavior(new QComboBox)
|
|
||||||
, m_initWindowSizeBehavior(new QComboBox)
|
|
||||||
, m_hiDpiRoundingPolicyBehavior(new QComboBox)
|
|
||||||
{
|
{
|
||||||
this->setWindowTitle(tr("Settings"));
|
ui->setupUi(this);
|
||||||
|
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
|
||||||
|
|
||||||
QFormLayout * settingsForm = new QFormLayout(this);
|
auto* settings = Settings::instance();
|
||||||
|
ui->m_showNavigatorView->setChecked(Settings::instance()->showNavigatorView());
|
||||||
|
ui->m_useLightCheckerboard->setChecked(settings->useLightCheckerboard());
|
||||||
|
ui->m_loopGallery->setChecked(settings->loopGallery());
|
||||||
|
ui->m_svgTiny12Only->setChecked(settings->svgTiny12Only());
|
||||||
|
ui->m_mouseWheelBehavior->setModel(MW_OPTIONS.buildComboBoxModel(this));
|
||||||
|
Settings::MouseWheelBehavior mwb = settings->mouseWheelBehavior();
|
||||||
|
ui->m_mouseWheelBehavior->setCurrentIndex(MW_OPTIONS.to_index(mwb));
|
||||||
|
ui->m_initWindowSizeBehavior->setModel(IWS_OPTIONS.buildComboBoxModel(this));
|
||||||
|
Settings::WindowSizeBehavior iwsb = settings->initWindowSizeBehavior();
|
||||||
|
ui->m_initWindowSizeBehavior->setCurrentIndex(IWS_OPTIONS.to_index(iwsb));
|
||||||
|
ui->m_hiDpiRoundingPolicyBehavior->setModel(HIDPI_OPTIONS.buildComboBoxModel(this));
|
||||||
|
Qt::HighDpiScaleFactorRoundingPolicy hidpi = settings->hiDpiScaleFactorBehavior();
|
||||||
|
ui->m_hiDpiRoundingPolicyBehavior->setCurrentIndex(HIDPI_OPTIONS.to_index(hidpi));
|
||||||
|
|
||||||
static QList< QPair<Settings::DoubleClickBehavior, QString> > _dc_options {
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
||||||
{ Settings::DoubleClickBehavior::Ignore, tr("Do nothing") },
|
# define QCHECKBOX_CHECKSTATECHANGED QCheckBox::checkStateChanged
|
||||||
{ Settings::DoubleClickBehavior::Close, tr("Close the window") },
|
# define QT_CHECKSTATE Qt::CheckState
|
||||||
{ Settings::DoubleClickBehavior::Maximize, tr("Toggle maximize") }
|
#else
|
||||||
};
|
# define QCHECKBOX_CHECKSTATECHANGED QCheckBox::stateChanged
|
||||||
|
# define QT_CHECKSTATE int
|
||||||
|
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
||||||
|
|
||||||
static QList< QPair<Settings::MouseWheelBehavior, QString> > _mw_options {
|
connect(ui->m_showNavigatorView, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
|
||||||
{ Settings::MouseWheelBehavior::Zoom, tr("Zoom in and out") },
|
Settings::instance()->setShowNavigatorView(state == Qt::Checked);
|
||||||
{ Settings::MouseWheelBehavior::Switch, tr("View next or previous item") }
|
|
||||||
};
|
|
||||||
|
|
||||||
static QList< QPair<Settings::WindowSizeBehavior, QString> > _iws_options {
|
|
||||||
{ Settings::WindowSizeBehavior::Auto, tr("Auto size") },
|
|
||||||
{ Settings::WindowSizeBehavior::Maximized, tr("Maximized") }
|
|
||||||
};
|
|
||||||
|
|
||||||
static QList< QPair<Qt::HighDpiScaleFactorRoundingPolicy, QString> > _hidpi_options {
|
|
||||||
{ Qt::HighDpiScaleFactorRoundingPolicy::Round, tr("Round (Integer scaling)", "This option means round up for .5 and above") },
|
|
||||||
{ Qt::HighDpiScaleFactorRoundingPolicy::Ceil, tr("Ceil (Integer scaling)", "This option means always round up") },
|
|
||||||
{ Qt::HighDpiScaleFactorRoundingPolicy::Floor, tr("Floor (Integer scaling)", "This option means always round down") },
|
|
||||||
{ Qt::HighDpiScaleFactorRoundingPolicy::PassThrough, tr("Follow system (Fractional scaling)", "This option means don't round") }
|
|
||||||
};
|
|
||||||
|
|
||||||
QStringList dcbDropDown;
|
|
||||||
for (const QPair<Settings::DoubleClickBehavior, QString> & dcOption : _dc_options) {
|
|
||||||
dcbDropDown.append(dcOption.second);
|
|
||||||
}
|
|
||||||
|
|
||||||
QStringList mwbDropDown;
|
|
||||||
for (const QPair<Settings::MouseWheelBehavior, QString> & mwOption : _mw_options) {
|
|
||||||
mwbDropDown.append(mwOption.second);
|
|
||||||
}
|
|
||||||
|
|
||||||
QStringList iwsbDropDown;
|
|
||||||
for (const QPair<Settings::WindowSizeBehavior, QString> & iwsOption : _iws_options) {
|
|
||||||
iwsbDropDown.append(iwsOption.second);
|
|
||||||
}
|
|
||||||
|
|
||||||
QStringList hidpiDropDown;
|
|
||||||
for (const QPair<Qt::HighDpiScaleFactorRoundingPolicy, QString> & hidpiOption : _hidpi_options) {
|
|
||||||
hidpiDropDown.append(hidpiOption.second);
|
|
||||||
}
|
|
||||||
|
|
||||||
settingsForm->addRow(tr("Stay on top when start-up"), m_stayOnTop);
|
|
||||||
settingsForm->addRow(tr("Use light-color checkerboard"), m_useLightCheckerboard);
|
|
||||||
settingsForm->addRow(tr("Double-click behavior"), m_doubleClickBehavior);
|
|
||||||
settingsForm->addRow(tr("Mouse wheel behavior"), m_mouseWheelBehavior);
|
|
||||||
settingsForm->addRow(tr("Default window size"), m_initWindowSizeBehavior);
|
|
||||||
settingsForm->addRow(tr("HiDPI scale factor rounding policy"), m_hiDpiRoundingPolicyBehavior);
|
|
||||||
|
|
||||||
m_stayOnTop->setChecked(Settings::instance()->stayOnTop());
|
|
||||||
m_useLightCheckerboard->setChecked(Settings::instance()->useLightCheckerboard());
|
|
||||||
m_doubleClickBehavior->setModel(new QStringListModel(dcbDropDown));
|
|
||||||
Settings::DoubleClickBehavior dcb = Settings::instance()->doubleClickBehavior();
|
|
||||||
m_doubleClickBehavior->setCurrentIndex(static_cast<int>(dcb));
|
|
||||||
m_mouseWheelBehavior->setModel(new QStringListModel(mwbDropDown));
|
|
||||||
Settings::MouseWheelBehavior mwb = Settings::instance()->mouseWheelBehavior();
|
|
||||||
m_mouseWheelBehavior->setCurrentIndex(static_cast<int>(mwb));
|
|
||||||
m_initWindowSizeBehavior->setModel(new QStringListModel(iwsbDropDown));
|
|
||||||
Settings::WindowSizeBehavior iwsb = Settings::instance()->initWindowSizeBehavior();
|
|
||||||
m_initWindowSizeBehavior->setCurrentIndex(static_cast<int>(iwsb));
|
|
||||||
m_hiDpiRoundingPolicyBehavior->setModel(new QStringListModel(hidpiDropDown));
|
|
||||||
Qt::HighDpiScaleFactorRoundingPolicy hidpi = Settings::instance()->hiDpiScaleFactorBehavior();
|
|
||||||
for (int i = 0; i < _hidpi_options.count(); i++) {
|
|
||||||
if (_hidpi_options.at(i).first == hidpi) {
|
|
||||||
m_hiDpiRoundingPolicyBehavior->setCurrentIndex(i);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
connect(m_stayOnTop, &QCheckBox::stateChanged, this, [ = ](int state){
|
|
||||||
Settings::instance()->setStayOnTop(state == Qt::Checked);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(m_useLightCheckerboard, &QCheckBox::stateChanged, this, [ = ](int state){
|
connect(ui->m_useLightCheckerboard, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
|
||||||
Settings::instance()->setUseLightCheckerboard(state == Qt::Checked);
|
Settings::instance()->setUseLightCheckerboard(state == Qt::Checked);
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(m_doubleClickBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
|
connect(ui->m_loopGallery, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
|
||||||
Settings::instance()->setDoubleClickBehavior(_dc_options.at(index).first);
|
Settings::instance()->setLoopGallery(state == Qt::Checked);
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(m_mouseWheelBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
|
connect(ui->m_svgTiny12Only, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
|
||||||
Settings::instance()->setMouseWheelBehavior(_mw_options.at(index).first);
|
Settings::instance()->setSvgTiny12Only(state == Qt::Checked);
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(m_initWindowSizeBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
|
connect(ui->m_mouseWheelBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
|
||||||
Settings::instance()->setInitWindowSizeBehavior(_iws_options.at(index).first);
|
Settings::instance()->setMouseWheelBehavior(MW_OPTIONS.to_value(index));
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(m_hiDpiRoundingPolicyBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
|
connect(ui->m_initWindowSizeBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
|
||||||
Settings::instance()->setHiDpiScaleFactorBehavior(_hidpi_options.at(index).first);
|
Settings::instance()->setInitWindowSizeBehavior(IWS_OPTIONS.to_value(index));
|
||||||
});
|
});
|
||||||
|
|
||||||
adjustSize();
|
connect(ui->m_hiDpiRoundingPolicyBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
|
||||||
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
|
Settings::instance()->setHiDpiScaleFactorBehavior(HIDPI_OPTIONS.to_value(index));
|
||||||
|
});
|
||||||
|
|
||||||
|
// YYC MARK:
|
||||||
|
// Use adjustSize() to make sure all ComboBox are expanded by its items.
|
||||||
|
// Because items are added after inserting them into layout.
|
||||||
|
// It is inviable to call this function in ctor because this relys on Qt event system.
|
||||||
|
// It only can be done by QTimer::singleShot().
|
||||||
|
QTimer::singleShot(0, this, [this](){
|
||||||
|
this->adjustSize();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingsDialog::~SettingsDialog()
|
SettingsDialog::~SettingsDialog()
|
||||||
{
|
{
|
||||||
|
delete ui;
|
||||||
}
|
}
|
||||||
@@ -5,11 +5,14 @@
|
|||||||
#ifndef SETTINGSDIALOG_H
|
#ifndef SETTINGSDIALOG_H
|
||||||
#define SETTINGSDIALOG_H
|
#define SETTINGSDIALOG_H
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
class QCheckBox;
|
QT_BEGIN_NAMESPACE
|
||||||
class QComboBox;
|
namespace Ui {
|
||||||
|
class SettingsDialog;
|
||||||
|
}
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
class SettingsDialog : public QDialog
|
class SettingsDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -17,17 +20,8 @@ public:
|
|||||||
explicit SettingsDialog(QWidget *parent = nullptr);
|
explicit SettingsDialog(QWidget *parent = nullptr);
|
||||||
~SettingsDialog();
|
~SettingsDialog();
|
||||||
|
|
||||||
signals:
|
|
||||||
|
|
||||||
public slots:
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QCheckBox * m_stayOnTop = nullptr;
|
QT_PREPEND_NAMESPACE(Ui::SettingsDialog) *ui;
|
||||||
QCheckBox * m_useLightCheckerboard = nullptr;
|
|
||||||
QComboBox * m_doubleClickBehavior = nullptr;
|
|
||||||
QComboBox * m_mouseWheelBehavior = nullptr;
|
|
||||||
QComboBox * m_initWindowSizeBehavior = nullptr;
|
|
||||||
QComboBox * m_hiDpiRoundingPolicyBehavior = nullptr;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SETTINGSDIALOG_H
|
#endif // SETTINGSDIALOG_H
|
||||||
@@ -0,0 +1,88 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>SettingsDialog</class>
|
||||||
|
<widget class="QDialog" name="SettingsDialog">
|
||||||
|
<property name="windowModality">
|
||||||
|
<enum>Qt::NonModal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Settings</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QHBoxLayout" name="mainLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QTabWidget" name="settingsTabs">
|
||||||
|
<property name="currentIndex">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="optionsTab">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Options</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QFormLayout" name="settingsForm">
|
||||||
|
<item row="0" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="m_showNavigatorView">
|
||||||
|
<property name="text">
|
||||||
|
<string>Show navigation view</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="m_useLightCheckerboard">
|
||||||
|
<property name="text">
|
||||||
|
<string>Use light-color checkerboard</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="m_loopGallery">
|
||||||
|
<property name="text">
|
||||||
|
<string>Loop the loaded gallery</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="m_svgTiny12Only">
|
||||||
|
<property name="text">
|
||||||
|
<string>Limit SVG support to SVG Tiny 1.2</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QLabel" name="m_mouseWheelBehaviorLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Mouse wheel behavior</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="1">
|
||||||
|
<widget class="QComboBox" name="m_mouseWheelBehavior"/>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QLabel" name="m_initWindowSizeBehaviorLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Default window size</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="1">
|
||||||
|
<widget class="QComboBox" name="m_initWindowSizeBehavior"/>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<widget class="QLabel" name="m_hiDpiRoundingPolicyBehaviorLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>HiDPI scale factor rounding policy</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="1">
|
||||||
|
<widget class="QComboBox" name="m_hiDpiRoundingPolicyBehavior"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
#include "toolbutton.h"
|
|
||||||
|
|
||||||
#include "actionmanager.h"
|
|
||||||
#include "opacityhelper.h"
|
|
||||||
|
|
||||||
#include <QPainter>
|
|
||||||
#include <QGraphicsOpacityEffect>
|
|
||||||
#include <QPropertyAnimation>
|
|
||||||
|
|
||||||
ToolButton::ToolButton(bool hoverColor, QWidget *parent)
|
|
||||||
: QPushButton(parent)
|
|
||||||
, m_opacityHelper(new OpacityHelper(this))
|
|
||||||
{
|
|
||||||
setFlat(true);
|
|
||||||
QString qss = "QPushButton {"
|
|
||||||
"background: transparent;"
|
|
||||||
"}";
|
|
||||||
if (hoverColor) {
|
|
||||||
qss += "QPushButton:hover {"
|
|
||||||
"background: red;"
|
|
||||||
"}";
|
|
||||||
}
|
|
||||||
setStyleSheet(qss);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ToolButton::setIconResourcePath(const QString &iconp)
|
|
||||||
{
|
|
||||||
this->setIcon(ActionManager::loadHidpiIcon(iconp, this->iconSize()));
|
|
||||||
}
|
|
||||||
|
|
||||||
void ToolButton::setOpacity(qreal opacity, bool animated)
|
|
||||||
{
|
|
||||||
m_opacityHelper->setOpacity(opacity, animated);
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
#ifndef TOOLBUTTON_H
|
|
||||||
#define TOOLBUTTON_H
|
|
||||||
|
|
||||||
#include <QPushButton>
|
|
||||||
|
|
||||||
class OpacityHelper;
|
|
||||||
class ToolButton : public QPushButton
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
ToolButton(bool hoverColor = false, QWidget * parent = nullptr);
|
|
||||||
void setIconResourcePath(const QString &iconp);
|
|
||||||
|
|
||||||
public slots:
|
|
||||||
void setOpacity(qreal opacity, bool animated = true);
|
|
||||||
|
|
||||||
private:
|
|
||||||
OpacityHelper * m_opacityHelper;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // TOOLBUTTON_H
|
|
||||||
@@ -1,822 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!DOCTYPE TS>
|
|
||||||
<TS version="2.1" language="ko_KR">
|
|
||||||
<context>
|
|
||||||
<name>AboutDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="27"/>
|
|
||||||
<source>About</source>
|
|
||||||
<translation>정보</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="30"/>
|
|
||||||
<source>Launch application with image file path as argument to load the file.</source>
|
|
||||||
<translation>이미지 파일 경로를 인수로 지정하여 응용 프로그램을 시작하여 파일을 불러옵니다.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="31"/>
|
|
||||||
<source>Drag and drop image file onto the window is also supported.</source>
|
|
||||||
<translation>이미지 파일을 창으로 끌어다 놓기도 지원됩니다.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="32"/>
|
|
||||||
<source>None of the operations in this application will alter the pictures on disk.</source>
|
|
||||||
<translation>이 응용 프로그램의 어떤 작업도 디스크의 사진을 변경하지 않습니다.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="33"/>
|
|
||||||
<source>Context menu option explanation:</source>
|
|
||||||
<translation>상황에 맞는 메뉴 옵션 설명:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="40"/>
|
|
||||||
<source>Make window stay on top of all other windows.</source>
|
|
||||||
<translation>창이 다른 모든 창 위에 오도록 합니다.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="43"/>
|
|
||||||
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
|
|
||||||
<translation>실수로 창을 닫지 마십시오. (예: 창을 두 번 클릭하여)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="46"/>
|
|
||||||
<source>Avoid resetting the zoom/rotation/flip state that was applied to the image view when switching between images.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="53"/>
|
|
||||||
<source>Version: %1</source>
|
|
||||||
<translation>버전: %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="64"/>
|
|
||||||
<source>Logo designed by %1</source>
|
|
||||||
<translation>%1에 의해 설계된 로고</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="66"/>
|
|
||||||
<source>Built with Qt %1 (%2)</source>
|
|
||||||
<translation>Qt %1(%2)로 빌드됨</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="67"/>
|
|
||||||
<source>Source code</source>
|
|
||||||
<translation>소스 코드</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="77"/>
|
|
||||||
<source>Contributors</source>
|
|
||||||
<translation>기여자</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="79"/>
|
|
||||||
<source>List of contributors on GitHub</source>
|
|
||||||
<translation>GitHub의 기여자 목록</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="80"/>
|
|
||||||
<source>Thanks to all people who contributed to this project.</source>
|
|
||||||
<translation>이 프로젝트에 기여해주신 모든 분들께 감사드립니다.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="84"/>
|
|
||||||
<source>Translators</source>
|
|
||||||
<translation>번역자</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="85"/>
|
|
||||||
<source>I would like to thank the following people who volunteered to translate this application.</source>
|
|
||||||
<translation>이 응용 프로그램 번역에 자원해 주신 다음 분들께 감사의 말씀을 전합니다.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="129"/>
|
|
||||||
<source>%1 is built on the following free software libraries:</source>
|
|
||||||
<comment>Free as in freedom</comment>
|
|
||||||
<translation>%1은 다음과 같은 무료 소프트웨어 라이브러리를 기반으로 합니다:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="153"/>
|
|
||||||
<source>&Special Thanks</source>
|
|
||||||
<translation>특별한 감사(&S)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="155"/>
|
|
||||||
<source>&Third-party Libraries</source>
|
|
||||||
<translation>타사 라이브러리(&T)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="91"/>
|
|
||||||
<source>Your Rights</source>
|
|
||||||
<translation>사용자 권한</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="61"/>
|
|
||||||
<source>Copyright (c) %1 %2</source>
|
|
||||||
<comment>%1 is year, %2 is the name of copyright holder(s)</comment>
|
|
||||||
<translation>저작권 (c) %1 %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="93"/>
|
|
||||||
<source>%1 is released under the MIT License.</source>
|
|
||||||
<translation>사용자의 권한 %1은 MIT 라이선스에 따라 릴리스됩니다.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="94"/>
|
|
||||||
<source>This license grants people a number of freedoms:</source>
|
|
||||||
<translation>이 라이선스는 다음과 같은 다양한 자유를 제공합니다:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="95"/>
|
|
||||||
<source>You are free to use %1, for any purpose</source>
|
|
||||||
<translation>%1을(를) 어떤 용도로도 자유롭게 사용할 수 있습니다</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="96"/>
|
|
||||||
<source>You are free to distribute %1</source>
|
|
||||||
<translation>%1를 무료로 배포할 수 있습니다</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="97"/>
|
|
||||||
<source>You can study how %1 works and change it</source>
|
|
||||||
<translation>%1가 작동하는 방식을 연구하고 변경할 수 있습니다</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="98"/>
|
|
||||||
<source>You can distribute changed versions of %1</source>
|
|
||||||
<translation>변경된 버전의 %1을 배포할 수 있습니다</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="100"/>
|
|
||||||
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
|
|
||||||
<translation>MIT 라이선스는 이러한 자유를 보장합니다. 누구도 이를 빼앗을 수 없습니다.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="128"/>
|
|
||||||
<source>Third-party Libraries used by %1</source>
|
|
||||||
<translation>%1에서 사용하는 타사 라이브러리</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="151"/>
|
|
||||||
<source>&Help</source>
|
|
||||||
<translation>도움말(&H)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="152"/>
|
|
||||||
<source>&About</source>
|
|
||||||
<translation>정보(&A)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="154"/>
|
|
||||||
<source>&License</source>
|
|
||||||
<translation>라이선스(&L)</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsScene</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="264"/>
|
|
||||||
<location filename="../graphicsscene.cpp" line="90"/>
|
|
||||||
<source>Drag image here</source>
|
|
||||||
<translation>이미지를 여기로 끌기</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsView</name>
|
|
||||||
<message>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation type="vanished">파일 URL 목록이 비어 있습니다</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="52"/>
|
|
||||||
<source>File is not a valid image</source>
|
|
||||||
<translation>파일이 올바른 이미지가 아닙니다</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="56"/>
|
|
||||||
<location filename="../graphicsview.cpp" line="60"/>
|
|
||||||
<source>Image data is invalid or currently unsupported</source>
|
|
||||||
<translation>이미지 데이터가 잘못되었거나 현재 지원되지 않습니다</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Image data is invalid</source>
|
|
||||||
<translation type="vanished">이미지 데이터가 잘못되었습니다</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Not supported mimedata: %1</source>
|
|
||||||
<translation type="vanished">지원되지 않는 mimedata: %1</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MainWindow</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="175"/>
|
|
||||||
<location filename="../mainwindow.cpp" line="531"/>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation>파일 URL 목록이 비어 있습니다</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="429"/>
|
|
||||||
<source>&Copy</source>
|
|
||||||
<translation>복사(&C)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="539"/>
|
|
||||||
<source>Image data is invalid</source>
|
|
||||||
<translation>이미지 데이터가 잘못되었습니다</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="546"/>
|
|
||||||
<source>Not supported mimedata: %1</source>
|
|
||||||
<translation>지원되지 않는 mimedata: %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="742"/>
|
|
||||||
<source>Image From Clipboard</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="760"/>
|
|
||||||
<source>Are you sure you want to move "%1" to recycle bin?</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="765"/>
|
|
||||||
<source>Move to trash failed, it might caused by file permission issue, file system limitation, or platform limitation.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="108"/>
|
|
||||||
<source>Copy P&ixmap</source>
|
|
||||||
<translation>Pixmap 복사(&I)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="109"/>
|
|
||||||
<source>Copy &File Path</source>
|
|
||||||
<translation>파일 경로 복사(&F)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="127"/>
|
|
||||||
<source>Properties</source>
|
|
||||||
<translation>속성</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="112"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="39"/>
|
|
||||||
<source>Stay on top</source>
|
|
||||||
<translation>맨 위에 유지</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="113"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="42"/>
|
|
||||||
<source>Protected mode</source>
|
|
||||||
<translation>보호 모드</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="114"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="45"/>
|
|
||||||
<source>Keep transformation</source>
|
|
||||||
<comment>The 'transformation' means the flip/rotation status that currently applied to the image view</comment>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="96"/>
|
|
||||||
<source>Zoom in</source>
|
|
||||||
<translation>확대</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="97"/>
|
|
||||||
<source>Zoom out</source>
|
|
||||||
<translation>축소</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="105"/>
|
|
||||||
<source>Flip &Horizontally</source>
|
|
||||||
<translation>수평으로 뒤집기(&H)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="106"/>
|
|
||||||
<source>Fit to view</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="107"/>
|
|
||||||
<source>Fit to width</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="110"/>
|
|
||||||
<source>&Paste</source>
|
|
||||||
<translation>붙여넣기(&P)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="98"/>
|
|
||||||
<source>Toggle Checkerboard</source>
|
|
||||||
<translation>바둑판 전환</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="92"/>
|
|
||||||
<source>&Open...</source>
|
|
||||||
<translation>열기(&O)...</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="94"/>
|
|
||||||
<source>Actual size</source>
|
|
||||||
<translation>실제 크기</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="95"/>
|
|
||||||
<source>Toggle maximize</source>
|
|
||||||
<translation>최대화 전환</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="99"/>
|
|
||||||
<source>Rotate right</source>
|
|
||||||
<translation>오른쪽으로 회전</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="100"/>
|
|
||||||
<source>Rotate left</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="102"/>
|
|
||||||
<source>Previous image</source>
|
|
||||||
<translation>이전 이미지</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="103"/>
|
|
||||||
<source>Next image</source>
|
|
||||||
<translation>다음 이미지</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="759"/>
|
|
||||||
<location filename="../actionmanager.cpp" line="111"/>
|
|
||||||
<source>Move to Trash</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="115"/>
|
|
||||||
<source>Configure...</source>
|
|
||||||
<translation>구성...</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="116"/>
|
|
||||||
<source>Help</source>
|
|
||||||
<translation>도움말</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="119"/>
|
|
||||||
<source>Show in File Explorer</source>
|
|
||||||
<comment>File Explorer is the name of explorer.exe under Windows</comment>
|
|
||||||
<translation>파일 탐색기에 표시</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="125"/>
|
|
||||||
<source>Show in directory</source>
|
|
||||||
<translation>디렉터리에 표시</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="128"/>
|
|
||||||
<source>Quit</source>
|
|
||||||
<translation>종료</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MetadataDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatadialog.cpp" line="84"/>
|
|
||||||
<source>Image Metadata</source>
|
|
||||||
<translation>이미지 메타데이터</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MetadataModel</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="41"/>
|
|
||||||
<source>Origin</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>기원</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="42"/>
|
|
||||||
<source>Image</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>이미지</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="46"/>
|
|
||||||
<source>File</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>파일</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="43"/>
|
|
||||||
<source>Camera</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>카메라</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="33"/>
|
|
||||||
<source>%1 File</source>
|
|
||||||
<translation>%1 파일</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="40"/>
|
|
||||||
<source>Description</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>설명</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="44"/>
|
|
||||||
<source>Advanced photo</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>고급 사진</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="45"/>
|
|
||||||
<source>GPS</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>GPS</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="50"/>
|
|
||||||
<source>Dimensions</source>
|
|
||||||
<translation>치수</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="52"/>
|
|
||||||
<source>Aspect ratio</source>
|
|
||||||
<translation>종횡비</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="56"/>
|
|
||||||
<source>Frame count</source>
|
|
||||||
<translation>프레임 수</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="60"/>
|
|
||||||
<source>Name</source>
|
|
||||||
<translation>이름</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="62"/>
|
|
||||||
<source>Item type</source>
|
|
||||||
<translation>항목 유형</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="64"/>
|
|
||||||
<source>Folder path</source>
|
|
||||||
<translation>폴더 경로</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="66"/>
|
|
||||||
<source>Size</source>
|
|
||||||
<translation>크기</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="68"/>
|
|
||||||
<source>Date created</source>
|
|
||||||
<translation>만든 날짜</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="70"/>
|
|
||||||
<source>Date modified</source>
|
|
||||||
<translation>수정 날짜</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="77"/>
|
|
||||||
<source>Title</source>
|
|
||||||
<translation>제목</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="79"/>
|
|
||||||
<source>Subject</source>
|
|
||||||
<translation>주제</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="81"/>
|
|
||||||
<source>Rating</source>
|
|
||||||
<translation>등급</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="83"/>
|
|
||||||
<source>Tags</source>
|
|
||||||
<translation>태그</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="85"/>
|
|
||||||
<source>Comments</source>
|
|
||||||
<translation>주석</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="88"/>
|
|
||||||
<source>Authors</source>
|
|
||||||
<translation>저자</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="90"/>
|
|
||||||
<source>Date taken</source>
|
|
||||||
<translation>촬영 날짜</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="96"/>
|
|
||||||
<source>Program name</source>
|
|
||||||
<translation>프로그램 이름</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="98"/>
|
|
||||||
<source>Copyright</source>
|
|
||||||
<translation>저작권</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="101"/>
|
|
||||||
<source>Horizontal resolution</source>
|
|
||||||
<translation>수평 해상도</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="103"/>
|
|
||||||
<source>Vertical resolution</source>
|
|
||||||
<translation>수직 해상도</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="105"/>
|
|
||||||
<source>Resolution unit</source>
|
|
||||||
<translation>해상도 단위</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="107"/>
|
|
||||||
<source>Colour representation</source>
|
|
||||||
<translation>색 표현</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="110"/>
|
|
||||||
<source>Camera maker</source>
|
|
||||||
<translation>카메라 제조업체</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="112"/>
|
|
||||||
<source>Camera model</source>
|
|
||||||
<translation>카메라 모델</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="114"/>
|
|
||||||
<source>F-stop</source>
|
|
||||||
<translation>F-스톱</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="116"/>
|
|
||||||
<source>Exposure time</source>
|
|
||||||
<translation>노출 시간</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="118"/>
|
|
||||||
<source>ISO speed</source>
|
|
||||||
<translation>ISO 속도</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="120"/>
|
|
||||||
<source>Exposure bias</source>
|
|
||||||
<translation>노출 편향</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="122"/>
|
|
||||||
<source>Focal length</source>
|
|
||||||
<translation>초점 거리</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="124"/>
|
|
||||||
<source>Max aperture</source>
|
|
||||||
<translation>최대 조리개</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="126"/>
|
|
||||||
<source>Metering mode</source>
|
|
||||||
<translation>미터링 모드</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="128"/>
|
|
||||||
<source>Subject distance</source>
|
|
||||||
<translation>피사체 거리</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="130"/>
|
|
||||||
<source>Flash mode</source>
|
|
||||||
<translation>플래시 모드</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="132"/>
|
|
||||||
<source>35mm focal length</source>
|
|
||||||
<translation>35mm 초점 거리</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="135"/>
|
|
||||||
<source>Lens model</source>
|
|
||||||
<translation>렌즈 모델</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="137"/>
|
|
||||||
<source>Contrast</source>
|
|
||||||
<translation>대비</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="139"/>
|
|
||||||
<source>Brightness</source>
|
|
||||||
<translation>밝기</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="141"/>
|
|
||||||
<source>Exposure program</source>
|
|
||||||
<translation>노출 프로그램</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="143"/>
|
|
||||||
<source>Saturation</source>
|
|
||||||
<translation>채도</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="145"/>
|
|
||||||
<source>Sharpness</source>
|
|
||||||
<translation>선명도</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="147"/>
|
|
||||||
<source>White balance</source>
|
|
||||||
<translation>화이트 밸런스</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="149"/>
|
|
||||||
<source>Digital zoom</source>
|
|
||||||
<translation>디지털 줌</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="151"/>
|
|
||||||
<source>EXIF version</source>
|
|
||||||
<translation>EXIF 버전</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="154"/>
|
|
||||||
<source>Latitude reference</source>
|
|
||||||
<translation>위도 참조</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="156"/>
|
|
||||||
<source>Latitude</source>
|
|
||||||
<translation>위도</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="158"/>
|
|
||||||
<source>Longitude reference</source>
|
|
||||||
<translation>경도 참조</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="160"/>
|
|
||||||
<source>Longitude</source>
|
|
||||||
<translation>경도</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="162"/>
|
|
||||||
<source>Altitude reference</source>
|
|
||||||
<translation>고도 참조</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="164"/>
|
|
||||||
<source>Altitude</source>
|
|
||||||
<translation>고도</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="174"/>
|
|
||||||
<source>%1 x %2</source>
|
|
||||||
<translation>%1 x %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="192"/>
|
|
||||||
<source>%1 : %2</source>
|
|
||||||
<translation>%1 : %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="317"/>
|
|
||||||
<source>Property</source>
|
|
||||||
<translation>속성</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="317"/>
|
|
||||||
<source>Value</source>
|
|
||||||
<translation>값</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>SettingsDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="23"/>
|
|
||||||
<source>Settings</source>
|
|
||||||
<translation>설정</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="28"/>
|
|
||||||
<source>Do nothing</source>
|
|
||||||
<translation>아무것도 하지 않음</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="29"/>
|
|
||||||
<source>Close the window</source>
|
|
||||||
<translation>창 닫기</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="30"/>
|
|
||||||
<source>Toggle maximize</source>
|
|
||||||
<translation>최대화 전환</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="34"/>
|
|
||||||
<source>Zoom in and out</source>
|
|
||||||
<translation>확대 및 축소</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="35"/>
|
|
||||||
<source>View next or previous item</source>
|
|
||||||
<translation>다음 또는 이전 항목 보기</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="39"/>
|
|
||||||
<source>Auto size</source>
|
|
||||||
<translation>자동 크기</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="40"/>
|
|
||||||
<source>Maximized</source>
|
|
||||||
<translation>최대화</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="44"/>
|
|
||||||
<source>Round (Integer scaling)</source>
|
|
||||||
<comment>This option means round up for .5 and above</comment>
|
|
||||||
<translation>라운드 (정수 스케일링)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="45"/>
|
|
||||||
<source>Ceil (Integer scaling)</source>
|
|
||||||
<comment>This option means always round up</comment>
|
|
||||||
<translation>셰일 (정수 스케일링)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="46"/>
|
|
||||||
<source>Floor (Integer scaling)</source>
|
|
||||||
<comment>This option means always round down</comment>
|
|
||||||
<translation>바닥 (정수 스케일링)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="47"/>
|
|
||||||
<source>Follow system (Fractional scaling)</source>
|
|
||||||
<comment>This option means don't round</comment>
|
|
||||||
<translation>팔로우 시스템 (부분 스케일링)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="70"/>
|
|
||||||
<source>Stay on top when start-up</source>
|
|
||||||
<translation>시작 시 맨 위에 유지</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="71"/>
|
|
||||||
<source>Use light-color checkerboard</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="72"/>
|
|
||||||
<source>Double-click behavior</source>
|
|
||||||
<translation>더블클릭 동작</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="73"/>
|
|
||||||
<source>Mouse wheel behavior</source>
|
|
||||||
<translation>마우스 휠 동작</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="74"/>
|
|
||||||
<source>Default window size</source>
|
|
||||||
<translation>기본 창 크기</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="75"/>
|
|
||||||
<source>HiDPI scale factor rounding policy</source>
|
|
||||||
<translation>HiDPI 배율 반올림 정책</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>main</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="41"/>
|
|
||||||
<source>Pineapple Pictures</source>
|
|
||||||
<translation>파인애플 픽처스</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="45"/>
|
|
||||||
<source>List supported image format suffixes, and quit program.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="49"/>
|
|
||||||
<source>File list.</source>
|
|
||||||
<translation>파일 목록.</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
|
||||||
@@ -1,826 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!DOCTYPE TS>
|
|
||||||
<TS version="2.1" language="nl_NL">
|
|
||||||
<context>
|
|
||||||
<name>AboutDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="27"/>
|
|
||||||
<source>About</source>
|
|
||||||
<translation>Over</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="30"/>
|
|
||||||
<source>Launch application with image file path as argument to load the file.</source>
|
|
||||||
<translation>Start het programma met het opgegeven afbeeldingsbestandspad.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="31"/>
|
|
||||||
<source>Drag and drop image file onto the window is also supported.</source>
|
|
||||||
<translation>U kunt tevens afbeeldingen naar het venster slepen.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="32"/>
|
|
||||||
<source>None of the operations in this application will alter the pictures on disk.</source>
|
|
||||||
<translation>Geen van de handelingen in dit programma veranderen de afbeeldingen op de schijf.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="33"/>
|
|
||||||
<source>Context menu option explanation:</source>
|
|
||||||
<translation>Rechtermuisknopmenu-uitleg:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="40"/>
|
|
||||||
<source>Make window stay on top of all other windows.</source>
|
|
||||||
<translation>Houdt het venster boven andere vensters.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="43"/>
|
|
||||||
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
|
|
||||||
<translation>Voorkomt per ongeluk sluiten (bijv. door te dubbelklikken op het venster).</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="53"/>
|
|
||||||
<source>Version: %1</source>
|
|
||||||
<translation>Versie: %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Copyright (c) 2020 %1</source>
|
|
||||||
<translation type="vanished">Copyright (c) 2020 %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="64"/>
|
|
||||||
<source>Logo designed by %1</source>
|
|
||||||
<translation>Logo gemaakt door %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="66"/>
|
|
||||||
<source>Built with Qt %1 (%2)</source>
|
|
||||||
<translation>Gebouwd met Qt %1 (%2)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="67"/>
|
|
||||||
<source>Source code</source>
|
|
||||||
<translation>Broncode</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="77"/>
|
|
||||||
<source>Contributors</source>
|
|
||||||
<translation>Bijdragers</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="79"/>
|
|
||||||
<source>List of contributors on GitHub</source>
|
|
||||||
<translation>Lijst met bijdragers op GitHub</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="80"/>
|
|
||||||
<source>Thanks to all people who contributed to this project.</source>
|
|
||||||
<translation>Met dank aan alle personen die hebben bijgedragen aan dit project.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="84"/>
|
|
||||||
<source>Translators</source>
|
|
||||||
<translation>Vertalers</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="85"/>
|
|
||||||
<source>I would like to thank the following people who volunteered to translate this application.</source>
|
|
||||||
<translation>Ik wil graag de volgende mensen bedanken die vrijwillig hebben bijgedragen aan vertalingen.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="129"/>
|
|
||||||
<source>%1 is built on the following free software libraries:</source>
|
|
||||||
<comment>Free as in freedom</comment>
|
|
||||||
<translation>%1 is gebouwd met de volgende vrijesoftwarebibliotheken:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="153"/>
|
|
||||||
<source>&Special Thanks</source>
|
|
||||||
<translation>&Met dank aan</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="155"/>
|
|
||||||
<source>&Third-party Libraries</source>
|
|
||||||
<translation>Ex&terne bibliotheken</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="91"/>
|
|
||||||
<source>Your Rights</source>
|
|
||||||
<translation>Uw rechten</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="46"/>
|
|
||||||
<source>Avoid resetting the zoom/rotation/flip state that was applied to the image view when switching between images.</source>
|
|
||||||
<translation>Voorkom dat het zoomniveau, de draaiing en spiegeling worden hersteld na wisselen van afbeelding.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="61"/>
|
|
||||||
<source>Copyright (c) %1 %2</source>
|
|
||||||
<comment>%1 is year, %2 is the name of copyright holder(s)</comment>
|
|
||||||
<translation>Copyright (c) %1 %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="93"/>
|
|
||||||
<source>%1 is released under the MIT License.</source>
|
|
||||||
<translation>%1 is uitgebracht onder de MIT-licentie.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="94"/>
|
|
||||||
<source>This license grants people a number of freedoms:</source>
|
|
||||||
<translation>Deze licentie biedt een hoop vrijheden:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="95"/>
|
|
||||||
<source>You are free to use %1, for any purpose</source>
|
|
||||||
<translation>U mag %1 gratis gebruiken, voor welk doeleinde dan ook</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="96"/>
|
|
||||||
<source>You are free to distribute %1</source>
|
|
||||||
<translation>U mag %1 vrij verspreiden</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="97"/>
|
|
||||||
<source>You can study how %1 works and change it</source>
|
|
||||||
<translation>U kunt bekijken hoe %1 werkt en aanpassingen doen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="98"/>
|
|
||||||
<source>You can distribute changed versions of %1</source>
|
|
||||||
<translation>U mag aangepaste versie van %1 vrij verspreiden</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="100"/>
|
|
||||||
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
|
|
||||||
<translation>De MIT-licentie garandeert u deze vrijheid, en niemand mag deze vrijheid wegnemen.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="128"/>
|
|
||||||
<source>Third-party Libraries used by %1</source>
|
|
||||||
<translation>Door %1 gebruikte externe bibliotheken</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="151"/>
|
|
||||||
<source>&Help</source>
|
|
||||||
<translation>&Hulp</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="152"/>
|
|
||||||
<source>&About</source>
|
|
||||||
<translation>&Over</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="154"/>
|
|
||||||
<source>&License</source>
|
|
||||||
<translation>&Licentie</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsScene</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="264"/>
|
|
||||||
<location filename="../graphicsscene.cpp" line="90"/>
|
|
||||||
<source>Drag image here</source>
|
|
||||||
<translation>Sleep een afbeelding hierheen</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsView</name>
|
|
||||||
<message>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation type="vanished">De bestandspadlijst is leeg</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="52"/>
|
|
||||||
<source>File is not a valid image</source>
|
|
||||||
<translation>Het bestand is geen afbeelding</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="56"/>
|
|
||||||
<location filename="../graphicsview.cpp" line="60"/>
|
|
||||||
<source>Image data is invalid or currently unsupported</source>
|
|
||||||
<translation>De afbeeldingsgegevens zijn beschadigd of worden niet ondersteund</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Image data is invalid</source>
|
|
||||||
<translation type="vanished">Beschadigde afbeeldingsgegevens</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Not supported mimedata: %1</source>
|
|
||||||
<translation type="vanished">Niet-ondersteunde mime-gegevens: %1</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MainWindow</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="175"/>
|
|
||||||
<location filename="../mainwindow.cpp" line="531"/>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation>De bestandspadlijst is leeg</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="429"/>
|
|
||||||
<source>&Copy</source>
|
|
||||||
<translation>&Kopiëren</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="539"/>
|
|
||||||
<source>Image data is invalid</source>
|
|
||||||
<translation>Beschadigde afbeeldingsgegevens</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="546"/>
|
|
||||||
<source>Not supported mimedata: %1</source>
|
|
||||||
<translation>Niet-ondersteunde mime-gegevens: %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="742"/>
|
|
||||||
<source>Image From Clipboard</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="760"/>
|
|
||||||
<source>Are you sure you want to move "%1" to recycle bin?</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="765"/>
|
|
||||||
<source>Move to trash failed, it might caused by file permission issue, file system limitation, or platform limitation.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="108"/>
|
|
||||||
<source>Copy P&ixmap</source>
|
|
||||||
<translation>P&ixmap kopiëren</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="109"/>
|
|
||||||
<source>Copy &File Path</source>
|
|
||||||
<translation>&Bestandspad kopiëren</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="127"/>
|
|
||||||
<source>Properties</source>
|
|
||||||
<translation>Eigenschappen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="112"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="39"/>
|
|
||||||
<source>Stay on top</source>
|
|
||||||
<translation>Altijd bovenop</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="113"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="42"/>
|
|
||||||
<source>Protected mode</source>
|
|
||||||
<translation>Beschermde modus</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="114"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="45"/>
|
|
||||||
<source>Keep transformation</source>
|
|
||||||
<comment>The 'transformation' means the flip/rotation status that currently applied to the image view</comment>
|
|
||||||
<translation>Bewerkingen onthouden</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="96"/>
|
|
||||||
<source>Zoom in</source>
|
|
||||||
<translation>Inzoomen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="97"/>
|
|
||||||
<source>Zoom out</source>
|
|
||||||
<translation>Uitzoomen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="105"/>
|
|
||||||
<source>Flip &Horizontally</source>
|
|
||||||
<translation>&Horizontaal spiegelen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="106"/>
|
|
||||||
<source>Fit to view</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="107"/>
|
|
||||||
<source>Fit to width</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="110"/>
|
|
||||||
<source>&Paste</source>
|
|
||||||
<translation>&Plakken</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="98"/>
|
|
||||||
<source>Toggle Checkerboard</source>
|
|
||||||
<translation>Schaakbordpatroon aan/uit</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="92"/>
|
|
||||||
<source>&Open...</source>
|
|
||||||
<translation>&Openen…</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="94"/>
|
|
||||||
<source>Actual size</source>
|
|
||||||
<translation>Ware grootte</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="95"/>
|
|
||||||
<source>Toggle maximize</source>
|
|
||||||
<translation>Maximaliseren aan/uit</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="99"/>
|
|
||||||
<source>Rotate right</source>
|
|
||||||
<translation>Naar rechts draaien</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="100"/>
|
|
||||||
<source>Rotate left</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="102"/>
|
|
||||||
<source>Previous image</source>
|
|
||||||
<translation>Vorige afbeelding</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="103"/>
|
|
||||||
<source>Next image</source>
|
|
||||||
<translation>Volgende afbeelding</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="759"/>
|
|
||||||
<location filename="../actionmanager.cpp" line="111"/>
|
|
||||||
<source>Move to Trash</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="115"/>
|
|
||||||
<source>Configure...</source>
|
|
||||||
<translation>Instellen...</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="116"/>
|
|
||||||
<source>Help</source>
|
|
||||||
<translation>Hulp</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="119"/>
|
|
||||||
<source>Show in File Explorer</source>
|
|
||||||
<comment>File Explorer is the name of explorer.exe under Windows</comment>
|
|
||||||
<translation>Tonen in bestandsbeheer</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="125"/>
|
|
||||||
<source>Show in directory</source>
|
|
||||||
<translation>Tonen in map</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="128"/>
|
|
||||||
<source>Quit</source>
|
|
||||||
<translation>Afsluiten</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MetadataDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatadialog.cpp" line="84"/>
|
|
||||||
<source>Image Metadata</source>
|
|
||||||
<translation>Afbeeldingsmetagegevens</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MetadataModel</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="41"/>
|
|
||||||
<source>Origin</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Oorsprong</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="42"/>
|
|
||||||
<source>Image</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Afbeelding</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="46"/>
|
|
||||||
<source>File</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Bestand</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="43"/>
|
|
||||||
<source>Camera</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Camera</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="33"/>
|
|
||||||
<source>%1 File</source>
|
|
||||||
<translation>%1-bestand</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="40"/>
|
|
||||||
<source>Description</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Omschrijving</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="44"/>
|
|
||||||
<source>Advanced photo</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Uitgebreide foto</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="45"/>
|
|
||||||
<source>GPS</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>GPS</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="50"/>
|
|
||||||
<source>Dimensions</source>
|
|
||||||
<translation>Afmetingen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="52"/>
|
|
||||||
<source>Aspect ratio</source>
|
|
||||||
<translation>Beeldverhouding</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="56"/>
|
|
||||||
<source>Frame count</source>
|
|
||||||
<translation>Aantal frames</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="60"/>
|
|
||||||
<source>Name</source>
|
|
||||||
<translation>Naam</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="62"/>
|
|
||||||
<source>Item type</source>
|
|
||||||
<translation>Soort item</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="64"/>
|
|
||||||
<source>Folder path</source>
|
|
||||||
<translation>Bestandspad</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="66"/>
|
|
||||||
<source>Size</source>
|
|
||||||
<translation>Grootte</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="68"/>
|
|
||||||
<source>Date created</source>
|
|
||||||
<translation>Gemaakt op</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="70"/>
|
|
||||||
<source>Date modified</source>
|
|
||||||
<translation>Bewerkt op</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="77"/>
|
|
||||||
<source>Title</source>
|
|
||||||
<translation>Naam</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="79"/>
|
|
||||||
<source>Subject</source>
|
|
||||||
<translation>Onderwerp</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="81"/>
|
|
||||||
<source>Rating</source>
|
|
||||||
<translation>Waardering</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="83"/>
|
|
||||||
<source>Tags</source>
|
|
||||||
<translation>Labels</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="85"/>
|
|
||||||
<source>Comments</source>
|
|
||||||
<translation>Opmerkingen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="88"/>
|
|
||||||
<source>Authors</source>
|
|
||||||
<translation>Makers</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="90"/>
|
|
||||||
<source>Date taken</source>
|
|
||||||
<translation>Genomen op</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="96"/>
|
|
||||||
<source>Program name</source>
|
|
||||||
<translation>Programmanaam</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="98"/>
|
|
||||||
<source>Copyright</source>
|
|
||||||
<translation>Copyright</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="101"/>
|
|
||||||
<source>Horizontal resolution</source>
|
|
||||||
<translation>Horizontale resolutie</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="103"/>
|
|
||||||
<source>Vertical resolution</source>
|
|
||||||
<translation>Verticale resolutie</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="105"/>
|
|
||||||
<source>Resolution unit</source>
|
|
||||||
<translation>Resolutie-eenheid</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="107"/>
|
|
||||||
<source>Colour representation</source>
|
|
||||||
<translation>Kleurweergave</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="110"/>
|
|
||||||
<source>Camera maker</source>
|
|
||||||
<translation>Camerafabrikant</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="112"/>
|
|
||||||
<source>Camera model</source>
|
|
||||||
<translation>Cameramodel</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="114"/>
|
|
||||||
<source>F-stop</source>
|
|
||||||
<translation>Openingsverhouding</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="116"/>
|
|
||||||
<source>Exposure time</source>
|
|
||||||
<translation>Belichtingstijd</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="118"/>
|
|
||||||
<source>ISO speed</source>
|
|
||||||
<translation>ISO-snelheid</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="120"/>
|
|
||||||
<source>Exposure bias</source>
|
|
||||||
<translation>Belichtingsvertekening</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="122"/>
|
|
||||||
<source>Focal length</source>
|
|
||||||
<translation>Focale lengte</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="124"/>
|
|
||||||
<source>Max aperture</source>
|
|
||||||
<translation>Max. opening</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="126"/>
|
|
||||||
<source>Metering mode</source>
|
|
||||||
<translation>Metermodus</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="128"/>
|
|
||||||
<source>Subject distance</source>
|
|
||||||
<translation>Onderwerpafstand</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="130"/>
|
|
||||||
<source>Flash mode</source>
|
|
||||||
<translation>Flitsmodus</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="132"/>
|
|
||||||
<source>35mm focal length</source>
|
|
||||||
<translation>35mm focale lengte</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="135"/>
|
|
||||||
<source>Lens model</source>
|
|
||||||
<translation>Lensmodel</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="137"/>
|
|
||||||
<source>Contrast</source>
|
|
||||||
<translation>Contrast</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="139"/>
|
|
||||||
<source>Brightness</source>
|
|
||||||
<translation>Helderheid</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="141"/>
|
|
||||||
<source>Exposure program</source>
|
|
||||||
<translation>Belichtingsprogramma</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="143"/>
|
|
||||||
<source>Saturation</source>
|
|
||||||
<translation>Verzadiging</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="145"/>
|
|
||||||
<source>Sharpness</source>
|
|
||||||
<translation>Scherpte</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="147"/>
|
|
||||||
<source>White balance</source>
|
|
||||||
<translation>Witbalans</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="149"/>
|
|
||||||
<source>Digital zoom</source>
|
|
||||||
<translation>Digitale zoom</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="151"/>
|
|
||||||
<source>EXIF version</source>
|
|
||||||
<translation>EXIF-versie</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="154"/>
|
|
||||||
<source>Latitude reference</source>
|
|
||||||
<translation>Breedtegraadverwijzing</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="156"/>
|
|
||||||
<source>Latitude</source>
|
|
||||||
<translation>Breedtegraad</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="158"/>
|
|
||||||
<source>Longitude reference</source>
|
|
||||||
<translation>Lengtegraadverwijzing</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="160"/>
|
|
||||||
<source>Longitude</source>
|
|
||||||
<translation>Lengtegraad</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="162"/>
|
|
||||||
<source>Altitude reference</source>
|
|
||||||
<translation>Hoogteverwijzing</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="164"/>
|
|
||||||
<source>Altitude</source>
|
|
||||||
<translation>Hoogte</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="174"/>
|
|
||||||
<source>%1 x %2</source>
|
|
||||||
<translation>%1 x %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="192"/>
|
|
||||||
<source>%1 : %2</source>
|
|
||||||
<translation>%1 : %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="317"/>
|
|
||||||
<source>Property</source>
|
|
||||||
<translation>Eigenschap</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="317"/>
|
|
||||||
<source>Value</source>
|
|
||||||
<translation>Waarde</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>SettingsDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="23"/>
|
|
||||||
<source>Settings</source>
|
|
||||||
<translation>Instellingen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="28"/>
|
|
||||||
<source>Do nothing</source>
|
|
||||||
<translation>Niets doen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="29"/>
|
|
||||||
<source>Close the window</source>
|
|
||||||
<translation>Venster sluiten</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="30"/>
|
|
||||||
<source>Toggle maximize</source>
|
|
||||||
<translation>Maximaliseren/Demaximaliseren</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="34"/>
|
|
||||||
<source>Zoom in and out</source>
|
|
||||||
<translation>In-/Uitzoomen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="35"/>
|
|
||||||
<source>View next or previous item</source>
|
|
||||||
<translation>Ga naar volgende of vorige item</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="39"/>
|
|
||||||
<source>Auto size</source>
|
|
||||||
<translation>Automatische grootte</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="40"/>
|
|
||||||
<source>Maximized</source>
|
|
||||||
<translation>Gemaximaliseerd</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="44"/>
|
|
||||||
<source>Round (Integer scaling)</source>
|
|
||||||
<comment>This option means round up for .5 and above</comment>
|
|
||||||
<translation>Rond (geheel getal)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="45"/>
|
|
||||||
<source>Ceil (Integer scaling)</source>
|
|
||||||
<comment>This option means always round up</comment>
|
|
||||||
<translation>Keil (geheel getal)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="46"/>
|
|
||||||
<source>Floor (Integer scaling)</source>
|
|
||||||
<comment>This option means always round down</comment>
|
|
||||||
<translation>Grond (geheel getal)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="47"/>
|
|
||||||
<source>Follow system (Fractional scaling)</source>
|
|
||||||
<comment>This option means don't round</comment>
|
|
||||||
<translation>Systeeminstelling (fractionele schaal)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="70"/>
|
|
||||||
<source>Stay on top when start-up</source>
|
|
||||||
<translation>Automatisch altijd bovenop</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="71"/>
|
|
||||||
<source>Use light-color checkerboard</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="72"/>
|
|
||||||
<source>Double-click behavior</source>
|
|
||||||
<translation>Dubbelklikgedrag</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="73"/>
|
|
||||||
<source>Mouse wheel behavior</source>
|
|
||||||
<translation>Scrollwielgedrag</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="74"/>
|
|
||||||
<source>Default window size</source>
|
|
||||||
<translation>Standaard vensterafmetingen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="75"/>
|
|
||||||
<source>HiDPI scale factor rounding policy</source>
|
|
||||||
<translation>HiDPI-schaalfactor - afrondbeleid</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>main</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="41"/>
|
|
||||||
<source>Pineapple Pictures</source>
|
|
||||||
<translation>Pineapple Afbeeldingen</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="45"/>
|
|
||||||
<source>List supported image format suffixes, and quit program.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="49"/>
|
|
||||||
<source>File list.</source>
|
|
||||||
<translation>Bestandslijst.</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
|
||||||
@@ -1,826 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!DOCTYPE TS>
|
|
||||||
<TS version="2.1" language="ru_RU">
|
|
||||||
<context>
|
|
||||||
<name>AboutDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="27"/>
|
|
||||||
<source>About</source>
|
|
||||||
<translation>О программе</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="30"/>
|
|
||||||
<source>Launch application with image file path as argument to load the file.</source>
|
|
||||||
<translation>Запустите приложение, указав путь к файлу изображения в качестве аргумента для загрузки файла.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="31"/>
|
|
||||||
<source>Drag and drop image file onto the window is also supported.</source>
|
|
||||||
<translation>Также поддерживается перетаскивание файла изображения в окно.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="32"/>
|
|
||||||
<source>None of the operations in this application will alter the pictures on disk.</source>
|
|
||||||
<translation>Ни одна из операций в этом приложении не изменит изображения на диске.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="33"/>
|
|
||||||
<source>Context menu option explanation:</source>
|
|
||||||
<translation>Пояснение к параметрам контекстного меню:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="40"/>
|
|
||||||
<source>Make window stay on top of all other windows.</source>
|
|
||||||
<translation>Расположить окно поверх всех остальных окон.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="43"/>
|
|
||||||
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
|
|
||||||
<translation>Избегать случайного закрытия окна. (например, двойным щелчком по окну)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="53"/>
|
|
||||||
<source>Version: %1</source>
|
|
||||||
<translation>Версия: %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Copyright (c) 2020 %1</source>
|
|
||||||
<translation type="vanished">Авторское право (c) 2020 %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="64"/>
|
|
||||||
<source>Logo designed by %1</source>
|
|
||||||
<translation>Логотип разработан %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="66"/>
|
|
||||||
<source>Built with Qt %1 (%2)</source>
|
|
||||||
<translation>Создано с использованием Qt %1 (%2)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="67"/>
|
|
||||||
<source>Source code</source>
|
|
||||||
<translation>Исходный код</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="77"/>
|
|
||||||
<source>Contributors</source>
|
|
||||||
<translation>Участники</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="79"/>
|
|
||||||
<source>List of contributors on GitHub</source>
|
|
||||||
<translation>Список участников на GitHub</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="80"/>
|
|
||||||
<source>Thanks to all people who contributed to this project.</source>
|
|
||||||
<translation>Спасибо всем, кто внес свой вклад в этот проект.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="84"/>
|
|
||||||
<source>Translators</source>
|
|
||||||
<translation>Переводчики</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="85"/>
|
|
||||||
<source>I would like to thank the following people who volunteered to translate this application.</source>
|
|
||||||
<translation>Я бы хотел поблагодарить следующих людей, которые приняли участие в переводе этого приложения.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="129"/>
|
|
||||||
<source>%1 is built on the following free software libraries:</source>
|
|
||||||
<comment>Free as in freedom</comment>
|
|
||||||
<translation>%1 создан на следующих бесплатных библиотеках программного обеспечения:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="153"/>
|
|
||||||
<source>&Special Thanks</source>
|
|
||||||
<translation>&Особая благодарность</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="155"/>
|
|
||||||
<source>&Third-party Libraries</source>
|
|
||||||
<translation>&Сторонние библиотеки</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="91"/>
|
|
||||||
<source>Your Rights</source>
|
|
||||||
<translation>Ваши Права</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="46"/>
|
|
||||||
<source>Avoid resetting the zoom/rotation/flip state that was applied to the image view when switching between images.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="61"/>
|
|
||||||
<source>Copyright (c) %1 %2</source>
|
|
||||||
<comment>%1 is year, %2 is the name of copyright holder(s)</comment>
|
|
||||||
<translation>Copyright (c) %1 %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="93"/>
|
|
||||||
<source>%1 is released under the MIT License.</source>
|
|
||||||
<translation>%1 выпущен под лицензией MIT.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="94"/>
|
|
||||||
<source>This license grants people a number of freedoms:</source>
|
|
||||||
<translation>Эта лицензия дает людям ряд свобод:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="95"/>
|
|
||||||
<source>You are free to use %1, for any purpose</source>
|
|
||||||
<translation>Вы можете свободно использовать %1 для любых целей</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="96"/>
|
|
||||||
<source>You are free to distribute %1</source>
|
|
||||||
<translation>Вы можете свободно распространять %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="97"/>
|
|
||||||
<source>You can study how %1 works and change it</source>
|
|
||||||
<translation>Вы можете изучать, как работает %1, и изменять его</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="98"/>
|
|
||||||
<source>You can distribute changed versions of %1</source>
|
|
||||||
<translation>Вы можете распространять измененные версии %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="100"/>
|
|
||||||
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
|
|
||||||
<translation>Лицензия MIT гарантирует вам эту свободу. Никому и никогда не разрешается забирать ее.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="128"/>
|
|
||||||
<source>Third-party Libraries used by %1</source>
|
|
||||||
<translation>Сторонние библиотеки, используемые %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="151"/>
|
|
||||||
<source>&Help</source>
|
|
||||||
<translation>&Помощь</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="152"/>
|
|
||||||
<source>&About</source>
|
|
||||||
<translation>&О программе</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="154"/>
|
|
||||||
<source>&License</source>
|
|
||||||
<translation>&Лицензия</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsScene</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="264"/>
|
|
||||||
<location filename="../graphicsscene.cpp" line="90"/>
|
|
||||||
<source>Drag image here</source>
|
|
||||||
<translation>Перетащите изображение сюда</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsView</name>
|
|
||||||
<message>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation type="vanished">Список URL-адресов файлов пуст</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="52"/>
|
|
||||||
<source>File is not a valid image</source>
|
|
||||||
<translation>Файл не является допустимым изображением</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="56"/>
|
|
||||||
<location filename="../graphicsview.cpp" line="60"/>
|
|
||||||
<source>Image data is invalid or currently unsupported</source>
|
|
||||||
<translation>Параметры изображения недействительны или не поддерживаются в настоящее время</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Image data is invalid</source>
|
|
||||||
<translation type="vanished">Параметры изображения недействительны</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Not supported mimedata: %1</source>
|
|
||||||
<translation type="vanished">Неподдерживаемые mimedata: %1</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MainWindow</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="175"/>
|
|
||||||
<location filename="../mainwindow.cpp" line="531"/>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation>Список URL-адресов файлов пуст</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="429"/>
|
|
||||||
<source>&Copy</source>
|
|
||||||
<translation>&Скопировать</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="539"/>
|
|
||||||
<source>Image data is invalid</source>
|
|
||||||
<translation>Параметры изображения недействительны</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="546"/>
|
|
||||||
<source>Not supported mimedata: %1</source>
|
|
||||||
<translation>Неподдерживаемые mimedata: %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="742"/>
|
|
||||||
<source>Image From Clipboard</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="760"/>
|
|
||||||
<source>Are you sure you want to move "%1" to recycle bin?</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="765"/>
|
|
||||||
<source>Move to trash failed, it might caused by file permission issue, file system limitation, or platform limitation.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="108"/>
|
|
||||||
<source>Copy P&ixmap</source>
|
|
||||||
<translation>Скопировать P&ixmap</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="109"/>
|
|
||||||
<source>Copy &File Path</source>
|
|
||||||
<translation>Скопировать &путь к файлу</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="127"/>
|
|
||||||
<source>Properties</source>
|
|
||||||
<translation>Свойства</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="112"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="39"/>
|
|
||||||
<source>Stay on top</source>
|
|
||||||
<translation>Поверх всех окон</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="113"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="42"/>
|
|
||||||
<source>Protected mode</source>
|
|
||||||
<translation>Защищенный режим</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="114"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="45"/>
|
|
||||||
<source>Keep transformation</source>
|
|
||||||
<comment>The 'transformation' means the flip/rotation status that currently applied to the image view</comment>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="96"/>
|
|
||||||
<source>Zoom in</source>
|
|
||||||
<translation>Увеличить</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="97"/>
|
|
||||||
<source>Zoom out</source>
|
|
||||||
<translation>Уменьшить</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="105"/>
|
|
||||||
<source>Flip &Horizontally</source>
|
|
||||||
<translation>Отразить по &горизонтали</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="106"/>
|
|
||||||
<source>Fit to view</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="107"/>
|
|
||||||
<source>Fit to width</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="110"/>
|
|
||||||
<source>&Paste</source>
|
|
||||||
<translation>&Вставить</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="98"/>
|
|
||||||
<source>Toggle Checkerboard</source>
|
|
||||||
<translation>Переключить фоновый рисунок</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="92"/>
|
|
||||||
<source>&Open...</source>
|
|
||||||
<translation>&Открыть...</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="94"/>
|
|
||||||
<source>Actual size</source>
|
|
||||||
<translation>Фактический размер</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="95"/>
|
|
||||||
<source>Toggle maximize</source>
|
|
||||||
<translation>Переключить окно</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="99"/>
|
|
||||||
<source>Rotate right</source>
|
|
||||||
<translation>Повернуть вправо</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="100"/>
|
|
||||||
<source>Rotate left</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="102"/>
|
|
||||||
<source>Previous image</source>
|
|
||||||
<translation>Предыдущее изображение</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="103"/>
|
|
||||||
<source>Next image</source>
|
|
||||||
<translation>Следующее изображение</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="759"/>
|
|
||||||
<location filename="../actionmanager.cpp" line="111"/>
|
|
||||||
<source>Move to Trash</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="115"/>
|
|
||||||
<source>Configure...</source>
|
|
||||||
<translation>Параметры...</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="116"/>
|
|
||||||
<source>Help</source>
|
|
||||||
<translation>Помощь</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="119"/>
|
|
||||||
<source>Show in File Explorer</source>
|
|
||||||
<comment>File Explorer is the name of explorer.exe under Windows</comment>
|
|
||||||
<translation>Показать в проводнике</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="125"/>
|
|
||||||
<source>Show in directory</source>
|
|
||||||
<translation>Показать в папке</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="128"/>
|
|
||||||
<source>Quit</source>
|
|
||||||
<translation>Выход</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MetadataDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatadialog.cpp" line="84"/>
|
|
||||||
<source>Image Metadata</source>
|
|
||||||
<translation>Метаданные изображения</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MetadataModel</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="41"/>
|
|
||||||
<source>Origin</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Происхождение</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="42"/>
|
|
||||||
<source>Image</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Изображение</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="46"/>
|
|
||||||
<source>File</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Файл</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="43"/>
|
|
||||||
<source>Camera</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Камера</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="33"/>
|
|
||||||
<source>%1 File</source>
|
|
||||||
<translation>%1 Файл</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="40"/>
|
|
||||||
<source>Description</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Описание</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="44"/>
|
|
||||||
<source>Advanced photo</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Расширенное фото</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="45"/>
|
|
||||||
<source>GPS</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>GPS</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="50"/>
|
|
||||||
<source>Dimensions</source>
|
|
||||||
<translation>Размеры</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="52"/>
|
|
||||||
<source>Aspect ratio</source>
|
|
||||||
<translation>Соотношение сторон</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="56"/>
|
|
||||||
<source>Frame count</source>
|
|
||||||
<translation>Количество кадров</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="60"/>
|
|
||||||
<source>Name</source>
|
|
||||||
<translation>Название</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="62"/>
|
|
||||||
<source>Item type</source>
|
|
||||||
<translation>Тип элемента</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="64"/>
|
|
||||||
<source>Folder path</source>
|
|
||||||
<translation>Путь к папке</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="66"/>
|
|
||||||
<source>Size</source>
|
|
||||||
<translation>Размер</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="68"/>
|
|
||||||
<source>Date created</source>
|
|
||||||
<translation>Дата создания</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="70"/>
|
|
||||||
<source>Date modified</source>
|
|
||||||
<translation>Дата изменения</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="77"/>
|
|
||||||
<source>Title</source>
|
|
||||||
<translation>Заголовок</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="79"/>
|
|
||||||
<source>Subject</source>
|
|
||||||
<translation>Тема</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="81"/>
|
|
||||||
<source>Rating</source>
|
|
||||||
<translation>Рейтинг</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="83"/>
|
|
||||||
<source>Tags</source>
|
|
||||||
<translation>Теги</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="85"/>
|
|
||||||
<source>Comments</source>
|
|
||||||
<translation>Комментарии</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="88"/>
|
|
||||||
<source>Authors</source>
|
|
||||||
<translation>Авторы</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="90"/>
|
|
||||||
<source>Date taken</source>
|
|
||||||
<translation>Дата съемки</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="96"/>
|
|
||||||
<source>Program name</source>
|
|
||||||
<translation>Название программы</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="98"/>
|
|
||||||
<source>Copyright</source>
|
|
||||||
<translation>Авторские права</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="101"/>
|
|
||||||
<source>Horizontal resolution</source>
|
|
||||||
<translation>Разрешение по горизонтали</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="103"/>
|
|
||||||
<source>Vertical resolution</source>
|
|
||||||
<translation>Разрешение по вертикали</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="105"/>
|
|
||||||
<source>Resolution unit</source>
|
|
||||||
<translation>Единица разрешения</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="107"/>
|
|
||||||
<source>Colour representation</source>
|
|
||||||
<translation>Цветопередача</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="110"/>
|
|
||||||
<source>Camera maker</source>
|
|
||||||
<translation>Производитель камеры</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="112"/>
|
|
||||||
<source>Camera model</source>
|
|
||||||
<translation>Модель камеры</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="114"/>
|
|
||||||
<source>F-stop</source>
|
|
||||||
<translation>Величина диафрагмы</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="116"/>
|
|
||||||
<source>Exposure time</source>
|
|
||||||
<translation>Время экспозиции</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="118"/>
|
|
||||||
<source>ISO speed</source>
|
|
||||||
<translation>Чувствительность ISO</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="120"/>
|
|
||||||
<source>Exposure bias</source>
|
|
||||||
<translation>Смещение экспозиции</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="122"/>
|
|
||||||
<source>Focal length</source>
|
|
||||||
<translation>Фокусное расстояние</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="124"/>
|
|
||||||
<source>Max aperture</source>
|
|
||||||
<translation>Максимальная апертура</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="126"/>
|
|
||||||
<source>Metering mode</source>
|
|
||||||
<translation>Режим измерения</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="128"/>
|
|
||||||
<source>Subject distance</source>
|
|
||||||
<translation>Расстояние до объекта</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="130"/>
|
|
||||||
<source>Flash mode</source>
|
|
||||||
<translation>Режим вспышки</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="132"/>
|
|
||||||
<source>35mm focal length</source>
|
|
||||||
<translation>Фокусное расстояние 35 мм</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="135"/>
|
|
||||||
<source>Lens model</source>
|
|
||||||
<translation>Модель объектива</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="137"/>
|
|
||||||
<source>Contrast</source>
|
|
||||||
<translation>Контраст</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="139"/>
|
|
||||||
<source>Brightness</source>
|
|
||||||
<translation>Яркость</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="141"/>
|
|
||||||
<source>Exposure program</source>
|
|
||||||
<translation>Программа экспозиции</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="143"/>
|
|
||||||
<source>Saturation</source>
|
|
||||||
<translation>Насыщенность</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="145"/>
|
|
||||||
<source>Sharpness</source>
|
|
||||||
<translation>Четкость</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="147"/>
|
|
||||||
<source>White balance</source>
|
|
||||||
<translation>Баланс белого</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="149"/>
|
|
||||||
<source>Digital zoom</source>
|
|
||||||
<translation>Цифровое увеличение</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="151"/>
|
|
||||||
<source>EXIF version</source>
|
|
||||||
<translation>Версия EXIF</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="154"/>
|
|
||||||
<source>Latitude reference</source>
|
|
||||||
<translation>Ссылка на широту</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="156"/>
|
|
||||||
<source>Latitude</source>
|
|
||||||
<translation>Широта</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="158"/>
|
|
||||||
<source>Longitude reference</source>
|
|
||||||
<translation>Ссылка на долготу</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="160"/>
|
|
||||||
<source>Longitude</source>
|
|
||||||
<translation>Долгота</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="162"/>
|
|
||||||
<source>Altitude reference</source>
|
|
||||||
<translation>Ссылка на высоту</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="164"/>
|
|
||||||
<source>Altitude</source>
|
|
||||||
<translation>Высота</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="174"/>
|
|
||||||
<source>%1 x %2</source>
|
|
||||||
<translation>%1 x %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="192"/>
|
|
||||||
<source>%1 : %2</source>
|
|
||||||
<translation>%1 : %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="317"/>
|
|
||||||
<source>Property</source>
|
|
||||||
<translation>Свойство</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="317"/>
|
|
||||||
<source>Value</source>
|
|
||||||
<translation>Значение</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>SettingsDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="23"/>
|
|
||||||
<source>Settings</source>
|
|
||||||
<translation>Параметры</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="28"/>
|
|
||||||
<source>Do nothing</source>
|
|
||||||
<translation>Ничего не делать</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="29"/>
|
|
||||||
<source>Close the window</source>
|
|
||||||
<translation>Закрыть окно</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="30"/>
|
|
||||||
<source>Toggle maximize</source>
|
|
||||||
<translation>Переключить окно</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="34"/>
|
|
||||||
<source>Zoom in and out</source>
|
|
||||||
<translation>Увеличение и уменьшение масштаба</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="35"/>
|
|
||||||
<source>View next or previous item</source>
|
|
||||||
<translation>Следующее или предыдущее изображение</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="39"/>
|
|
||||||
<source>Auto size</source>
|
|
||||||
<translation>Авторазмер</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="40"/>
|
|
||||||
<source>Maximized</source>
|
|
||||||
<translation>Максимизировать</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="44"/>
|
|
||||||
<source>Round (Integer scaling)</source>
|
|
||||||
<comment>This option means round up for .5 and above</comment>
|
|
||||||
<translation>Round (целочисленное масштабирование)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="45"/>
|
|
||||||
<source>Ceil (Integer scaling)</source>
|
|
||||||
<comment>This option means always round up</comment>
|
|
||||||
<translation>Ceil (целочисленное масштабирование)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="46"/>
|
|
||||||
<source>Floor (Integer scaling)</source>
|
|
||||||
<comment>This option means always round down</comment>
|
|
||||||
<translation>Floor (целочисленное масштабирование)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="47"/>
|
|
||||||
<source>Follow system (Fractional scaling)</source>
|
|
||||||
<comment>This option means don't round</comment>
|
|
||||||
<translation>Следовать системе (дробное масштабирование)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="70"/>
|
|
||||||
<source>Stay on top when start-up</source>
|
|
||||||
<translation>Поверх всех окон при запуске</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="71"/>
|
|
||||||
<source>Use light-color checkerboard</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="72"/>
|
|
||||||
<source>Double-click behavior</source>
|
|
||||||
<translation>Действие при двойном щелчке</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="73"/>
|
|
||||||
<source>Mouse wheel behavior</source>
|
|
||||||
<translation>Действие колеса мыши</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="74"/>
|
|
||||||
<source>Default window size</source>
|
|
||||||
<translation>Размер окна по умолчанию</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="75"/>
|
|
||||||
<source>HiDPI scale factor rounding policy</source>
|
|
||||||
<translation>Политика округления коэффициента масштабирования HiDPI</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>main</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="41"/>
|
|
||||||
<source>Pineapple Pictures</source>
|
|
||||||
<translation>Pineapple Pictures</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="45"/>
|
|
||||||
<source>List supported image format suffixes, and quit program.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="49"/>
|
|
||||||
<source>File list.</source>
|
|
||||||
<translation>Список файлов.</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
|
||||||
@@ -1,826 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!DOCTYPE TS>
|
|
||||||
<TS version="2.1" language="tr_TR">
|
|
||||||
<context>
|
|
||||||
<name>AboutDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="27"/>
|
|
||||||
<source>About</source>
|
|
||||||
<translation>Hakkında</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="30"/>
|
|
||||||
<source>Launch application with image file path as argument to load the file.</source>
|
|
||||||
<translation>Dosyayı yüklemek için değişken olarak resim dosyası yolu ile uygulamayı çalıştır.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="31"/>
|
|
||||||
<source>Drag and drop image file onto the window is also supported.</source>
|
|
||||||
<translation>Pencere üzerine resim dosyası sürükle bırak ta destekleniyor.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="32"/>
|
|
||||||
<source>None of the operations in this application will alter the pictures on disk.</source>
|
|
||||||
<translation>Bu uygulamadaki işlemlerin hiçbiri diskteki resimleri değiştirmeyecektir.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="33"/>
|
|
||||||
<source>Context menu option explanation:</source>
|
|
||||||
<translation>İçerik menüsü seçeneği açıklaması:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="40"/>
|
|
||||||
<source>Make window stay on top of all other windows.</source>
|
|
||||||
<translation>Pencereyi diğer tüm pencerelerin üzerinde tut.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="43"/>
|
|
||||||
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
|
|
||||||
<translation>Pencereyi yanlışlıkla kapatmaktan kaçın. (örn. pencereye çift tıklayarak)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="53"/>
|
|
||||||
<source>Version: %1</source>
|
|
||||||
<translation>Sürüm: %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Copyright (c) 2020 %1</source>
|
|
||||||
<translation type="vanished">Telif hakkı (c) 2020 %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="64"/>
|
|
||||||
<source>Logo designed by %1</source>
|
|
||||||
<translation>Logo tasarımcısı: %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="66"/>
|
|
||||||
<source>Built with Qt %1 (%2)</source>
|
|
||||||
<translation>Qt %1 (%2) ile inşa edilmiştir</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="67"/>
|
|
||||||
<source>Source code</source>
|
|
||||||
<translation>Kaynak kodu</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="77"/>
|
|
||||||
<source>Contributors</source>
|
|
||||||
<translation>Katkıda bulunanlar</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="79"/>
|
|
||||||
<source>List of contributors on GitHub</source>
|
|
||||||
<translation>Github üzerindeki katkı sağlayıcıların listesi</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="80"/>
|
|
||||||
<source>Thanks to all people who contributed to this project.</source>
|
|
||||||
<translation>Bu projeye katkı sağlayan herkese teşekkürler.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="84"/>
|
|
||||||
<source>Translators</source>
|
|
||||||
<translation>Çevirmenler</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="85"/>
|
|
||||||
<source>I would like to thank the following people who volunteered to translate this application.</source>
|
|
||||||
<translation>Bu uygulamayı çevirmeye gönüllü olan aşağıdaki kişilere teşekkür etmek istiyorum.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="129"/>
|
|
||||||
<source>%1 is built on the following free software libraries:</source>
|
|
||||||
<comment>Free as in freedom</comment>
|
|
||||||
<translation>%1 aşağıdaki özgür yazılım kitaplıkları üzerinde inşa edilmiştir:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="153"/>
|
|
||||||
<source>&Special Thanks</source>
|
|
||||||
<translation>Özel %Teşekkürler</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="155"/>
|
|
||||||
<source>&Third-party Libraries</source>
|
|
||||||
<translation>Üçüncü Par&ti Kitaplıklar</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="91"/>
|
|
||||||
<source>Your Rights</source>
|
|
||||||
<translation>Haklarınız</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="46"/>
|
|
||||||
<source>Avoid resetting the zoom/rotation/flip state that was applied to the image view when switching between images.</source>
|
|
||||||
<translation>Resimler arasında geçiş yaparken resim görünümüne uygulanan yakınlaştırma/döndürme/çevirme durumu sıfırlanmasın.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="61"/>
|
|
||||||
<source>Copyright (c) %1 %2</source>
|
|
||||||
<comment>%1 is year, %2 is the name of copyright holder(s)</comment>
|
|
||||||
<translation>Telif Hakkı (c) %1 %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="93"/>
|
|
||||||
<source>%1 is released under the MIT License.</source>
|
|
||||||
<translation>%1, MIT Lisansı altında sunulmuştur.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="94"/>
|
|
||||||
<source>This license grants people a number of freedoms:</source>
|
|
||||||
<translation>Bu lisans birkaç özgürlüğü kişilere veriyor:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="95"/>
|
|
||||||
<source>You are free to use %1, for any purpose</source>
|
|
||||||
<translation>%1'i herhangi bir amaç için kullanmakta özgürsünüz</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="96"/>
|
|
||||||
<source>You are free to distribute %1</source>
|
|
||||||
<translation>%1'i dağıtmakta özgürsünüz</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="97"/>
|
|
||||||
<source>You can study how %1 works and change it</source>
|
|
||||||
<translation>%1'in nasıl çalıştığıyla ilgili çalışabilir ve onu değiştirebilirsiniz</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="98"/>
|
|
||||||
<source>You can distribute changed versions of %1</source>
|
|
||||||
<translation>%1'in değiştirilmiş sürümünü dağıtabilirsiniz</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="100"/>
|
|
||||||
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
|
|
||||||
<translation>MIT lisansı özgürlüğünüzü garanti eder. Hiç kimsenin özgürlüğünüzü sizden almasına bile izin verilmez.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="128"/>
|
|
||||||
<source>Third-party Libraries used by %1</source>
|
|
||||||
<translation>%1 tarafından kullanılan Üçüncü Parti Kitaplıklar</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="151"/>
|
|
||||||
<source>&Help</source>
|
|
||||||
<translation>&Yardım</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="152"/>
|
|
||||||
<source>&About</source>
|
|
||||||
<translation>H&akkında</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="154"/>
|
|
||||||
<source>&License</source>
|
|
||||||
<translation>&Lisans</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsScene</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="264"/>
|
|
||||||
<location filename="../graphicsscene.cpp" line="90"/>
|
|
||||||
<source>Drag image here</source>
|
|
||||||
<translation>Resmi buraya sürükleyin</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsView</name>
|
|
||||||
<message>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation type="vanished">Dosya URL listesi boş</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="52"/>
|
|
||||||
<source>File is not a valid image</source>
|
|
||||||
<translation>Dosya, geçerli bir resim değil</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="56"/>
|
|
||||||
<location filename="../graphicsview.cpp" line="60"/>
|
|
||||||
<source>Image data is invalid or currently unsupported</source>
|
|
||||||
<translation>Resim verisi geçersiz veya şuan desteklenmiyor</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Image data is invalid</source>
|
|
||||||
<translation type="vanished">Resim verisi geçersiz</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Not supported mimedata: %1</source>
|
|
||||||
<translation type="vanished">Desteklenmeyen dosya türü verisi: %1</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MainWindow</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="175"/>
|
|
||||||
<location filename="../mainwindow.cpp" line="531"/>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation>Dosya URL listesi boş</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="429"/>
|
|
||||||
<source>&Copy</source>
|
|
||||||
<translation>&Kopyala</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="539"/>
|
|
||||||
<source>Image data is invalid</source>
|
|
||||||
<translation>Resim verisi geçersiz</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="546"/>
|
|
||||||
<source>Not supported mimedata: %1</source>
|
|
||||||
<translation>Desteklenmeyen dosya türü verisi: %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="742"/>
|
|
||||||
<source>Image From Clipboard</source>
|
|
||||||
<translation>Panodaki Resim</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="760"/>
|
|
||||||
<source>Are you sure you want to move "%1" to recycle bin?</source>
|
|
||||||
<translation>"%1" ögesini geri dönüşüm kutusuna taşımak istediğinizden emin misiniz?</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="765"/>
|
|
||||||
<source>Move to trash failed, it might caused by file permission issue, file system limitation, or platform limitation.</source>
|
|
||||||
<translation>Çöp kutusuna taşıma başarısız oldu, dosya izin sorunu, dosya sistemi sınırlaması veya platform sınırlamasından kaynaklanıyor olabilir.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="108"/>
|
|
||||||
<source>Copy P&ixmap</source>
|
|
||||||
<translation>P&ixmap'i Kopyala</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="109"/>
|
|
||||||
<source>Copy &File Path</source>
|
|
||||||
<translation>&Dosya Yolunu Kopyala</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="127"/>
|
|
||||||
<source>Properties</source>
|
|
||||||
<translation>Özellikler</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="112"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="39"/>
|
|
||||||
<source>Stay on top</source>
|
|
||||||
<translation>Üstte tut</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="113"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="42"/>
|
|
||||||
<source>Protected mode</source>
|
|
||||||
<translation>Korumalı kip</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="114"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="45"/>
|
|
||||||
<source>Keep transformation</source>
|
|
||||||
<comment>The 'transformation' means the flip/rotation status that currently applied to the image view</comment>
|
|
||||||
<translation>Dönüşümü koru</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="96"/>
|
|
||||||
<source>Zoom in</source>
|
|
||||||
<translation>Yaklaştır</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="97"/>
|
|
||||||
<source>Zoom out</source>
|
|
||||||
<translation>Uzaklaştır</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="105"/>
|
|
||||||
<source>Flip &Horizontally</source>
|
|
||||||
<translation>&Yatay Çevir</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="106"/>
|
|
||||||
<source>Fit to view</source>
|
|
||||||
<translation>Görünüme sığdır</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="107"/>
|
|
||||||
<source>Fit to width</source>
|
|
||||||
<translation>Genişliğe sığdır</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="110"/>
|
|
||||||
<source>&Paste</source>
|
|
||||||
<translation>Ya&pıştır</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="98"/>
|
|
||||||
<source>Toggle Checkerboard</source>
|
|
||||||
<translation>Damalı Ekrana Geç</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="92"/>
|
|
||||||
<source>&Open...</source>
|
|
||||||
<translation>&Aç...</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="94"/>
|
|
||||||
<source>Actual size</source>
|
|
||||||
<translation>Gerçek boyut</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="95"/>
|
|
||||||
<source>Toggle maximize</source>
|
|
||||||
<translation>Tam boyuta geç</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="99"/>
|
|
||||||
<source>Rotate right</source>
|
|
||||||
<translation>Sağa döndür</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="100"/>
|
|
||||||
<source>Rotate left</source>
|
|
||||||
<translation>Sola döndür</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="102"/>
|
|
||||||
<source>Previous image</source>
|
|
||||||
<translation>Önceki resim</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="103"/>
|
|
||||||
<source>Next image</source>
|
|
||||||
<translation>Sonraki resim</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="759"/>
|
|
||||||
<location filename="../actionmanager.cpp" line="111"/>
|
|
||||||
<source>Move to Trash</source>
|
|
||||||
<translation>Çöp Kutusuna Taşı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="115"/>
|
|
||||||
<source>Configure...</source>
|
|
||||||
<translation>Yapılandır...</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="116"/>
|
|
||||||
<source>Help</source>
|
|
||||||
<translation>Yardım</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="119"/>
|
|
||||||
<source>Show in File Explorer</source>
|
|
||||||
<comment>File Explorer is the name of explorer.exe under Windows</comment>
|
|
||||||
<translation>Dosya Gezgini'nde Göster</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="125"/>
|
|
||||||
<source>Show in directory</source>
|
|
||||||
<translation>Dizinde göster</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="128"/>
|
|
||||||
<source>Quit</source>
|
|
||||||
<translation>Çıkış</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MetadataDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatadialog.cpp" line="84"/>
|
|
||||||
<source>Image Metadata</source>
|
|
||||||
<translation>Resim Üstverisi</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MetadataModel</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="41"/>
|
|
||||||
<source>Origin</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Köken</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="42"/>
|
|
||||||
<source>Image</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Resim</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="46"/>
|
|
||||||
<source>File</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Dosya</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="43"/>
|
|
||||||
<source>Camera</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Kamera</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="33"/>
|
|
||||||
<source>%1 File</source>
|
|
||||||
<translation>%1 Dosya</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="40"/>
|
|
||||||
<source>Description</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Açıklama</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="44"/>
|
|
||||||
<source>Advanced photo</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>Gelişmiş foto</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="45"/>
|
|
||||||
<source>GPS</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>GPS</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="50"/>
|
|
||||||
<source>Dimensions</source>
|
|
||||||
<translation>Boyutlar</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="52"/>
|
|
||||||
<source>Aspect ratio</source>
|
|
||||||
<translation>En boy oranı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="56"/>
|
|
||||||
<source>Frame count</source>
|
|
||||||
<translation>Kare sayısı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="60"/>
|
|
||||||
<source>Name</source>
|
|
||||||
<translation>Adı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="62"/>
|
|
||||||
<source>Item type</source>
|
|
||||||
<translation>Öge türü</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="64"/>
|
|
||||||
<source>Folder path</source>
|
|
||||||
<translation>Klasör yolu</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="66"/>
|
|
||||||
<source>Size</source>
|
|
||||||
<translation>Boyut</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="68"/>
|
|
||||||
<source>Date created</source>
|
|
||||||
<translation>Oluşturulma tarihi</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="70"/>
|
|
||||||
<source>Date modified</source>
|
|
||||||
<translation>Değiştirilme tarihi</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="77"/>
|
|
||||||
<source>Title</source>
|
|
||||||
<translation>Başlık</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="79"/>
|
|
||||||
<source>Subject</source>
|
|
||||||
<translation>Konu</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="81"/>
|
|
||||||
<source>Rating</source>
|
|
||||||
<translation>Değerlendirme</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="83"/>
|
|
||||||
<source>Tags</source>
|
|
||||||
<translation>Etiketler</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="85"/>
|
|
||||||
<source>Comments</source>
|
|
||||||
<translation>Yorumlar</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="88"/>
|
|
||||||
<source>Authors</source>
|
|
||||||
<translation>Sanatçılar</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="90"/>
|
|
||||||
<source>Date taken</source>
|
|
||||||
<translation>Çekilme tarihi</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="96"/>
|
|
||||||
<source>Program name</source>
|
|
||||||
<translation>Program adı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="98"/>
|
|
||||||
<source>Copyright</source>
|
|
||||||
<translation>Telif Hakkı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="101"/>
|
|
||||||
<source>Horizontal resolution</source>
|
|
||||||
<translation>Yatay çözünürlük</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="103"/>
|
|
||||||
<source>Vertical resolution</source>
|
|
||||||
<translation>Dikey çözünürlük</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="105"/>
|
|
||||||
<source>Resolution unit</source>
|
|
||||||
<translation>Çözünürlük birimi</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="107"/>
|
|
||||||
<source>Colour representation</source>
|
|
||||||
<translation>Renk sunumu</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="110"/>
|
|
||||||
<source>Camera maker</source>
|
|
||||||
<translation>Kamera üreticisi</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="112"/>
|
|
||||||
<source>Camera model</source>
|
|
||||||
<translation>Kamera modeli</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="114"/>
|
|
||||||
<source>F-stop</source>
|
|
||||||
<translation>Diyafram</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="116"/>
|
|
||||||
<source>Exposure time</source>
|
|
||||||
<translation>Pozlama süresi</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="118"/>
|
|
||||||
<source>ISO speed</source>
|
|
||||||
<translation>ISO hızı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="120"/>
|
|
||||||
<source>Exposure bias</source>
|
|
||||||
<translation>Pozlama sapması</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="122"/>
|
|
||||||
<source>Focal length</source>
|
|
||||||
<translation>Odak uzaklığı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="124"/>
|
|
||||||
<source>Max aperture</source>
|
|
||||||
<translation>Azami açıklık</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="126"/>
|
|
||||||
<source>Metering mode</source>
|
|
||||||
<translation>Ölçme kipi</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="128"/>
|
|
||||||
<source>Subject distance</source>
|
|
||||||
<translation>Konu mesafesi</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="130"/>
|
|
||||||
<source>Flash mode</source>
|
|
||||||
<translation>Flaş kipi</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="132"/>
|
|
||||||
<source>35mm focal length</source>
|
|
||||||
<translation>35mm odak uzaklığı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="135"/>
|
|
||||||
<source>Lens model</source>
|
|
||||||
<translation>Mercek modeli</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="137"/>
|
|
||||||
<source>Contrast</source>
|
|
||||||
<translation>Karşıtlık</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="139"/>
|
|
||||||
<source>Brightness</source>
|
|
||||||
<translation>Parlaklık</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="141"/>
|
|
||||||
<source>Exposure program</source>
|
|
||||||
<translation>Pozlama programı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="143"/>
|
|
||||||
<source>Saturation</source>
|
|
||||||
<translation>Doygunluk</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="145"/>
|
|
||||||
<source>Sharpness</source>
|
|
||||||
<translation>Keskinlik</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="147"/>
|
|
||||||
<source>White balance</source>
|
|
||||||
<translation>Beyaz dengesi</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="149"/>
|
|
||||||
<source>Digital zoom</source>
|
|
||||||
<translation>Dijital yakınlaştırma</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="151"/>
|
|
||||||
<source>EXIF version</source>
|
|
||||||
<translation>EXIF sürümü</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="154"/>
|
|
||||||
<source>Latitude reference</source>
|
|
||||||
<translation>Enlem kaynağı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="156"/>
|
|
||||||
<source>Latitude</source>
|
|
||||||
<translation>Enlem</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="158"/>
|
|
||||||
<source>Longitude reference</source>
|
|
||||||
<translation>Boylam kaynağı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="160"/>
|
|
||||||
<source>Longitude</source>
|
|
||||||
<translation>Boylam</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="162"/>
|
|
||||||
<source>Altitude reference</source>
|
|
||||||
<translation>Rakım kaynağı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="164"/>
|
|
||||||
<source>Altitude</source>
|
|
||||||
<translation>Rakım</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="174"/>
|
|
||||||
<source>%1 x %2</source>
|
|
||||||
<translation>%1 x %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="192"/>
|
|
||||||
<source>%1 : %2</source>
|
|
||||||
<translation>%1 : %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="317"/>
|
|
||||||
<source>Property</source>
|
|
||||||
<translation>Özellik</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="317"/>
|
|
||||||
<source>Value</source>
|
|
||||||
<translation>Değer</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>SettingsDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="23"/>
|
|
||||||
<source>Settings</source>
|
|
||||||
<translation>Ayarlar</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="28"/>
|
|
||||||
<source>Do nothing</source>
|
|
||||||
<translation>Hiçbir şey yapma</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="29"/>
|
|
||||||
<source>Close the window</source>
|
|
||||||
<translation>Pencereyi kapat</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="30"/>
|
|
||||||
<source>Toggle maximize</source>
|
|
||||||
<translation>Tam boyuta geç</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="34"/>
|
|
||||||
<source>Zoom in and out</source>
|
|
||||||
<translation>Yaklaştır ve uzaklaştır</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="35"/>
|
|
||||||
<source>View next or previous item</source>
|
|
||||||
<translation>Sonraki veya önceki ögeyi görüntüle</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="39"/>
|
|
||||||
<source>Auto size</source>
|
|
||||||
<translation>Otomatik boyut</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="40"/>
|
|
||||||
<source>Maximized</source>
|
|
||||||
<translation>Tam boyut</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="44"/>
|
|
||||||
<source>Round (Integer scaling)</source>
|
|
||||||
<comment>This option means round up for .5 and above</comment>
|
|
||||||
<translation>Yuvarlak (Tamsayı ölçekleme)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="45"/>
|
|
||||||
<source>Ceil (Integer scaling)</source>
|
|
||||||
<comment>This option means always round up</comment>
|
|
||||||
<translation>Tavan (Tamsayı ölçekleme)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="46"/>
|
|
||||||
<source>Floor (Integer scaling)</source>
|
|
||||||
<comment>This option means always round down</comment>
|
|
||||||
<translation>Kat (Tamsayı ölçekleme)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="47"/>
|
|
||||||
<source>Follow system (Fractional scaling)</source>
|
|
||||||
<comment>This option means don't round</comment>
|
|
||||||
<translation>Sistemi takip et (Kesirli ölçekleme)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="70"/>
|
|
||||||
<source>Stay on top when start-up</source>
|
|
||||||
<translation>Açılışta pencerelerin üstünde kal</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="71"/>
|
|
||||||
<source>Use light-color checkerboard</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="72"/>
|
|
||||||
<source>Double-click behavior</source>
|
|
||||||
<translation>Çift tıklama davranışı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="73"/>
|
|
||||||
<source>Mouse wheel behavior</source>
|
|
||||||
<translation>Fare tekeri davranışı</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="74"/>
|
|
||||||
<source>Default window size</source>
|
|
||||||
<translation>Öntanımlı pencere boyutu</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="75"/>
|
|
||||||
<source>HiDPI scale factor rounding policy</source>
|
|
||||||
<translation>HiDPI ölçek katsayısı yuvarlama ilkesi</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>main</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="41"/>
|
|
||||||
<source>Pineapple Pictures</source>
|
|
||||||
<translation>Ananas Resimler</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="45"/>
|
|
||||||
<source>List supported image format suffixes, and quit program.</source>
|
|
||||||
<translation>Desteklenen resim biçimi son eklerini listele ve programdan çık.</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="49"/>
|
|
||||||
<source>File list.</source>
|
|
||||||
<translation>Dosya list.</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
|
||||||
@@ -1,826 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!DOCTYPE TS>
|
|
||||||
<TS version="2.1" language="zh_CN">
|
|
||||||
<context>
|
|
||||||
<name>AboutDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="27"/>
|
|
||||||
<source>About</source>
|
|
||||||
<translation>关于</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="30"/>
|
|
||||||
<source>Launch application with image file path as argument to load the file.</source>
|
|
||||||
<translation>以图片文件的路径作为参数运行程序即可直接打开图片文件。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="31"/>
|
|
||||||
<source>Drag and drop image file onto the window is also supported.</source>
|
|
||||||
<translation>也支持拖放图片文件到窗口内来加载图片。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="32"/>
|
|
||||||
<source>None of the operations in this application will alter the pictures on disk.</source>
|
|
||||||
<translation>此程序中所有的操作均不会修改图片文件本身。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="33"/>
|
|
||||||
<source>Context menu option explanation:</source>
|
|
||||||
<translation>菜单项说明:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="40"/>
|
|
||||||
<source>Make window stay on top of all other windows.</source>
|
|
||||||
<translation>使窗口始终至于其它非置顶窗口上方。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="43"/>
|
|
||||||
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
|
|
||||||
<translation>避免窗口意外关闭。(如:不小心双击了窗口触发了关闭窗口行为)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="53"/>
|
|
||||||
<source>Version: %1</source>
|
|
||||||
<translation>版本: %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Copyright (c) 2020 %1</source>
|
|
||||||
<translation type="vanished">版权所有 (c) 2020 %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="64"/>
|
|
||||||
<source>Logo designed by %1</source>
|
|
||||||
<translation>Logo 由 %1 设计</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="66"/>
|
|
||||||
<source>Built with Qt %1 (%2)</source>
|
|
||||||
<translation>使用 Qt %1 (%2) 进行构建</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="67"/>
|
|
||||||
<source>Source code</source>
|
|
||||||
<translation>源代码</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="77"/>
|
|
||||||
<source>Contributors</source>
|
|
||||||
<translation>贡献者</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="79"/>
|
|
||||||
<source>List of contributors on GitHub</source>
|
|
||||||
<translation>GitHub 上的贡献者列表</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="80"/>
|
|
||||||
<source>Thanks to all people who contributed to this project.</source>
|
|
||||||
<translation>感谢所有参与此项目的朋友。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="84"/>
|
|
||||||
<source>Translators</source>
|
|
||||||
<translation>翻译者</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="85"/>
|
|
||||||
<source>I would like to thank the following people who volunteered to translate this application.</source>
|
|
||||||
<translation>我想要感谢下列自愿参与翻译此应用程序的朋友。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="129"/>
|
|
||||||
<source>%1 is built on the following free software libraries:</source>
|
|
||||||
<comment>Free as in freedom</comment>
|
|
||||||
<translation>%1 采用了下列自由软件程序库进行构建:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="153"/>
|
|
||||||
<source>&Special Thanks</source>
|
|
||||||
<translation>致谢(&S)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="155"/>
|
|
||||||
<source>&Third-party Libraries</source>
|
|
||||||
<translation>第三方程序库(&T)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="91"/>
|
|
||||||
<source>Your Rights</source>
|
|
||||||
<translation>用户的权利</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="46"/>
|
|
||||||
<source>Avoid resetting the zoom/rotation/flip state that was applied to the image view when switching between images.</source>
|
|
||||||
<translation>切换图片时,防止重置当前视图的缩放/旋转/翻转状态。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="61"/>
|
|
||||||
<source>Copyright (c) %1 %2</source>
|
|
||||||
<comment>%1 is year, %2 is the name of copyright holder(s)</comment>
|
|
||||||
<translation>版权所有 © %1 %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="93"/>
|
|
||||||
<source>%1 is released under the MIT License.</source>
|
|
||||||
<translation>%1 是在 MIT 许可协议下发布的。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="94"/>
|
|
||||||
<source>This license grants people a number of freedoms:</source>
|
|
||||||
<translation>此许可证赋予人们以下自由的权利:</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="95"/>
|
|
||||||
<source>You are free to use %1, for any purpose</source>
|
|
||||||
<translation>任何人都可以为了任何目的自由地使用 %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="96"/>
|
|
||||||
<source>You are free to distribute %1</source>
|
|
||||||
<translation>任何人都可以自由地分发 %1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="97"/>
|
|
||||||
<source>You can study how %1 works and change it</source>
|
|
||||||
<translation>任何人都可以自由地研究 %1 的工作原理并对其进行修改</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="98"/>
|
|
||||||
<source>You can distribute changed versions of %1</source>
|
|
||||||
<translation>任何人都可以自由地分发修改过的 %1 版本</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="100"/>
|
|
||||||
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
|
|
||||||
<translation>此软件通过 MIT 许可证赋予用户上述自由,任何人无权剥夺。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="128"/>
|
|
||||||
<source>Third-party Libraries used by %1</source>
|
|
||||||
<translation>%1 使用的第三方程序库</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="151"/>
|
|
||||||
<source>&Help</source>
|
|
||||||
<translation>帮助(&H)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="152"/>
|
|
||||||
<source>&About</source>
|
|
||||||
<translation>关于(&A)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="154"/>
|
|
||||||
<source>&License</source>
|
|
||||||
<translation>软件许可证(&L)</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsScene</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="264"/>
|
|
||||||
<location filename="../graphicsscene.cpp" line="90"/>
|
|
||||||
<source>Drag image here</source>
|
|
||||||
<translation>拖放图片至此</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsView</name>
|
|
||||||
<message>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation type="vanished">文件 URL 列表为空</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="52"/>
|
|
||||||
<source>File is not a valid image</source>
|
|
||||||
<translation>文件不是有效的图片文件</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="56"/>
|
|
||||||
<location filename="../graphicsview.cpp" line="60"/>
|
|
||||||
<source>Image data is invalid or currently unsupported</source>
|
|
||||||
<translation>图像数据无效或暂未支持</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Image data is invalid</source>
|
|
||||||
<translation type="vanished">图片数据无效</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Not supported mimedata: %1</source>
|
|
||||||
<translation type="vanished">不受支持的 MimeData 格式:%1</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MainWindow</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="175"/>
|
|
||||||
<location filename="../mainwindow.cpp" line="531"/>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation>文件 URL 列表为空</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="429"/>
|
|
||||||
<source>&Copy</source>
|
|
||||||
<translation>复制(&C)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="539"/>
|
|
||||||
<source>Image data is invalid</source>
|
|
||||||
<translation>图片数据无效</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="546"/>
|
|
||||||
<source>Not supported mimedata: %1</source>
|
|
||||||
<translation>不受支持的 MimeData 格式:%1</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="742"/>
|
|
||||||
<source>Image From Clipboard</source>
|
|
||||||
<translation>剪切板图片</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="760"/>
|
|
||||||
<source>Are you sure you want to move "%1" to recycle bin?</source>
|
|
||||||
<translation>您确认要将“%1”移动到回收站吗?</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="765"/>
|
|
||||||
<source>Move to trash failed, it might caused by file permission issue, file system limitation, or platform limitation.</source>
|
|
||||||
<translation>移至回收站失败,这可能由文件权限、文件系统或平台限制导致。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="108"/>
|
|
||||||
<source>Copy P&ixmap</source>
|
|
||||||
<translation>复制位图(&I)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="109"/>
|
|
||||||
<source>Copy &File Path</source>
|
|
||||||
<translation>复制文件路径(&F)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="127"/>
|
|
||||||
<source>Properties</source>
|
|
||||||
<translation>属性</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="112"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="39"/>
|
|
||||||
<source>Stay on top</source>
|
|
||||||
<translation>总在最前</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="113"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="42"/>
|
|
||||||
<source>Protected mode</source>
|
|
||||||
<translation>保护模式</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="114"/>
|
|
||||||
<location filename="../aboutdialog.cpp" line="45"/>
|
|
||||||
<source>Keep transformation</source>
|
|
||||||
<comment>The 'transformation' means the flip/rotation status that currently applied to the image view</comment>
|
|
||||||
<translation>保持视图变换</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="96"/>
|
|
||||||
<source>Zoom in</source>
|
|
||||||
<translation>放大</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="97"/>
|
|
||||||
<source>Zoom out</source>
|
|
||||||
<translation>缩小</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="105"/>
|
|
||||||
<source>Flip &Horizontally</source>
|
|
||||||
<translation>水平翻转(&H)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="106"/>
|
|
||||||
<source>Fit to view</source>
|
|
||||||
<translation>自适应视图大小</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="107"/>
|
|
||||||
<source>Fit to width</source>
|
|
||||||
<translation>自适应宽度</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="110"/>
|
|
||||||
<source>&Paste</source>
|
|
||||||
<translation>粘贴(&P)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="98"/>
|
|
||||||
<source>Toggle Checkerboard</source>
|
|
||||||
<translation>切换棋盘格</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="92"/>
|
|
||||||
<source>&Open...</source>
|
|
||||||
<translation>打开(&O)...</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="94"/>
|
|
||||||
<source>Actual size</source>
|
|
||||||
<translation>实际大小</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="95"/>
|
|
||||||
<source>Toggle maximize</source>
|
|
||||||
<translation>最大化窗口</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="99"/>
|
|
||||||
<source>Rotate right</source>
|
|
||||||
<translation>向右旋转</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="100"/>
|
|
||||||
<source>Rotate left</source>
|
|
||||||
<translation>向左旋转</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="102"/>
|
|
||||||
<source>Previous image</source>
|
|
||||||
<translation>上一个图像</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="103"/>
|
|
||||||
<source>Next image</source>
|
|
||||||
<translation>下一个图像</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="759"/>
|
|
||||||
<location filename="../actionmanager.cpp" line="111"/>
|
|
||||||
<source>Move to Trash</source>
|
|
||||||
<translation>移至回收站</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="115"/>
|
|
||||||
<source>Configure...</source>
|
|
||||||
<translation>设置...</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="116"/>
|
|
||||||
<source>Help</source>
|
|
||||||
<translation>帮助</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="119"/>
|
|
||||||
<source>Show in File Explorer</source>
|
|
||||||
<comment>File Explorer is the name of explorer.exe under Windows</comment>
|
|
||||||
<translation>在文件资源管理器中显示</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="125"/>
|
|
||||||
<source>Show in directory</source>
|
|
||||||
<translation>在文件夹中显示</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../actionmanager.cpp" line="128"/>
|
|
||||||
<source>Quit</source>
|
|
||||||
<translation>退出</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MetadataDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatadialog.cpp" line="84"/>
|
|
||||||
<source>Image Metadata</source>
|
|
||||||
<translation>图像元信息</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MetadataModel</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="41"/>
|
|
||||||
<source>Origin</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>来源</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="42"/>
|
|
||||||
<source>Image</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>图像</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="46"/>
|
|
||||||
<source>File</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>文件</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="43"/>
|
|
||||||
<source>Camera</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>照相机</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="33"/>
|
|
||||||
<source>%1 File</source>
|
|
||||||
<translation>%1 文件</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="40"/>
|
|
||||||
<source>Description</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>说明</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="44"/>
|
|
||||||
<source>Advanced photo</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>高级照片</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="45"/>
|
|
||||||
<source>GPS</source>
|
|
||||||
<comment>Section name.</comment>
|
|
||||||
<translation>GPS</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="50"/>
|
|
||||||
<source>Dimensions</source>
|
|
||||||
<translation>分辨率</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="52"/>
|
|
||||||
<source>Aspect ratio</source>
|
|
||||||
<translation>纵横比</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="56"/>
|
|
||||||
<source>Frame count</source>
|
|
||||||
<translation>总帧数</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="60"/>
|
|
||||||
<source>Name</source>
|
|
||||||
<translation>名称</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="62"/>
|
|
||||||
<source>Item type</source>
|
|
||||||
<translation>项目类型</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="64"/>
|
|
||||||
<source>Folder path</source>
|
|
||||||
<translation>文件夹路径</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="66"/>
|
|
||||||
<source>Size</source>
|
|
||||||
<translation>大小</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="68"/>
|
|
||||||
<source>Date created</source>
|
|
||||||
<translation>创建日期</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="70"/>
|
|
||||||
<source>Date modified</source>
|
|
||||||
<translation>修改日期</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="77"/>
|
|
||||||
<source>Title</source>
|
|
||||||
<translation>标题</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="79"/>
|
|
||||||
<source>Subject</source>
|
|
||||||
<translation>主题</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="81"/>
|
|
||||||
<source>Rating</source>
|
|
||||||
<translation>评分</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="83"/>
|
|
||||||
<source>Tags</source>
|
|
||||||
<translation>标记</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="85"/>
|
|
||||||
<source>Comments</source>
|
|
||||||
<translation>备注</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="88"/>
|
|
||||||
<source>Authors</source>
|
|
||||||
<translation>作者</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="90"/>
|
|
||||||
<source>Date taken</source>
|
|
||||||
<translation>拍摄日期</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="96"/>
|
|
||||||
<source>Program name</source>
|
|
||||||
<translation>程序名称</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="98"/>
|
|
||||||
<source>Copyright</source>
|
|
||||||
<translation>版权</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="101"/>
|
|
||||||
<source>Horizontal resolution</source>
|
|
||||||
<translation>水平分辨率</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="103"/>
|
|
||||||
<source>Vertical resolution</source>
|
|
||||||
<translation>垂直分辨率</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="105"/>
|
|
||||||
<source>Resolution unit</source>
|
|
||||||
<translation>分辨率单位</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="107"/>
|
|
||||||
<source>Colour representation</source>
|
|
||||||
<translation>色彩空间</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="110"/>
|
|
||||||
<source>Camera maker</source>
|
|
||||||
<translation>照相机制造商</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="112"/>
|
|
||||||
<source>Camera model</source>
|
|
||||||
<translation>照相机型号</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="114"/>
|
|
||||||
<source>F-stop</source>
|
|
||||||
<translation>光圈值</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="116"/>
|
|
||||||
<source>Exposure time</source>
|
|
||||||
<translation>曝光时间</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="118"/>
|
|
||||||
<source>ISO speed</source>
|
|
||||||
<translation>ISO 感光度</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="120"/>
|
|
||||||
<source>Exposure bias</source>
|
|
||||||
<translation>曝光补偿</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="122"/>
|
|
||||||
<source>Focal length</source>
|
|
||||||
<translation>焦距</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="124"/>
|
|
||||||
<source>Max aperture</source>
|
|
||||||
<translation>镜头最大光圈</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="126"/>
|
|
||||||
<source>Metering mode</source>
|
|
||||||
<translation>测光模式</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="128"/>
|
|
||||||
<source>Subject distance</source>
|
|
||||||
<translation>目标距离</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="130"/>
|
|
||||||
<source>Flash mode</source>
|
|
||||||
<translation>闪光灯模式</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="132"/>
|
|
||||||
<source>35mm focal length</source>
|
|
||||||
<translation>换算至 35mm 焦距</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="135"/>
|
|
||||||
<source>Lens model</source>
|
|
||||||
<translation>镜头型号</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="137"/>
|
|
||||||
<source>Contrast</source>
|
|
||||||
<translation>对比度</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="139"/>
|
|
||||||
<source>Brightness</source>
|
|
||||||
<translation>亮度</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="141"/>
|
|
||||||
<source>Exposure program</source>
|
|
||||||
<translation>曝光程序</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="143"/>
|
|
||||||
<source>Saturation</source>
|
|
||||||
<translation>饱和度</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="145"/>
|
|
||||||
<source>Sharpness</source>
|
|
||||||
<translation>锐度</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="147"/>
|
|
||||||
<source>White balance</source>
|
|
||||||
<translation>白平衡</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="149"/>
|
|
||||||
<source>Digital zoom</source>
|
|
||||||
<translation>数码变焦倍率</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="151"/>
|
|
||||||
<source>EXIF version</source>
|
|
||||||
<translation>EXIF 版本</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="154"/>
|
|
||||||
<source>Latitude reference</source>
|
|
||||||
<translation>纬度基准</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="156"/>
|
|
||||||
<source>Latitude</source>
|
|
||||||
<translation>纬度</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="158"/>
|
|
||||||
<source>Longitude reference</source>
|
|
||||||
<translation>经度基准</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="160"/>
|
|
||||||
<source>Longitude</source>
|
|
||||||
<translation>经度</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="162"/>
|
|
||||||
<source>Altitude reference</source>
|
|
||||||
<translation>海拔基准</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="164"/>
|
|
||||||
<source>Altitude</source>
|
|
||||||
<translation>海拔</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="174"/>
|
|
||||||
<source>%1 x %2</source>
|
|
||||||
<translation>%1 x %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="192"/>
|
|
||||||
<source>%1 : %2</source>
|
|
||||||
<translation>%1 : %2</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="317"/>
|
|
||||||
<source>Property</source>
|
|
||||||
<translation>属性</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../metadatamodel.cpp" line="317"/>
|
|
||||||
<source>Value</source>
|
|
||||||
<translation>值</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>SettingsDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="23"/>
|
|
||||||
<source>Settings</source>
|
|
||||||
<translation>设定</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="28"/>
|
|
||||||
<source>Do nothing</source>
|
|
||||||
<translation>什么也不做</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="29"/>
|
|
||||||
<source>Close the window</source>
|
|
||||||
<translation>关闭窗口</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="30"/>
|
|
||||||
<source>Toggle maximize</source>
|
|
||||||
<translation>最大化窗口</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="34"/>
|
|
||||||
<source>Zoom in and out</source>
|
|
||||||
<translation>放大和缩小</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="35"/>
|
|
||||||
<source>View next or previous item</source>
|
|
||||||
<translation>查看下一项或上一项</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="39"/>
|
|
||||||
<source>Auto size</source>
|
|
||||||
<translation>自动大小</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="40"/>
|
|
||||||
<source>Maximized</source>
|
|
||||||
<translation>最大化</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="44"/>
|
|
||||||
<source>Round (Integer scaling)</source>
|
|
||||||
<comment>This option means round up for .5 and above</comment>
|
|
||||||
<translation>四舍五入(整数缩放)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="45"/>
|
|
||||||
<source>Ceil (Integer scaling)</source>
|
|
||||||
<comment>This option means always round up</comment>
|
|
||||||
<translation>向上取整(整数缩放)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="46"/>
|
|
||||||
<source>Floor (Integer scaling)</source>
|
|
||||||
<comment>This option means always round down</comment>
|
|
||||||
<translation>向下取整(整数缩放)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="47"/>
|
|
||||||
<source>Follow system (Fractional scaling)</source>
|
|
||||||
<comment>This option means don't round</comment>
|
|
||||||
<translation>跟随系统(小数缩放)</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="70"/>
|
|
||||||
<source>Stay on top when start-up</source>
|
|
||||||
<translation>启动时保持窗口总在最前</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="71"/>
|
|
||||||
<source>Use light-color checkerboard</source>
|
|
||||||
<translation>使用亮色棋盘格</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="72"/>
|
|
||||||
<source>Double-click behavior</source>
|
|
||||||
<translation>双击时的行为</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="73"/>
|
|
||||||
<source>Mouse wheel behavior</source>
|
|
||||||
<translation>鼠标滚轮行为</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="74"/>
|
|
||||||
<source>Default window size</source>
|
|
||||||
<translation>默认窗口大小</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="75"/>
|
|
||||||
<source>HiDPI scale factor rounding policy</source>
|
|
||||||
<translation>HiDPI 高分屏缩放策略</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>main</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="41"/>
|
|
||||||
<source>Pineapple Pictures</source>
|
|
||||||
<translation>菠萝看图</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="45"/>
|
|
||||||
<source>List supported image format suffixes, and quit program.</source>
|
|
||||||
<translation>列出所支持的图像格式扩展名,并退出程序。</translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="49"/>
|
|
||||||
<source>File list.</source>
|
|
||||||
<translation>文件列表。</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
|
||||||
@@ -1,166 +0,0 @@
|
|||||||
image:
|
|
||||||
- Visual Studio 2022
|
|
||||||
environment:
|
|
||||||
CMAKE_INSTALL_PREFIX: C:\projects\cmake
|
|
||||||
LIBZ: C:\projects\zlib
|
|
||||||
LIBEXPAT: C:\projects\libexpat
|
|
||||||
LIBAVIF: C:\projects\libavif
|
|
||||||
LIBEXIV2: C:\projects\exiv2
|
|
||||||
PPKG: C:\projects\ppkg
|
|
||||||
matrix:
|
|
||||||
- job_name: mingw_64_qt6_7
|
|
||||||
QTDIR: C:\Qt\6.7\mingw_64
|
|
||||||
MINGW64: C:\Qt\Tools\mingw1120_64
|
|
||||||
KF_BRANCH: master
|
|
||||||
EXIV2_VERSION: "0.28.3"
|
|
||||||
EXIV2_CMAKE_OPTIONS: "-DEXIV2_ENABLE_BROTLI=OFF -DEXIV2_ENABLE_INIH=OFF -DEXIV2_BUILD_EXIV2_COMMAND=OFF"
|
|
||||||
PPIC_CMAKE_OPTIONS: "-DPREFER_QT_5=OFF"
|
|
||||||
WINDEPLOYQT_ARGS: "--verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler --skip-plugin-types tls,networkinformation"
|
|
||||||
- job_name: mingw81_64_qt5_15_2
|
|
||||||
QTDIR: C:\Qt\5.15.2\mingw81_64
|
|
||||||
MINGW64: C:\Qt\Tools\mingw810_64
|
|
||||||
KF_BRANCH: kf5
|
|
||||||
EXIV2_VERSION: "0.27.7"
|
|
||||||
EXIV2_CMAKE_OPTIONS: "-DEXIV2_BUILD_SAMPLES=OFF -DEXIV2_ENABLE_WIN_UNICODE=ON -DEXIV2_BUILD_EXIV2_COMMAND=OFF"
|
|
||||||
PPIC_CMAKE_OPTIONS: "-DPREFER_QT_5=ON"
|
|
||||||
WINDEPLOYQT_ARGS: "--verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-angle --no-system-d3d-compiler"
|
|
||||||
|
|
||||||
install:
|
|
||||||
- mkdir %CMAKE_INSTALL_PREFIX%
|
|
||||||
- mkdir %LIBZ%
|
|
||||||
- mkdir %LIBEXPAT%
|
|
||||||
- mkdir %LIBAVIF%
|
|
||||||
- mkdir %LIBEXIV2%
|
|
||||||
- mkdir %PPKG%
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
- set PATH=%PATH%;%CMAKE_INSTALL_PREFIX%;%QTDIR%\bin;%MINGW64%\bin;%PPKG%
|
|
||||||
- set CC=%MINGW64%\bin\gcc.exe
|
|
||||||
- set CXX=%MINGW64%\bin\g++.exe
|
|
||||||
|
|
||||||
build_script:
|
|
||||||
# prepare
|
|
||||||
- mkdir 3rdparty
|
|
||||||
- choco install ninja
|
|
||||||
- cd %PPKG%
|
|
||||||
- curl -fsSL -o ppkg.exe https://github.com/BLumia/pineapple-package-manager/releases/latest/download/ppkg.exe
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
|
||||||
# download and install zlib for KArchive
|
|
||||||
- cd %LIBZ%
|
|
||||||
- curl -fsSL -o zlib131.zip https://zlib.net/zlib131.zip
|
|
||||||
- 7z x zlib131.zip -y
|
|
||||||
- cd zlib-1.3.1
|
|
||||||
- mkdir build
|
|
||||||
- cd build
|
|
||||||
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX%
|
|
||||||
- cmake --build . --config Release
|
|
||||||
- cmake --build . --config Release --target install/strip
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
|
||||||
# install ECM so we can build KImageFormats
|
|
||||||
- cd 3rdparty
|
|
||||||
- git clone -b %KF_BRANCH% -q https://invent.kde.org/frameworks/extra-cmake-modules.git
|
|
||||||
- git rev-parse HEAD
|
|
||||||
- cd extra-cmake-modules
|
|
||||||
- cmake -G "Ninja" . -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DBUILD_TESTING=OFF
|
|
||||||
- cmake --build .
|
|
||||||
- cmake --build . --target install
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
|
||||||
# install AOM for libavif AV1 decoding support...
|
|
||||||
- cd 3rdparty
|
|
||||||
#- git clone -b v3.9.1 --depth 1 https://aomedia.googlesource.com/aom
|
|
||||||
#- cd aom
|
|
||||||
#- mkdir build.aom
|
|
||||||
#- cd build.aom
|
|
||||||
#- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DENABLE_DOCS=OFF -DBUILD_SHARED_LIBS=ON -DAOM_TARGET_CPU=generic -DENABLE_TESTS=OFF -DENABLE_TESTDATA=OFF -DENABLE_TOOLS=OFF -DENABLE_EXAMPLES=0
|
|
||||||
#- cmake --build . --config Release
|
|
||||||
#- cmake --build . --config Release --target install/strip
|
|
||||||
- mkdir aom
|
|
||||||
- cd aom
|
|
||||||
- curl -fsSL -o ppkg-aom.zip https://sourceforge.net/projects/pineapple-package-manager/files/packages/mingw-w64-x86_64-windows/aom-3.9.1-2.zip
|
|
||||||
- ppkg ppkg-aom.zip
|
|
||||||
- 7z x ppkg-aom.zip LICENSE -y
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
|
||||||
# install libavif for avif format support of KImageFormats
|
|
||||||
- cd %LIBAVIF%
|
|
||||||
- curl -fsSL -o libavif-v1_1_1.zip https://github.com/AOMediaCodec/libavif/archive/v1.1.1.zip
|
|
||||||
- 7z x libavif-v1_1_1.zip -y
|
|
||||||
- cd libavif-1.1.1
|
|
||||||
- mkdir build
|
|
||||||
- cd build
|
|
||||||
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DAVIF_CODEC_AOM=ON -DAVIF_LOCAL_LIBYUV=ON
|
|
||||||
- cmake --build . --config Release
|
|
||||||
- cmake --build . --config Release --target install/strip
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
|
||||||
# install KArchive for kra format support of KImageFormats
|
|
||||||
- cd 3rdparty
|
|
||||||
- git clone -b %KF_BRANCH% -q https://invent.kde.org/frameworks/karchive.git
|
|
||||||
- git rev-parse HEAD
|
|
||||||
- cd karchive
|
|
||||||
- mkdir build
|
|
||||||
- cd build
|
|
||||||
- cmake .. -G "Ninja" -DWITH_LIBZSTD=OFF -DWITH_BZIP2=OFF -DWITH_LIBLZMA=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX%
|
|
||||||
- cmake --build . --config Release
|
|
||||||
- cmake --build . --config Release --target install/strip
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
|
||||||
# build libexpat for libexiv2
|
|
||||||
- cd %LIBEXPAT%
|
|
||||||
- curl -fsSL -o R_2_6_2.zip https://github.com/libexpat/libexpat/archive/R_2_6_2.zip
|
|
||||||
- 7z x R_2_6_2.zip -y
|
|
||||||
- cd libexpat-R_2_6_2/expat/
|
|
||||||
- cmake -G "Ninja" . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DEXPAT_BUILD_EXAMPLES=OFF -DEXPAT_BUILD_TESTS=OFF -DEXPAT_BUILD_TOOLS=OFF
|
|
||||||
- cmake --build . --target install/strip
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
|
||||||
# build libexiv2
|
|
||||||
- cd %LIBEXIV2%
|
|
||||||
- curl -fsSL -o v%EXIV2_VERSION%.zip https://github.com/Exiv2/exiv2/archive/v%EXIV2_VERSION%.zip
|
|
||||||
- 7z x v%EXIV2_VERSION%.zip -y
|
|
||||||
- cd exiv2-%EXIV2_VERSION%
|
|
||||||
- cmake -G "Ninja" . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% %EXIV2_CMAKE_OPTIONS%
|
|
||||||
- cmake --build . --target install/strip
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
|
||||||
# install KImageFormats
|
|
||||||
- cd 3rdparty
|
|
||||||
- git clone -b %KF_BRANCH% -q https://invent.kde.org/frameworks/kimageformats.git
|
|
||||||
- git rev-parse HEAD
|
|
||||||
- cd kimageformats
|
|
||||||
- mkdir build
|
|
||||||
- cd build
|
|
||||||
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_QTPLUGINDIR=%QTDIR%\plugins
|
|
||||||
- cmake --build . --config Release
|
|
||||||
- cmake --build . --config Release --target install/strip
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
|
||||||
# finally...
|
|
||||||
- mkdir build
|
|
||||||
- cd build
|
|
||||||
- cmake .. -G "Ninja" %PPIC_CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%CMAKE_INSTALL_PREFIX% -DCMAKE_INSTALL_PREFIX='%cd%'
|
|
||||||
- cmake --build . --config Release
|
|
||||||
- cmake --build . --config Release --target install/strip
|
|
||||||
# fixme: I don't know how to NOT make the binary installed to the ./bin/ folder...
|
|
||||||
- cd bin
|
|
||||||
- copy %APPVEYOR_BUILD_FOLDER%\LICENSE
|
|
||||||
- copy %CMAKE_INSTALL_PREFIX%\bin\libaom.dll
|
|
||||||
- copy %CMAKE_INSTALL_PREFIX%\bin\libexpat-1.dll
|
|
||||||
- copy %CMAKE_INSTALL_PREFIX%\bin\libexiv2.dll
|
|
||||||
- copy %CMAKE_INSTALL_PREFIX%\bin\libavif.dll
|
|
||||||
- copy %CMAKE_INSTALL_PREFIX%\bin\libzlib.dll
|
|
||||||
- copy %CMAKE_INSTALL_PREFIX%\bin\libKF?Archive.dll
|
|
||||||
- windeployqt %WINDEPLOYQT_ARGS% .\ppic.exe
|
|
||||||
# copy 3rdparty licenses for the libs we vendored for windows...
|
|
||||||
- mkdir licenses
|
|
||||||
- cd licenses
|
|
||||||
- copy %APPVEYOR_BUILD_FOLDER%\3rdparty\aom\LICENSE License.aom.txt
|
|
||||||
- copy %APPVEYOR_BUILD_FOLDER%\3rdparty\karchive\LICENSES\LGPL-2.0-or-later.txt License.KArchive.txt
|
|
||||||
- copy %APPVEYOR_BUILD_FOLDER%\3rdparty\kimageformats\LICENSES\LGPL-2.1-or-later.txt License.kimageformats.txt
|
|
||||||
- copy %LIBEXPAT%\libexpat-R_2_6_2\expat\COPYING License.expat.txt
|
|
||||||
- copy %LIBAVIF%\libavif-1.1.1\LICENSE License.libavif.txt
|
|
||||||
- copy %LIBEXIV2%\exiv2-%EXIV2_VERSION%\COPYING License.exiv2.txt
|
|
||||||
# TODO: Qt, zlib
|
|
||||||
- cd ..
|
|
||||||
# for debug..
|
|
||||||
- tree /f
|
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
|
||||||
- xcopy %CMAKE_INSTALL_PREFIX% .\cmake-prefix-copy /E /H /C /I
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
- path: build\bin
|
|
||||||
- path: cmake-prefix-copy
|
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<center>
|
||||||
|
<p>
|
||||||
|
<img width='128' height='128' src=':/icons/app-icon.png'/>
|
||||||
|
<br/>
|
||||||
|
<!-- Application name -->
|
||||||
|
<span>%1</span>
|
||||||
|
<br/>
|
||||||
|
<!-- Version info -->
|
||||||
|
<span>%2</span>
|
||||||
|
</p>
|
||||||
|
<hr/>
|
||||||
|
<p>
|
||||||
|
<!-- Upstream author and fork author -->
|
||||||
|
<span>%3</span><span>: </span><a href='https://github.com/BLumia'>@BLumia</a>
|
||||||
|
<br/>
|
||||||
|
<span>%4</span><span>: </span><a href='https://github.com/yyc12345'>@yyc12345</a>
|
||||||
|
</p>
|
||||||
|
<hr/>
|
||||||
|
<p>
|
||||||
|
<!-- Built Qt version info -->
|
||||||
|
<span>%5</span>
|
||||||
|
<br/>
|
||||||
|
<!-- Source code -->
|
||||||
|
<span>%6</span><span>: </span><a href='https://github.com/SarasasChipWorkshop/sarasacw-picture'>GitHub</a>
|
||||||
|
</p>
|
||||||
|
</center>
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<!-- General help -->
|
||||||
|
<h1 align='center'>%1</h1>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<span>%2</span>
|
||||||
|
<ul>
|
||||||
|
<li>%3</li>
|
||||||
|
<li>%4</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li>%5</li>
|
||||||
|
<li>%6</li>
|
||||||
|
</ul>
|
||||||
|
<hr/>
|
||||||
|
<!-- Context menu option help -->
|
||||||
|
<h1 align='center'>%7</h1>
|
||||||
|
<!-- Context menu option list -->
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<b>%8</b><span>:</span>
|
||||||
|
<br/>
|
||||||
|
<span>%9</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<b>%10</b><span>:</span>
|
||||||
|
<br/>
|
||||||
|
<span>%11</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
<!-- License -->
|
||||||
|
<h1 align='center'><b>%1</b></h1>
|
||||||
|
<p>%2</p>
|
||||||
|
<hr/>
|
||||||
|
<!-- VErbatime license -->
|
||||||
|
<h1 align='center'><b>%3</b></h1>
|
||||||
|
<pre>
|
||||||
|
Expat/MIT License
|
||||||
|
|
||||||
|
Copyright © 2026 BLumia
|
||||||
|
Copyright © 2026 Sarasa's Chip Workshop
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
</pre>
|
||||||
@@ -1,4 +1,16 @@
|
|||||||
|
<!-- Contributor title -->
|
||||||
|
<h1 align='center'>%1</h1>
|
||||||
|
<!-- Contributor list -->
|
||||||
|
<a href='https://github.com/SarasasChipWorkshop/sarasacw-picture/graphs/contributors'>%2</a>
|
||||||
|
<!-- The message to thank these contributors -->
|
||||||
|
<p>%3</p>
|
||||||
|
|
||||||
|
<!-- Translator title -->
|
||||||
|
<h1 align='center'>%4</h1>
|
||||||
|
<!-- The message to thank these translators -->
|
||||||
|
<p>%5</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><u>Arabic</u>: Tech-Tac</li>
|
||||||
<li><u>Catalan</u>: Toni Estévez</li>
|
<li><u>Catalan</u>: Toni Estévez</li>
|
||||||
<li><u>Chinese (Simplified)</u>: Percy Hong</li>
|
<li><u>Chinese (Simplified)</u>: Percy Hong</li>
|
||||||
<li><u>Dutch</u>: Heimen Stoffels</li>
|
<li><u>Dutch</u>: Heimen Stoffels</li>
|
||||||
@@ -12,7 +24,10 @@
|
|||||||
<li><u>Punjabi (Pakistan)</u>: bgo-eiu</li>
|
<li><u>Punjabi (Pakistan)</u>: bgo-eiu</li>
|
||||||
<li><u>Russian</u>: Sergey Shornikov, Artem, Andrey</li>
|
<li><u>Russian</u>: Sergey Shornikov, Artem, Andrey</li>
|
||||||
<li><u>Sinhala</u>: HelaBasa</li>
|
<li><u>Sinhala</u>: HelaBasa</li>
|
||||||
|
<li><u>Slovenian</u>: Andrej Poženel - SDT</li>
|
||||||
<li><u>Spanish</u>: Toni Estévez, Génesis Toxical, William(ѕ)ⁿ, gallegonovato</li>
|
<li><u>Spanish</u>: Toni Estévez, Génesis Toxical, William(ѕ)ⁿ, gallegonovato</li>
|
||||||
|
<li><u>Tamil</u>: தமிழ்நேரம் (TamilNeram)</li>
|
||||||
<li><u>Turkish</u>: E-Akcaer, Oğuz Ersen, Sabri Ünal</li>
|
<li><u>Turkish</u>: E-Akcaer, Oğuz Ersen, Sabri Ünal</li>
|
||||||
<li><u>Ukrainian</u>: Dan, volkov, Сергій</li>
|
<li><u>Ukrainian</u>: Dan, volkov, Сергій</li>
|
||||||
|
<li><u>Vietnamese</u>: Loc Huynh</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<!-- Title -->
|
||||||
|
<h1 align='center'><b>%1</b></h1>
|
||||||
|
<!-- List intro message -->
|
||||||
|
<p>%2</p>
|
||||||
|
<p>%3</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href='https://www.qt.io/'>Qt</a><span>: </span>
|
||||||
|
<span>GPLv2 + GPLv3 + LGPLv2.1 + LGPLv3</span>
|
||||||
|
</li>
|
||||||
|
<li style="display: none;">
|
||||||
|
<a href='https://www.exiv2.org/'>Exiv2</a><span>: </span>
|
||||||
|
<span>GPLv2</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
Before Width: | Height: | Size: 212 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
@@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg width="100%" height="100%" viewBox="0 0 75 75" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;">
|
|
||||||
<g transform="matrix(1,0,0,1,-119,-102)">
|
|
||||||
<g id="go-next" transform="matrix(1.25,0,0,1.44231,119,-7.61538)">
|
|
||||||
<rect x="0" y="76" width="60" height="52" style="fill:none;"/>
|
|
||||||
<g transform="matrix(0.8,0,0,0.693333,0.260244,25.056)">
|
|
||||||
<circle cx="37.175" cy="110.977" r="33.175" style="fill-opacity:0.15;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
<g id="path867" transform="matrix(0.8,0,0,0.693333,1.80436,76.0055)">
|
|
||||||
<path d="M31.578,26.175L42.911,37.508L31.578,48.809" style="fill:none;fill-rule:nonzero;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
@@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg width="100%" height="100%" viewBox="0 0 75 75" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;">
|
|
||||||
<g transform="matrix(1,0,0,1,-39,-102)">
|
|
||||||
<g id="go-previous" transform="matrix(1.25,0,0,1.44231,39,-7.61538)">
|
|
||||||
<rect x="0" y="76" width="60" height="52" style="fill:none;"/>
|
|
||||||
<g transform="matrix(0.8,0,0,0.693333,0.260244,25.056)">
|
|
||||||
<circle cx="37.175" cy="110.977" r="33.175" style="fill-opacity:0.15;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
<g id="path867" transform="matrix(0.8,0,0,0.693333,-1.8205,76.0055)">
|
|
||||||
<path d="M43.442,26.175L32.109,37.508L43.442,48.809" style="fill:none;fill-rule:nonzero;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
@@ -1,17 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
|
||||||
<g transform="matrix(1,0,0,1,-74,-7.10543e-15)">
|
|
||||||
<g id="object-rotate-right" transform="matrix(1,0,0,1,74,7.10543e-15)">
|
|
||||||
<rect x="0" y="0" width="32" height="32" style="fill:none;"/>
|
|
||||||
<g transform="matrix(1,0,0,1,-1,-0.275147)">
|
|
||||||
<g transform="matrix(1,0,0,1,-74,-7.10543e-15)">
|
|
||||||
<path d="M100,18C100,22.967 95.967,27 91,27C86.033,27 82,22.967 82,18C82,13.033 86.033,9 91,9" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(0.984136,-0.177418,0.177418,0.984136,-74.2676,16.4198)">
|
|
||||||
<path d="M89,13L93,9L89,5" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
@@ -1,24 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
|
||||||
<g transform="matrix(1,0,0,1,0,-37)">
|
|
||||||
<g id="view-background-checkerboard" transform="matrix(1,0,0,1,0,37)">
|
|
||||||
<rect x="0" y="0" width="32" height="32" style="fill:none;"/>
|
|
||||||
<g id="rect814" transform="matrix(0.964431,0,0,0.907545,0.187581,-988.266)">
|
|
||||||
<rect x="6.027" y="1095.56" width="10.369" height="11.019" style="fill:white;fill-opacity:0.87;"/>
|
|
||||||
</g>
|
|
||||||
<g id="rect814-4" transform="matrix(0.984615,0,0,0.898704,-0.143354,-978.502)">
|
|
||||||
<rect x="16.396" y="1106.6" width="10.156" height="11.127" style="fill:white;fill-opacity:0.87;"/>
|
|
||||||
</g>
|
|
||||||
<g id="rect814-2" transform="matrix(0.963684,0,0,0.898697,0.199828,-978.495)">
|
|
||||||
<rect x="6.019" y="1106.6" width="10.377" height="11.127" style="fill:white;fill-opacity:0.07;"/>
|
|
||||||
</g>
|
|
||||||
<g id="rect814-2-6" transform="matrix(0.980558,0,0,0.898693,-0.0768322,-978.47)">
|
|
||||||
<rect x="16.396" y="1095.45" width="10.198" height="11.127" style="fill:white;fill-opacity:0.07;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(1,0,0,0.952381,-74,-34)">
|
|
||||||
<rect x="80" y="42" width="20" height="21" style="fill:none;stroke:white;stroke-width:2.05px;"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.7 KiB |
@@ -1,24 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
|
||||||
<g transform="matrix(1,0,0,1,-37,-37)">
|
|
||||||
<g id="view-fullscreen" transform="matrix(1,0,0,1,37,37)">
|
|
||||||
<rect x="0" y="0" width="32" height="32" style="fill:none;"/>
|
|
||||||
<g transform="matrix(1,0,0,1,-36,-37)">
|
|
||||||
<path d="M42,49L42,43L48,43" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(-1,1.22465e-16,1.22465e-16,1,68,-37)">
|
|
||||||
<path d="M42,49L42,43L48,43" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(1,-2.46519e-32,-2.46519e-32,-1,-36,69)">
|
|
||||||
<path d="M42,49L42,43L48,43" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(1.11111,0,0,1.14286,-42.3333,-42.8571)">
|
|
||||||
<rect x="48" y="48" width="9" height="7" style="fill:none;stroke:white;stroke-width:1.77px;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(-1,-1.22465e-16,1.22465e-16,-1,68,69)">
|
|
||||||
<path d="M42,49L42,43L48,43" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -1,71 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
||||||
|
|
||||||
<svg
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
width="32"
|
|
||||||
height="32"
|
|
||||||
viewBox="0 0 8.4666665 8.4666669"
|
|
||||||
version="1.1"
|
|
||||||
id="svg8"
|
|
||||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
|
||||||
sodipodi:docname="window-close.svg">
|
|
||||||
<defs
|
|
||||||
id="defs2" />
|
|
||||||
<sodipodi:namedview
|
|
||||||
id="base"
|
|
||||||
pagecolor="#000000"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1.0"
|
|
||||||
inkscape:pageopacity="0.69803922"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:zoom="22.627417"
|
|
||||||
inkscape:cx="19.29838"
|
|
||||||
inkscape:cy="15.79404"
|
|
||||||
inkscape:document-units="px"
|
|
||||||
inkscape:current-layer="layer1"
|
|
||||||
showgrid="false"
|
|
||||||
units="px"
|
|
||||||
inkscape:pagecheckerboard="true"
|
|
||||||
inkscape:window-width="1920"
|
|
||||||
inkscape:window-height="1001"
|
|
||||||
inkscape:window-x="-9"
|
|
||||||
inkscape:window-y="-9"
|
|
||||||
inkscape:window-maximized="1" />
|
|
||||||
<metadata
|
|
||||||
id="metadata5">
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work
|
|
||||||
rdf:about="">
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
||||||
<dc:title />
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<g
|
|
||||||
inkscape:label="Layer 1"
|
|
||||||
inkscape:groupmode="layer"
|
|
||||||
id="layer1"
|
|
||||||
transform="translate(0,-288.5333)">
|
|
||||||
<path
|
|
||||||
style="fill:none;stroke:#ffffff;stroke-width:0.396875;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
|
||||||
d="m 2.100237,290.55098 4.3234589,4.22265"
|
|
||||||
id="path817"
|
|
||||||
inkscape:connector-curvature="0"
|
|
||||||
sodipodi:nodetypes="cc" />
|
|
||||||
<path
|
|
||||||
style="fill:none;stroke:#ffffff;stroke-width:0.396875;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
|
||||||
d="m 2.099406,294.78651 4.3414732,-4.24185"
|
|
||||||
id="path819"
|
|
||||||
inkscape:connector-curvature="0"
|
|
||||||
sodipodi:nodetypes="cc" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
@@ -1,17 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
|
||||||
<rect id="zoom-in" x="0" y="0" width="32" height="32" style="fill:none;"/>
|
|
||||||
<g id="zoom-in1" serif:id="zoom-in">
|
|
||||||
<g>
|
|
||||||
<g transform="matrix(1,0,0,1,-1,0)">
|
|
||||||
<circle cx="16" cy="15" r="9" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(0.8,0.8,-0.8,0.8,27.6,-17.2)">
|
|
||||||
<path d="M21,28L26,28" style="fill:none;stroke:white;stroke-width:2.65px;"/>
|
|
||||||
</g>
|
|
||||||
<path d="M11,15L19,15" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
<path d="M15,11L15,19" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -1,24 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:square;stroke-miterlimit:1.5;">
|
|
||||||
<g transform="matrix(1,0,0,1,-74,-37)">
|
|
||||||
<g id="zoom-original" transform="matrix(1,0,0,1,74,37)">
|
|
||||||
<rect x="0" y="0" width="32" height="32" style="fill:none;"/>
|
|
||||||
<g transform="matrix(1,0,0,1,-73,-37)">
|
|
||||||
<path d="M85,57L85,49L84,49" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(1,0,0,1,-74,-37)">
|
|
||||||
<rect x="89" y="50" width="2" height="2" style="fill:white;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(1,0,0,1,-74,-33)">
|
|
||||||
<rect x="89" y="50" width="2" height="2" style="fill:white;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(1,0,0,1,-64,-37)">
|
|
||||||
<path d="M85,57L85,49L84,49" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(1,0,0,0.952381,-74,-34)">
|
|
||||||
<rect x="80" y="42" width="20" height="21" style="fill:none;stroke:white;stroke-width:2.05px;stroke-linecap:round;stroke-linejoin:round;"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
@@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
|
|
||||||
<g transform="matrix(1,0,0,1,-74,0)">
|
|
||||||
<g id="zoom-out" transform="matrix(1,0,0,1,74,0)">
|
|
||||||
<rect x="0" y="0" width="32" height="32" style="fill:none;"/>
|
|
||||||
<g>
|
|
||||||
<g transform="matrix(1,0,0,1,-1,0)">
|
|
||||||
<circle cx="16" cy="15" r="9" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
<g transform="matrix(0.8,0.8,-0.8,0.8,27.6,-17.2)">
|
|
||||||
<path d="M21,28L26,28" style="fill:none;stroke:white;stroke-width:2.65px;"/>
|
|
||||||
</g>
|
|
||||||
<path d="M11,15L19,15" style="fill:none;stroke:white;stroke-width:2px;"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -1,17 +0,0 @@
|
|||||||
IDI_ICON1 ICON DISCARDABLE "icons/app-icon.ico"
|
|
||||||
1 VERSIONINFO
|
|
||||||
BEGIN
|
|
||||||
BLOCK "StringFileInfo"
|
|
||||||
BEGIN
|
|
||||||
BLOCK "040904E4"
|
|
||||||
BEGIN
|
|
||||||
VALUE "FileDescription", "Pineapple Pictures - Image Viewer"
|
|
||||||
VALUE "LegalCopyright", "MIT/Expat License - Copyright (C) 2024 Gary Wang"
|
|
||||||
VALUE "ProductName", "Pineapple Pictures"
|
|
||||||
END
|
|
||||||
END
|
|
||||||
BLOCK "VarFileInfo"
|
|
||||||
BEGIN
|
|
||||||
VALUE "Translation", 0x409, 1200
|
|
||||||
END
|
|
||||||
END
|
|
||||||
@@ -1,15 +1,23 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file>icons/zoom-in.svg</file>
|
<!-- In-app icon resources -->
|
||||||
<file>icons/zoom-out.svg</file>
|
<file>icons/app-icon.png</file>
|
||||||
<file>icons/view-fullscreen.svg</file>
|
<file>icons/image-info.png</file>
|
||||||
<file>icons/zoom-original.svg</file>
|
<file>icons/fit-to-screen.png</file>
|
||||||
<file>icons/object-rotate-right.svg</file>
|
<file>icons/fit-to-size.png</file>
|
||||||
<file>icons/view-background-checkerboard.svg</file>
|
<file>icons/zoom-in.png</file>
|
||||||
<file>icons/app-icon.svg</file>
|
<file>icons/zoom-out.png</file>
|
||||||
<file>icons/window-close.svg</file>
|
<file>icons/rotate-left.png</file>
|
||||||
<file>icons/go-next.svg</file>
|
<file>icons/rotate-right.png</file>
|
||||||
<file>icons/go-previous.svg</file>
|
<file>icons/go-next.png</file>
|
||||||
<file>plain/translators.html</file>
|
<file>icons/go-previous.png</file>
|
||||||
|
<file>icons/flip-horizontal.png</file>
|
||||||
|
<file>icons/flip-vertical.png</file>
|
||||||
|
<!-- HTML resources -->
|
||||||
|
<file>htmls/help.html</file>
|
||||||
|
<file>htmls/about.html</file>
|
||||||
|
<file>htmls/special-thanks.html</file>
|
||||||
|
<file>htmls/license.html</file>
|
||||||
|
<file>htmls/third-party-libs.html</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
@@ -0,0 +1,337 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Package
|
||||||
|
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
|
||||||
|
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
|
||||||
|
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
|
||||||
|
IgnorableNamespaces="uap rescap">
|
||||||
|
|
||||||
|
<Identity Name="SarasasChipWorkshop.Picture" Publisher="CN=Unsigned, OID.2.25.311729368913984317654407730594956997722=1" Version="@PROJECT_VERSION@.0" />
|
||||||
|
|
||||||
|
<Properties>
|
||||||
|
<DisplayName>ms-resource:AppDisplayName</DisplayName>
|
||||||
|
<PublisherDisplayName>ms-resource:PublisherDisplayName</PublisherDisplayName>
|
||||||
|
<!-- TODO: the store logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<Logo>Assets\Square44x44Logo.png</Logo>
|
||||||
|
</Properties>
|
||||||
|
|
||||||
|
<Resources>
|
||||||
|
{% for lang in langs %}
|
||||||
|
<Resource Language="{{ lang }}" />
|
||||||
|
{% endfor %}
|
||||||
|
</Resources>
|
||||||
|
|
||||||
|
<Dependencies>
|
||||||
|
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.22000.0" MaxVersionTested="10.0.26100.0" />
|
||||||
|
</Dependencies>
|
||||||
|
|
||||||
|
<Capabilities>
|
||||||
|
<rescap:Capability Name="runFullTrust" />
|
||||||
|
</Capabilities>
|
||||||
|
|
||||||
|
<Applications>
|
||||||
|
<Application Id="SarasaCWPicture" Executable="scwpic.exe" EntryPoint="Windows.FullTrustApplication">
|
||||||
|
<!-- TODO: the app logo assets are not provided yet; the Square44x44Logo and Square150x150Logo paths below assume they exist. -->
|
||||||
|
<uap:VisualElements
|
||||||
|
DisplayName="ms-resource:AppDisplayName"
|
||||||
|
Description="ms-resource:AppDescription"
|
||||||
|
BackgroundColor="transparent"
|
||||||
|
Square44x44Logo="Assets\Square44x44Logo.png"
|
||||||
|
Square150x150Logo="Assets\Square150x150Logo.png" />
|
||||||
|
<Extensions>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="jpegimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeJpegDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.jfif</uap:FileType>
|
||||||
|
<uap:FileType>.jpeg</uap:FileType>
|
||||||
|
<uap:FileType>.jpg</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="gifimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeGifDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\gif.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.gif</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="pngimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypePngDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\png.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.apng</uap:FileType>
|
||||||
|
<uap:FileType>.png</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="svgimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeSvgDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\png.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.svg</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="webpimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeWebpDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\png.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.webp</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="avifimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeAvifDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\png.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.avif</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="icoimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeIcoDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\png.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.ico</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="icnsimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeIcnsDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\png.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.icns</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="psdimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypePsdDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.pdd</uap:FileType>
|
||||||
|
<uap:FileType>.psb</uap:FileType>
|
||||||
|
<uap:FileType>.psd</uap:FileType>
|
||||||
|
<uap:FileType>.psdt</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="kraimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeKraDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.kra</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="xcfimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeXcfDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.xcf</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="tgaimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeTgaDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.tga</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="tifimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeTifDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.tif</uap:FileType>
|
||||||
|
<uap:FileType>.tiff</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="bmpimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeBmpDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.bmp</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="wbmpimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeWbmpDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.wbmp</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="ddsimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeDdsDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.dds</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="hdrimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeHdrDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.exr</uap:FileType>
|
||||||
|
<uap:FileType>.hdr</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="iffimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeIffDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.iff</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="picimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypePicDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.pic</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="pcximages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypePcxDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.pcx</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="qoiimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeQoiDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\png.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.qoi</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="rasimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeRasDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.ras</uap:FileType>
|
||||||
|
<uap:FileType>.sun</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="oraimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeOraDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\bmp.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.ora</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="aniimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeAniDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\gif.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.ani</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="pfmimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypePfmDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.pfm</uap:FileType>
|
||||||
|
<uap:FileType>.phm</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="rgbimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeRgbDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.bw</uap:FileType>
|
||||||
|
<uap:FileType>.rgb</uap:FileType>
|
||||||
|
<uap:FileType>.rgba</uap:FileType>
|
||||||
|
<uap:FileType>.sgi</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="pxrimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypePxrDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.pxr</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
<uap:Extension Category="windows.fileTypeAssociation">
|
||||||
|
<uap:FileTypeAssociation Name="sctimages">
|
||||||
|
<uap:DisplayName>ms-resource:FileTypeSctDisplayName</uap:DisplayName>
|
||||||
|
<!-- TODO: the file association logo asset is not provided yet; the path below assumes it exists. -->
|
||||||
|
<uap:Logo>Assets\FileAssoc\jpg.png</uap:Logo>
|
||||||
|
<uap:SupportedFileTypes>
|
||||||
|
<uap:FileType>.sct</uap:FileType>
|
||||||
|
</uap:SupportedFileTypes>
|
||||||
|
</uap:FileTypeAssociation>
|
||||||
|
</uap:Extension>
|
||||||
|
</Extensions>
|
||||||
|
</Application>
|
||||||
|
</Applications>
|
||||||
|
</Package>
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
version = 1
|
||||||
|
source_language = "en_US"
|
||||||
|
|
||||||
|
[strings.app_display_name]
|
||||||
|
msgid = "SCW Photo Viewer"
|
||||||
|
comment = "Display name of the application, referenced as ms-resource:AppDisplayName."
|
||||||
|
|
||||||
|
[strings.publisher_display_name]
|
||||||
|
msgid = "Sarasa's Chip Workshop"
|
||||||
|
comment = "Publisher display name, referenced as ms-resource:PublisherDisplayName."
|
||||||
|
|
||||||
|
[strings.app_description]
|
||||||
|
msgid = "Yet another legacy Windows Photo Viewer with cross-platform support."
|
||||||
|
comment = "Application description, referenced as ms-resource:AppDescription."
|
||||||
|
|
||||||
|
[strings.file_type_jpeg]
|
||||||
|
msgid = "JPEG Image"
|
||||||
|
comment = "Display name of the JPEG file type association (jpg, jpeg, jfif), referenced as ms-resource:FileTypeJpegDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_gif]
|
||||||
|
msgid = "GIF Animation Image"
|
||||||
|
comment = "Display name of the GIF file type association, referenced as ms-resource:FileTypeGifDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_png]
|
||||||
|
msgid = "PNG Image"
|
||||||
|
comment = "Display name of the PNG file type association (png, apng), referenced as ms-resource:FileTypePngDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_svg]
|
||||||
|
msgid = "Scalable Vector Graphics"
|
||||||
|
comment = "Display name of the SVG file type association, referenced as ms-resource:FileTypeSvgDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_webp]
|
||||||
|
msgid = "WebP Image"
|
||||||
|
comment = "Display name of the WebP file type association, referenced as ms-resource:FileTypeWebpDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_avif]
|
||||||
|
msgid = "AV1 Image File"
|
||||||
|
comment = "Display name of the AVIF file type association, referenced as ms-resource:FileTypeAvifDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_ico]
|
||||||
|
msgid = "Windows Icon Image"
|
||||||
|
comment = "Display name of the ICO file type association, referenced as ms-resource:FileTypeIcoDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_icns]
|
||||||
|
msgid = "Apple Icon Image"
|
||||||
|
comment = "Display name of the ICNS file type association, referenced as ms-resource:FileTypeIcnsDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_psd]
|
||||||
|
msgid = "Photoshop Document"
|
||||||
|
comment = "Display name of the Photoshop file type association (psd, psb, pdd, psdt), referenced as ms-resource:FileTypePsdDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_kra]
|
||||||
|
msgid = "Krita Document"
|
||||||
|
comment = "Display name of the Krita file type association, referenced as ms-resource:FileTypeKraDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_xcf]
|
||||||
|
msgid = "GIMP Document"
|
||||||
|
comment = "Display name of the GIMP file type association, referenced as ms-resource:FileTypeXcfDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_tga]
|
||||||
|
msgid = "TARGA Image"
|
||||||
|
comment = "Display name of the TARGA file type association, referenced as ms-resource:FileTypeTgaDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_tif]
|
||||||
|
msgid = "Tagged Image File Format"
|
||||||
|
comment = "Display name of the TIFF file type association (tif, tiff), referenced as ms-resource:FileTypeTifDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_bmp]
|
||||||
|
msgid = "Bitmap"
|
||||||
|
comment = "Display name of the BMP file type association, referenced as ms-resource:FileTypeBmpDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_wbmp]
|
||||||
|
msgid = "Wireless Bitmap"
|
||||||
|
comment = "Display name of the WBMP file type association, referenced as ms-resource:FileTypeWbmpDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_dds]
|
||||||
|
msgid = "DirectDraw Surface"
|
||||||
|
comment = "Display name of the DDS file type association, referenced as ms-resource:FileTypeDdsDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_hdr]
|
||||||
|
msgid = "High Dynamic Range Image"
|
||||||
|
comment = "Display name of the HDR file type association (hdr, exr), referenced as ms-resource:FileTypeHdrDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_iff]
|
||||||
|
msgid = "Interchange File Format"
|
||||||
|
comment = "Display name of the IFF file type association, referenced as ms-resource:FileTypeIffDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_pic]
|
||||||
|
msgid = "Softimage Picture"
|
||||||
|
comment = "Display name of the Softimage PIC file type association, referenced as ms-resource:FileTypePicDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_pcx]
|
||||||
|
msgid = "PiCture eXchange PC Paintbrush Image"
|
||||||
|
comment = "Display name of the PCX file type association, referenced as ms-resource:FileTypePcxDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_qoi]
|
||||||
|
msgid = "Quite OK Image"
|
||||||
|
comment = "Display name of the QOI file type association, referenced as ms-resource:FileTypeQoiDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_ras]
|
||||||
|
msgid = "Sun Raster Image"
|
||||||
|
comment = "Display name of the Sun Raster file type association (ras, sun), referenced as ms-resource:FileTypeRasDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_ora]
|
||||||
|
msgid = "OpenRaster Image"
|
||||||
|
comment = "Display name of the OpenRaster file type association, referenced as ms-resource:FileTypeOraDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_ani]
|
||||||
|
msgid = "Animated Cursor"
|
||||||
|
comment = "Display name of the ANI file type association, referenced as ms-resource:FileTypeAniDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_pfm]
|
||||||
|
msgid = "Portable Float Map"
|
||||||
|
comment = "Display name of the Portable Float Map file type association (pfm, phm), referenced as ms-resource:FileTypePfmDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_rgb]
|
||||||
|
msgid = "Silicon Graphics Image"
|
||||||
|
comment = "Display name of the Silicon Graphics file type association (rgb, rgba, bw, sgi), referenced as ms-resource:FileTypeRgbDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_pxr]
|
||||||
|
msgid = "Pixar Raster Image"
|
||||||
|
comment = "Display name of the Pixar file type association, referenced as ms-resource:FileTypePxrDisplayName."
|
||||||
|
|
||||||
|
[strings.file_type_sct]
|
||||||
|
msgid = "Scitex Continuous Tone"
|
||||||
|
comment = "Display name of the Scitex CT file type association, referenced as ms-resource:FileTypeSctDisplayName."
|
||||||
@@ -0,0 +1,129 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>English</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
|
||||||
|
<key>CFBundleGetInfoString</key>
|
||||||
|
<string>${MACOSX_BUNDLE_INFO_STRING}</string>
|
||||||
|
<key>CFBundleIconFile</key>
|
||||||
|
<string>${MACOSX_BUNDLE_ICON_FILE}</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>{{ default.strings.app_name | xml_escape }}</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
|
||||||
|
<key>CSResourcesFileMapped</key>
|
||||||
|
<true/>
|
||||||
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
<string>MIT/Expat License - Copyright (C) 2026 Sarasa's Chip Workshop</string>
|
||||||
|
<!--
|
||||||
|
CFBundleLocalizations is generated from the metadata localization languages (the metaglot
|
||||||
|
"langs" list), while this field by definition describes the application's language
|
||||||
|
availability. This deviation works around an upstream Qt bug: since the Qt 6.7.0 refactor,
|
||||||
|
the CMake function _qt_internal_store_languages_from_ts_files_in_targets loses the parsed
|
||||||
|
TS language codes (a missing list(APPEND)), so Qt's own CFBundleLocalizations generation
|
||||||
|
yields an empty list. Consistency between the metadata languages and the application
|
||||||
|
languages is maintained manually at release time.
|
||||||
|
TODO: drop this workaround and let Qt generate CFBundleLocalizations itself once the
|
||||||
|
upstream bug is fixed and the fix ships in the CI toolchain.
|
||||||
|
-->
|
||||||
|
<key>CFBundleLocalizations</key>
|
||||||
|
<array>
|
||||||
|
{% for lang in langs %}
|
||||||
|
<string>{{ lang }}</string>
|
||||||
|
{% endfor %}
|
||||||
|
</array>
|
||||||
|
<key>CFBundleDocumentTypes</key>
|
||||||
|
<array>
|
||||||
|
<!-- JPEG -->
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeName</key>
|
||||||
|
<string>JPEG Image</string>
|
||||||
|
<key>CFBundleTypeExtensions</key>
|
||||||
|
<array>
|
||||||
|
<string>jpg</string>
|
||||||
|
<string>jpeg</string>
|
||||||
|
<string>jfif</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeMIMETypes</key>
|
||||||
|
<array>
|
||||||
|
<string>image/jpeg</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Viewer</string>
|
||||||
|
</dict>
|
||||||
|
<!-- PNG -->
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeName</key>
|
||||||
|
<string>PNG Image</string>
|
||||||
|
<key>CFBundleTypeExtensions</key>
|
||||||
|
<array>
|
||||||
|
<string>png</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeMIMETypes</key>
|
||||||
|
<array>
|
||||||
|
<string>image/png</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Viewer</string>
|
||||||
|
</dict>
|
||||||
|
<!-- WebP -->
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeName</key>
|
||||||
|
<string>WebP Image</string>
|
||||||
|
<key>CFBundleTypeExtensions</key>
|
||||||
|
<array>
|
||||||
|
<string>webp</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeMIMETypes</key>
|
||||||
|
<array>
|
||||||
|
<string>image/webp</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Viewer</string>
|
||||||
|
</dict>
|
||||||
|
<!-- GIF -->
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeName</key>
|
||||||
|
<string>GIF Image</string>
|
||||||
|
<key>CFBundleTypeExtensions</key>
|
||||||
|
<array>
|
||||||
|
<string>gif</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeMIMETypes</key>
|
||||||
|
<array>
|
||||||
|
<string>image/gif</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Viewer</string>
|
||||||
|
</dict>
|
||||||
|
<!-- SVG -->
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeName</key>
|
||||||
|
<string>SVG Image</string>
|
||||||
|
<key>CFBundleTypeExtensions</key>
|
||||||
|
<array>
|
||||||
|
<string>svg</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeMIMETypes</key>
|
||||||
|
<array>
|
||||||
|
<string>image/svg+xml</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Viewer</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
version = 1
|
||||||
|
source_language = "en"
|
||||||
|
|
||||||
|
[strings.app_name]
|
||||||
|
msgid = "SCW Photo Viewer"
|
||||||
|
comment = "Display name of the application."
|
||||||
|
|
||||||
|
[strings.file_type_jpeg]
|
||||||
|
msgid = "JPEG Image"
|
||||||
|
comment = "Name of the JPEG document type (jpg, jpeg, jfif)."
|
||||||
|
|
||||||
|
[strings.file_type_png]
|
||||||
|
msgid = "PNG Image"
|
||||||
|
comment = "Name of the PNG document type."
|
||||||
|
|
||||||
|
[strings.file_type_webp]
|
||||||
|
msgid = "WebP Image"
|
||||||
|
comment = "Name of the WebP document type."
|
||||||
|
|
||||||
|
[strings.file_type_gif]
|
||||||
|
msgid = "GIF Image"
|
||||||
|
comment = "Name of the GIF document type."
|
||||||
|
|
||||||
|
[strings.file_type_svg]
|
||||||
|
msgid = "SVG Image"
|
||||||
|
comment = "Name of the SVG document type."
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/* Application display name. The key is the Info.plist key name. */
|
||||||
|
"CFBundleName" = "{{ strings.app_name | plist_strings_escape }}";
|
||||||
|
/* File type names. The key is the source text, covering CFBundleTypeName. */
|
||||||
|
"{{ sources.file_type_jpeg | plist_strings_escape }}" = "{{ strings.file_type_jpeg | plist_strings_escape }}";
|
||||||
|
"{{ sources.file_type_png | plist_strings_escape }}" = "{{ strings.file_type_png | plist_strings_escape }}";
|
||||||
|
"{{ sources.file_type_webp | plist_strings_escape }}" = "{{ strings.file_type_webp | plist_strings_escape }}";
|
||||||
|
"{{ sources.file_type_gif | plist_strings_escape }}" = "{{ strings.file_type_gif | plist_strings_escape }}";
|
||||||
|
"{{ sources.file_type_svg | plist_strings_escape }}" = "{{ strings.file_type_svg | plist_strings_escape }}";
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"AppDisplayName": "{{ strings.app_display_name | json_escape }}",
|
||||||
|
"PublisherDisplayName": "{{ strings.publisher_display_name | json_escape }}",
|
||||||
|
"AppDescription": "{{ strings.app_description | json_escape }}",
|
||||||
|
"FileTypeJpegDisplayName": "{{ strings.file_type_jpeg | json_escape }}",
|
||||||
|
"FileTypeGifDisplayName": "{{ strings.file_type_gif | json_escape }}",
|
||||||
|
"FileTypePngDisplayName": "{{ strings.file_type_png | json_escape }}",
|
||||||
|
"FileTypeSvgDisplayName": "{{ strings.file_type_svg | json_escape }}",
|
||||||
|
"FileTypeWebpDisplayName": "{{ strings.file_type_webp | json_escape }}",
|
||||||
|
"FileTypeAvifDisplayName": "{{ strings.file_type_avif | json_escape }}",
|
||||||
|
"FileTypeIcoDisplayName": "{{ strings.file_type_ico | json_escape }}",
|
||||||
|
"FileTypeIcnsDisplayName": "{{ strings.file_type_icns | json_escape }}",
|
||||||
|
"FileTypePsdDisplayName": "{{ strings.file_type_psd | json_escape }}",
|
||||||
|
"FileTypeKraDisplayName": "{{ strings.file_type_kra | json_escape }}",
|
||||||
|
"FileTypeXcfDisplayName": "{{ strings.file_type_xcf | json_escape }}",
|
||||||
|
"FileTypeTgaDisplayName": "{{ strings.file_type_tga | json_escape }}",
|
||||||
|
"FileTypeTifDisplayName": "{{ strings.file_type_tif | json_escape }}",
|
||||||
|
"FileTypeBmpDisplayName": "{{ strings.file_type_bmp | json_escape }}",
|
||||||
|
"FileTypeWbmpDisplayName": "{{ strings.file_type_wbmp | json_escape }}",
|
||||||
|
"FileTypeDdsDisplayName": "{{ strings.file_type_dds | json_escape }}",
|
||||||
|
"FileTypeHdrDisplayName": "{{ strings.file_type_hdr | json_escape }}",
|
||||||
|
"FileTypeIffDisplayName": "{{ strings.file_type_iff | json_escape }}",
|
||||||
|
"FileTypePicDisplayName": "{{ strings.file_type_pic | json_escape }}",
|
||||||
|
"FileTypePcxDisplayName": "{{ strings.file_type_pcx | json_escape }}",
|
||||||
|
"FileTypeQoiDisplayName": "{{ strings.file_type_qoi | json_escape }}",
|
||||||
|
"FileTypeRasDisplayName": "{{ strings.file_type_ras | json_escape }}",
|
||||||
|
"FileTypeOraDisplayName": "{{ strings.file_type_ora | json_escape }}",
|
||||||
|
"FileTypeAniDisplayName": "{{ strings.file_type_ani | json_escape }}",
|
||||||
|
"FileTypePfmDisplayName": "{{ strings.file_type_pfm | json_escape }}",
|
||||||
|
"FileTypeRgbDisplayName": "{{ strings.file_type_rgb | json_escape }}",
|
||||||
|
"FileTypePxrDisplayName": "{{ strings.file_type_pxr | json_escape }}",
|
||||||
|
"FileTypeSctDisplayName": "{{ strings.file_type_sct | json_escape }}"
|
||||||
|
}
|
||||||