1 Commits

Author SHA1 Message Date
e92ccb0986 Revert "feat: fit by width"
This reverts commit 038d04b3da.
2021-05-29 11:00:47 +08:00
96 changed files with 5647 additions and 18627 deletions

View File

@ -1,3 +0,0 @@
# .git-blame-ignore-revs
# CR LF to LF
ed5a6023326fd2ab420ded76976501be33e0b389

5
.gitattributes vendored
View File

@ -1,5 +0,0 @@
*.txt text eol=lf
*.cpp text eol=lf
*.h text eol=lf
*.ui text eol=lf
*.qml text eol=lf

2
.github/FUNDING.yml vendored
View File

@ -1,2 +0,0 @@
ko_fi: blumia
custom: ["https://blumia.itch.io/pineapple-pictures"]

View File

@ -1,6 +1,6 @@
name: macOS CI name: macOS CI
on: [push, pull_request, workflow_dispatch] on: [push, pull_request]
jobs: jobs:
build: build:
@ -8,31 +8,12 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v1
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v4 uses: jurplel/install-qt-action@v2
with: with:
version: '6.9.1' version: '5.15.2'
modules: 'qtimageformats' - name: Run a qt project
- name: Install Conan and Dependencies
id: conan
working-directory: ./
shell: bash
run: | run: |
pip3 install wheel setuptools cmake ./
pip3 install conan --upgrade make
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 ./ppic.app -dmg
ls
- uses: actions/upload-artifact@v4
with:
name: "macos-bundle"
path: "*.dmg"

View File

@ -1,17 +0,0 @@
# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0
name: REUSE Compliance Check
on: [push, pull_request]
jobs:
reuse-compliance-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v5

View File

@ -1,28 +1,30 @@
name: Ubuntu CI name: Ubuntu 20.04 CI
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
ubuntu-24-04-build: build:
runs-on: ubuntu-24.04
runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v1
- name: Get build dept. - name: Get build dept.
run: | run: |
sudo apt update sudo apt update
sudo apt install cmake qt6-base-dev qt6-svg-dev qt6-tools-dev libexiv2-dev sudo apt install cmake qtbase5-dev libqt5svg5-dev qttools5-dev libexiv2-dev
- name: Build it - name: Build it
run: | run: |
mkdir build mkdir build
cd build cd build
cmake ../ 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@v2
with: with:
name: ubuntu-24.04-deb-package name: ubuntu-20.04-deb-package
path: build/*.deb path: build/*.deb

View File

@ -1,133 +0,0 @@
name: Windows CI
on: [push, pull_request, workflow_dispatch]
jobs:
msvc-qmake-build:
strategy:
matrix:
include:
- qt_ver: '6.9.1'
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:
strategy:
matrix:
include:
- qt_ver: '6.9.1'
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: |
:: ------ env ------
set PWD=%cd%
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 }}
:: ------ dep ------
set CMAKE_PREFIX_PATH=%PWD%/dependencies_bin
mkdir dependencies_src
echo ::group::===== exiv2 =====
curl -fsSL -o exiv2_bin.zip https://github.com/Exiv2/exiv2/releases/download/v0.28.5/exiv2-0.28.5-2022msvc-AMD64.zip
7z x exiv2_bin.zip -y
ren .\exiv2-0.28.5-2022msvc-AMD64 dependencies_bin
echo ::endgroup::
echo ::group::===== zlib =====
curl -fsSL -o zlib_src.zip https://zlib.net/zlib131.zip
7z x zlib_src.zip -y -o"dependencies_src"
ren .\dependencies_src\zlib-1.3.1 zlib || 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
curl -fsSL -o expat_src.zip https://github.com/libexpat/libexpat/archive/R_2_6_2.zip
echo ::endgroup::
echo ::group::===== AOM for libavif AVI decoding support =====
git clone -q -b v3.12.0 --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 --build build_dependencies/aom --config Release --target=install || goto :error
echo ::endgroup::
echo ::group::===== libavif =====
curl -fsSL -o libavif-v1_2_1.zip https://github.com/AOMediaCodec/libavif/archive/v1.2.1.zip
7z x libavif-v1_2_1.zip -y -o"dependencies_src"
ren .\dependencies_src\libavif-1.2.1 libavif || goto :error
cmake ./dependencies_src/libavif -Bbuild_dependencies/libavif -DCMAKE_INSTALL_PREFIX="dependencies_bin" -DAVIF_CODEC_AOM=ON -DAVIF_LIBYUV=LOCAL
cmake --build build_dependencies/libavif --config Release --target=install || goto :error
echo ::endgroup::
echo ::group::===== expat =====
7z x expat_src.zip -y -o"dependencies_src"
ren .\dependencies_src\libexpat-R_2_6_2 expat || 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
echo ::endgroup::
echo ::group::===== ECM =====
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 --build build_dependencies/extra-cmake-modules --config Release --target=install || goto :error
echo ::endgroup::
echo ::group::===== KArchive =====
git clone -q https://invent.kde.org/frameworks/karchive.git dependencies_src/karchive
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
echo ::endgroup::
echo ::group::===== 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 --build build_dependencies/kimageformats --config Release --target=install || goto :error
echo ::endgroup::
:: ------ app ------
cmake -Bbuild . -DCMAKE_INSTALL_PREFIX="%PWD%\build\"
cmake --build build --config Release
cmake --build build --config Release --target=install
:: ------ 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
robocopy ./dependencies_bin/bin build/bin *.dll
if ErrorLevel 8 (exit /B 1)
copy LICENSE build\bin
exit /B 0
- uses: actions/upload-artifact@v4
with:
name: "windows-msvc${{ matrix.vs }}-qt${{ matrix.qt_ver }}-cmake-package"
path: build/bin/*

9
.gitignore vendored
View File

@ -2,17 +2,8 @@
*.user *.user
*.user.* *.user.*
# Why, macOS, why?
.DS_Store
# Translation files # Translation files
*.qm *.qm
*.mo
# Generic Build Dir # Generic Build Dir
[Bb]uild/ [Bb]uild/
cmake-build-*/
# IDE/Editor config folders
.vscode/
.idea/

View File

@ -1,41 +1,31 @@
# SPDX-FileCopyrightText: 2022 - 2025 Gary Wang <git@blumia.net> project (pineapple-pictures)
#
# SPDX-License-Identifier: MIT
cmake_minimum_required(VERSION 3.16) cmake_minimum_required (VERSION 3.9.5)
project(pineapple-pictures VERSION 1.1.1) # don't forget to update NEWS file and AppStream metadata. list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
include(GNUInstallDirs) include (GNUInstallDirs)
include(FeatureSummary) include (FeatureSummary)
option (EXIV2_METADATA_SUPPORT "Better image metadata support via libexiv2" ON)
option (TRANSLATION_RESOURCE_EMBEDDING "Embedding .qm translation files inside resource" OFF)
set (CMAKE_CXX_STANDARD 17)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_AUTOMOC ON) set (CMAKE_AUTOMOC ON)
set (CMAKE_AUTORCC ON) set (CMAKE_AUTORCC ON)
set (QT_MINIMUM_VERSION "5.10")
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core) option (EXIV2_METADATA_SUPPORT "Better image metadata support via libexiv2" ON)
set (QT_MINIMUM_VERSION "6.4") find_package(Qt5 ${QT_MINIMUM_VERSION} CONFIG REQUIRED Widgets Svg LinguistTools)
find_package(Qt${QT_VERSION_MAJOR} ${QT_MINIMUM_VERSION} REQUIRED
COMPONENTS Widgets Svg SvgWidgets LinguistTools
OPTIONAL_COMPONENTS DBus
)
if (EXIV2_METADATA_SUPPORT) if (EXIV2_METADATA_SUPPORT)
find_package(exiv2) find_package(LibExiv2)
set_package_properties(exiv2 PROPERTIES set_package_properties(LibExiv2 PROPERTIES
URL "https://www.exiv2.org" URL "https://www.exiv2.org"
DESCRIPTION "image metadata support" DESCRIPTION "image metadata support"
TYPE RECOMMENDED TYPE OPTIONAL
PURPOSE "Bring better image metadata support" PURPOSE "Bring better image metadata support"
) )
endif () endif ()
#LibExiv2_FOUND
set (PPIC_CPP_FILES set (PPIC_CPP_FILES
app/main.cpp app/main.cpp
app/framelesswindow.cpp app/framelesswindow.cpp
@ -54,8 +44,6 @@ set (PPIC_CPP_FILES
app/metadatadialog.cpp app/metadatadialog.cpp
app/exiv2wrapper.cpp app/exiv2wrapper.cpp
app/playlistmanager.cpp app/playlistmanager.cpp
app/shortcutedit.cpp
app/fileopeneventhandler.cpp
) )
set (PPIC_HEADER_FILES set (PPIC_HEADER_FILES
@ -75,8 +63,6 @@ set (PPIC_HEADER_FILES
app/metadatadialog.h app/metadatadialog.h
app/exiv2wrapper.h app/exiv2wrapper.h
app/playlistmanager.h app/playlistmanager.h
app/shortcutedit.h
app/fileopeneventhandler.h
) )
set (PPIC_QRC_FILES set (PPIC_QRC_FILES
@ -93,9 +79,10 @@ set (EXE_NAME ppic)
file (GLOB PPIC_TS_FILES app/translations/*.ts) file (GLOB PPIC_TS_FILES app/translations/*.ts)
set (PPIC_CPP_FILES_FOR_I18N ${PPIC_CPP_FILES}) set (PPIC_CPP_FILES_FOR_I18N ${PPIC_CPP_FILES})
qt5_create_translation(PPIC_QM_FILES ${PPIC_CPP_FILES_FOR_I18N} ${PPIC_TS_FILES})
if (WIN32) if (WIN32)
configure_file(assets/pineapple-pictures.rc.in pineapple-pictures.rc @ONLY) list(APPEND PPIC_RC_FILES assets/pineapple-pictures.rc)
list(APPEND PPIC_RC_FILES ${CMAKE_CURRENT_BINARY_DIR}/pineapple-pictures.rc)
endif () endif ()
add_executable (${EXE_NAME} add_executable (${EXE_NAME}
@ -103,48 +90,32 @@ add_executable (${EXE_NAME}
${PPIC_CPP_FILES} ${PPIC_CPP_FILES}
${PPIC_QRC_FILES} ${PPIC_QRC_FILES}
${PPIC_RC_FILES} ${PPIC_RC_FILES}
${PPIC_QM_FILES}
) )
set(ADD_TRANSLATIONS_ADDITIONAL_ARGS) target_link_libraries (${EXE_NAME} Qt5::Widgets Qt5::Svg)
if (Qt6_VERSION VERSION_GREATER_EQUAL "6.9.0") if (LibExiv2_FOUND)
set(ADD_TRANSLATIONS_ADDITIONAL_ARGS MERGE_QT_TRANSLATIONS) message(INFO ${LibExiv2_INCLUDE_DIRS})
endif() target_include_directories(${EXE_NAME}
PRIVATE
if (TRANSLATION_RESOURCE_EMBEDDING) ${LibExiv2_INCLUDE_DIRS}
qt_add_translations(${EXE_NAME} ${ADD_TRANSLATIONS_ADDITIONAL_ARGS} TS_FILES ${PPIC_TS_FILES}) )
else()
qt_add_translations(${EXE_NAME} ${ADD_TRANSLATIONS_ADDITIONAL_ARGS} TS_FILES ${PPIC_TS_FILES} QM_FILES_OUTPUT_VARIABLE PPIC_QM_FILES)
endif()
target_sources(${EXE_NAME} PRIVATE ${PPIC_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)
# for exiv2 0.27.x and (macOS?) conan build
add_library(Exiv2::exiv2lib ALIAS exiv2lib)
endif()
target_link_libraries (${EXE_NAME} target_link_libraries (${EXE_NAME}
Exiv2::exiv2lib LibExiv2::LibExiv2
) )
target_compile_definitions(${EXE_NAME} PRIVATE target_compile_definitions(${EXE_NAME} PRIVATE
HAVE_EXIV2_VERSION="${exiv2_VERSION}" HAVE_EXIV2_VERSION="${LibExiv2_VERSION}"
) )
endif () endif ()
if (TARGET Qt6::DBus)
target_link_libraries (${EXE_NAME}
Qt${QT_VERSION_MAJOR}::DBus
)
target_compile_definitions(${EXE_NAME} PRIVATE
HAVE_QTDBUS
)
endif()
# Extra build settings # Extra build settings
if (WIN32) if (WIN32)
set_property (
TARGET ${EXE_NAME}
PROPERTY WIN32_EXECUTABLE true
)
target_compile_definitions(${EXE_NAME} PRIVATE target_compile_definitions(${EXE_NAME} PRIVATE
FLAG_PORTABLE_MODE_SUPPORT=1 FLAG_PORTABLE_MODE_SUPPORT=1
) )
@ -175,7 +146,6 @@ 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}")
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.")
@ -193,36 +163,34 @@ if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
endif () endif ()
endif () endif ()
# Helper macros for install settings
macro (ppic_convert_to_relative_path _var)
# Make sure _var is a relative path
if (IS_ABSOLUTE "${${_var}}")
file (RELATIVE_PATH ${_var} "${CMAKE_INSTALL_PREFIX}" "${${_var}}")
endif ()
endmacro ()
# Install settings # Install settings
if (WIN32) if (WIN32)
set_target_properties(${EXE_NAME} PROPERTIES # FIXME: try to avoid install to a "bin" subfolder under windows...
WIN32_EXECUTABLE TRUE # when fixed, don't forget to update the CI config file...
) set (BIN_INSTALL_DIR "") # seems useless, don't know why...
elseif (APPLE)
set_source_files_properties(assets/icons/app-icon.icns PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources"
)
target_sources(${EXE_NAME} PUBLIC assets/icons/app-icon.icns)
# 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 ${CMAKE_CURRENT_SOURCE_DIR}/dist/MacOSXBundleInfo.plist.in
MACOSX_BUNDLE_BUNDLE_NAME "Pineapple Pictures"
MACOSX_BUNDLE_GUI_IDENTIFIER net.blumia.pineapple-pictures
MACOSX_BUNDLE_ICON_FILE app-icon.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}
)
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)
endif () endif ()
set (BIN_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}") # relative, usually "bin"
ppic_convert_to_relative_path(BIN_INSTALL_DIR)
set (LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}") # "lib" or "lib64"
ppic_convert_to_relative_path(LIB_INSTALL_DIR)
# install icon # install icon
install ( install (
FILES assets/icons/app-icon.svg FILES assets/icons/app-icon.svg
DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps" DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/48x48/apps"
RENAME net.blumia.pineapple-pictures.svg RENAME pineapple-pictures.svg
) )
# install shortcut # install shortcut
@ -239,10 +207,9 @@ elseif (UNIX)
endif() endif()
set (INSTALL_TARGETS_DEFAULT_ARGS set (INSTALL_TARGETS_DEFAULT_ARGS
BUNDLE DESTINATION . RUNTIME DESTINATION ${BIN_INSTALL_DIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${LIB_INSTALL_DIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR} COMPONENT Devel
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Devel
) )
install ( install (
@ -250,25 +217,19 @@ install (
${INSTALL_TARGETS_DEFAULT_ARGS} ${INSTALL_TARGETS_DEFAULT_ARGS}
) )
if (TRANSLATION_RESOURCE_EMBEDDING) if (WIN32)
target_compile_definitions(${EXE_NAME}
PRIVATE TRANSLATION_RESOURCE_EMBEDDING
)
elseif (WIN32)
set (QM_FILE_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}/translations") set (QM_FILE_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}/translations")
else() else ()
set (QM_FILE_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR}/pineapple-pictures/translations") 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_ABSOLUTE_DIR=${QM_FILE_INSTALL_DIR} PRIVATE QM_FILE_INSTALL_DIR=${QM_FILE_INSTALL_DIR}
) )
endif() endif ()
if (DEFINED QM_FILE_INSTALL_DIR) install (
install( FILES ${PPIC_QM_FILES}
FILES ${PPIC_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)
@ -284,7 +245,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_SHILIBDEPS ON)
set (CPACK_DEBIAN_PACKAGE_RECOMMENDS "kimageformat-plugins") set (CPACK_DEBIAN_PACKAGE_RECOMMENDS "kimageformat-plugins")
endif() endif()

42
LICENSE
View File

@ -1,21 +1,21 @@
MIT License MIT License
Copyright (c) 2025 BLumia Copyright (c) 2020 BLumia
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
in the Software without restriction, including without limitation the rights in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software. copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 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 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.

View File

@ -1,121 +0,0 @@
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.
For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.

View File

@ -1,9 +0,0 @@
MIT License
Copyright (c) <year> <copyright holders>
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.

186
NEWS
View File

@ -1,186 +0,0 @@
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
~~~~~~~~~~~~~
Released: 2024-10-27
Bugfixes:
* Cannot load translations caused by a change in 0.8.2
Version 0.8.2
~~~~~~~~~~~~~
Released: 2024-10-26
Features:
* New option to allow use light-color checkerboard by default
Contributors:
albanobattistella, mmahhi, gallegonovato
Version 0.8.1
~~~~~~~~~~~~~
Released: 2024-08-25
Features:
* New command line option to list all supported formats
Contributors:
albanobattistella, mmahhi, ovl-1, gallegonovato, Oğuz Ersen
Version 0.8.0
~~~~~~~~~~~~~
Released: 2024-06-29
Features:
* Support move image file to trash
Contributors:
albanobattistella, mmahhi, gallegonovato, Oğuz Ersen
Version 0.7.4
~~~~~~~~~~~~~
Released: 2024-04-04
Features:
* Add some icons for corresponding menu actions
Contributors:
Reza Almanda, mmahhi, Oğuz Ersen, volkov, Сергій
Version 0.7.3
~~~~~~~~~~~~~
Released: 2023-10-24
Features:
* Add "Keep transformation" to menu
Contributors:
mmahhi, VenusGirl, albanobattistella, gallegonovato, Heimen Stoffels
Version 0.7.2
~~~~~~~~~~~~~
Released: 2023-08-27
Features:
* Add an option in setting dialog to tweak the High-DPI scaling rounding policy (might only works in Qt 6 build)
Bugfixes:
* Remove image size limit for Qt 6 build
* Fix application icon install location under Linux
Contributors:
Heimen Stoffels, Andrey, Dan, gallegonovato, albanobattistella, Sabri Ünal
Version 0.7.1
~~~~~~~~~~~~~
Released: 2023-07-08
Features:
* 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)
Bugfixes:
* Settings dialog will automatedly use a suitable size instead of a hard-coded one
* Fix default configuration file location under Linux. (was `~/.config/config.ini`, now it's `~/.config/Pineapple Pictures/config.ini`)
Contributors:
yyc12345

138
README.md
View File

@ -1,63 +1,75 @@
Yet another image viewer. Yet another image viewer.
|CI|Build Status| |CI|Build Status|
|---|---| |---|---|
|Windows Build|[![Windows CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/windows.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/windows.yml)| |Windows Build|[![Windows build status](https://ci.appveyor.com/api/projects/status/dbd8clww3cit6oa0/branch/master?svg=true)](https://ci.appveyor.com/project/BLumia/pineapplepictures/branch/master)|
|macOS Build|[![macOS CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/macos.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/macos.yml)| |macOS Build|![macOS CI](https://github.com/BLumia/pineapple-pictures/workflows/macOS%20CI/badge.svg)|
|Ubuntu Build|[![Ubuntu CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/ubuntu.yml)| |Ubuntu 20.04 Build|![Ubuntu 20.04 CI](https://github.com/BLumia/pineapple-pictures/workflows/Ubuntu%2020.04%20CI/badge.svg)|
![Pineapple Pictures - Main Window](https://repository-images.githubusercontent.com/211888654/e8697600-e370-11eb-9b2a-b71e05262954) ![Pineapple Pictures - Main Window](https://repository-images.githubusercontent.com/211888654/21fb6300-269f-11ea-8e85-953e5d57da44)
## 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. Pineapple Pictures is a lightweight image viewer that allows you view JPEG, PNG, GIF, SVG, PSD, KRA, XCF, TGA, 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.
## Get it! ## Get it!
### Maintained by the original author - [GitHub Release Page](https://github.com/BLumia/pineapple-pictures/releases)
- [SourceForge](https://sourceforge.net/projects/pineapple-pictures/)
- [GitHub Release Page](https://github.com/BLumia/pineapple-pictures/releases) - Archlinux AUR: [pineapple-pictures](https://aur.archlinux.org/packages/pineapple-pictures/) | [pineapple-pictures-git](https://aur.archlinux.org/packages/pineapple-pictures-git/)
- [SourceForge](https://sourceforge.net/projects/pineapple-pictures/) - Debian (since bullseye) or Ubuntu (since 21.04): `sudo apt install 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)
- [Itch.io Store](https://blumia.itch.io/pineapple-pictures)
## Help Translation!
### Maintained by contributors / certain distro's package maintainers
[Translate this project on Weblate!](https://hosted.weblate.org/projects/pineapple-pictures/)
[![Packaging status](https://repology.org/badge/vertical-allrepos/pineapple-pictures.svg?columns=4)](https://repology.org/project/pineapple-pictures/versions)
## Build it manually:
## Help Translation!
Current state, we need:
[Translate this project on Weblate!](https://hosted.weblate.org/projects/pineapple-pictures/)
- `cmake`: as the build system.
## Build it manually: - `qt5` with `qt5-svg` and `qt5-tools`: since the app is using Qt.
- `libexiv2`: able to display more image metadata. (optional, but recommended)
Current state, we need:
Then we can build it with any proper c++ compiler like g++ or msvc.
- `cmake`: as the build system.
- `qt6` with `qt6-svg` and `qt6-tools`: since the app is using Qt. Building it just requires normal cmake building steps:
- `libexiv2`: able to display more image metadata. (optional, but recommended)
``` bash
Then we can build it with any proper c++ compiler like g++ or msvc. $ mkdir build && cd build
$ cmake ..
Building it just requires normal cmake building steps: $ cmake --build . # or simply using `make` if you are using Makefile as the cmake generator.
```
``` bash
$ mkdir build && cd 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.
$ cmake ..
$ cmake --build . # or simply using `make` if you are using Makefile as the cmake generator. 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.
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.
### Linux
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.
Just normal build process as other program will be fine. Nothing special ;)
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.
For Archlinux there are also a [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pineapple-pictures-git) you can use.
It's possible to build it under Windows, Linux, macOS, and maybe other desktop platforms that Qt is ported to. For platform specific build instructions, please read the [related wiki page](https://github.com/BLumia/pineapple-pictures/wiki/Platform-Specific-Build-Instructions).
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.
> [!NOTE]
> 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. 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.
## License ### Windows
Pineapple Pictures as a whole is licensed under MIT license. Individual files may have a different, but compatible license. 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, but since I don't have a CI to run KDE Craft build, the blueprint repo are not provided here. Maybe sometimes later.
### 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
Pineapple Pictures as a whole is licensed under MIT license. Individual files may have a different, but compatible license.

View File

@ -1,64 +1,75 @@
简单轻量的跨平台看图工具。 简单轻量的跨平台看图工具。
|CI|构建状态| |CI|构建状态|
|---|---| |---|---|
|Windows Build|[![Windows CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/windows.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/windows.yml)| |Windows Build|[![Windows build status](https://ci.appveyor.com/api/projects/status/dbd8clww3cit6oa0/branch/master?svg=true)](https://ci.appveyor.com/project/BLumia/pineapplepictures/branch/master)|
|macOS Build|[![macOS CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/macos.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/macos.yml)| |macOS Build|![macOS CI](https://github.com/BLumia/pineapple-pictures/workflows/macOS%20CI/badge.svg)|
|Ubuntu Build|[![Ubuntu CI](https://github.com/BLumia/pineapple-pictures/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/BLumia/pineapple-pictures/actions/workflows/ubuntu.yml)| |Ubuntu 20.04 Build|![Ubuntu 20.04 CI](https://github.com/BLumia/pineapple-pictures/workflows/Ubuntu%2020.04%20CI/badge.svg)|
![Pineapple Pictures - Main Window](https://repository-images.githubusercontent.com/211888654/e8697600-e370-11eb-9b2a-b71e05262954) ![Pineapple Pictures - Main Window](https://repository-images.githubusercontent.com/211888654/21fb6300-269f-11ea-8e85-953e5d57da44)
## 简介 ## 简介
菠萝看图是一个轻量图像查看器,允许你简单快捷的查看 JPEG, PNG, GIF, SVG, PSD, KRA, XCF, TGA, HDR, AVIF 等常用格式的图像文件,并提供了置顶窗口的选项以便你在使用其它软件时也可以将参考图片固定在顶端。 菠萝看图是一个轻量图像查看器,允许你简单快捷的查看 JPEG, PNG, GIF, SVG, PSD, KRA, XCF, TGA, 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/)
- [GitHub Release 页面](https://github.com/BLumia/pineapple-pictures/releases) - Archlinux AUR: [pineapple-pictures](https://aur.archlinux.org/packages/pineapple-pictures/) | [pineapple-pictures-git](https://aur.archlinux.org/packages/pineapple-pictures-git/)
- [SourceForge](https://sourceforge.net/projects/pineapple-pictures/) - Debian (自 bullseye 起) 或 Ubuntu (自 21.04 起): `sudo apt install 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)
- [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))* ## 帮助翻译!
### 由贡献者/对应发行版的打包人员维护 [在 Weblate 上帮助此项目翻译到更多语言!](https://hosted.weblate.org/projects/pineapple-pictures/)
[![打包状态](https://repology.org/badge/vertical-allrepos/pineapple-pictures.svg?columns=4)](https://repology.org/project/pineapple-pictures/versions) ## 手动构建步骤:
## 帮助翻译! 当前状态,我们需要先确保如下依赖可用:
[在 Weblate 上帮助此项目翻译到更多语言!](https://hosted.weblate.org/projects/pineapple-pictures/) - `cmake`: 我们所使用的构建系统
- 包含 `qt5-svg``qt5-tools` 组件的 `qt5`: 此应用基于 Qt
## 手动构建步骤: - `libexiv2`: 用以获取和显示更多的图像元信息(可选,推荐)
当前状态,我们需要先确保如下依赖可用: 然后我们就可以使用任何常规的 c++ 编译器如 g++ 或 msvc 来进行构建了
- `cmake`: 我们所使用的构建系统 构建过程就是常规的 CMake 应用构建过程:
- 包含 `qt6-svg``qt6-tools` 组件的 `qt6`: 此应用基于 Qt
- `libexiv2`: 用以获取和显示更多的图像元信息(可选,推荐) ``` bash
$ mkdir build && cd build
然后我们就可以使用任何常规的 c++ 编译器如 g++ 或 msvc 来进行构建了 $ cmake ..
$ cmake --build . # 如果你使用 Makefile 作为 CMake 生成器,也可以直接简单的使用 `make`
构建过程就是常规的 CMake 应用构建过程: ```
``` bash 完毕后,一个名为 `ppic` 的可执行程序即会被生成以供使用。您也可以选择通过使用 CMake 生成的 `install` 目标继续将其安装到您的设备上(假设您使用 Makefile即可执行 `make install` 来进行安装)。构建步骤完毕后,您也可以使用 `cpack` 来对应用程序进行打包。
$ mkdir build && cd build
$ cmake .. 当 `exiv2` 在构建时可用时,此项目将尝试使用其进行构建,若您不希望使用 `exiv2`,请传递 `-DEXIV2_METADATA_SUPPORT=OFF` 参数给 `cmake`。此项目在找不到 `exiv2` 时并不会使用 `exiv2``EXIV2_METADATA_SUPPORT` 选项可供尽管存在可用的 `exiv2` 但您明确不希望启用其支持时使用。
$ cmake --build . # 如果你使用 Makefile 作为 CMake 生成器,也可以直接简单的使用 `make`
``` 此应用的图片格式支持依赖于 Qt 的 imageformats 插件,直接从您所用的发行版获取对应的图像格式插件即可。对于 Windows 用户,您可能需要手动构建和使用图像格式插件。下方给出了进一步的说明。
完毕后,一个名为 `ppic` 的可执行程序即会被生成以供使用。您也可以选择通过使用 CMake 生成的 `install` 目标继续将其安装到您的设备上(假设您使用 Makefile即可执行 `make install` 来进行安装)。构建步骤完毕后,您也可以使用 `cpack` 来对应用程序进行打包。 ### Linux
当 `exiv2` 在构建时可用时,此项目将尝试使用其进行构建,若您不希望使用 `exiv2`,请传递 `-DEXIV2_METADATA_SUPPORT=OFF` 参数给 `cmake`。此项目在找不到 `exiv2` 时并不会使用 `exiv2``EXIV2_METADATA_SUPPORT` 选项可供尽管存在可用的 `exiv2` 但您明确不希望启用其支持时使用。 常规的构建步骤即可完成构建,不需要额外的处理步骤 ;)
此应用的图片格式支持依赖于 Qt 的 imageformats 插件,直接从您所用的发行版获取对应的图像格式插件即可。对于 Windows 用户,您可能需要手动构建和使用图像格式插件。下方给出了进一步的说明 对于 Archlinux 发行版的用户,这里还有一个 [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pineapple-pictures-git) 可供使用和参考
在 Windows、Linux 以及 macOS 系统均可构建此应用,其它有移植 Qt 支持的平台也可能可以进行构建。若要了解一些平台相关的构建指引,请参阅[相关的 Wiki 页面](https://github.com/BLumia/pineapple-pictures/wiki/Platform-Specific-Build-Instructions) 对于在基于 debian 的发行版中进行打包的需求, `CMakeLists.txt` 已经提供了一些基本的 cpack 配置以便生成一个有效的 `.deb` 软件包。在构建步骤完毕后,使用 `cpack -G DEB` 即可生成 DEB 软件包。您也可以参考 `.github/workflows/ubuntu.yml` 来查看当前正在使用的 CI 配置是如何进行打包的
> [!NOTE] 目前,`DEB` 是当前唯一受到直接支持的 cpack 生成目标。若希望为此项目添加其它的 cpack 目标支持,欢迎发起合并请求。
> 尽管存在一个可用于 QMake 构建的 `pineapple-pictures.pro` 文件,但其仅供简单测试所用且其并不包含 `exiv2` 支持。使用 QMake 构建此项目是 **不受支持** 的,请尽可能考虑使用 CMake。
### Windows
## 许可协议
上述的构建步骤在 Windows 中也适用,但由于 Windows 中不具备类如大多 Linux 发行版中所提供的方便的软件包管理机制,故如果您需要任何 Qt 官方支持之外的图像格式例如 psdxcfkra 等格式的支持,你就可能需要自行获取并构建对应的 imageformats 插件,并在您最终生成的可执行文件中一并提供这些插件。若您不需要这些额外的图像格式支持,这个步骤也可以直接跳过。
菠萝看图整体使用 MIT 协议进行发布。项目所随的部分源文件可能具备不同但与之兼容的许可协议。
我们所提供的预编译好的 Windows 程序包含了 kimageformats 插件来提供额外kra, xcf, psd 等)格式的支持。您可以参考 `appveyor.yml` 来查看我们是如何构建并打包 Windows 可执行程序的。
[KDE Craft](https://community.kde.org/Craft) 环境也可以被用来构建此应用程序。我也创建了一个蓝图来进行此项目的构建和打包。但由于暂时并未配置 CI 部署此环境来进行 KDE Craft 环境下的构建,故对应的蓝图仓库也尚未公开提供,或许后续会开放出来。
### macOS
由于我没有 mac 设备,故 macOS 暂时不受任何支持。不过我们目前有一个 GitHub Action 来执行 macOS 环境下的构建(见 `.github/workflows/macos.yml`)所以至少 macOS 下是可以顺利进行构建的。如果您想完善对 macOS 的支持,也欢迎您创建合并请求 ;P
## 许可协议
菠萝看图整体使用 MIT 协议进行发布。项目所随的部分源文件可能具备不同但与之兼容的许可协议。

View File

@ -1,33 +0,0 @@
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/**"]
precedence = "aggregate"
SPDX-FileCopyrightText = "None"
SPDX-License-Identifier = "CC0-1.0"
[[annotations]]
path = ["app/translations/**.ts", "assets/plain/translators.html"]
precedence = "aggregate"
SPDX-FileCopyrightText = "Translators from hosted.weblate.org"
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"

View File

@ -1,181 +1,167 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "aboutdialog.h"
//
// SPDX-License-Identifier: MIT #include <QAbstractButton>
#include <QDialogButtonBox>
#include "aboutdialog.h" #include <QTextBrowser>
#include <QTabWidget>
#include <QAbstractButton> #include <QVBoxLayout>
#include <QDialogButtonBox> #include <QApplication>
#include <QTextBrowser> #include <QLabel>
#include <QTabWidget> #include <QPushButton>
#include <QVBoxLayout> #include <QFile>
#include <QApplication>
#include <QLabel> AboutDialog::AboutDialog(QWidget *parent)
#include <QPushButton> : QDialog(parent)
#include <QFile> , m_tabWidget(new QTabWidget)
, m_buttonBox(new QDialogButtonBox)
using namespace Qt::Literals::StringLiterals; , m_helpTextEdit(new QTextBrowser)
, m_aboutTextEdit(new QTextBrowser)
AboutDialog::AboutDialog(QWidget *parent) , m_specialThanksTextEdit(new QTextBrowser)
: QDialog(parent) , m_licenseTextEdit(new QTextBrowser)
, m_tabWidget(new QTabWidget) , m_3rdPartyLibsTextEdit(new QTextBrowser)
, m_buttonBox(new QDialogButtonBox) {
, m_helpTextEdit(new QTextBrowser) this->setWindowTitle(tr("About"));
, m_aboutTextEdit(new QTextBrowser)
, m_specialThanksTextEdit(new QTextBrowser) const QStringList helpStr {
, m_licenseTextEdit(new QTextBrowser) QStringLiteral("<p>%1</p>").arg(tr("Launch application with image file path as argument to load the file.")),
, m_3rdPartyLibsTextEdit(new QTextBrowser) 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.")),
this->setWindowTitle(tr("About")); QStringLiteral("<p>%1</p>").arg(tr("Context menu option explanation:")),
QStringLiteral("<ul>"),
const QStringList helpStr { // blumia: Chain two arg() here since it seems lupdate will remove one of them if we use
u"<p>%1</p>"_s.arg(tr("Launch application with image file path as argument to load the file.")), // the old `arg(QCoreApp::translate(), tr())` way, but it's worth to mention
u"<p>%1</p>"_s.arg(tr("Drag and drop image file onto the window is also supported.")), // `arg(QCoreApp::translate(), this->tr())` works, but lupdate will complain about the usage.
u"<p>%1</p>"_s.arg(tr("None of the operations in this application will alter the pictures on disk.")), QStringLiteral("<li><b>%1</b>:<br/>%2</li>")
u"<p>%1</p>"_s.arg(tr("Context menu option explanation:")), .arg(QCoreApplication::translate("MainWindow", "Stay on top"))
u"<ul>"_s, .arg(tr("Make window stay on top of all other windows.")),
// blumia: Chain two arg() here since it seems lupdate will remove one of them if we use QStringLiteral("<li><b>%1</b>:<br/>%2</li>")
// the old `arg(QCoreApp::translate(), tr())` way, but it's worth to mention .arg(QCoreApplication::translate("MainWindow", "Protected mode"))
// `arg(QCoreApp::translate(), this->tr())` works, but lupdate will complain about the usage. .arg(tr("Avoid close window accidentally. (eg. by double clicking the window)")),
u"<li><b>%1</b>:<br/>%2</li>"_s QStringLiteral("</ul>")
.arg(QCoreApplication::translate("MainWindow", "Stay on top")) };
.arg(tr("Make window stay on top of all other windows.")),
u"<li><b>%1</b>:<br/>%2</li>"_s const QStringList aboutStr {
.arg(QCoreApplication::translate("MainWindow", "Protected mode")) QStringLiteral("<center><img width='128' height='128' src=':/icons/app-icon.svg'/><br/>"),
.arg(tr("Avoid close window accidentally. (eg. by double clicking the window)")), qApp->applicationDisplayName(),
u"<li><b>%1</b>:<br/>%2</li>"_s #ifdef GIT_DESCRIBE_VERSION_STRING
.arg(QCoreApplication::translate("MainWindow", "Keep transformation", "The 'transformation' means the flip/rotation status that currently applied to the image view")) (QStringLiteral("<br/>") + tr("Version: %1").arg(GIT_DESCRIBE_VERSION_STRING)),
.arg(tr("Avoid resetting the zoom/rotation/flip state that was applied to the image view when switching between images.")), #endif // GIT_DESCRIBE_VERSION_STRING
u"</ul>"_s QStringLiteral("<hr/>"),
}; tr("Copyright (c) 2020 %1").arg(QStringLiteral("<a href='https://github.com/BLumia'>@BLumia</a>")),
QStringLiteral("<br/>"),
const QStringList aboutStr { tr("Logo designed by %1").arg(QStringLiteral("<a href='https://github.com/Lovelyblack'>@Lovelyblack</a>")),
u"<center><img width='128' height='128' src=':/icons/app-icon.svg'/><br/>"_s, QStringLiteral("<hr/>"),
qApp->applicationDisplayName(), tr("Built with Qt %1 (%2)").arg(QT_VERSION_STR, QSysInfo::buildCpuArchitecture()),
(u"<br/>"_s + tr("Version: %1").arg( QStringLiteral("<br/><a href='%1'>%2</a>").arg("https://github.com/BLumia/pineapple-pictures", tr("Source code")),
#ifdef GIT_DESCRIBE_VERSION_STRING QStringLiteral("</center>")
GIT_DESCRIBE_VERSION_STRING };
#else
qApp->applicationVersion() QFile translaterHtml(":/plain/translators.html");
#endif // GIT_DESCRIBE_VERSION_STRING bool canOpenFile = translaterHtml.open(QIODevice::ReadOnly);
)), const QByteArray & translatorList = canOpenFile ? translaterHtml.readAll() : "";
u"<hr/>"_s,
tr("Copyright (c) %1 %2", "%1 is year, %2 is the name of copyright holder(s)") const QStringList specialThanksStr {
.arg(u"2025"_s, u"<a href='https://github.com/BLumia'>@BLumia</a>"_s), QStringLiteral("<h1 align='center'>%1</h1><a href='%2'>%3</a><p>%4</p>").arg(
u"<br/>"_s, tr("Contributors"),
tr("Logo designed by %1").arg(u"<a href='https://github.com/Lovelyblack'>@Lovelyblack</a>"_s), QStringLiteral("https://github.com/BLumia/pineapple-pictures/graphs/contributors"),
u"<hr/>"_s, tr("List of contributors on GitHub"),
tr("Built with Qt %1 (%2)").arg(QT_VERSION_STR, QSysInfo::buildCpuArchitecture()), tr("Thanks to all people who contributed to this project.")
QStringLiteral("<br/><a href='%1'>%2</a>").arg("https://github.com/BLumia/pineapple-pictures", tr("Source code")), ),
u"</center>"_s
}; QStringLiteral("<h1 align='center'>%1</h1><p>%2</p>%3").arg(
tr("Translators"),
QFile translaterHtml(u":/plain/translators.html"_s); tr("I would like to thank the following people who volunteered to translate this application."),
bool canOpenFile = translaterHtml.open(QIODevice::ReadOnly); translatorList
const QByteArray & translatorList = canOpenFile ? translaterHtml.readAll() : QByteArrayLiteral(""); )
};
const QStringList specialThanksStr {
u"<h1 align='center'>%1</h1><a href='%2'>%3</a><p>%4</p>"_s.arg( const QStringList licenseStr {
tr("Contributors"), QStringLiteral("<h1 align='center'><b>%1</b></h1>").arg(tr("Your Rights")),
u"https://github.com/BLumia/pineapple-pictures/graphs/contributors"_s, QStringLiteral("<p>%1</p><p>%2</p><ul><li>%3</li><li>%4</li><li>%5</li><li>%6</li></ul>").arg(
tr("List of contributors on GitHub"), tr("%1 is released under the MIT License."), // %1
tr("Thanks to all people who contributed to this project.") tr("This license grants people a number of freedoms:"), // %2
), tr("You are free to use %1, for any purpose"), // %3
tr("You are free to distribute %1"), // %4
u"<h1 align='center'>%1</h1><p>%2</p>%3"_s.arg( tr("You can study how %1 works and change it"), // %5
tr("Translators"), tr("You can distribute changed versions of %1") // %6
tr("I would like to thank the following people who volunteered to translate this application."), ).arg(QStringLiteral("<i>%1</i>")),
translatorList 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 QStringList licenseStr { const QString mitLicense(QStringLiteral(R"(Expat/MIT License
u"<h1 align='center'><b>%1</b></h1>"_s.arg(tr("Your Rights")),
u"<p>%1</p><p>%2</p><ul><li>%3</li><li>%4</li><li>%5</li><li>%6</li></ul>"_s.arg( Copyright (c) 2020 BLumia
tr("%1 is released under the MIT License."), // %1
tr("This license grants people a number of freedoms:"), // %2 Permission is hereby granted, free of charge, to any person obtaining a copy
tr("You are free to use %1, for any purpose"), // %3 of this software and associated documentation files (the "Software"), to deal
tr("You are free to distribute %1"), // %4 in the Software without restriction, including without limitation the rights
tr("You can study how %1 works and change it"), // %5 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
tr("You can distribute changed versions of %1") // %6 copies of the Software, and to permit persons to whom the Software is
).arg(u"<i>%1</i>"_s), furnished to do so, subject to the following conditions:
u"<p>%1</p>"_s.arg(tr("The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.")),
u"<hr/><pre>%2</pre>"_s The above copyright notice and this permission notice shall be included in all
}; copies or substantial portions of the Software.
const QString mitLicense(QStringLiteral(R"(Expat/MIT License THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Copyright (c) 2025 BLumia FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Permission is hereby granted, free of charge, to any person obtaining a copy LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
of this software and associated documentation files (the "Software"), to deal OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
in the Software without restriction, including without limitation the rights SOFTWARE.
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: const QStringList thirdPartyLibsStr {
QStringLiteral("<h1 align='center'><b>%1</b></h1>").arg(tr("Third-party Libraries used by %1")),
The above copyright notice and this permission notice shall be included in all tr("%1 is built on the following free software libraries:", "Free as in freedom"),
copies or substantial portions of the Software. QStringLiteral("<ul>"),
#ifdef HAVE_EXIV2_VERSION
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR QStringLiteral("<li><a href='%1'>%2</a>: %3</li>").arg("https://www.exiv2.org/", "Exiv2", "GPLv2"),
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #endif // EXIV2_VERSION
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE QStringLiteral("<li><a href='%1'>%2</a>: %3</li>").arg("https://www.qt.io/", "Qt", "GPLv2 + GPLv3 + LGPLv2.1 + LGPLv3"),
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER QStringLiteral("</ul>")
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. m_helpTextEdit->setText(helpStr.join('\n'));
)"));
m_aboutTextEdit->setText(aboutStr.join('\n'));
const QStringList thirdPartyLibsStr { m_aboutTextEdit->setOpenExternalLinks(true);
u"<h1 align='center'><b>%1</b></h1>"_s.arg(tr("Third-party Libraries used by %1")),
tr("%1 is built on the following free software libraries:", "Free as in freedom"), m_specialThanksTextEdit->setText(specialThanksStr.join('\n'));
u"<ul>"_s, m_specialThanksTextEdit->setOpenExternalLinks(true);
#ifdef HAVE_EXIV2_VERSION
u"<li><a href='%1'>%2</a>: %3</li>"_s.arg("https://www.exiv2.org/", "Exiv2", "GPLv2"), m_licenseTextEdit->setText(licenseStr.join('\n').arg(qApp->applicationDisplayName(), mitLicense));
#endif // EXIV2_VERSION
u"<li><a href='%1'>%2</a>: %3</li>"_s.arg("https://www.qt.io/", "Qt", "GPLv2 + GPLv3 + LGPLv2.1 + LGPLv3"), m_3rdPartyLibsTextEdit->setText(thirdPartyLibsStr.join('\n').arg(QStringLiteral("<i>%1</i>").arg(qApp->applicationDisplayName())));
u"</ul>"_s m_3rdPartyLibsTextEdit->setOpenExternalLinks(true);
};
m_tabWidget->addTab(m_helpTextEdit, tr("&Help"));
m_helpTextEdit->setText(helpStr.join('\n')); m_tabWidget->addTab(m_aboutTextEdit, tr("&About"));
m_tabWidget->addTab(m_specialThanksTextEdit, tr("&Special Thanks"));
m_aboutTextEdit->setText(aboutStr.join('\n')); m_tabWidget->addTab(m_licenseTextEdit, tr("&License"));
m_aboutTextEdit->setOpenExternalLinks(true); m_tabWidget->addTab(m_3rdPartyLibsTextEdit, tr("&Third-party Libraries"));
m_specialThanksTextEdit->setText(specialThanksStr.join('\n')); m_buttonBox->setStandardButtons(QDialogButtonBox::Close);
m_specialThanksTextEdit->setOpenExternalLinks(true); connect(m_buttonBox, QOverload<QAbstractButton *>::of(&QDialogButtonBox::clicked), this, [this](){
this->close();
m_licenseTextEdit->setText(licenseStr.join('\n').arg(qApp->applicationDisplayName(), mitLicense)); });
m_3rdPartyLibsTextEdit->setText(thirdPartyLibsStr.join('\n').arg(u"<i>%1</i>"_s).arg(qApp->applicationDisplayName())); setLayout(new QVBoxLayout);
m_3rdPartyLibsTextEdit->setOpenExternalLinks(true);
layout()->addWidget(m_tabWidget);
m_tabWidget->addTab(m_helpTextEdit, tr("&Help")); layout()->addWidget(m_buttonBox);
m_tabWidget->addTab(m_aboutTextEdit, tr("&About"));
m_tabWidget->addTab(m_specialThanksTextEdit, tr("&Special Thanks")); setMinimumSize(361, 161); // not sure why it complain "Unable to set geometry"
m_tabWidget->addTab(m_licenseTextEdit, tr("&License")); setWindowFlag(Qt::WindowContextHelpButtonHint, false);
m_tabWidget->addTab(m_3rdPartyLibsTextEdit, tr("&Third-party Libraries")); }
m_buttonBox->setStandardButtons(QDialogButtonBox::Close); AboutDialog::~AboutDialog()
connect(m_buttonBox, QOverload<QAbstractButton *>::of(&QDialogButtonBox::clicked), this, [this](){ {
this->close();
}); }
setLayout(new QVBoxLayout); QSize AboutDialog::sizeHint() const
{
layout()->addWidget(m_tabWidget); return QSize(520, 350);
layout()->addWidget(m_buttonBox); }
setMinimumSize(361, 161); // not sure why it complain "Unable to set geometry"
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
}
AboutDialog::~AboutDialog()
{
}
QSize AboutDialog::sizeHint() const
{
return QSize(520, 350);
}

View File

@ -1,36 +1,32 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #ifndef ABOUTDIALOG_H
// #define ABOUTDIALOG_H
// SPDX-License-Identifier: MIT
#include <QDialog>
#ifndef ABOUTDIALOG_H
#define ABOUTDIALOG_H QT_BEGIN_NAMESPACE
class QTextBrowser;
#include <QDialog> class QTabWidget;
class QDialogButtonBox;
QT_BEGIN_NAMESPACE QT_END_NAMESPACE
class QTextBrowser;
class QTabWidget; class AboutDialog : public QDialog
class QDialogButtonBox; {
QT_END_NAMESPACE Q_OBJECT
public:
class AboutDialog : public QDialog explicit AboutDialog(QWidget *parent = nullptr);
{ ~AboutDialog() override;
Q_OBJECT
public: QSize sizeHint() const override;
explicit AboutDialog(QWidget *parent = nullptr);
~AboutDialog() override; private:
QTabWidget * m_tabWidget = nullptr;
QSize sizeHint() const override; QDialogButtonBox * m_buttonBox = nullptr;
private: QTextBrowser * m_helpTextEdit = nullptr;
QTabWidget * m_tabWidget = nullptr; QTextBrowser * m_aboutTextEdit = nullptr;
QDialogButtonBox * m_buttonBox = nullptr; QTextBrowser * m_specialThanksTextEdit = nullptr;
QTextBrowser * m_licenseTextEdit = nullptr;
QTextBrowser * m_helpTextEdit = nullptr; QTextBrowser * m_3rdPartyLibsTextEdit = nullptr;
QTextBrowser * m_aboutTextEdit = nullptr; };
QTextBrowser * m_specialThanksTextEdit = nullptr;
QTextBrowser * m_licenseTextEdit = nullptr; #endif // ABOUTDIALOG_H
QTextBrowser * m_3rdPartyLibsTextEdit = nullptr;
};
#endif // ABOUTDIALOG_H

View File

@ -1,155 +1,77 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "actionmanager.h"
//
// SPDX-License-Identifier: MIT #include "mainwindow.h"
#include "actionmanager.h" #include <QCoreApplication>
#include "mainwindow.h" #define CREATE_NEW_ACTION(window, action)\
action = new QAction(window);\
#include <QGuiApplication> action->setObjectName(QString::fromUtf8( #action ));\
#include <QSvgRenderer> window->addAction(action);
#include <QPainter>
ActionManager::ActionManager()
#define ICON_NAME(name)\ {
QStringLiteral(":/icons/" #name ".svg")
}
#define ACTION_NAME(s) QStringLiteral(STRIFY(s))
#define STRIFY(s) #s ActionManager::~ActionManager()
{
QIcon ActionManager::loadHidpiIcon(const QString &resp, QSize sz)
{ }
QSvgRenderer r(resp);
QPixmap pm = QPixmap(sz * qApp->devicePixelRatio()); void ActionManager::setupAction(MainWindow *mainWindow)
pm.fill(Qt::transparent); {
QPainter p(&pm); CREATE_NEW_ACTION(mainWindow, actionZoomIn);
r.render(&p); CREATE_NEW_ACTION(mainWindow, actionZoomOut);
pm.setDevicePixelRatio(qApp->devicePixelRatio()); CREATE_NEW_ACTION(mainWindow, actionHorizontalFlip);
return QIcon(pm); CREATE_NEW_ACTION(mainWindow, actionCopyPixmap);
} CREATE_NEW_ACTION(mainWindow, actionCopyFilePath);
CREATE_NEW_ACTION(mainWindow, actionPaste);
void ActionManager::setupAction(MainWindow *mainWindow) CREATE_NEW_ACTION(mainWindow, actionToggleCheckerboard);
{ CREATE_NEW_ACTION(mainWindow, actionToggleStayOnTop);
auto create_action = [] (QWidget *w, QAction **a, QString i, QString an, bool iconFromTheme = false) { CREATE_NEW_ACTION(mainWindow, actionToggleProtectMode);
*a = new QAction(w); CREATE_NEW_ACTION(mainWindow, actionSettings);
if (!i.isNull()) CREATE_NEW_ACTION(mainWindow, actionHelp);
(*a)->setIcon(iconFromTheme ? QIcon::fromTheme(i) : ActionManager::loadHidpiIcon(i)); CREATE_NEW_ACTION(mainWindow, actionProperties);
(*a)->setObjectName(an); CREATE_NEW_ACTION(mainWindow, actionQuitApp);
w->addAction(*a);
}; retranslateUi(mainWindow);
#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); QMetaObject::connectSlotsByName(mainWindow);
CREATE_NEW_ICON_ACTION(mainWindow, actionToggleMaximize, view-fullscreen); }
CREATE_NEW_ICON_ACTION(mainWindow, actionZoomIn, zoom-in);
CREATE_NEW_ICON_ACTION(mainWindow, actionZoomOut, zoom-out); void ActionManager::retranslateUi(MainWindow *mainWindow)
CREATE_NEW_ICON_ACTION(mainWindow, actionToggleCheckerboard, view-background-checkerboard); {
CREATE_NEW_ICON_ACTION(mainWindow, actionRotateClockwise, object-rotate-right); Q_UNUSED(mainWindow);
#undef CREATE_NEW_ICON_ACTION
actionZoomIn->setText(QCoreApplication::translate("MainWindow", "Zoom in", nullptr));
#define CREATE_NEW_ACTION(w, a) create_action(w, &a, QString(), ACTION_NAME(a)) actionZoomOut->setText(QCoreApplication::translate("MainWindow", "Zoom out", nullptr));
#define CREATE_NEW_THEMEICON_ACTION(w, a, i) create_action(w, &a, QLatin1String(STRIFY(i)), ACTION_NAME(a), true) actionHorizontalFlip->setText(QCoreApplication::translate("MainWindow", "Flip &Horizontally", nullptr));
CREATE_NEW_ACTION(mainWindow, actionRotateCounterClockwise); actionCopyPixmap->setText(QCoreApplication::translate("MainWindow", "Copy P&ixmap", nullptr));
CREATE_NEW_ACTION(mainWindow, actionPrevPicture); actionCopyFilePath->setText(QCoreApplication::translate("MainWindow", "Copy &File Path", nullptr));
CREATE_NEW_ACTION(mainWindow, actionNextPicture); actionPaste->setText(QCoreApplication::translate("MainWindow", "&Paste", nullptr));
actionToggleCheckerboard->setText(QCoreApplication::translate("MainWindow", "Toggle Checkerboard", nullptr));
CREATE_NEW_ACTION(mainWindow, actionTogglePauseAnimation); actionToggleStayOnTop->setText(QCoreApplication::translate("MainWindow", "Stay on top", nullptr));
CREATE_NEW_ACTION(mainWindow, actionAnimationNextFrame); actionToggleProtectMode->setText(QCoreApplication::translate("MainWindow", "Protected mode", nullptr));
actionSettings->setText(QCoreApplication::translate("MainWindow", "Configure...", nullptr));
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionOpen, document-open); actionHelp->setText(QCoreApplication::translate("MainWindow", "Help", nullptr));
CREATE_NEW_ACTION(mainWindow, actionHorizontalFlip); actionProperties->setText(QCoreApplication::translate("MainWindow", "Properties", nullptr));
CREATE_NEW_ACTION(mainWindow, actionFitInView); actionQuitApp->setText(QCoreApplication::translate("MainWindow", "Quit", nullptr));
CREATE_NEW_ACTION(mainWindow, actionFitByWidth); }
CREATE_NEW_ACTION(mainWindow, actionFitLongImage);
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionCopyPixmap, edit-copy); void ActionManager::setupShortcuts()
CREATE_NEW_ACTION(mainWindow, actionCopyFilePath); {
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionPaste, edit-paste); actionZoomIn->setShortcut(QKeySequence(QKeySequence::ZoomIn));
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionTrash, edit-delete); actionZoomOut->setShortcut(QKeySequence(QKeySequence::ZoomOut));
CREATE_NEW_ACTION(mainWindow, actionToggleStayOnTop); actionHorizontalFlip->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_R));
CREATE_NEW_ACTION(mainWindow, actionToggleProtectMode); actionCopyPixmap->setShortcut(QKeySequence(QKeySequence::Copy));
CREATE_NEW_ACTION(mainWindow, actionToggleAvoidResetTransform); actionPaste->setShortcut(QKeySequence::Paste);
CREATE_NEW_ACTION(mainWindow, actionSettings); actionHelp->setShortcut(QKeySequence::HelpContents);
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionHelp, system-help); actionSettings->setShortcut(QKeySequence::Preferences);
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionLocateInFileManager, system-file-manager); actionProperties->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_I));
CREATE_NEW_THEMEICON_ACTION(mainWindow, actionProperties, document-properties); actionQuitApp->setShortcuts({
CREATE_NEW_ACTION(mainWindow, actionQuitApp); QKeySequence(Qt::Key_Space),
#undef CREATE_NEW_ACTION QKeySequence(Qt::Key_Escape)
#undef CREATE_NEW_THEMEICON_ACTION });
}
retranslateUi(mainWindow);
QMetaObject::connectSlotsByName(mainWindow);
}
void ActionManager::retranslateUi(MainWindow *mainWindow)
{
Q_UNUSED(mainWindow);
actionOpen->setText(QCoreApplication::translate("MainWindow", "&Open...", nullptr));
actionActualSize->setText(QCoreApplication::translate("MainWindow", "Actual size", nullptr));
actionToggleMaximize->setText(QCoreApplication::translate("MainWindow", "Toggle maximize", nullptr));
actionZoomIn->setText(QCoreApplication::translate("MainWindow", "Zoom in", nullptr));
actionZoomOut->setText(QCoreApplication::translate("MainWindow", "Zoom out", nullptr));
actionToggleCheckerboard->setText(QCoreApplication::translate("MainWindow", "Toggle Checkerboard", nullptr));
actionRotateClockwise->setText(QCoreApplication::translate("MainWindow", "Rotate right", nullptr));
actionRotateCounterClockwise->setText(QCoreApplication::translate("MainWindow", "Rotate left", nullptr));
actionPrevPicture->setText(QCoreApplication::translate("MainWindow", "Previous image", nullptr));
actionNextPicture->setText(QCoreApplication::translate("MainWindow", "Next image", nullptr));
actionTogglePauseAnimation->setText(QCoreApplication::translate("MainWindow", "Pause/Resume Animation", nullptr));
actionAnimationNextFrame->setText(QCoreApplication::translate("MainWindow", "Animation Go to Next Frame", nullptr));
actionHorizontalFlip->setText(QCoreApplication::translate("MainWindow", "Flip &Horizontally", nullptr));
actionFitInView->setText(QCoreApplication::translate("MainWindow", "Fit to view", nullptr));
actionFitByWidth->setText(QCoreApplication::translate("MainWindow", "Fit to width", nullptr));
actionFitLongImage->setText(QCoreApplication::translate("MainWindow", "Fit long image", nullptr));
actionCopyPixmap->setText(QCoreApplication::translate("MainWindow", "Copy P&ixmap", nullptr));
actionCopyFilePath->setText(QCoreApplication::translate("MainWindow", "Copy &File Path", nullptr));
actionPaste->setText(QCoreApplication::translate("MainWindow", "&Paste", nullptr));
actionTrash->setText(QCoreApplication::translate("MainWindow", "Move to Trash", nullptr));
actionToggleStayOnTop->setText(QCoreApplication::translate("MainWindow", "Stay on top", nullptr));
actionToggleProtectMode->setText(QCoreApplication::translate("MainWindow", "Protected mode", nullptr));
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));
actionHelp->setText(QCoreApplication::translate("MainWindow", "Help", nullptr));
#ifdef Q_OS_WIN
actionLocateInFileManager->setText(
QCoreApplication::translate(
"MainWindow", "Show in File Explorer",
"File Explorer is the name of explorer.exe under Windows"
)
);
#else
actionLocateInFileManager->setText(QCoreApplication::translate("MainWindow", "Show in directory", nullptr));
#endif // Q_OS_WIN
actionProperties->setText(QCoreApplication::translate("MainWindow", "Properties", nullptr));
actionQuitApp->setText(QCoreApplication::translate("MainWindow", "Quit", nullptr));
}
void ActionManager::setupShortcuts()
{
actionOpen->setShortcut(QKeySequence::Open);
actionActualSize->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_0));
actionZoomIn->setShortcut(QKeySequence::ZoomIn);
actionZoomOut->setShortcut(QKeySequence::ZoomOut);
actionPrevPicture->setShortcuts({
QKeySequence(Qt::Key_PageUp),
QKeySequence(Qt::Key_Left),
});
actionNextPicture->setShortcuts({
QKeySequence(Qt::Key_PageDown),
QKeySequence(Qt::Key_Right),
});
actionHorizontalFlip->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_R));
actionCopyPixmap->setShortcut(QKeySequence::Copy);
actionPaste->setShortcut(QKeySequence::Paste);
actionTrash->setShortcut(QKeySequence::Delete);
actionHelp->setShortcut(QKeySequence::HelpContents);
actionSettings->setShortcut(QKeySequence::Preferences);
actionProperties->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_I));
actionQuitApp->setShortcuts({
QKeySequence(Qt::Key_Space),
QKeySequence(Qt::Key_Escape)
});
}

View File

@ -1,59 +1,34 @@
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net> #ifndef ACTIONMANAGER_H
// #define ACTIONMANAGER_H
// SPDX-License-Identifier: MIT
#include <QAction>
#ifndef ACTIONMANAGER_H
#define ACTIONMANAGER_H class MainWindow;
#include <QAction> class ActionManager
{
class MainWindow; public:
ActionManager();
class ActionManager ~ActionManager();
{
public: void setupAction(MainWindow * mainWindow);
explicit ActionManager() = default; void retranslateUi(MainWindow *MainWindow);
~ActionManager() = default; void setupShortcuts();
void setupAction(MainWindow * mainWindow); public:
void retranslateUi(MainWindow *MainWindow); QAction *actionZoomIn;
void setupShortcuts(); QAction *actionZoomOut;
QAction *actionHorizontalFlip;
static QIcon loadHidpiIcon(const QString &resp, QSize sz = QSize(32, 32)); QAction *actionCopyPixmap;
QAction *actionCopyFilePath;
public: QAction *actionPaste;
QAction *actionOpen; QAction *actionToggleCheckerboard;
QAction *actionToggleStayOnTop;
QAction *actionActualSize; QAction *actionToggleProtectMode;
QAction *actionToggleMaximize; QAction *actionSettings;
QAction *actionZoomIn; QAction *actionHelp;
QAction *actionZoomOut; QAction *actionProperties;
QAction *actionToggleCheckerboard; QAction *actionQuitApp;
QAction *actionRotateClockwise; };
QAction *actionRotateCounterClockwise;
#endif // ACTIONMANAGER_H
QAction *actionPrevPicture;
QAction *actionNextPicture;
QAction *actionTogglePauseAnimation;
QAction *actionAnimationNextFrame;
QAction *actionHorizontalFlip;
QAction *actionFitInView;
QAction *actionFitByWidth;
QAction *actionFitLongImage;
QAction *actionCopyPixmap;
QAction *actionCopyFilePath;
QAction *actionPaste;
QAction *actionTrash;
QAction *actionToggleStayOnTop;
QAction *actionToggleProtectMode;
QAction *actionToggleAvoidResetTransform;
QAction *actionSettings;
QAction *actionHelp;
QAction *actionLocateInFileManager;
QAction *actionProperties;
QAction *actionQuitApp;
};
#endif // ACTIONMANAGER_H

View File

@ -1,57 +1,68 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "bottombuttongroup.h"
//
// SPDX-License-Identifier: MIT #include "opacityhelper.h"
#include "bottombuttongroup.h" #include <functional>
#include "opacityhelper.h" #include <QPushButton>
#include <QVBoxLayout>
#include <QToolButton> #include <QDebug>
#include <QVBoxLayout>
#include <QDebug> BottomButtonGroup::BottomButtonGroup(QWidget *parent)
: QGroupBox (parent)
BottomButtonGroup::BottomButtonGroup(const std::vector<QAction *> &actionList, QWidget *parent) , m_opacityHelper(new OpacityHelper(this))
: QGroupBox (parent) {
, m_opacityHelper(new OpacityHelper(this)) QHBoxLayout * mainLayout = new QHBoxLayout(this);
{ mainLayout->setSizeConstraint(QLayout::SetFixedSize);
QHBoxLayout * mainLayout = new QHBoxLayout(this); this->setLayout(mainLayout);
mainLayout->setSizeConstraint(QLayout::SetFixedSize); this->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
this->setLayout(mainLayout); this->setStyleSheet("BottomButtonGroup {"
this->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); "border: 1px solid gray;"
this->setStyleSheet("BottomButtonGroup {" "border-top-left-radius: 10px;"
"border: 1px solid gray;" "border-top-right-radius: 10px;"
"border-top-left-radius: 10px;" "border-style: none;"
"border-top-right-radius: 10px;" "background-color:rgba(0,0,0,120)"
"border-style: none;" "}"
"background-color:rgba(0,0,0,120)" "QPushButton {"
"}" "background-color:rgba(225,255,255,0);"
"QToolButton {" "color: white;"
"background:transparent;" "border-style: none;"
"}" "}");
"QToolButton:!focus {"
"border-style: none;" auto newBtn = [](QString text, std::function<void()> func) -> QPushButton * {
"}"); QPushButton * btn = new QPushButton(QIcon(QStringLiteral(":/icons/") + text), "");
btn->setIconSize(QSize(40, 40));
auto newActionBtn = [this](QAction * action) -> QToolButton * { btn->setFixedSize(40, 40);
QToolButton * btn = new QToolButton(this); QObject::connect(btn, &QAbstractButton::clicked, btn, func);
btn->setDefaultAction(action); return btn;
btn->setIconSize(QSize(32, 32)); };
btn->setFixedSize(40, 40); addButton(newBtn("zoom-original", [this]() {
return btn; emit resetToOriginalBtnClicked();
}; }));
addButton(newBtn("view-fullscreen", [this]() {
for (QAction * action : actionList) { emit toggleWindowMaximum();
addButton(newActionBtn(action)); }));
} addButton(newBtn("zoom-in", [this]() {
} emit zoomInBtnClicked();
}));
void BottomButtonGroup::setOpacity(qreal opacity, bool animated) addButton(newBtn("zoom-out", [this]() {
{ emit zoomOutBtnClicked();
m_opacityHelper->setOpacity(opacity, animated); }));
} addButton(newBtn("view-background-checkerboard", [this]() {
emit toggleCheckerboardBtnClicked();
void BottomButtonGroup::addButton(QAbstractButton *button) }));
{ addButton(newBtn("object-rotate-right", [this]() {
layout()->addWidget(button); emit rotateRightBtnClicked();
updateGeometry(); }));
} }
void BottomButtonGroup::setOpacity(qreal opacity, bool animated)
{
m_opacityHelper->setOpacity(opacity, animated);
}
void BottomButtonGroup::addButton(QAbstractButton *button)
{
layout()->addWidget(button);
updateGeometry();
}

View File

@ -1,27 +1,29 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #ifndef BOTTOMBUTTONGROUP_H
// #define BOTTOMBUTTONGROUP_H
// SPDX-License-Identifier: MIT
#include <QAbstractButton>
#ifndef BOTTOMBUTTONGROUP_H #include <QGroupBox>
#define BOTTOMBUTTONGROUP_H
class OpacityHelper;
#include <vector> class BottomButtonGroup : public QGroupBox
{
#include <QAbstractButton> Q_OBJECT
#include <QGroupBox> public:
explicit BottomButtonGroup(QWidget *parent = nullptr);
class OpacityHelper;
class BottomButtonGroup : public QGroupBox void setOpacity(qreal opacity, bool animated = true);
{ void addButton(QAbstractButton *button);
Q_OBJECT
public: signals:
explicit BottomButtonGroup(const std::vector<QAction *> & actionList, QWidget *parent = nullptr); void resetToOriginalBtnClicked();
void toggleWindowMaximum();
void setOpacity(qreal opacity, bool animated = true); void zoomInBtnClicked();
void addButton(QAbstractButton *button); void zoomOutBtnClicked();
void toggleCheckerboardBtnClicked();
private: void rotateRightBtnClicked();
OpacityHelper * m_opacityHelper;
}; private:
OpacityHelper * m_opacityHelper;
#endif // BOTTOMBUTTONGROUP_H };
#endif // BOTTOMBUTTONGROUP_H

View File

@ -1,138 +1,101 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "exiv2wrapper.h"
//
// SPDX-License-Identifier: MIT #ifdef HAVE_EXIV2_VERSION
#include <exiv2/exiv2.hpp>
#include "exiv2wrapper.h" #else // HAVE_EXIV2_VERSION
namespace Exiv2 {
#ifdef HAVE_EXIV2_VERSION class Image {};
#include <exiv2/exiv2.hpp> }
#else // HAVE_EXIV2_VERSION #endif // HAVE_EXIV2_VERSION
namespace Exiv2 {
class Image {}; #include <sstream>
}
#endif // HAVE_EXIV2_VERSION #include <QFile>
#include <QDebug>
#include <sstream>
Exiv2Wrapper::Exiv2Wrapper()
#include <QFile> {
#include <QDebug>
}
Exiv2Wrapper::Exiv2Wrapper()
{ Exiv2Wrapper::~Exiv2Wrapper()
{
}
}
Exiv2Wrapper::~Exiv2Wrapper()
{ template<typename Collection, typename Iterator>
void Exiv2Wrapper::cacheSection(Collection collection)
} {
const Collection& exifData = collection;
#ifdef HAVE_EXIV2_VERSION // stupid AppleClang... Iterator it = exifData.begin(), end = exifData.end();
template<typename Collection, typename Iterator> for (; it != end; ++it) {
void Exiv2Wrapper::cacheSection(Collection collection) QString key = QString::fromUtf8(it->key().c_str());
{ if (it->tagName().substr(0, 2) == "0x") continue;
const Collection& exifData = collection; QString label = QString::fromLocal8Bit(it->tagLabel().c_str());
Iterator it = exifData.begin(), end = exifData.end(); std::ostringstream stream;
for (; it != end; ++it) { stream << *it;
QString key = QString::fromUtf8(it->key().c_str()); QString value = QString::fromLocal8Bit(stream.str().c_str());
if (it->tagName().substr(0, 2) == "0x") continue; m_metadataValue.insert(key, value);
// We might get exceptions like "No namespace info available for XMP prefix `Item'" m_metadataLabel.insert(key, label);
// when trying to get tagLabel() data from a Xmpdatum if the tag is not common-used.
// We don't care for those rare tags so let's just use a try-cache... qDebug() << key << label << value;
try { }
QString label = QString::fromLocal8Bit(it->tagLabel().c_str()); }
std::ostringstream stream;
stream << *it; bool Exiv2Wrapper::load(const QString &filePath)
QString value = QString::fromUtf8(stream.str().c_str()); {
m_metadataValue.insert(key, value); #ifdef HAVE_EXIV2_VERSION
m_metadataLabel.insert(key, label); QByteArray filePathByteArray = QFile::encodeName(filePath);
qDebug() << key << label << value; try {
#if EXIV2_TEST_VERSION(0, 28, 0) m_exivImage.reset(Exiv2::ImageFactory::open(filePathByteArray.constData()).release());
} catch (Exiv2::Error & err) { m_exivImage->readMetadata();
#else // 0.27.x } catch (const Exiv2::Error& error) {
} catch (Exiv2::AnyError & err) { m_errMsg = QString::fromUtf8(error.what());
#endif // EXIV2_TEST_VERSION(0, 28, 0) return false;
qWarning() << "Error loading key" << key << ":" << err.what(); }
} return true;
} #else // HAVE_EXIV2_VERSION
} Q_UNUSED(filePath);
#endif // HAVE_EXIV2_VERSION return false;
#endif // HAVE_EXIV2_VERSION
bool Exiv2Wrapper::load(const QString &filePath) }
{
#ifdef HAVE_EXIV2_VERSION void Exiv2Wrapper::cacheSections()
QByteArray filePathByteArray = QFile::encodeName(filePath); {
try { #ifdef HAVE_EXIV2_VERSION
m_exivImage.reset(Exiv2::ImageFactory::open(filePathByteArray.constData()).release()); if (m_exivImage->checkMode(Exiv2::mdExif) & Exiv2::amRead) {
m_exivImage->readMetadata(); cacheSection<Exiv2::ExifData, Exiv2::ExifData::const_iterator>(m_exivImage->exifData());
} catch (const Exiv2::Error& error) { }
m_errMsg = QString::fromUtf8(error.what());
return false; if (m_exivImage->checkMode(Exiv2::mdIptc) & Exiv2::amRead) {
} cacheSection<Exiv2::IptcData, Exiv2::IptcData::const_iterator>(m_exivImage->iptcData());
return true; }
#else // HAVE_EXIV2_VERSION
Q_UNUSED(filePath); if (m_exivImage->checkMode(Exiv2::mdXmp) & Exiv2::amRead) {
return false; cacheSection<Exiv2::XmpData, Exiv2::XmpData::const_iterator>(m_exivImage->xmpData());
#endif // HAVE_EXIV2_VERSION }
}
// qDebug() << m_metadataValue;
void Exiv2Wrapper::cacheSections() // qDebug() << m_metadataLabel;
{ #endif // HAVE_EXIV2_VERSION
#ifdef HAVE_EXIV2_VERSION }
if (m_exivImage->checkMode(Exiv2::mdExif) & Exiv2::amRead) {
cacheSection<Exiv2::ExifData, Exiv2::ExifData::const_iterator>(m_exivImage->exifData()); QString Exiv2Wrapper::comment() const
} {
#ifdef HAVE_EXIV2_VERSION
if (m_exivImage->checkMode(Exiv2::mdIptc) & Exiv2::amRead) { return m_exivImage->comment().c_str();
cacheSection<Exiv2::IptcData, Exiv2::IptcData::const_iterator>(m_exivImage->iptcData()); #else // HAVE_EXIV2_VERSION
} return QString();
#endif // HAVE_EXIV2_VERSION
if (m_exivImage->checkMode(Exiv2::mdXmp) & Exiv2::amRead) { }
cacheSection<Exiv2::XmpData, Exiv2::XmpData::const_iterator>(m_exivImage->xmpData());
} QString Exiv2Wrapper::label(const QString &key) const
{
// qDebug() << m_metadataValue; return m_metadataLabel.value(key);
// qDebug() << m_metadataLabel; }
#endif // HAVE_EXIV2_VERSION
} QString Exiv2Wrapper::value(const QString &key) const
{
QString Exiv2Wrapper::comment() const return m_metadataValue.value(key);
{ }
#ifdef HAVE_EXIV2_VERSION
return m_exivImage->comment().c_str();
#else // HAVE_EXIV2_VERSION
return QString();
#endif // HAVE_EXIV2_VERSION
}
QString Exiv2Wrapper::label(const QString &key) const
{
return m_metadataLabel.value(key);
}
QString Exiv2Wrapper::value(const QString &key) const
{
return m_metadataValue.value(key);
}
QString Exiv2Wrapper::XmpValue(const QString &rawValue)
{
QString ignored;
return Exiv2Wrapper::XmpValue(rawValue, ignored);
}
QString Exiv2Wrapper::XmpValue(const QString &rawValue, QString &language)
{
if (rawValue.size() > 6 && rawValue.startsWith(QLatin1String("lang=\""))) {
int pos = rawValue.indexOf('"', 6);
if (pos != -1) {
language = rawValue.mid(6, pos - 6);
return (rawValue.mid(pos + 2));
}
}
language.clear();
return rawValue;
}

View File

@ -1,43 +1,36 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #ifndef EXIV2WRAPPER_H
// #define EXIV2WRAPPER_H
// SPDX-License-Identifier: MIT
#include <memory>
#ifndef EXIV2WRAPPER_H
#define EXIV2WRAPPER_H #include <QString>
#include <QMap>
#include <memory>
namespace Exiv2 {
#include <QString> class Image;
#include <QMap> }
namespace Exiv2 { class Exiv2Wrapper
class Image; {
} public:
Exiv2Wrapper();
class Exiv2Wrapper ~Exiv2Wrapper();
{
public: bool load(const QString& filePath);
Exiv2Wrapper(); void cacheSections();
~Exiv2Wrapper();
QString comment() const;
bool load(const QString& filePath); QString label(const QString & key) const;
void cacheSections(); QString value(const QString & key) const;
QString comment() const; private:
QString label(const QString & key) const; std::unique_ptr<Exiv2::Image> m_exivImage;
QString value(const QString & key) const; QMap<QString, QString> m_metadataValue;
QMap<QString, QString> m_metadataLabel;
static QString XmpValue(const QString &rawValue); QString m_errMsg;
static QString XmpValue(const QString &rawValue, QString & language);
template<typename Collection, typename Iterator>
private: void cacheSection(Collection collection);
std::unique_ptr<Exiv2::Image> m_exivImage; };
QMap<QString, QString> m_metadataValue;
QMap<QString, QString> m_metadataLabel; #endif // EXIV2WRAPPER_H
QString m_errMsg;
template<typename Collection, typename Iterator>
void cacheSection(Collection collection);
};
#endif // EXIV2WRAPPER_H

View File

@ -1,22 +0,0 @@
// 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);
}

View File

@ -1,21 +0,0 @@
// 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);
};

View File

@ -1,136 +1,119 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "framelesswindow.h"
// SPDX-FileCopyrightText: 2023 Tad Young <yyc12321@outlook.com>
// #include <QApplication>
// SPDX-License-Identifier: MIT #include <QVBoxLayout>
#include "framelesswindow.h" #ifdef _WIN32
#include <windows.h>
#include <QMouseEvent> #endif // _WIN32
#include <QHoverEvent>
#include <QApplication> FramelessWindow::FramelessWindow(QWidget *parent)
#include <QVBoxLayout> : QWidget(parent)
#include <QWindow> , m_centralLayout(new QVBoxLayout(this))
{
FramelessWindow::FramelessWindow(QWidget *parent) // We should use Qt::WindowMinMaxButtonsHint here but there is a bug in Qt
: QWidget(parent) // that will make pressing Meta+Up cause the app fullscreen under Windows,
, m_centralLayout(new QVBoxLayout(this)) // so for now we only use the Qt::WindowMinimizeButtonHint flag here.
, m_oldCursorShape(Qt::ArrowCursor) // https://bugreports.qt.io/browse/QTBUG-91226
, m_oldEdges() this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint);
{
this->setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowMinMaxButtonsHint); m_centralLayout->setMargin(0);
this->setMouseTracking(true); }
this->setAttribute(Qt::WA_Hover, true);
this->installEventFilter(this); void FramelessWindow::setCentralWidget(QWidget *widget)
{
m_centralLayout->setContentsMargins(QMargins()); if (m_centralWidget) {
} m_centralLayout->removeWidget(m_centralWidget);
m_centralWidget->deleteLater();
void FramelessWindow::setCentralWidget(QWidget *widget) }
{
if (m_centralWidget) { m_centralLayout->addWidget(widget);
m_centralLayout->removeWidget(m_centralWidget); m_centralWidget = widget;
m_centralWidget->deleteLater(); }
}
bool FramelessWindow::nativeEvent(const QByteArray &eventType, void *message, long *result)
m_centralLayout->addWidget(widget); {
m_centralWidget = widget; #ifdef _WIN32
} // https://stackoverflow.com/questions/43505580/qt-windows-resizable-frameless-window
// Too lazy to do this now.. just stackoverflow it and did a copy and paste..
void FramelessWindow::installResizeCapture(QObject* widget) Q_UNUSED(eventType)
{ MSG* msg = static_cast<MSG*>(message);
widget->installEventFilter(this);
} if (msg->message == WM_NCHITTEST) {
if (isMaximized()) {
bool FramelessWindow::eventFilter(QObject* o, QEvent* e) return false;
{ }
switch (e->type()) {
case QEvent::HoverMove: *result = 0;
{ const LONG borderWidth = 8;
QWidget* wg = qobject_cast<QWidget*>(o); RECT winrect;
if (wg != nullptr) GetWindowRect(reinterpret_cast<HWND>(winId()), &winrect);
return mouseHover(static_cast<QHoverEvent*>(e), wg);
// must be short to correctly work with multiple monitors (negative coordinates)
break; short x = msg->lParam & 0x0000FFFF;
} short y = (msg->lParam & 0xFFFF0000) >> 16;
case QEvent::MouseButtonPress:
return mousePress(static_cast<QMouseEvent*>(e)); bool resizeWidth = minimumWidth() != maximumWidth();
} bool resizeHeight = minimumHeight() != maximumHeight();
if (resizeWidth) {
return QWidget::eventFilter(o, e); //left border
} if (x >= winrect.left && x < winrect.left + borderWidth) {
*result = HTLEFT;
bool FramelessWindow::mouseHover(QHoverEvent* event, QWidget* wg) }
{ //right border
if (!isMaximized() && !isFullScreen()) { if (x < winrect.right && x >= winrect.right - borderWidth) {
QWindow* win = window()->windowHandle(); *result = HTRIGHT;
Qt::Edges edges = this->getEdgesByPos(wg->mapToGlobal(event->oldPos()), win->frameGeometry()); }
}
// backup & restore cursor shape if (resizeHeight) {
if (edges && !m_oldEdges) //bottom border
// entering the edge. backup cursor shape if (y < winrect.bottom && y >= winrect.bottom - borderWidth) {
m_oldCursorShape = win->cursor().shape(); *result = HTBOTTOM;
if (!edges && m_oldEdges) }
// leaving the edge. restore cursor shape //top border
win->setCursor(m_oldCursorShape); if (y >= winrect.top && y < winrect.top + borderWidth) {
*result = HTTOP;
// save the latest edges status }
m_oldEdges = edges; }
if (resizeWidth && resizeHeight) {
// show resize cursor shape if cursor is within border //bottom left corner
if (edges) { if (x >= winrect.left && x < winrect.left + borderWidth &&
win->setCursor(this->getCursorByEdge(edges, Qt::ArrowCursor)); y < winrect.bottom && y >= winrect.bottom - borderWidth)
return true; {
} *result = HTBOTTOMLEFT;
} }
//bottom right corner
return false; if (x < winrect.right && x >= winrect.right - borderWidth &&
} y < winrect.bottom && y >= winrect.bottom - borderWidth)
{
bool FramelessWindow::mousePress(QMouseEvent* event) *result = HTBOTTOMRIGHT;
{ }
if (event->buttons() & Qt::LeftButton && !isMaximized() && !isFullScreen()) { //top left corner
QWindow* win = window()->windowHandle(); if (x >= winrect.left && x < winrect.left + borderWidth &&
Qt::Edges edges = this->getEdgesByPos(event->globalPosition().toPoint(), win->frameGeometry()); y >= winrect.top && y < winrect.top + borderWidth)
if (edges) { {
win->startSystemResize(edges); *result = HTTOPLEFT;
return true; }
} //top right corner
} if (x < winrect.right && x >= winrect.right - borderWidth &&
y >= winrect.top && y < winrect.top + borderWidth)
return false; {
} *result = HTTOPRIGHT;
}
Qt::CursorShape FramelessWindow::getCursorByEdge(const Qt::Edges& edges, Qt::CursorShape default_cursor) }
{
if ((edges == (Qt::TopEdge | Qt::LeftEdge)) || (edges == (Qt::RightEdge | Qt::BottomEdge))) if (*result != 0)
return Qt::SizeFDiagCursor; return true;
else if ((edges == (Qt::TopEdge | Qt::RightEdge)) || (edges == (Qt::LeftEdge | Qt::BottomEdge)))
return Qt::SizeBDiagCursor; QWidget *action = QApplication::widgetAt(QCursor::pos());
else if (edges & (Qt::TopEdge | Qt::BottomEdge)) if (action == this) {
return Qt::SizeVerCursor; *result = HTCAPTION;
else if (edges & (Qt::LeftEdge | Qt::RightEdge)) return true;
return Qt::SizeHorCursor; }
else }
return default_cursor;
} return false;
#else
Qt::Edges FramelessWindow::getEdgesByPos(const QPoint gpos, const QRect& winrect) return QWidget::nativeEvent(eventType, message, result);
{ #endif // _WIN32
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;
}

View File

@ -1,39 +1,26 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #ifndef FRAMELESSWINDOW_H
// #define FRAMELESSWINDOW_H
// SPDX-License-Identifier: MIT
#include <QWidget>
#ifndef FRAMELESSWINDOW_H
#define FRAMELESSWINDOW_H QT_BEGIN_NAMESPACE
class QVBoxLayout;
#include <QWidget> QT_END_NAMESPACE
QT_BEGIN_NAMESPACE class FramelessWindow : public QWidget
class QVBoxLayout; {
QT_END_NAMESPACE Q_OBJECT
public:
class FramelessWindow : public QWidget explicit FramelessWindow(QWidget *parent = nullptr);
{
Q_OBJECT void setCentralWidget(QWidget * widget);
public:
explicit FramelessWindow(QWidget *parent = nullptr); protected:
bool nativeEvent(const QByteArray& eventType, void* message, long* result) override;
void setCentralWidget(QWidget * widget);
void installResizeCapture(QObject* widget); private:
QVBoxLayout * m_centralLayout = nullptr;
protected: QWidget * m_centralWidget = nullptr; // just a pointer, doesn't take the ownership.
bool eventFilter(QObject *o, QEvent *e) override; };
bool mouseHover(QHoverEvent* event, QWidget* wg);
bool mousePress(QMouseEvent* event); #endif // FRAMELESSWINDOW_H
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

View File

@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
//
// SPDX-License-Identifier: MIT
#include "graphicsscene.h" #include "graphicsscene.h"
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
@ -10,90 +6,10 @@
#include <QGraphicsItem> #include <QGraphicsItem>
#include <QUrl> #include <QUrl>
#include <QGraphicsSvgItem> #include <QGraphicsSvgItem>
#include <QSvgRenderer>
#include <QMovie> #include <QMovie>
#include <QLabel>
#include <QPainter> #include <QPainter>
class PGraphicsPixmapItem : public QGraphicsPixmapItem
{
public:
PGraphicsPixmapItem(const QPixmap &pixmap, QGraphicsItem *parent = nullptr)
: QGraphicsPixmapItem(pixmap, parent)
{}
enum { Type = UserType + 1 };
int type() const override { return Type; }
void setScaleHint(float scaleHint) {
m_scaleHint = scaleHint;
}
const QPixmap & scaledPixmap(float scaleHint) {
if (qFuzzyCompare(scaleHint, m_cachedScaleHint)) return m_cachedPixmap;
QSizeF resizedScale(boundingRect().size());
resizedScale *= scaleHint;
QPixmap && sourcePixmap = pixmap();
m_cachedPixmap = sourcePixmap.scaled(
resizedScale.toSize() * sourcePixmap.devicePixelRatioF(),
Qt::KeepAspectRatio,
Qt::SmoothTransformation);
m_cachedScaleHint = scaleHint;
return m_cachedPixmap;
}
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QWidget *widget) override
{
if (transformationMode() == Qt::FastTransformation) {
return QGraphicsPixmapItem::paint(painter, option, widget);
} else {
// painter->setRenderHints(QPainter::Antialiasing);
painter->drawPixmap(QRectF(offset(), boundingRect().size()).toRect(),
scaledPixmap(m_scaleHint));
}
}
private:
float m_scaleHint = 1;
float m_cachedScaleHint = -1;
QPixmap m_cachedPixmap;
};
class PGraphicsMovieItem : public QGraphicsItem
{
public:
PGraphicsMovieItem(QGraphicsItem *parent = nullptr) : QGraphicsItem(parent) {}
enum { Type = UserType + 2 };
int type() const override { return Type; }
void setMovie(QMovie* movie) {
if (m_movie) m_movie->disconnect();
m_movie.reset(movie);
m_movie->connect(m_movie.data(), &QMovie::updated, [this](){
this->update();
});
}
QRectF boundingRect() const override {
if (m_movie) { return m_movie->frameRect(); }
else { return QRectF(); }
}
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) override {
if (m_movie) {
painter->drawPixmap(m_movie->frameRect(), m_movie->currentPixmap(), m_movie->frameRect());
}
}
inline QMovie * movie() const {
return m_movie.data();
}
private:
QScopedPointer<QMovie> m_movie;
};
GraphicsScene::GraphicsScene(QObject *parent) GraphicsScene::GraphicsScene(QObject *parent)
: QGraphicsScene(parent) : QGraphicsScene(parent)
{ {
@ -108,8 +24,7 @@ GraphicsScene::~GraphicsScene()
void GraphicsScene::showImage(const QPixmap &pixmap) void GraphicsScene::showImage(const QPixmap &pixmap)
{ {
this->clear(); this->clear();
PGraphicsPixmapItem * pixmapItem = new PGraphicsPixmapItem(pixmap); QGraphicsPixmapItem * pixmapItem = this->addPixmap(pixmap);
this->addItem(pixmapItem);
pixmapItem->setShapeMode(QGraphicsPixmapItem::BoundingRectShape); pixmapItem->setShapeMode(QGraphicsPixmapItem::BoundingRectShape);
m_theThing = pixmapItem; m_theThing = pixmapItem;
this->setSceneRect(m_theThing->boundingRect()); this->setSceneRect(m_theThing->boundingRect());
@ -127,16 +42,7 @@ void GraphicsScene::showText(const QString &text)
void GraphicsScene::showSvg(const QString &filepath) void GraphicsScene::showSvg(const QString &filepath)
{ {
this->clear(); this->clear();
QGraphicsSvgItem * svgItem = new QGraphicsSvgItem(); QGraphicsSvgItem * svgItem = new QGraphicsSvgItem(filepath);
QSvgRenderer * render = new QSvgRenderer(svgItem);
#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
// Qt 6.7.1's is somewhat better, memory issue seems fixed, but still laggy when zoom in,
// see QTBUG-126771. Anyway let's disable it for now.
render->setOptions(QtSvg::Tiny12FeaturesOnly);
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
render->load(filepath);
svgItem->setSharedRenderer(render);
this->addItem(svgItem); this->addItem(svgItem);
m_theThing = svgItem; m_theThing = svgItem;
this->setSceneRect(m_theThing->boundingRect()); this->setSceneRect(m_theThing->boundingRect());
@ -145,59 +51,30 @@ void GraphicsScene::showSvg(const QString &filepath)
void GraphicsScene::showAnimated(const QString &filepath) void GraphicsScene::showAnimated(const QString &filepath)
{ {
this->clear(); this->clear();
QLabel * label = new QLabel;
PGraphicsMovieItem * animatedItem = new PGraphicsMovieItem(); QMovie * movie = new QMovie(filepath, QByteArray(), label);
QMovie * movie = new QMovie(filepath); label->setStyleSheet("background-color:rgba(225,255,255,0);");
label->setMovie(movie);
this->addWidget(label);
movie->start(); movie->start();
animatedItem->setMovie(movie); m_theThing = this->addRect(QRect(QPoint(0, 0), label->sizeHint()),
this->addItem(animatedItem); QPen(Qt::transparent));
m_theThing = animatedItem;
this->setSceneRect(m_theThing->boundingRect()); this->setSceneRect(m_theThing->boundingRect());
} }
bool GraphicsScene::trySetTransformationMode(Qt::TransformationMode mode, float scaleHint) bool GraphicsScene::trySetTransformationMode(Qt::TransformationMode mode)
{ {
PGraphicsPixmapItem * pixmapItem = qgraphicsitem_cast<PGraphicsPixmapItem *>(m_theThing); QGraphicsPixmapItem * pixmapItem = qgraphicsitem_cast<QGraphicsPixmapItem *>(m_theThing);
if (pixmapItem) { if (pixmapItem) {
pixmapItem->setTransformationMode(mode); pixmapItem->setTransformationMode(mode);
pixmapItem->setScaleHint(scaleHint);
return true; return true;
} }
return false; return false;
} }
bool GraphicsScene::togglePauseAnimation()
{
PGraphicsMovieItem * animatedItem = qgraphicsitem_cast<PGraphicsMovieItem *>(m_theThing);
if (animatedItem) {
animatedItem->movie()->setPaused(animatedItem->movie()->state() != QMovie::Paused);
return true;
}
return false;
}
bool GraphicsScene::skipAnimationFrame(int delta)
{
PGraphicsMovieItem * animatedItem = qgraphicsitem_cast<PGraphicsMovieItem *>(m_theThing);
if (animatedItem) {
const int frameCount = animatedItem->movie()->frameCount();
const int currentFrame = animatedItem->movie()->currentFrameNumber();
const int targetFrame = (currentFrame + delta) % frameCount;
animatedItem->movie()->setPaused(true);
return animatedItem->movie()->jumpToFrame(targetFrame);
}
return false;
}
QPixmap GraphicsScene::renderToPixmap() QPixmap GraphicsScene::renderToPixmap()
{ {
PGraphicsPixmapItem * pixmapItem = qgraphicsitem_cast<PGraphicsPixmapItem *>(m_theThing);
if (pixmapItem) {
return pixmapItem->pixmap();
}
QPixmap pixmap(sceneRect().toRect().size()); QPixmap pixmap(sceneRect().toRect().size());
pixmap.fill(Qt::transparent); pixmap.fill(Qt::transparent);
QPainter p(&pixmap); QPainter p(&pixmap);

View File

@ -1,7 +1,3 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
//
// SPDX-License-Identifier: MIT
#ifndef GRAPHICSSCENE_H #ifndef GRAPHICSSCENE_H
#define GRAPHICSSCENE_H #define GRAPHICSSCENE_H
@ -19,15 +15,12 @@ public:
void showSvg(const QString &filepath); void showSvg(const QString &filepath);
void showAnimated(const QString &filepath); void showAnimated(const QString &filepath);
bool trySetTransformationMode(Qt::TransformationMode mode, float scaleHint); bool trySetTransformationMode(Qt::TransformationMode mode);
bool togglePauseAnimation();
bool skipAnimationFrame(int delta = 1);
QPixmap renderToPixmap(); QPixmap renderToPixmap();
private: private:
QGraphicsItem * m_theThing = nullptr; QGraphicsItem * m_theThing;
}; };
#endif // GRAPHICSSCENE_H #endif // GRAPHICSSCENE_H

View File

@ -1,495 +1,362 @@
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net> #include "graphicsview.h"
//
// SPDX-License-Identifier: MIT #include "graphicsscene.h"
#include "graphicsview.h" #include <QDebug>
#include <QMouseEvent>
#include "graphicsscene.h" #include <QScrollBar>
#include "settings.h" #include <QMimeData>
#include <QImageReader>
#include <QDebug> #include <QStyleOptionGraphicsItem>
#include <QMouseEvent>
#include <QScrollBar> // TODO: remove this once we drop older Qt support.
#include <QMimeData> #if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
#include <QImageReader> #define COMPAT_CONSTCOLOR constexpr
#include <QStyleOptionGraphicsItem> #else
#define COMPAT_CONSTCOLOR const
GraphicsView::GraphicsView(QWidget *parent) #endif
: QGraphicsView (parent)
{ GraphicsView::GraphicsView(QWidget *parent)
setDragMode(QGraphicsView::ScrollHandDrag); : QGraphicsView (parent)
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); {
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setDragMode(QGraphicsView::ScrollHandDrag);
setResizeAnchor(QGraphicsView::AnchorUnderMouse); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setTransformationAnchor(QGraphicsView::AnchorUnderMouse); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setStyleSheet("background-color: rgba(0, 0, 0, 220);" setResizeAnchor(QGraphicsView::AnchorUnderMouse);
"border-radius: 3px;"); setTransformationAnchor(QGraphicsView::AnchorUnderMouse);
setAcceptDrops(false); setStyleSheet("background-color: rgba(0, 0, 0, 220);"
setCheckerboardEnabled(false); "border-radius: 3px;");
setAcceptDrops(true);
connect(horizontalScrollBar(), &QScrollBar::valueChanged, this, &GraphicsView::viewportRectChanged); setCheckerboardEnabled(false);
connect(verticalScrollBar(), &QScrollBar::valueChanged, this, &GraphicsView::viewportRectChanged);
} connect(horizontalScrollBar(), &QScrollBar::valueChanged, this, &GraphicsView::viewportRectChanged);
connect(verticalScrollBar(), &QScrollBar::valueChanged, this, &GraphicsView::viewportRectChanged);
void GraphicsView::showFileFromPath(const QString &filePath) }
{
emit navigatorViewRequired(false, transform()); void GraphicsView::showFileFromPath(const QString &filePath, bool doRequestGallery)
{
if (filePath.endsWith(".svg")) { emit navigatorViewRequired(false, transform());
showSvg(filePath);
} else { if (filePath.endsWith(".svg")) {
QImageReader imageReader(filePath); showSvg(filePath);
imageReader.setAutoTransform(true); } else {
imageReader.setDecideFormatFromContent(true); QImageReader imageReader(filePath);
imageReader.setAllocationLimit(0); imageReader.setAutoTransform(true);
imageReader.setDecideFormatFromContent(true);
// 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. // Since if the image format / plugin does not support this feature, imageFormat() will returns an invalid format.
// QImage::Format imageFormat = imageReader.imageFormat(); // So we cannot use imageFormat() and check if it returns QImage::Format_Invalid to detect if we support the file.
if (imageReader.format().isEmpty()) { // QImage::Format imageFormat = imageReader.imageFormat();
showText(tr("File is not a valid image")); if (imageReader.format().isEmpty()) {
} else if (imageReader.supportsAnimation() && imageReader.imageCount() > 1) { doRequestGallery = false;
showAnimated(filePath); showText(tr("File is not a valid image"));
} else if (!imageReader.canRead()) { } else if (imageReader.supportsAnimation() && imageReader.imageCount() > 1) {
showText(tr("Image data is invalid or currently unsupported")); showAnimated(filePath);
} else { } else if (!imageReader.canRead()) {
QPixmap && pixmap = QPixmap::fromImageReader(&imageReader); doRequestGallery = false;
if (pixmap.isNull()) { showText(tr("Image data is invalid or currently unsupported"));
showText(tr("Image data is invalid or currently unsupported")); } else {
} else { const QPixmap & pixmap = QPixmap::fromImageReader(&imageReader);
pixmap.setDevicePixelRatio(devicePixelRatioF()); if (pixmap.isNull()) {
showImage(pixmap); doRequestGallery = false;
} showText(tr("Image data is invalid or currently unsupported"));
} } else {
} showImage(pixmap);
} }
}
void GraphicsView::showImage(const QPixmap &pixmap) }
{
resetTransform(); if (doRequestGallery) {
scene()->showImage(pixmap); emit requestGallery(filePath);
displayScene(); }
} }
void GraphicsView::showImage(const QImage &image) void GraphicsView::showImage(const QPixmap &pixmap)
{ {
resetTransform(); resetTransform();
scene()->showImage(QPixmap::fromImage(image)); scene()->showImage(pixmap);
displayScene(); checkAndDoFitInView();
} }
void GraphicsView::showText(const QString &text) void GraphicsView::showImage(const QImage &image)
{ {
resetTransform(); resetTransform();
scene()->showText(text); scene()->showImage(QPixmap::fromImage(image));
displayScene(); checkAndDoFitInView();
} }
void GraphicsView::showSvg(const QString &filepath) void GraphicsView::showText(const QString &text)
{ {
resetTransform(); resetTransform();
scene()->showSvg(filepath); scene()->showText(text);
displayScene(); checkAndDoFitInView();
} }
void GraphicsView::showAnimated(const QString &filepath) void GraphicsView::showSvg(const QString &filepath)
{ {
resetTransform(); resetTransform();
scene()->showAnimated(filepath); scene()->showSvg(filepath);
displayScene(); checkAndDoFitInView();
} }
GraphicsScene *GraphicsView::scene() const void GraphicsView::showAnimated(const QString &filepath)
{ {
return qobject_cast<GraphicsScene*>(QGraphicsView::scene()); resetTransform();
} scene()->showAnimated(filepath);
checkAndDoFitInView();
void GraphicsView::setScene(GraphicsScene *scene) }
{
return QGraphicsView::setScene(scene); GraphicsScene *GraphicsView::scene() const
} {
return qobject_cast<GraphicsScene*>(QGraphicsView::scene());
qreal GraphicsView::scaleFactor() const }
{
return QStyleOptionGraphicsItem::levelOfDetailFromTransform(transform()); void GraphicsView::setScene(GraphicsScene *scene)
} {
return QGraphicsView::setScene(scene);
void GraphicsView::resetTransform() }
{
if (!shouldAvoidTransform()) { qreal GraphicsView::scaleFactor() const
QGraphicsView::resetTransform(); {
} return QStyleOptionGraphicsItem::levelOfDetailFromTransform(transform());
} }
void GraphicsView::zoomView(qreal scaleFactor) void GraphicsView::resetTransform()
{ {
m_enableFitInView = false; QGraphicsView::resetTransform();
m_longImageMode = false; }
scale(scaleFactor, scaleFactor);
applyTransformationModeByScaleFactor(); void GraphicsView::zoomView(qreal scaleFactor)
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform()); {
} m_enableFitInView = false;
scale(scaleFactor, scaleFactor);
// This is always according to user's view. applyTransformationModeByScaleFactor();
// the direction of the rotation will NOT be clockwise because the y-axis points downwards. emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform());
void GraphicsView::rotateView(bool clockwise) }
{
resetScale(); // This is always according to user's view.
// the direction of the rotation will NOT be clockwise because the y-axis points downwards.
QTransform tf(0, clockwise ? 1 : -1, 0, void GraphicsView::rotateView(bool clockwise)
clockwise ? -1 : 1, 0, 0, {
0, 0, 1); resetScale();
tf = transform() * tf;
setTransform(tf); QTransform tf(0, clockwise ? 1 : -1, 0,
clockwise ? -1 : 1, 0, 0,
// Apply transformation mode but don't emit navigator signal here 0, 0, 1);
// Let displayScene() handle the navigator visibility correctly tf = transform() * tf;
applyTransformationModeByScaleFactor(); setTransform(tf);
} }
void GraphicsView::flipView(bool horizontal) void GraphicsView::flipView(bool horizontal)
{ {
QTransform tf(horizontal ? -1 : 1, 0, 0, QTransform tf(horizontal ? -1 : 1, 0, 0,
0, horizontal ? 1 : -1, 0, 0, horizontal ? 1 : -1, 0,
0, 0, 1); 0, 0, 1);
tf = transform() * tf; tf = transform() * tf;
setTransform(tf); setTransform(tf);
// Ensure the navigation view is also flipped. // Ensure the navigation view is also flipped.
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform()); emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform());
} }
void GraphicsView::resetScale() void GraphicsView::resetScale()
{ {
setTransform(resetScale(transform())); setTransform(resetScale(transform()));
applyTransformationModeByScaleFactor(); emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform());
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform()); }
}
void GraphicsView::fitInView(const QRectF &rect, Qt::AspectRatioMode aspectRadioMode)
void GraphicsView::fitInView(const QRectF &rect, Qt::AspectRatioMode aspectRadioMode) {
{ QGraphicsView::fitInView(rect, aspectRadioMode);
QGraphicsView::fitInView(rect, aspectRadioMode); applyTransformationModeByScaleFactor();
applyTransformationModeByScaleFactor(); }
}
void GraphicsView::checkAndDoFitInView(bool markItOnAnyway)
void GraphicsView::fitByOrientation(Qt::Orientation ori, bool scaleDownOnly) {
{ if (!isThingSmallerThanWindowWith(transform())) {
resetScale(); m_enableFitInView = true;
fitInView(sceneRect(), Qt::KeepAspectRatio);
QRectF viewRect = this->viewport()->rect(); }
QRectF imageRect = transform().mapRect(sceneRect());
QSize viewSize = viewRect.size().toSize(); if (markItOnAnyway) {
m_enableFitInView = true;
qreal ratio; }
}
if (ori == Qt::Horizontal) {
// Horizontal fit means fit by width inline double zeroOrOne(double number)
if (scaleDownOnly && imageRect.width() <= viewSize.width()) { {
// Image width already fits, no scaling needed return qFuzzyIsNull(number) ? 0 : (number > 0 ? 1 : -1);
ratio = 1; }
} else {
ratio = viewRect.width() / imageRect.width(); // Note: this only works if we only have 90 degree based rotation
} // and no shear/translate.
} else { QTransform GraphicsView::resetScale(const QTransform & orig)
// Vertical fit means fit by height {
if (scaleDownOnly && imageRect.height() <= viewSize.height()) { return QTransform(zeroOrOne(orig.m11()), zeroOrOne(orig.m12()),
// Image height already fits, no scaling needed zeroOrOne(orig.m21()), zeroOrOne(orig.m22()),
ratio = 1; orig.dx(), orig.dy());
} else { }
ratio = viewRect.height() / imageRect.height();
} void GraphicsView::toggleCheckerboard(bool invertCheckerboardColor)
} {
setCheckerboardEnabled(!m_checkerboardEnabled, invertCheckerboardColor);
if (ratio != 1) { }
scale(ratio, ratio);
} void GraphicsView::mousePressEvent(QMouseEvent *event)
{
// Position the image correctly based on orientation with rotation consideration if (shouldIgnoreMousePressMoveEvent(event)) {
QRectF originalScene = sceneRect(); event->ignore();
QTransform currentTransform = transform(); // blumia: return here, or the QMouseEvent event transparency won't
// work if we set a QGraphicsView::ScrollHandDrag drag mode.
if (ori == Qt::Horizontal) { return;
// 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; return QGraphicsView::mousePressEvent(event);
}
if (qFuzzyIsNull(currentTransform.m12()) && qFuzzyIsNull(currentTransform.m21())) {
// 0° or 180° rotation void GraphicsView::mouseMoveEvent(QMouseEvent *event)
if (currentTransform.m11() > 0 && currentTransform.m22() > 0) { {
// 0° rotation: use original top-center if (shouldIgnoreMousePressMoveEvent(event)) {
sceneTopCenter = QPointF(originalScene.center().x(), originalScene.top()); event->ignore();
} else { }
// 180° rotation: the visual "top" is now at the scene bottom
sceneTopCenter = QPointF(originalScene.center().x(), originalScene.bottom()); return QGraphicsView::mouseMoveEvent(event);
} }
} else {
// 90/270 degree rotation: the "top" in view corresponds to left/right in scene void GraphicsView::mouseReleaseEvent(QMouseEvent *event)
if (currentTransform.m12() > 0) { {
// 90 degree: top in view = left in scene QGraphicsItem *item = itemAt(event->pos());
sceneTopCenter = QPointF(originalScene.left(), originalScene.center().y()); if (!item) {
} else { event->ignore();
// 270 degree: top in view = right in scene }
sceneTopCenter = QPointF(originalScene.right(), originalScene.center().y());
} return QGraphicsView::mouseReleaseEvent(event);
} }
centerOn(sceneTopCenter);
} else { void GraphicsView::wheelEvent(QWheelEvent *event)
// 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 event->ignore();
QPointF sceneLeftCenter; // blumia: no need for calling parent method.
}
if (qFuzzyIsNull(currentTransform.m12()) && qFuzzyIsNull(currentTransform.m21())) {
// 0° or 180° rotation void GraphicsView::resizeEvent(QResizeEvent *event)
if (currentTransform.m11() > 0 && currentTransform.m22() > 0) { {
// 0° rotation: use original left-center if (m_enableFitInView) {
sceneLeftCenter = QPointF(originalScene.left(), originalScene.center().y()); bool originalSizeSmallerThanWindow = isThingSmallerThanWindowWith(resetScale(transform()));
} else { if (originalSizeSmallerThanWindow && scaleFactor() >= 1) {
// 180° rotation: the visual "left" is now at the scene right // no longer need to do fitInView()
sceneLeftCenter = QPointF(originalScene.right(), originalScene.center().y()); // but we leave the m_enableFitInView value unchanged in case
} // user resize down the window again.
} else { } else if (originalSizeSmallerThanWindow && scaleFactor() < 1) {
// 90/270 degree rotation: the "left" in view corresponds to top/bottom in scene resetScale();
if (currentTransform.m21() > 0) { } else {
// 90 degree: left in view = top in scene fitInView(sceneRect(), Qt::KeepAspectRatio);
sceneLeftCenter = QPointF(originalScene.center().x(), originalScene.top()); }
} else { } else {
// 270 degree: left in view = bottom in scene emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform());
sceneLeftCenter = QPointF(originalScene.center().x(), originalScene.bottom()); }
} return QGraphicsView::resizeEvent(event);
} }
centerOn(sceneLeftCenter);
} void GraphicsView::dragEnterEvent(QDragEnterEvent *event)
{
m_enableFitInView = false; if (event->mimeData()->hasUrls() || event->mimeData()->hasImage() || event->mimeData()->hasText()) {
event->acceptProposedAction();
applyTransformationModeByScaleFactor(); } else {
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform()); event->ignore();
} }
// qDebug() << event->mimeData() << "Drag Enter Event"
bool GraphicsView::isLongImage() const // << event->mimeData()->hasUrls() << event->mimeData()->hasImage()
{ // << event->mimeData()->formats() << event->mimeData()->hasFormat("text/uri-list");
// Get the transformed image size (considering rotation and other transforms)
QRectF transformedRect = transform().mapRect(sceneRect()); return QGraphicsView::dragEnterEvent(event);
QSizeF imageSize = transformedRect.size(); }
if (imageSize.isEmpty()) return false; void GraphicsView::dragMoveEvent(QDragMoveEvent *event)
{
qreal aspectRatio = imageSize.width() / imageSize.height(); Q_UNUSED(event)
// by default, QGraphicsView/Scene will ignore the action if there are no QGraphicsItem under cursor.
// Check if aspect ratio exceeds 5:2 (wide) or 2:5 (tall) // We actually doesn't care and would like to keep the drag event as-is, so just do nothing here.
return aspectRatio > 2.5 || aspectRatio < 0.4; }
}
void GraphicsView::dropEvent(QDropEvent *event)
void GraphicsView::fitLongImage() {
{ event->acceptProposedAction();
QRectF transformedRect = transform().mapRect(sceneRect());
const QMimeData * mimeData = event->mimeData();
if (transformedRect.width() < transformedRect.height()) {
fitByOrientation(Qt::Horizontal, true); if (mimeData->hasUrls()) {
} else { const QList<QUrl> &urls = mimeData->urls();
fitByOrientation(Qt::Vertical, true); if (urls.isEmpty()) {
} showText(tr("File url list is empty"));
} } else {
showFileFromPath(urls.first().toLocalFile(), true);
void GraphicsView::displayScene() }
{ } else if (mimeData->hasImage()) {
if (shouldAvoidTransform()) { QImage img = qvariant_cast<QImage>(mimeData->imageData());
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform()); QPixmap pixmap = QPixmap::fromImage(img);
return; if (pixmap.isNull()) {
} showText(tr("Image data is invalid"));
} else {
// Check if should apply long image mode showImage(pixmap);
if (Settings::instance()->autoLongImageMode() && isLongImage()) { }
m_longImageMode = true; } else if (mimeData->hasText()) {
m_firstUserMediaLoaded = true; showText(mimeData->text());
if (isSceneBiggerThanView()) fitLongImage(); } else {
return; showText(tr("Not supported mimedata: %1").arg(mimeData->formats().first()));
} }
}
if (isSceneBiggerThanView()) {
// Do fit-in-view bool GraphicsView::isThingSmallerThanWindowWith(const QTransform &transform) const
fitInView(sceneRect(), Qt::KeepAspectRatio); {
// After fitInView, the image should fit the window, so hide navigator return rect().size().expandedTo(transform.mapRect(sceneRect()).size().toSize())
emit navigatorViewRequired(false, transform()); == rect().size();
} else { }
// Image is already smaller than window, no navigator needed
emit navigatorViewRequired(false, transform()); bool GraphicsView::shouldIgnoreMousePressMoveEvent(const QMouseEvent *event) const
} {
if (event->buttons() == Qt::NoButton) {
m_longImageMode = false; return true;
m_enableFitInView = true; }
m_firstUserMediaLoaded = true;
} QGraphicsItem *item = itemAt(event->pos());
if (!item) {
bool GraphicsView::isSceneBiggerThanView() const return true;
{ }
if (!isThingSmallerThanWindowWith(transform())) {
return true; if (isThingSmallerThanWindowWith(transform())) {
} else { return true;
return false; }
}
} return false;
}
// Automately do fit in view when viewport(window) smaller than image original size.
void GraphicsView::setEnableAutoFitInView(bool enable) void GraphicsView::setCheckerboardEnabled(bool enabled, bool invertColor)
{ {
m_enableFitInView = enable; m_checkerboardEnabled = enabled;
} m_isLastCheckerboardColorInverted = invertColor;
if (m_checkerboardEnabled) {
void GraphicsView::setLongImageMode(bool enable) // Prepare background check-board pattern
{ QPixmap tilePixmap(0x20, 0x20);
m_longImageMode = enable; tilePixmap.fill(invertColor ? QColor(220, 220, 220, 170) : QColor(35, 35, 35, 170));
} QPainter tilePainter(&tilePixmap);
COMPAT_CONSTCOLOR QColor color(45, 45, 45, 170);
bool GraphicsView::avoidResetTransform() const COMPAT_CONSTCOLOR QColor invertedColor(210, 210, 210, 170);
{ tilePainter.fillRect(0, 0, 0x10, 0x10, invertColor ? invertedColor : color);
return m_avoidResetTransform; tilePainter.fillRect(0x10, 0x10, 0x10, 0x10, invertColor ? invertedColor : color);
} tilePainter.end();
void GraphicsView::setAvoidResetTransform(bool avoidReset) setBackgroundBrush(tilePixmap);
{ } else {
m_avoidResetTransform = avoidReset; setBackgroundBrush(Qt::transparent);
} }
}
inline double zeroOrOne(double number)
{ void GraphicsView::applyTransformationModeByScaleFactor()
return qFuzzyIsNull(number) ? 0 : (number > 0 ? 1 : -1); {
} if (this->scaleFactor() < 1) {
scene()->trySetTransformationMode(Qt::SmoothTransformation);
// Note: this only works if we only have 90 degree based rotation } else {
// and no shear/translate. scene()->trySetTransformationMode(Qt::FastTransformation);
QTransform GraphicsView::resetScale(const QTransform & orig) }
{ }
return QTransform(zeroOrOne(orig.m11()), zeroOrOne(orig.m12()),
zeroOrOne(orig.m21()), zeroOrOne(orig.m22()),
orig.dx(), orig.dy());
}
void GraphicsView::toggleCheckerboard(bool invertCheckerboardColor)
{
setCheckerboardEnabled(!m_checkerboardEnabled, invertCheckerboardColor);
}
void GraphicsView::mousePressEvent(QMouseEvent *event)
{
if (shouldIgnoreMousePressMoveEvent(event)) {
event->ignore();
// blumia: return here, or the QMouseEvent event transparency won't
// work if we set a QGraphicsView::ScrollHandDrag drag mode.
return;
}
return QGraphicsView::mousePressEvent(event);
}
void GraphicsView::mouseMoveEvent(QMouseEvent *event)
{
if (shouldIgnoreMousePressMoveEvent(event)) {
event->ignore();
}
return QGraphicsView::mouseMoveEvent(event);
}
void GraphicsView::mouseReleaseEvent(QMouseEvent *event)
{
if (event->button() == Qt::ForwardButton || event->button() == Qt::BackButton) {
event->ignore();
} else {
QGraphicsItem *item = itemAt(event->pos());
if (!item) {
event->ignore();
}
}
return QGraphicsView::mouseReleaseEvent(event);
}
void GraphicsView::wheelEvent(QWheelEvent *event)
{
event->ignore();
// blumia: no need for calling parent method.
}
void GraphicsView::resizeEvent(QResizeEvent *event)
{
if (m_longImageMode) {
// In long image mode, reapply long image logic on resize
// We directly apply the long image mode logic without rechecking
// if we should enter long image mode, as the mode is already active
fitLongImage();
} else if (m_enableFitInView) {
bool originalSizeSmallerThanWindow = isThingSmallerThanWindowWith(resetScale(transform()));
if (originalSizeSmallerThanWindow && scaleFactor() >= 1) {
// no longer need to do fitInView()
// but we leave the m_enableFitInView value unchanged in case
// user resize down the window again.
} else if (originalSizeSmallerThanWindow && scaleFactor() < 1) {
resetScale();
} else {
fitInView(sceneRect(), Qt::KeepAspectRatio);
}
} else {
emit navigatorViewRequired(!isThingSmallerThanWindowWith(transform()), transform());
}
return QGraphicsView::resizeEvent(event);
}
bool GraphicsView::isThingSmallerThanWindowWith(const QTransform &transform) const
{
return rect().size().expandedTo(transform.mapRect(sceneRect()).size().toSize())
== rect().size();
}
bool GraphicsView::shouldIgnoreMousePressMoveEvent(const QMouseEvent *event) const
{
if (event->buttons() == Qt::NoButton) {
return true;
}
QGraphicsItem *item = itemAt(event->pos());
if (!item) {
return true;
}
if (isThingSmallerThanWindowWith(transform())) {
return true;
}
return false;
}
void GraphicsView::setCheckerboardEnabled(bool enabled, bool invertColor)
{
m_checkerboardEnabled = enabled;
bool isLightCheckerboard = Settings::instance()->useLightCheckerboard() ^ invertColor;
if (m_checkerboardEnabled) {
// Prepare background check-board pattern
QPixmap tilePixmap(0x20, 0x20);
tilePixmap.fill(isLightCheckerboard ? QColor(220, 220, 220, 170) : QColor(35, 35, 35, 170));
QPainter tilePainter(&tilePixmap);
constexpr QColor color(45, 45, 45, 170);
constexpr QColor invertedColor(210, 210, 210, 170);
tilePainter.fillRect(0, 0, 0x10, 0x10, isLightCheckerboard ? invertedColor : color);
tilePainter.fillRect(0x10, 0x10, 0x10, 0x10, isLightCheckerboard ? invertedColor : color);
tilePainter.end();
setBackgroundBrush(tilePixmap);
} else {
setBackgroundBrush(Qt::transparent);
}
}
void GraphicsView::applyTransformationModeByScaleFactor()
{
if (this->scaleFactor() < 1) {
scene()->trySetTransformationMode(Qt::SmoothTransformation, this->scaleFactor());
} else {
scene()->trySetTransformationMode(Qt::FastTransformation, this->scaleFactor());
}
}
bool GraphicsView::shouldAvoidTransform() const
{
return m_firstUserMediaLoaded && m_avoidResetTransform;
}

View File

@ -1,85 +1,67 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #ifndef GRAPHICSVIEW_H
// #define GRAPHICSVIEW_H
// SPDX-License-Identifier: MIT
#include <QGraphicsView>
#ifndef GRAPHICSVIEW_H #include <QUrl>
#define GRAPHICSVIEW_H
class GraphicsScene;
#include <QGraphicsView> class GraphicsView : public QGraphicsView
#include <QUrl> {
Q_OBJECT
class GraphicsScene; public:
class GraphicsView : public QGraphicsView GraphicsView(QWidget *parent = nullptr);
{
Q_OBJECT void showFileFromPath(const QString &filePath, bool requestGallery = false);
public:
GraphicsView(QWidget *parent = nullptr); void showImage(const QPixmap &pixmap);
void showImage(const QImage &image);
void showFileFromPath(const QString &filePath); void showText(const QString &text);
void showSvg(const QString &filepath);
void showImage(const QPixmap &pixmap); void showAnimated(const QString &filepath);
void showImage(const QImage &image);
void showText(const QString &text); GraphicsScene * scene() const;
void showSvg(const QString &filepath); void setScene(GraphicsScene *scene);
void showAnimated(const QString &filepath);
qreal scaleFactor() const;
GraphicsScene * scene() const;
void setScene(GraphicsScene *scene); void resetTransform();
void zoomView(qreal scaleFactor);
qreal scaleFactor() const; void rotateView(bool clockwise = true);
void flipView(bool horizontal = true);
void resetTransform(); void resetScale();
void zoomView(qreal scaleFactor); void fitInView(const QRectF &rect, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio);
void rotateView(bool clockwise = true);
void flipView(bool horizontal = true); void checkAndDoFitInView(bool markItOnAnyway = true);
void resetScale();
void fitInView(const QRectF &rect, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio); static QTransform resetScale(const QTransform & orig);
void fitByOrientation(Qt::Orientation ori = Qt::Horizontal, bool scaleDownOnly = false);
signals:
void displayScene(); void navigatorViewRequired(bool required, QTransform transform);
bool isSceneBiggerThanView() const; void viewportRectChanged();
void setEnableAutoFitInView(bool enable = true); void requestGallery(const QString &filePath);
void setLongImageMode(bool enable = true);
public slots:
bool avoidResetTransform() const; void toggleCheckerboard(bool invertCheckerboardColor = false);
void setAvoidResetTransform(bool avoidReset);
private:
static QTransform resetScale(const QTransform & orig); void mousePressEvent(QMouseEvent * event) override;
void mouseMoveEvent(QMouseEvent * event) override;
// Long image mode support void mouseReleaseEvent(QMouseEvent * event) override;
bool isLongImage() const; void wheelEvent(QWheelEvent *event) override;
void fitLongImage(); void resizeEvent(QResizeEvent *event) override;
signals: void dragEnterEvent(QDragEnterEvent *event) override;
void navigatorViewRequired(bool required, QTransform transform); void dragMoveEvent(QDragMoveEvent *event) override;
void viewportRectChanged(); void dropEvent(QDropEvent *event) override;
public slots: bool isThingSmallerThanWindowWith(const QTransform &transform) const;
void toggleCheckerboard(bool invertCheckerboardColor = false); bool shouldIgnoreMousePressMoveEvent(const QMouseEvent *event) const;
void setCheckerboardEnabled(bool enabled, bool invertColor = false);
private: void applyTransformationModeByScaleFactor();
void mousePressEvent(QMouseEvent * event) override;
void mouseMoveEvent(QMouseEvent * event) override; bool m_enableFitInView = false;
void mouseReleaseEvent(QMouseEvent * event) override; bool m_checkerboardEnabled = false;
void wheelEvent(QWheelEvent *event) override; bool m_isLastCheckerboardColorInverted = false;
void resizeEvent(QResizeEvent *event) override; };
bool isThingSmallerThanWindowWith(const QTransform &transform) const; #endif // GRAPHICSVIEW_H
bool shouldIgnoreMousePressMoveEvent(const QMouseEvent *event) const;
void setCheckerboardEnabled(bool enabled, bool invertColor = false);
void applyTransformationModeByScaleFactor();
inline bool shouldAvoidTransform() const;
// 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...
// 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_longImageMode = false;
bool m_avoidResetTransform = false;
bool m_checkerboardEnabled = false;
bool m_useLightCheckerboard = false;
bool m_firstUserMediaLoaded = false;
};
#endif // GRAPHICSVIEW_H

View File

@ -1,103 +1,52 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "mainwindow.h"
//
// SPDX-License-Identifier: MIT #include "playlistmanager.h"
#include "mainwindow.h" #include <QApplication>
#include <QCommandLineParser>
#include "playlistmanager.h" #include <QDir>
#include "settings.h" #include <QTranslator>
#include <QUrl>
#ifdef Q_OS_MACOS
#include "fileopeneventhandler.h" // QM_FILE_INSTALL_DIR should be defined from the CMakeLists file.
#endif // Q_OS_MACOS #ifndef QM_FILE_INSTALL_DIR
#define QM_FILE_INSTALL_DIR ":/i18n/"
#include <QApplication> #endif // QM_FILE_INSTALL_DIR
#include <QCommandLineParser>
#include <QDir> int main(int argc, char *argv[])
#include <QTranslator> {
#include <QUrl> QApplication a(argc, argv);
using namespace Qt::Literals::StringLiterals; QTranslator translator;
QString qmDir;
int main(int argc, char *argv[]) #ifdef _WIN32
{ qmDir = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath("translations");
QCoreApplication::setApplicationName(u"Pineapple Pictures"_s); #else
QCoreApplication::setApplicationVersion(PPIC_VERSION_STRING); qmDir = QT_STRINGIFY(QM_FILE_INSTALL_DIR);
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Settings::instance()->hiDpiScaleFactorBehavior()); #endif
if (translator.load(QString("PineapplePictures_%1").arg(QLocale::system().name()), qmDir)) {
QApplication a(argc, argv); a.installTranslator(&translator);
}
QTranslator translator; a.setApplicationName("Pineapple Pictures");
#if defined(TRANSLATION_RESOURCE_EMBEDDING) a.setApplicationDisplayName(QCoreApplication::translate("main", "Pineapple Pictures"));
const QString qmDir = u":/i18n/"_s;
#elif defined(QM_FILE_INSTALL_ABSOLUTE_DIR) // parse commandline arguments
const QString qmDir = QT_STRINGIFY(QM_FILE_INSTALL_ABSOLUTE_DIR); QCommandLineParser parser;
#else parser.addPositionalArgument("File list", QCoreApplication::translate("main", "File list."));
const QString qmDir = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath("translations"); parser.addHelpOption();
#endif
if (translator.load(QLocale(), u"PineapplePictures"_s, u"_"_s, qmDir)) { parser.process(a);
QCoreApplication::installTranslator(&translator);
} MainWindow w;
w.show();
QGuiApplication::setApplicationDisplayName(QCoreApplication::translate("main", "Pineapple Pictures"));
QStringList urlStrList = parser.positionalArguments();
// commandline options QList<QUrl> && urlList = PlaylistManager::convertToUrlList(urlStrList);
QCommandLineOption supportedImageFormats(u"supported-image-formats"_s, QCoreApplication::translate("main", "List supported image format suffixes, and quit program."));
// parse commandline arguments if (!urlList.isEmpty()) {
QCommandLineParser parser; w.showUrls(urlList);
parser.addOption(supportedImageFormats); w.adjustWindowSizeBySceneRect();
parser.addPositionalArgument("File list", QCoreApplication::translate("main", "File list.")); }
parser.addHelpOption();
parser.process(a); return a.exec();
}
if (parser.isSet(supportedImageFormats)) {
#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
fputs(qPrintable(MainWindow::supportedImageFormats().join(QChar('\n'))), stdout);
::exit(EXIT_SUCCESS);
#else
QCommandLineParser::showMessageAndExit(QCommandLineParser::MessageType::Information,
MainWindow::supportedImageFormats().join(QChar('\n')));
#endif
}
MainWindow w;
w.show();
#ifdef Q_OS_MACOS
FileOpenEventHandler * fileOpenEventHandler = new FileOpenEventHandler(&a);
a.installEventFilter(fileOpenEventHandler);
a.connect(fileOpenEventHandler, &FileOpenEventHandler::fileOpen, [&w](const QUrl & url){
if (w.isHidden()) {
w.setWindowOpacity(1);
w.showNormal();
} else {
w.activateWindow();
}
w.showUrls({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.showUrls({});
w.galleryCurrent(true, true);
w.setWindowOpacity(1);
w.showNormal();
w.raise();
w.activateWindow();
}
});
#endif // Q_OS_MACOS
QStringList urlStrList = parser.positionalArguments();
QList<QUrl> && urlList = PlaylistManager::convertToUrlList(urlStrList);
if (!urlList.isEmpty()) {
w.showUrls(urlList);
}
w.initWindowSize();
return QApplication::exec();
}

File diff suppressed because it is too large Load Diff

View File

@ -1,135 +1,98 @@
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net> #ifndef MAINWINDOW_H
// #define MAINWINDOW_H
// SPDX-License-Identifier: MIT
#include "framelesswindow.h"
#ifndef MAINWINDOW_H
#define MAINWINDOW_H #include <QParallelAnimationGroup>
#include <QPropertyAnimation>
#include "framelesswindow.h" #include <QPushButton>
#include <QParallelAnimationGroup> QT_BEGIN_NAMESPACE
#include <QPropertyAnimation> class QGraphicsOpacityEffect;
#include <QPushButton> class QGraphicsView;
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
class QGraphicsOpacityEffect; class ActionManager;
class QGraphicsView; class PlaylistManager;
class QFileSystemWatcher; class ToolButton;
QT_END_NAMESPACE class GraphicsView;
class NavigatorView;
class ActionManager; class BottomButtonGroup;
class PlaylistManager; class MainWindow : public FramelessWindow
class ToolButton; {
class GraphicsView; Q_OBJECT
class NavigatorView;
class BottomButtonGroup; public:
class MainWindow : public FramelessWindow explicit MainWindow(QWidget *parent = nullptr);
{ ~MainWindow() override;
Q_OBJECT
void showUrls(const QList<QUrl> &urls);
public: void adjustWindowSizeBySceneRect();
explicit MainWindow(QWidget *parent = nullptr); QUrl currentImageFileUrl() const;
~MainWindow() override;
void clearGallery();
void showUrls(const QList<QUrl> &urls); void loadGalleryBySingleLocalFile(const QString &path);
void initWindowSize(); void galleryPrev();
void adjustWindowSizeBySceneRect(); void galleryNext();
QUrl currentImageFileUrl() const;
protected slots:
void clearGallery(); void showEvent(QShowEvent *event) override;
void galleryPrev(); void enterEvent(QEvent *event) override;
void galleryNext(); void leaveEvent(QEvent *event) override;
void galleryCurrent(bool showLoadImageHintWhenEmpty, bool reloadImage); void mousePressEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
static QStringList supportedImageFormats(); void mouseReleaseEvent(QMouseEvent *event) override;
void mouseDoubleClickEvent(QMouseEvent *event) override;
protected slots: void wheelEvent(QWheelEvent *event) override;
void showEvent(QShowEvent *event) override; void resizeEvent(QResizeEvent *event) override;
void enterEvent(QEnterEvent *event) override; void contextMenuEvent(QContextMenuEvent *event) override;
void leaveEvent(QEvent *event) override;
void mousePressEvent(QMouseEvent *event) override; void centerWindow();
void mouseMoveEvent(QMouseEvent *event) override; void closeWindow();
void mouseReleaseEvent(QMouseEvent *event) override; void updateWidgetsPosition();
void mouseDoubleClickEvent(QMouseEvent *event) override; void toggleCheckerboard();
void wheelEvent(QWheelEvent *event) override; void toggleProtectedMode();
void resizeEvent(QResizeEvent *event) override; void toggleStayOnTop();
void contextMenuEvent(QContextMenuEvent *event) override; bool stayOnTop();
void dragEnterEvent(QDragEnterEvent *event) override; bool canPaste();
void dragMoveEvent(QDragMoveEvent *event) override; void quitAppAction(bool force = false);
void dropEvent(QDropEvent *event) override; void toggleFullscreen();
void toggleMaximize();
void centerWindow();
void closeWindow(); protected:
void updateWidgetsPosition(); QSize sizeHint() const override;
void toggleProtectedMode();
void toggleStayOnTop(); private slots:
void toggleAvoidResetTransform(); void on_actionZoomIn_triggered();
bool stayOnTop() const; void on_actionZoomOut_triggered();
bool canPaste() const; void on_actionHorizontalFlip_triggered();
void quitAppAction(bool force = false); void on_actionCopyPixmap_triggered();
void toggleFullscreen(); void on_actionCopyFilePath_triggered();
void toggleMaximize(); void on_actionPaste_triggered();
void on_actionToggleCheckerboard_triggered();
protected: void on_actionToggleStayOnTop_triggered();
QSize sizeHint() const override; void on_actionToggleProtectMode_triggered();
void on_actionSettings_triggered();
private slots: void on_actionHelp_triggered();
void on_actionOpen_triggered(); void on_actionProperties_triggered();
void on_actionQuitApp_triggered();
void on_actionActualSize_triggered();
void on_actionToggleMaximize_triggered(); private:
void on_actionZoomIn_triggered(); ActionManager *m_am;
void on_actionZoomOut_triggered(); PlaylistManager *m_pm;
void on_actionToggleCheckerboard_triggered();
void on_actionRotateClockwise_triggered(); QPoint m_oldMousePos;
void on_actionRotateCounterClockwise_triggered(); QPropertyAnimation *m_fadeOutAnimation;
QPropertyAnimation *m_floatUpAnimation;
void on_actionPrevPicture_triggered(); QParallelAnimationGroup *m_exitAnimationGroup;
void on_actionNextPicture_triggered(); ToolButton *m_closeButton;
ToolButton *m_prevButton;
void on_actionTogglePauseAnimation_triggered(); ToolButton *m_nextButton;
void on_actionAnimationNextFrame_triggered(); GraphicsView *m_graphicsView;
NavigatorView *m_gv;
void on_actionHorizontalFlip_triggered(); BottomButtonGroup *m_bottomButtonGroup;
void on_actionFitInView_triggered(); bool m_protectedMode = false;
void on_actionFitByWidth_triggered(); bool m_clickedOnWindow = false;
void on_actionFitLongImage_triggered(); };
void on_actionCopyPixmap_triggered();
void on_actionCopyFilePath_triggered(); #endif // MAINWINDOW_H
void on_actionPaste_triggered();
void on_actionTrash_triggered();
void on_actionToggleStayOnTop_triggered();
void on_actionToggleProtectMode_triggered();
void on_actionToggleAvoidResetTransform_triggered();
void on_actionSettings_triggered();
void on_actionHelp_triggered();
void on_actionProperties_triggered();
void on_actionLocateInFileManager_triggered();
void on_actionQuitApp_triggered();
void doCloseWindow();
private:
bool updateFileWatcher(const QString & basePath = QString());
void updateGalleryButtonsVisibility();
private:
ActionManager *m_am;
PlaylistManager *m_pm;
QPoint m_oldMousePos;
QPropertyAnimation *m_fadeOutAnimation;
QPropertyAnimation *m_floatUpAnimation;
QParallelAnimationGroup *m_exitAnimationGroup;
QFileSystemWatcher *m_fileSystemWatcher;
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

View File

@ -1,110 +1,106 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "metadatadialog.h"
//
// SPDX-License-Identifier: MIT #include <QDialogButtonBox>
#include <QPainter>
#include "metadatadialog.h" #include <QStyledItemDelegate>
#include <QTreeView>
#include <QDialogButtonBox> #include <QVBoxLayout>
#include <QPainter> #include <QHeaderView>
#include <QStyledItemDelegate>
#include <QTreeView> #include "metadatamodel.h"
#include <QVBoxLayout>
#include <QHeaderView> class PropertyTreeView : public QTreeView
{
#include "metadatamodel.h" public:
explicit PropertyTreeView(QWidget* parent) : QTreeView(parent) {}
class PropertyTreeView : public QTreeView ~PropertyTreeView() {}
{
public: protected:
explicit PropertyTreeView(QWidget* parent) : QTreeView(parent) {} void rowsInserted(const QModelIndex& parent, int start, int end) override
~PropertyTreeView() {} {
QTreeView::rowsInserted(parent, start, end);
protected: if (!parent.isValid()) {
void rowsInserted(const QModelIndex& parent, int start, int end) override // we are inserting a section group
{ for (int row = start; row <= end; ++row) {
QTreeView::rowsInserted(parent, start, end); setupSection(row);
if (!parent.isValid()) { }
// we are inserting a section group } else {
for (int row = start; row <= end; ++row) { // we are inserting a property
setupSection(row); setRowHidden(parent.row(), QModelIndex(), false);
} }
} else { }
// we are inserting a property
setRowHidden(parent.row(), QModelIndex(), false); void reset() override
} {
} QTreeView::reset();
if (model()) {
void reset() override for (int row = 0; row < model()->rowCount(); ++row) {
{ setupSection(row);
QTreeView::reset(); }
if (model()) { }
for (int row = 0; row < model()->rowCount(); ++row) { }
setupSection(row);
} private:
} void setupSection(int row)
} {
expand(model()->index(row, 0));
private: setFirstColumnSpanned(row, QModelIndex(), true);
void setupSection(int row) setRowHidden(row, QModelIndex(), !model()->hasChildren(model()->index(row, 0)));
{ }
expand(model()->index(row, 0)); };
setFirstColumnSpanned(row, QModelIndex(), true);
setRowHidden(row, QModelIndex(), !model()->hasChildren(model()->index(row, 0))); class PropertyTreeItemDelegate : public QStyledItemDelegate
} {
}; public:
PropertyTreeItemDelegate(QObject* parent)
class PropertyTreeItemDelegate : public QStyledItemDelegate : QStyledItemDelegate(parent)
{ {}
public:
PropertyTreeItemDelegate(QObject* parent) protected:
: QStyledItemDelegate(parent) void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override
{} {
QStyleOptionViewItem opt = option;
protected: if (!index.parent().isValid()) {
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override opt.font.setBold(true);
{ opt.features.setFlag(QStyleOptionViewItem::Alternate);
QStyleOptionViewItem opt = option; }
if (!index.parent().isValid()) { QStyledItemDelegate::paint(painter, opt, index);
opt.font.setBold(true); }
opt.features.setFlag(QStyleOptionViewItem::Alternate); };
}
QStyledItemDelegate::paint(painter, opt, index); MetadataDialog::MetadataDialog(QWidget *parent)
} : QDialog(parent)
}; , m_treeView(new PropertyTreeView(this))
{
MetadataDialog::MetadataDialog(QWidget *parent) m_treeView->setRootIsDecorated(false);
: QDialog(parent) m_treeView->setIndentation(0);
, m_treeView(new PropertyTreeView(this)) m_treeView->setItemDelegate(new PropertyTreeItemDelegate(m_treeView));
{ m_treeView->header()->resizeSection(0, sizeHint().width() / 2);
m_treeView->setRootIsDecorated(false);
m_treeView->setIndentation(0); setWindowTitle(tr("Image Metadata"));
m_treeView->setItemDelegate(new PropertyTreeItemDelegate(m_treeView));
m_treeView->header()->resizeSection(0, sizeHint().width() / 2); QDialogButtonBox * buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
setWindowTitle(tr("Image Metadata")); setLayout(new QVBoxLayout);
layout()->addWidget(m_treeView);
QDialogButtonBox * buttonBox = new QDialogButtonBox(QDialogButtonBox::Close); layout()->addWidget(buttonBox);
setLayout(new QVBoxLayout); connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::close);
layout()->addWidget(m_treeView);
layout()->addWidget(buttonBox); setWindowFlag(Qt::WindowContextHelpButtonHint, false);
}
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::close);
MetadataDialog::~MetadataDialog()
setWindowFlag(Qt::WindowContextHelpButtonHint, false); {
}
}
MetadataDialog::~MetadataDialog()
{ void MetadataDialog::setMetadataModel(MetadataModel * model)
{
} m_treeView->setModel(model);
}
void MetadataDialog::setMetadataModel(MetadataModel * model)
{ QSize MetadataDialog::sizeHint() const
m_treeView->setModel(model); {
} return QSize(520, 350);
}
QSize MetadataDialog::sizeHint() const
{
return QSize(520, 350);
}

View File

@ -1,30 +1,26 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #ifndef METADATADIALOG_H
// #define METADATADIALOG_H
// SPDX-License-Identifier: MIT
#include <QDialog>
#ifndef METADATADIALOG_H
#define METADATADIALOG_H QT_BEGIN_NAMESPACE
class QTreeView;
#include <QDialog> QT_END_NAMESPACE
QT_BEGIN_NAMESPACE class MetadataModel;
class QTreeView; class MetadataDialog : public QDialog
QT_END_NAMESPACE {
Q_OBJECT
class MetadataModel; public:
class MetadataDialog : public QDialog explicit MetadataDialog(QWidget * parent);
{ ~MetadataDialog() override;
Q_OBJECT
public: void setMetadataModel(MetadataModel * model);
explicit MetadataDialog(QWidget * parent);
~MetadataDialog() override; QSize sizeHint() const override;
void setMetadataModel(MetadataModel * model); private:
QTreeView * m_treeView = nullptr;
QSize sizeHint() const override; };
private: #endif // METADATADIALOG_H
QTreeView * m_treeView = nullptr;
};
#endif // METADATADIALOG_H

View File

@ -1,320 +1,307 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "metadatamodel.h"
// #include "exiv2wrapper.h"
// SPDX-License-Identifier: MIT
#include <QDebug>
#include "metadatamodel.h" #include <QDateTime>
#include "exiv2wrapper.h" #include <QFileInfo>
#include <QImageReader>
#include <QDir>
#include <QDebug> MetadataModel::MetadataModel(QObject *parent)
#include <QDateTime> : QAbstractItemModel(parent)
#include <QFileInfo> {
#include <QImageReader>
}
using namespace Qt::Literals::StringLiterals;
MetadataModel::~MetadataModel()
MetadataModel::MetadataModel(QObject *parent) {
: QAbstractItemModel(parent)
{ }
} void MetadataModel::setFile(const QString &imageFilePath)
{
MetadataModel::~MetadataModel() QFileInfo fileInfo(imageFilePath);
{ // It'll be fine if we don't re-use the image reader we pass to the graphics scene for now.
QImageReader imgReader(imageFilePath);
} imgReader.setAutoTransform(true);
imgReader.setDecideFormatFromContent(true);
void MetadataModel::setFile(const QString &imageFilePath)
{ const QString & itemTypeString = tr("%1 File").arg(QString(imgReader.format().toUpper()));
QFileInfo fileInfo(imageFilePath); const QString & sizeString = QLocale().formattedDataSize(fileInfo.size());
// It'll be fine if we don't re-use the image reader we pass to the graphics scene for now. const QString & birthTimeString = QLocale().toString(fileInfo.birthTime(), QLocale::LongFormat);
QImageReader imgReader(imageFilePath); const QString & lastModifiedTimeString = QLocale().toString(fileInfo.lastModified(), QLocale::LongFormat);
imgReader.setAutoTransform(true); const QString & imageDimensionsString = imageSize(imgReader.size());
imgReader.setDecideFormatFromContent(true); const QString & imageRatioString = imageSizeRatio(imgReader.size());
const QString & itemTypeString = tr("%1 File").arg(QString(imgReader.format().toUpper())); appendSection(QStringLiteral("Description"), tr("Description", "Section name."));
const QString & sizeString = QLocale().formattedDataSize(fileInfo.size()); appendSection(QStringLiteral("Origin"), tr("Origin", "Section name."));
const QString & birthTimeString = QLocale().toString(fileInfo.birthTime(), QLocale::LongFormat); appendSection(QStringLiteral("Image"), tr("Image", "Section name."));
const QString & lastModifiedTimeString = QLocale().toString(fileInfo.lastModified(), QLocale::LongFormat); appendSection(QStringLiteral("Camera"), tr("Camera", "Section name."));
const QString & imageDimensionsString = imageSize(imgReader.size()); appendSection(QStringLiteral("AdvancedPhoto"), tr("Advanced photo", "Section name."));
const QString & imageRatioString = imageSizeRatio(imgReader.size()); appendSection(QStringLiteral("GPS"), tr("GPS", "Section name."));
appendSection(QStringLiteral("File"), tr("File", "Section name."));
appendSection(u"Description"_s, tr("Description", "Section name."));
appendSection(u"Origin"_s, tr("Origin", "Section name.")); appendProperty(QStringLiteral("Image"), QStringLiteral("Image.Dimensions"),
appendSection(u"Image"_s, tr("Image", "Section name.")); tr("Dimensions"), imageDimensionsString);
appendSection(u"Camera"_s, tr("Camera", "Section name.")); appendProperty(QStringLiteral("Image"), QStringLiteral("Image.SizeRatio"),
appendSection(u"AdvancedPhoto"_s, tr("Advanced photo", "Section name.")); tr("Aspect ratio"), imageRatioString);
appendSection(u"GPS"_s, tr("GPS", "Section name.")); if (imgReader.supportsAnimation() && imgReader.imageCount() > 1) {
appendSection(u"File"_s, tr("File", "Section name.")); appendProperty(QStringLiteral("Image"), QStringLiteral("Image.FrameCount"),
tr("Frame count"), QString::number(imgReader.imageCount()));
if (imgReader.supportsOption(QImageIOHandler::Size)) { }
appendProperty(u"Image"_s, u"Image.Dimensions"_s,
tr("Dimensions"), imageDimensionsString); appendProperty(QStringLiteral("File"), QStringLiteral("File.Name"),
appendProperty(u"Image"_s, u"Image.SizeRatio"_s, tr("Name"), fileInfo.fileName());
tr("Aspect ratio"), imageRatioString); appendProperty(QStringLiteral("File"), QStringLiteral("File.ItemType"),
} tr("Item type"), itemTypeString);
if (imgReader.supportsAnimation() && imgReader.imageCount() > 1) { appendProperty(QStringLiteral("File"), QStringLiteral("File.Path"),
appendProperty(u"Image"_s, u"Image.FrameCount"_s, tr("Folder path"), fileInfo.path());
tr("Frame count"), QString::number(imgReader.imageCount())); appendProperty(QStringLiteral("File"), QStringLiteral("File.Size"),
} tr("Size"), sizeString);
appendProperty(QStringLiteral("File"), QStringLiteral("File.CreatedTime"),
appendProperty(u"File"_s, u"File.Name"_s, tr("Date created"), birthTimeString);
tr("Name"), fileInfo.fileName()); appendProperty(QStringLiteral("File"), QStringLiteral("File.LastModified"),
appendProperty(u"File"_s, u"File.ItemType"_s, tr("Date modified"), lastModifiedTimeString);
tr("Item type"), itemTypeString);
appendProperty(u"File"_s, u"File.Path"_s, Exiv2Wrapper wrapper;
tr("Folder path"), QDir::toNativeSeparators(fileInfo.path())); if (wrapper.load(imageFilePath)) {
appendProperty(u"File"_s, u"File.Size"_s, wrapper.cacheSections();
tr("Size"), sizeString);
appendProperty(u"File"_s, u"File.CreatedTime"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("Description"),
tr("Date created"), birthTimeString); QStringLiteral("Exif.Image.Rating"), tr("Rating"));
appendProperty(u"File"_s, u"File.LastModified"_s, appendPropertyIfNotEmpty(QStringLiteral("Description"), QStringLiteral("Description.Comments"),
tr("Date modified"), lastModifiedTimeString); tr("Comments"), wrapper.comment());
Exiv2Wrapper wrapper; appendExivPropertyIfExist(wrapper, QStringLiteral("Origin"),
if (wrapper.load(imageFilePath)) { QStringLiteral("Exif.Image.Artist"), tr("Authors"));
wrapper.cacheSections(); appendExivPropertyIfExist(wrapper, QStringLiteral("Origin"),
QStringLiteral("Exif.Photo.DateTimeOriginal"), tr("Date taken"));
appendExivPropertyIfExist(wrapper, u"Description"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("Origin"),
u"Xmp.dc.title"_s, tr("Title"), true); QStringLiteral("Exif.Image.Software"), tr("Program name"));
appendExivPropertyIfExist(wrapper, u"Description"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("Origin"),
u"Exif.Image.ImageDescription"_s, tr("Subject"), true); QStringLiteral("Exif.Image.Copyright"), tr("Copyright"));
appendExivPropertyIfExist(wrapper, u"Description"_s,
u"Exif.Image.Rating"_s, tr("Rating")); appendExivPropertyIfExist(wrapper, QStringLiteral("Image"),
appendExivPropertyIfExist(wrapper, u"Description"_s, QStringLiteral("Exif.Image.XResolution"), tr("Horizontal resolution"));
u"Xmp.dc.subject"_s, tr("Tags")); appendExivPropertyIfExist(wrapper, QStringLiteral("Image"),
appendPropertyIfNotEmpty(u"Description"_s, u"Description.Comments"_s, QStringLiteral("Exif.Image.YResolution"), tr("Vertical resolution"));
tr("Comments"), wrapper.comment()); appendExivPropertyIfExist(wrapper, QStringLiteral("Image"),
QStringLiteral("Exif.Image.ResolutionUnit"), tr("Resolution unit"));
appendExivPropertyIfExist(wrapper, u"Origin"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("Image"),
u"Exif.Image.Artist"_s, tr("Authors")); QStringLiteral("Exif.Photo.ColorSpace"), tr("Colour representation"));
appendExivPropertyIfExist(wrapper, u"Origin"_s,
u"Exif.Photo.DateTimeOriginal"_s, tr("Date taken")); appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
// FIXME: We may fetch the same type of metadata from different metadata collection. QStringLiteral("Exif.Image.Make"), tr("Camera maker"));
// Current implementation is not pretty and may need to do a rework... appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
// appendExivPropertyIfExist(wrapper, QStringLiteral("Origin"), QStringLiteral("Exif.Image.Model"), tr("Camera model"));
// QStringLiteral("Xmp.xmp.CreatorTool"), tr("Program name")); appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
appendExivPropertyIfExist(wrapper, u"Origin"_s, QStringLiteral("Exif.Photo.FNumber"), tr("F-stop"));
u"Exif.Image.Software"_s, tr("Program name")); appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
appendExivPropertyIfExist(wrapper, u"Origin"_s, QStringLiteral("Exif.Photo.ExposureTime"), tr("Exposure time"));
u"Exif.Image.Copyright"_s, tr("Copyright")); appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
QStringLiteral("Exif.Photo.ISOSpeedRatings"), tr("ISO speed"));
appendExivPropertyIfExist(wrapper, u"Image"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
u"Exif.Image.XResolution"_s, tr("Horizontal resolution")); QStringLiteral("Exif.Photo.ExposureBiasValue"), tr("Exposure bias"));
appendExivPropertyIfExist(wrapper, u"Image"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
u"Exif.Image.YResolution"_s, tr("Vertical resolution")); QStringLiteral("Exif.Photo.FocalLength"), tr("Focal length"));
appendExivPropertyIfExist(wrapper, u"Image"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
u"Exif.Image.ResolutionUnit"_s, tr("Resolution unit")); QStringLiteral("Exif.Photo.MaxApertureValue"), tr("Max aperture"));
appendExivPropertyIfExist(wrapper, u"Image"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
u"Exif.Photo.ColorSpace"_s, tr("Colour representation")); QStringLiteral("Exif.Photo.MeteringMode"), tr("Metering mode"));
appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
appendExivPropertyIfExist(wrapper, u"Camera"_s, QStringLiteral("Exif.Photo.Flash"), tr("Flash mode"));
u"Exif.Image.Make"_s, tr("Camera maker")); appendExivPropertyIfExist(wrapper, QStringLiteral("Camera"),
appendExivPropertyIfExist(wrapper, u"Camera"_s, QStringLiteral("Exif.Photo.FocalLengthIn35mmFilm"), tr("35mm focal length"));
u"Exif.Image.Model"_s, tr("Camera model"));
appendExivPropertyIfExist(wrapper, u"Camera"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
u"Exif.Photo.FNumber"_s, tr("F-stop")); QStringLiteral("Exif.Photo.LensModel"), tr("Lens model"));
appendExivPropertyIfExist(wrapper, u"Camera"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
u"Exif.Photo.ExposureTime"_s, tr("Exposure time")); QStringLiteral("Exif.Photo.BrightnessValue"), tr("Brightness"));
appendExivPropertyIfExist(wrapper, u"Camera"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
u"Exif.Photo.ISOSpeedRatings"_s, tr("ISO speed")); QStringLiteral("Exif.Photo.ExposureProgram"), tr("Exposure program"));
appendExivPropertyIfExist(wrapper, u"Camera"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
u"Exif.Photo.ExposureBiasValue"_s, tr("Exposure bias")); QStringLiteral("Exif.Photo.Saturation"), tr("Saturation"));
appendExivPropertyIfExist(wrapper, u"Camera"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
u"Exif.Photo.FocalLength"_s, tr("Focal length")); QStringLiteral("Exif.Photo.Sharpness"), tr("Sharpness"));
appendExivPropertyIfExist(wrapper, u"Camera"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
u"Exif.Photo.MaxApertureValue"_s, tr("Max aperture")); QStringLiteral("Exif.Photo.WhiteBalance"), tr("White balance"));
appendExivPropertyIfExist(wrapper, u"Camera"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
u"Exif.Photo.MeteringMode"_s, tr("Metering mode")); QStringLiteral("Exif.Photo.DigitalZoomRatio"), tr("Digital zoom"));
appendExivPropertyIfExist(wrapper, u"Camera"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("AdvancedPhoto"),
u"Exif.Photo.SubjectDistance"_s, tr("Subject distance")); QStringLiteral("Exif.Photo.ExifVersion"), tr("EXIF version"));
appendExivPropertyIfExist(wrapper, u"Camera"_s,
u"Exif.Photo.Flash"_s, tr("Flash mode")); appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
appendExivPropertyIfExist(wrapper, u"Camera"_s, QStringLiteral("Exif.GPSInfo.GPSLatitudeRef"), tr("Latitude reference"));
u"Exif.Photo.FocalLengthIn35mmFilm"_s, tr("35mm focal length")); appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
QStringLiteral("Exif.GPSInfo.GPSLatitude"), tr("Latitude"));
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
u"Exif.Photo.LensModel"_s, tr("Lens model")); QStringLiteral("Exif.GPSInfo.GPSLongitudeRef"), tr("Longitude reference"));
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
u"Exif.Photo.Contrast"_s, tr("Contrast")); QStringLiteral("Exif.GPSInfo.GPSLongitude"), tr("Longitude"));
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
u"Exif.Photo.BrightnessValue"_s, tr("Brightness")); QStringLiteral("Exif.GPSInfo.GPSAltitudeRef"), tr("Altitude reference"));
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s, appendExivPropertyIfExist(wrapper, QStringLiteral("GPS"),
u"Exif.Photo.ExposureProgram"_s, tr("Exposure program")); QStringLiteral("Exif.GPSInfo.GPSAltitude"), tr("Altitude"));
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s,
u"Exif.Photo.Saturation"_s, tr("Saturation")); }
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s, }
u"Exif.Photo.Sharpness"_s, tr("Sharpness"));
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s, QString MetadataModel::imageSize(const QSize &size)
u"Exif.Photo.WhiteBalance"_s, tr("White balance")); {
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s, QString imageSize;
u"Exif.Photo.DigitalZoomRatio"_s, tr("Digital zoom"));
appendExivPropertyIfExist(wrapper, u"AdvancedPhoto"_s, if (size.isValid()) {
u"Exif.Photo.ExifVersion"_s, tr("EXIF version")); imageSize = tr("%1 x %2").arg(QString::number(size.width()), QString::number(size.height()));
} else {
appendExivPropertyIfExist(wrapper, u"GPS"_s, imageSize = QLatin1Char('-');
u"Exif.GPSInfo.GPSLatitudeRef"_s, tr("Latitude reference")); }
appendExivPropertyIfExist(wrapper, u"GPS"_s,
u"Exif.GPSInfo.GPSLatitude"_s, tr("Latitude")); return imageSize;
appendExivPropertyIfExist(wrapper, u"GPS"_s, }
u"Exif.GPSInfo.GPSLongitudeRef"_s, tr("Longitude reference"));
appendExivPropertyIfExist(wrapper, u"GPS"_s, int simplegcd(int a, int b) {
u"Exif.GPSInfo.GPSLongitude"_s, tr("Longitude")); return b == 0 ? a : simplegcd(b, a % b);
appendExivPropertyIfExist(wrapper, u"GPS"_s, }
u"Exif.GPSInfo.GPSAltitudeRef"_s, tr("Altitude reference"));
appendExivPropertyIfExist(wrapper, u"GPS"_s, QString MetadataModel::imageSizeRatio(const QSize &size)
u"Exif.GPSInfo.GPSAltitude"_s, tr("Altitude")); {
if (!size.isValid()) {
} return QStringLiteral("-");
} }
int gcd = simplegcd(size.width(), size.height());
QString MetadataModel::imageSize(const QSize &size) return tr("%1 : %2").arg(QString::number(size.width() / gcd), QString::number(size.height() / gcd));
{ }
QString imageSize;
bool MetadataModel::appendSection(const QString &sectionKey, const QString &sectionDisplayName)
if (size.isValid()) { {
imageSize = tr("%1 x %2").arg(QString::number(size.width()), QString::number(size.height())); if (m_sections.contains(sectionKey)) {
} else { return false;
imageSize = QLatin1Char('-'); }
}
m_sections.append(sectionKey);
return imageSize; m_sectionProperties[sectionKey] = qMakePair<QString, QList<QString> >(sectionDisplayName, {});
}
return true;
int simplegcd(int a, int b) { }
return b == 0 ? a : simplegcd(b, a % b);
} bool MetadataModel::appendPropertyIfNotEmpty(const QString &sectionKey, const QString &propertyKey, const QString &propertyDisplayName, const QString &propertyValue)
{
QString MetadataModel::imageSizeRatio(const QSize &size) if (propertyValue.isEmpty()) return false;
{
if (!size.isValid()) { return appendProperty(sectionKey, propertyKey, propertyDisplayName, propertyValue);
return QStringLiteral("-"); }
}
int gcd = simplegcd(size.width(), size.height()); bool MetadataModel::appendProperty(const QString &sectionKey, const QString &propertyKey, const QString &propertyDisplayName, const QString &propertyValue)
return tr("%1 : %2").arg(QString::number(size.width() / gcd), QString::number(size.height() / gcd)); {
} if (!m_sections.contains(sectionKey)) {
return false;
bool MetadataModel::appendSection(const QString &sectionKey, QStringView sectionDisplayName) }
{
if (m_sections.contains(sectionKey)) { QList<QString> & propertyList = m_sectionProperties[sectionKey].second;
return false; if (!propertyList.contains(propertyKey)) {
} propertyList.append(propertyKey);
}
m_sections.append(sectionKey);
m_sectionProperties[sectionKey] = qMakePair<QString, QList<QString> >(sectionDisplayName.toString(), {}); m_properties[propertyKey] = qMakePair<QString, QString>(propertyDisplayName, propertyValue);
return true; return true;
} }
bool MetadataModel::appendPropertyIfNotEmpty(const QString &sectionKey, const QString &propertyKey, const QString &propertyDisplayName, const QString &propertyValue) bool MetadataModel::updateProperty(const QString &propertyKey, const QString &propertyValue)
{ {
if (propertyValue.isEmpty()) return false; if (m_properties.contains(propertyKey)) {
m_properties[propertyKey].second = propertyValue;
return appendProperty(sectionKey, propertyKey, propertyDisplayName, propertyValue); return true;
} }
bool MetadataModel::appendProperty(const QString &sectionKey, const QString &propertyKey, QStringView propertyDisplayName, QStringView propertyValue) return false;
{ }
if (!m_sections.contains(sectionKey)) {
return false; bool MetadataModel::appendExivPropertyIfExist(const Exiv2Wrapper &wrapper, const QString &sectionKey, const QString &exiv2propertyKey, const QString &propertyDisplayName)
} {
const QString & value = wrapper.value(exiv2propertyKey);
QList<QString> & propertyList = m_sectionProperties[sectionKey].second; if (!value.isEmpty()) {
if (!propertyList.contains(propertyKey)) { appendProperty(sectionKey, exiv2propertyKey,
propertyList.append(propertyKey); propertyDisplayName.isEmpty() ? wrapper.label(exiv2propertyKey) : propertyDisplayName,
} value);
return true;
m_properties[propertyKey] = qMakePair<QString, QString>(propertyDisplayName.toString(), propertyValue.toString()); }
return false;
return true; }
}
QModelIndex MetadataModel::index(int row, int column, const QModelIndex &parent) const
bool MetadataModel::appendExivPropertyIfExist(const Exiv2Wrapper &wrapper, const QString &sectionKey, const QString &exiv2propertyKey, const QString &propertyDisplayName, bool isXmpString) {
{ if (!hasIndex(row, column, parent)) {
const QString & value = wrapper.value(exiv2propertyKey); return QModelIndex();
if (!value.isEmpty()) { }
appendProperty(sectionKey, exiv2propertyKey,
propertyDisplayName.isEmpty() ? wrapper.label(exiv2propertyKey) : propertyDisplayName, if (!parent.isValid()) {
isXmpString ? Exiv2Wrapper::XmpValue(value) : value); return createIndex(row, column, RowType::SectionRow);
return true; } else {
} // internalid param: row means nth section it belongs to.
return false; return createIndex(row, column, RowType::PropertyRow + parent.row());
} }
}
QModelIndex MetadataModel::index(int row, int column, const QModelIndex &parent) const
{ QModelIndex MetadataModel::parent(const QModelIndex &child) const
if (!hasIndex(row, column, parent)) { {
return QModelIndex(); if (!child.isValid()) {
} return QModelIndex();
}
if (!parent.isValid()) {
return createIndex(row, column, RowType::SectionRow); if (child.internalId() == RowType::SectionRow) {
} else { return QModelIndex();
// internalid param: row means nth section it belongs to. } else {
return createIndex(row, column, RowType::PropertyRow + parent.row()); return createIndex(child.internalId() - RowType::PropertyRow, 0, SectionRow);
} }
} }
QModelIndex MetadataModel::parent(const QModelIndex &child) const int MetadataModel::rowCount(const QModelIndex &parent) const
{ {
if (!child.isValid()) { if (!parent.isValid()) {
return QModelIndex(); return m_sections.count();
} }
if (child.internalId() == RowType::SectionRow) { if (parent.internalId() == RowType::SectionRow) {
return QModelIndex(); const QString & sectionKey = m_sections[parent.row()];
} else { return m_sectionProperties[sectionKey].second.count();
return createIndex(child.internalId() - RowType::PropertyRow, 0, SectionRow); }
}
} return 0;
}
int MetadataModel::rowCount(const QModelIndex &parent) const
{ int MetadataModel::columnCount(const QModelIndex &) const
if (!parent.isValid()) { {
return m_sections.count(); // Always key(display name) and value.
} return 2;
}
if (parent.internalId() == RowType::SectionRow) {
const QString & sectionKey = m_sections[parent.row()]; QVariant MetadataModel::data(const QModelIndex &index, int role) const
return m_sectionProperties[sectionKey].second.count(); {
} if (!index.isValid()) {
return QVariant();
return 0; }
}
if (role != Qt::DisplayRole) {
int MetadataModel::columnCount(const QModelIndex &) const return QVariant();
{ }
// Always key(display name) and value.
return 2; if (index.internalId() == RowType::SectionRow) {
} return (index.column() == 0) ? m_sectionProperties[m_sections[index.row()]].first
: QVariant();
QVariant MetadataModel::data(const QModelIndex &index, int role) const } else {
{ int sectionIndex = index.internalId() - RowType::PropertyRow;
if (!index.isValid()) { const QString & sectionKey = m_sections[sectionIndex];
return QVariant(); const QList<QString> & propertyList = m_sectionProperties[sectionKey].second;
} return (index.column() == 0) ? m_properties[propertyList[index.row()]].first
: m_properties[propertyList[index.row()]].second;
if (role != Qt::DisplayRole) { }
return QVariant(); }
}
QVariant MetadataModel::headerData(int section, Qt::Orientation orientation, int role) const
if (index.internalId() == RowType::SectionRow) { {
return (index.column() == 0) ? m_sectionProperties[m_sections[index.row()]].first if (orientation == Qt::Vertical || role != Qt::DisplayRole) {
: QVariant(); return QVariant();
} else { }
int sectionIndex = index.internalId() - RowType::PropertyRow;
const QString & sectionKey = m_sections[sectionIndex]; return section == 0 ? tr("Property") : tr("Value");
const QList<QString> & propertyList = m_sectionProperties[sectionKey].second; }
return (index.column() == 0) ? m_properties[propertyList[index.row()]].first
: m_properties[propertyList[index.row()]].second;
}
}
QVariant MetadataModel::headerData(int section, Qt::Orientation orientation, int role) const
{
if (orientation == Qt::Vertical || role != Qt::DisplayRole) {
return QVariant();
}
return section == 0 ? tr("Property") : tr("Value");
}

View File

@ -1,52 +1,48 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #ifndef METADATAMODEL_H
// #define METADATAMODEL_H
// SPDX-License-Identifier: MIT
#include <QAbstractItemModel>
#ifndef METADATAMODEL_H
#define METADATAMODEL_H class Exiv2Wrapper;
class MetadataModel : public QAbstractItemModel
#include <QAbstractItemModel> {
Q_OBJECT
class Exiv2Wrapper;
class MetadataModel : public QAbstractItemModel public:
{ explicit MetadataModel(QObject *parent = nullptr);
Q_OBJECT ~MetadataModel();
public: void setFile(const QString & imageFilePath);
explicit MetadataModel(QObject *parent = nullptr); static QString imageSize(const QSize &size);
~MetadataModel(); static QString imageSizeRatio(const QSize &size);
bool appendSection(const QString & sectionKey, const QString & sectionDisplayName);
void setFile(const QString & imageFilePath); bool appendPropertyIfNotEmpty(const QString & sectionKey, const QString & propertyKey,
static QString imageSize(const QSize &size); const QString & propertyDisplayName, const QString & propertyValue = QString());
static QString imageSizeRatio(const QSize &size); bool appendProperty(const QString & sectionKey, const QString & propertyKey,
bool appendSection(const QString & sectionKey, QStringView sectionDisplayName); const QString & propertyDisplayName, const QString & propertyValue = QString());
bool appendPropertyIfNotEmpty(const QString & sectionKey, const QString & propertyKey, bool updateProperty(const QString & propertyKey, const QString & propertyValue);
const QString & propertyDisplayName, const QString & propertyValue = QString()); bool appendExivPropertyIfExist(const Exiv2Wrapper & wrapper, const QString & sectionKey,
bool appendProperty(const QString & sectionKey, const QString & propertyKey, const QString & exiv2propertyKey, const QString & propertyDisplayName = QString());
QStringView propertyDisplayName, QStringView propertyValue = QString());
bool appendExivPropertyIfExist(const Exiv2Wrapper & wrapper, const QString & sectionKey, private:
const QString & exiv2propertyKey, const QString & propertyDisplayName = QString(), enum RowType : quintptr {
bool isXmpString = false); SectionRow,
PropertyRow,
private: };
enum RowType : quintptr {
SectionRow, QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
PropertyRow, QModelIndex parent(const QModelIndex &child) const override;
}; int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex & = QModelIndex()) const override;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
QModelIndex parent(const QModelIndex &child) const override; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex & = QModelIndex()) const override; // [SECTION_KEY]
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; QList<QString> m_sections;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; // {SECTION_KEY: (SECTION_DISPLAY_NAME, [PROPERTY_KEY])}
QMap<QString, QPair<QString, QList<QString> > > m_sectionProperties;
// [SECTION_KEY] // {PROPERTY_KEY: (PROPERTY_DISPLAY_NAME, PROPERTY_VALUE)}
QList<QString> m_sections; QMap<QString, QPair<QString, QString> > m_properties;
// {SECTION_KEY: (SECTION_DISPLAY_NAME, [PROPERTY_KEY])} };
QMap<QString, QPair<QString, QList<QString> > > m_sectionProperties;
// {PROPERTY_KEY: (PROPERTY_DISPLAY_NAME, PROPERTY_VALUE)} #endif // METADATAMODEL_H
QMap<QString, QPair<QString, QString> > m_properties;
};
#endif // METADATAMODEL_H

View File

@ -1,91 +1,82 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "navigatorview.h"
//
// SPDX-License-Identifier: MIT #include "graphicsview.h"
#include "opacityhelper.h"
#include "navigatorview.h"
#include <QMouseEvent>
#include "graphicsview.h" #include <QDebug>
#include "opacityhelper.h"
NavigatorView::NavigatorView(QWidget *parent)
#include <QMouseEvent> : QGraphicsView (parent)
#include <QDebug> , m_viewportRegion(this->rect())
#include <QTimer> , m_opacityHelper(new OpacityHelper(this))
{
NavigatorView::NavigatorView(QWidget *parent) setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
: QGraphicsView (parent) setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
, m_viewportRegion(this->rect()) setStyleSheet("background-color: rgba(0, 0, 0, 120);"
, m_opacityHelper(new OpacityHelper(this)) "border-radius: 3px;");
{ }
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); // doesn't take or manage its ownership
setStyleSheet("background-color: rgba(0, 0, 0, 120);" void NavigatorView::setMainView(GraphicsView *mainView)
"border-radius: 3px;"); {
} m_mainView = mainView;
}
// doesn't take or manage its ownership
void NavigatorView::setMainView(GraphicsView *mainView) void NavigatorView::setOpacity(qreal opacity, bool animated)
{ {
m_mainView = mainView; m_opacityHelper->setOpacity(opacity, animated);
} }
void NavigatorView::setOpacity(qreal opacity, bool animated) void NavigatorView::updateMainViewportRegion()
{ {
m_opacityHelper->setOpacity(opacity, animated); if (m_mainView != nullptr) {
} m_viewportRegion = mapFromScene(m_mainView->mapToScene(m_mainView->rect()));
update();
void NavigatorView::updateMainViewportRegion() }
{ }
// Use QTimer::singleShot with lambda to delay the update
// This ensures all geometry updates are complete before calculating viewport region void NavigatorView::mousePressEvent(QMouseEvent *event)
QTimer::singleShot(0, [this]() { {
if (m_mainView != nullptr) { m_mouseDown = true;
m_viewportRegion = mapFromScene(m_mainView->mapToScene(m_mainView->rect()));
update(); if (m_mainView) {
} m_mainView->centerOn(mapToScene(event->pos()));
}); update();
} }
void NavigatorView::mousePressEvent(QMouseEvent *event) event->accept();
{ }
m_mouseDown = true;
void NavigatorView::mouseMoveEvent(QMouseEvent *event)
if (m_mainView) { {
m_mainView->centerOn(mapToScene(event->pos())); if (m_mouseDown && m_mainView) {
update(); m_mainView->centerOn(mapToScene(event->pos()));
} update();
event->accept();
event->accept(); } else {
} event->ignore();
}
void NavigatorView::mouseMoveEvent(QMouseEvent *event) }
{
if (m_mouseDown && m_mainView) { void NavigatorView::mouseReleaseEvent(QMouseEvent *event)
m_mainView->centerOn(mapToScene(event->pos())); {
update(); m_mouseDown = false;
event->accept();
} else { event->accept();
event->ignore(); }
}
} void NavigatorView::wheelEvent(QWheelEvent *event)
{
void NavigatorView::mouseReleaseEvent(QMouseEvent *event) event->ignore();
{ return QGraphicsView::wheelEvent(event);
m_mouseDown = false; }
event->accept(); void NavigatorView::paintEvent(QPaintEvent *event)
} {
QGraphicsView::paintEvent(event);
void NavigatorView::wheelEvent(QWheelEvent *event)
{ QPainter painter(viewport());
event->ignore(); painter.setPen(QPen(Qt::gray, 2));
return QGraphicsView::wheelEvent(event); painter.drawRect(m_viewportRegion.boundingRect());
} }
void NavigatorView::paintEvent(QPaintEvent *event)
{
QGraphicsView::paintEvent(event);
QPainter painter(viewport());
painter.setPen(QPen(Qt::gray, 2));
painter.drawRect(m_viewportRegion.boundingRect());
}

View File

@ -1,38 +1,34 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #ifndef NAVIGATORVIEW_H
// #define NAVIGATORVIEW_H
// SPDX-License-Identifier: MIT
#include <QGraphicsView>
#ifndef NAVIGATORVIEW_H
#define NAVIGATORVIEW_H class OpacityHelper;
class GraphicsView;
#include <QGraphicsView> class NavigatorView : public QGraphicsView
{
class OpacityHelper; Q_OBJECT
class GraphicsView; public:
class NavigatorView : public QGraphicsView NavigatorView(QWidget *parent = nullptr);
{
Q_OBJECT void setMainView(GraphicsView *mainView);
public: void setOpacity(qreal opacity, bool animated = true);
NavigatorView(QWidget *parent = nullptr);
public slots:
void setMainView(GraphicsView *mainView); void updateMainViewportRegion();
void setOpacity(qreal opacity, bool animated = true);
private:
public slots: void mousePressEvent(QMouseEvent * event) override;
void updateMainViewportRegion(); void mouseMoveEvent(QMouseEvent * event) override;
void mouseReleaseEvent(QMouseEvent * event) override;
private:
void mousePressEvent(QMouseEvent * event) override; void wheelEvent(QWheelEvent *event) override;
void mouseMoveEvent(QMouseEvent * event) override; void paintEvent(QPaintEvent *event) override;
void mouseReleaseEvent(QMouseEvent * event) override;
bool m_mouseDown = false;
void wheelEvent(QWheelEvent *event) override; QPolygon m_viewportRegion;
void paintEvent(QPaintEvent *event) override; QGraphicsView *m_mainView = nullptr;
OpacityHelper *m_opacityHelper = nullptr;
bool m_mouseDown = false; };
QPolygon m_viewportRegion;
QGraphicsView *m_mainView = nullptr; #endif // NAVIGATORVIEW_H
OpacityHelper *m_opacityHelper = nullptr;
};
#endif // NAVIGATORVIEW_H

View File

@ -1,31 +1,27 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "opacityhelper.h"
//
// SPDX-License-Identifier: MIT #include <QGraphicsOpacityEffect>
#include <QPropertyAnimation>
#include "opacityhelper.h"
OpacityHelper::OpacityHelper(QWidget *parent)
#include <QGraphicsOpacityEffect> : QObject(parent)
#include <QPropertyAnimation> , m_opacityFx(new QGraphicsOpacityEffect(parent))
, m_opacityAnimation(new QPropertyAnimation(m_opacityFx, "opacity"))
OpacityHelper::OpacityHelper(QWidget *parent) {
: QObject(parent) parent->setGraphicsEffect(m_opacityFx);
, m_opacityFx(new QGraphicsOpacityEffect(parent))
, m_opacityAnimation(new QPropertyAnimation(m_opacityFx, "opacity")) m_opacityAnimation->setDuration(300);
{ }
parent->setGraphicsEffect(m_opacityFx);
void OpacityHelper::setOpacity(qreal opacity, bool animated)
m_opacityAnimation->setDuration(300); {
} if (!animated) {
m_opacityFx->setOpacity(opacity);
void OpacityHelper::setOpacity(qreal opacity, bool animated) return;
{ }
if (!animated) {
m_opacityFx->setOpacity(opacity); m_opacityAnimation->stop();
return; m_opacityAnimation->setStartValue(m_opacityFx->opacity());
} m_opacityAnimation->setEndValue(opacity);
m_opacityAnimation->start();
m_opacityAnimation->stop(); }
m_opacityAnimation->setStartValue(m_opacityFx->opacity());
m_opacityAnimation->setEndValue(opacity);
m_opacityAnimation->start();
}

View File

@ -1,27 +1,23 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #ifndef OPACITYHELPER_H
// #define OPACITYHELPER_H
// SPDX-License-Identifier: MIT
#include <QWidget>
#ifndef OPACITYHELPER_H
#define OPACITYHELPER_H QT_BEGIN_NAMESPACE
class QGraphicsOpacityEffect;
#include <QWidget> class QPropertyAnimation;
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
class QGraphicsOpacityEffect; class OpacityHelper : QObject
class QPropertyAnimation; {
QT_END_NAMESPACE public:
OpacityHelper(QWidget * parent);
class OpacityHelper : QObject
{ void setOpacity(qreal opacity, bool animated = true);
public:
OpacityHelper(QWidget * parent); protected:
QGraphicsOpacityEffect * m_opacityFx;
void setOpacity(qreal opacity, bool animated = true); QPropertyAnimation * m_opacityAnimation;
};
protected:
QGraphicsOpacityEffect * m_opacityFx; #endif // OPACITYHELPER_H
QPropertyAnimation * m_opacityAnimation;
};
#endif // OPACITYHELPER_H

View File

@ -1,283 +1,164 @@
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net> #include "playlistmanager.h"
//
// SPDX-License-Identifier: MIT #include <QCollator>
#include <QDir>
#include "playlistmanager.h" #include <QFileInfo>
#include <QUrl>
#include <QCollator>
#include <QDir> PlaylistManager::PlaylistManager(PlaylistType type, QObject *parent)
#include <QFileInfo> : QObject(parent)
#include <QUrl> , m_type(type)
{
PlaylistModel::PlaylistModel(QObject *parent)
: QAbstractListModel(parent) }
{
PlaylistManager::~PlaylistManager()
} {
PlaylistModel::~PlaylistModel() }
= default;
void PlaylistManager::setPlaylistType(PlaylistManager::PlaylistType type)
void PlaylistModel::setPlaylist(const QList<QUrl> &urls) {
{ m_type = type;
beginResetModel(); }
m_playlist = urls;
endResetModel(); PlaylistManager::PlaylistType PlaylistManager::playlistType() const
} {
return m_type;
QModelIndex PlaylistModel::loadPlaylist(const QList<QUrl> & urls) }
{
if (urls.isEmpty()) return {}; QStringList PlaylistManager::autoLoadFilterSuffix() const
if (urls.count() == 1) { {
return loadPlaylist(urls.constFirst()); return m_autoLoadSuffix;
} else { }
setPlaylist(urls);
return index(0); void PlaylistManager::setAutoLoadFilterSuffix(const QStringList & nameFilters)
} {
} m_autoLoadSuffix = nameFilters;
}
QModelIndex PlaylistModel::loadPlaylist(const QUrl &url)
{ void PlaylistManager::clear()
QFileInfo info(url.toLocalFile()); {
QDir dir(info.path()); m_currentIndex = -1;
QString && currentFileName = info.fileName(); m_playlist.clear();
}
if (dir.path() == m_currentDir) {
int idx = indexOf(url); void PlaylistManager::setPlaylist(const QList<QUrl> &urls)
return idx == -1 ? appendToPlaylist(url) : index(idx); {
} m_playlist = urls;
}
QStringList entryList = dir.entryList(
m_autoLoadSuffixes, void PlaylistManager::setCurrentFile(const QString & filePath)
QDir::Files | QDir::NoSymLinks, QDir::NoSort); {
QFileInfo info(filePath);
QCollator collator; QDir dir(info.path());
collator.setNumericMode(true); QString && currentFileName = info.fileName();
std::sort(entryList.begin(), entryList.end(), collator); switch (playlistType()) {
case PL_SAMEFOLDER: {
QList<QUrl> playlist; if (dir.path() == m_currentDir) {
int index = indexOf(filePath);
int idx = -1; m_currentIndex = index == -1 ? appendFile(filePath) : index;
for (int i = 0; i < entryList.count(); i++) { } else {
const QString & fileName = entryList.at(i); QStringList entryList = dir.entryList(
const QString & oneEntry = dir.absoluteFilePath(fileName); m_autoLoadSuffix,
const QUrl & url = QUrl::fromLocalFile(oneEntry); QDir::Files | QDir::NoSymLinks, QDir::NoSort);
playlist.append(url);
if (fileName == currentFileName) { QCollator collator;
idx = i; collator.setNumericMode(true);
}
} std::sort(entryList.begin(), entryList.end(), collator);
if (idx == -1) {
idx = playlist.count(); clear();
playlist.append(url);
} int index = -1;
m_currentDir = dir.path(); for (int i = 0; i < entryList.count(); i++) {
const QString & fileName = entryList.at(i);
setPlaylist(playlist); const QString & oneEntry = dir.absoluteFilePath(fileName);
const QUrl & url = QUrl::fromLocalFile(oneEntry);
return index(idx); m_playlist.append(url);
} if (fileName == currentFileName) {
index = i;
QModelIndex PlaylistModel::appendToPlaylist(const QUrl &url) }
{ }
const int lastIndex = rowCount(); m_currentIndex = index == -1 ? appendFile(filePath) : index;
beginInsertRows(QModelIndex(), lastIndex, lastIndex); m_currentDir = dir.path();
m_playlist.append(url); }
endInsertRows(); break;
return index(lastIndex); }
} case PL_USERPLAYLIST:{
int index = indexOf(filePath);
bool PlaylistModel::removeAt(int index) m_currentIndex = index == -1 ? appendFile(filePath) : index;
{ break;
if (index < 0 || index >= rowCount()) return false; }
beginRemoveRows(QModelIndex(), index, index); default:
m_playlist.removeAt(index); break;
endRemoveRows(); }
return true;
} emit loaded(m_playlist.count());
}
int PlaylistModel::indexOf(const QUrl &url) const
{ void PlaylistManager::setCurrentIndex(int index)
return m_playlist.indexOf(url); {
} if (index < 0 || index >= m_playlist.count()) return;
m_currentIndex = index;
QUrl PlaylistModel::urlByIndex(int index) const }
{
return m_playlist.value(index); int PlaylistManager::appendFile(const QString &filePath)
} {
int index = m_playlist.length();
QStringList PlaylistModel::autoLoadFilterSuffixes() const m_playlist.append(QUrl::fromLocalFile(filePath));
{
return m_autoLoadSuffixes; return index;
} }
QHash<int, QByteArray> PlaylistModel::roleNames() const int PlaylistManager::indexOf(const QString &filePath)
{ {
QHash<int, QByteArray> result = QAbstractListModel::roleNames(); const QUrl & url = QUrl::fromLocalFile(filePath);
result.insert(UrlRole, "url"); return m_playlist.indexOf(url);
return result; }
}
std::tuple<int, QString> PlaylistManager::previousFile() const
int PlaylistModel::rowCount(const QModelIndex &parent) const {
{ int count = m_playlist.count();
return m_playlist.count(); if (count == 0) return std::make_tuple(-1, QString());
}
int index = m_currentIndex - 1 < 0 ? count - 1 : m_currentIndex - 1;
QVariant PlaylistModel::data(const QModelIndex &index, int role) const return std::make_tuple(index, m_playlist.at(index).toLocalFile());
{ }
if (!index.isValid()) return {};
std::tuple<int, QString> PlaylistManager::nextFile() const
switch (role) { {
case Qt::DisplayRole: int count = m_playlist.count();
return m_playlist.at(index.row()).fileName(); if (count == 0) return std::make_tuple(-1, QString());
case UrlRole:
return m_playlist.at(index.row()); int index = m_currentIndex + 1 == count ? 0 : m_currentIndex + 1;
} return std::make_tuple(index, m_playlist.at(index).toLocalFile());
}
return {};
} std::tuple<int, QString> PlaylistManager::currentFile() const
{
PlaylistManager::PlaylistManager(QObject *parent) if (m_playlist.count() == 0) return std::make_tuple(-1, QString());
: QObject(parent)
{ return std::make_tuple(m_currentIndex, m_playlist.at(m_currentIndex).toLocalFile());
connect(&m_model, &PlaylistModel::rowsRemoved, this, }
[this](const QModelIndex &, int, int) {
if (m_model.rowCount() <= m_currentIndex) { std::tuple<int, QUrl> PlaylistManager::currentFileUrl() const
setProperty("currentIndex", m_currentIndex - 1); {
} if (m_playlist.count() == 0) return std::make_tuple(-1, QUrl());
});
return std::make_tuple(m_currentIndex, m_playlist.at(m_currentIndex));
auto onRowCountChanged = [this](){ }
emit totalCountChanged(m_model.rowCount());
}; QList<QUrl> PlaylistManager::convertToUrlList(const QStringList &files)
{
connect(&m_model, &PlaylistModel::rowsInserted, this, onRowCountChanged); QList<QUrl> urlList;
connect(&m_model, &PlaylistModel::rowsRemoved, this, onRowCountChanged); for (const QString & str : qAsConst(files)) {
connect(&m_model, &PlaylistModel::modelReset, this, onRowCountChanged); QUrl url = QUrl::fromLocalFile(str);
} if (url.isValid()) {
urlList.append(url);
PlaylistManager::~PlaylistManager() }
{ }
} return urlList;
}
PlaylistModel *PlaylistManager::model()
{
return &m_model;
}
void PlaylistManager::setPlaylist(const QList<QUrl> &urls)
{
m_model.setPlaylist(urls);
}
QModelIndex PlaylistManager::loadPlaylist(const QList<QUrl> &urls)
{
QModelIndex idx = m_model.loadPlaylist(urls);
setProperty("currentIndex", idx.row());
return idx;
}
QModelIndex PlaylistManager::loadPlaylist(const QUrl &url)
{
QModelIndex idx = m_model.loadPlaylist(url);
setProperty("currentIndex", idx.row());
return idx;
}
QModelIndex PlaylistManager::loadM3U8Playlist(const QUrl &url)
{
QFile file(url.toLocalFile());
if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
QList<QUrl> urls;
while (!file.atEnd()) {
QString line = file.readLine();
if (line.startsWith('#')) {
continue;
}
QFileInfo fileInfo(file);
QUrl item = QUrl::fromUserInput(line, fileInfo.absolutePath());
urls.append(item);
}
return loadPlaylist(urls);
} else {
return {};
}
}
int PlaylistManager::totalCount() const
{
return m_model.rowCount();
}
QModelIndex PlaylistManager::previousIndex() const
{
int count = totalCount();
if (count == 0) return {};
return m_model.index(isFirstIndex() ? count - 1 : m_currentIndex - 1);
}
QModelIndex PlaylistManager::nextIndex() const
{
int count = totalCount();
if (count == 0) return {};
return m_model.index(isLastIndex() ? 0 : m_currentIndex + 1);
}
QModelIndex PlaylistManager::curIndex() const
{
return m_model.index(m_currentIndex);
}
bool PlaylistManager::isFirstIndex() const
{
return m_currentIndex == 0;
}
bool PlaylistManager::isLastIndex() const
{
return m_currentIndex + 1 == totalCount();
}
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)
{
return m_model.urlByIndex(index.row());
}
QString PlaylistManager::localFileByIndex(const QModelIndex &index)
{
return urlByIndex(index).toLocalFile();
}
bool PlaylistManager::removeAt(const QModelIndex &index)
{
return m_model.removeAt(index.row());
}
void PlaylistManager::setAutoLoadFilterSuffixes(const QStringList &nameFilters)
{
m_model.setProperty("autoLoadFilterSuffixes", nameFilters);
}
QList<QUrl> PlaylistManager::convertToUrlList(const QStringList &files)
{
QList<QUrl> urlList;
for (const QString & str : std::as_const(files)) {
QUrl url = QUrl::fromLocalFile(str);
if (url.isValid()) {
urlList.append(url);
}
}
return urlList;
}

View File

@ -1,88 +1,48 @@
// SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net> #pragma once
//
// SPDX-License-Identifier: MIT #include <QObject>
#pragma once class PlaylistManager : public QObject
{
#include <QUrl> Q_OBJECT
#include <QAbstractListModel> public:
enum PlaylistType {
class PlaylistModel : public QAbstractListModel PL_USERPLAYLIST, // Regular playlist, managed by user.
{ PL_SAMEFOLDER // PlaylistManager managed playlist, loaded from files from same folder.
Q_OBJECT };
public:
enum PlaylistRole { explicit PlaylistManager(PlaylistType type = PL_USERPLAYLIST, QObject *parent = nullptr);
UrlRole = Qt::UserRole ~PlaylistManager();
};
Q_ENUM(PlaylistRole) void setPlaylistType(PlaylistType type);
Q_PROPERTY(QStringList autoLoadFilterSuffixes MEMBER m_autoLoadSuffixes NOTIFY autoLoadFilterSuffixesChanged) PlaylistType playlistType() const;
explicit PlaylistModel(QObject *parent = nullptr); QStringList autoLoadFilterSuffix() const;
~PlaylistModel() override; void setAutoLoadFilterSuffix(const QStringList &nameFilters);
void setPlaylist(const QList<QUrl> & urls); void clear();
QModelIndex loadPlaylist(const QList<QUrl> & urls);
QModelIndex loadPlaylist(const QUrl & url); void setPlaylist(const QList<QUrl> & urls);
QModelIndex appendToPlaylist(const QUrl & url); void setCurrentFile(const QString & filePath);
bool removeAt(int index); void setCurrentIndex(int index);
int indexOf(const QUrl & url) const; int appendFile(const QString & filePath);
QUrl urlByIndex(int index) const; int indexOf(const QString & filePath);
QStringList autoLoadFilterSuffixes() const;
std::tuple<int, QString> previousFile() const;
QHash<int, QByteArray> roleNames() const override; std::tuple<int, QString> nextFile() const;
int rowCount(const QModelIndex &parent = QModelIndex()) const override; std::tuple<int, QString> currentFile() const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; std::tuple<int, QUrl> currentFileUrl() const;
signals: static QList<QUrl> convertToUrlList(const QStringList & files);
void autoLoadFilterSuffixesChanged(QStringList suffixes);
signals:
private: void loaded(int length);
// model data
QList<QUrl> m_playlist; private:
// properties QList<QUrl> m_playlist;
QStringList m_autoLoadSuffixes = {}; PlaylistType m_type;
// internal QString m_currentDir;
QString m_currentDir; int m_currentIndex = -1;
}; QStringList m_autoLoadSuffix = {};
};
class PlaylistManager : public QObject
{
Q_OBJECT
public:
Q_PROPERTY(int currentIndex MEMBER m_currentIndex NOTIFY currentIndexChanged)
Q_PROPERTY(QStringList autoLoadFilterSuffixes WRITE setAutoLoadFilterSuffixes)
Q_PROPERTY(PlaylistModel * model READ model CONSTANT)
explicit PlaylistManager(QObject *parent = nullptr);
~PlaylistManager();
PlaylistModel * model();
void setPlaylist(const QList<QUrl> & url);
Q_INVOKABLE QModelIndex loadPlaylist(const QList<QUrl> & urls);
Q_INVOKABLE QModelIndex loadPlaylist(const QUrl & url);
Q_INVOKABLE QModelIndex loadM3U8Playlist(const QUrl & url);
int totalCount() const;
QModelIndex previousIndex() const;
QModelIndex nextIndex() const;
QModelIndex curIndex() const;
bool isFirstIndex() const;
bool isLastIndex() const;
void setCurrentIndex(const QModelIndex & index);
QUrl urlByIndex(const QModelIndex & index);
QString localFileByIndex(const QModelIndex & index);
bool removeAt(const QModelIndex & index);
void setAutoLoadFilterSuffixes(const QStringList &nameFilters);
static QList<QUrl> convertToUrlList(const QStringList & files);
signals:
void currentIndexChanged(int index);
void totalCountChanged(int count);
private:
int m_currentIndex = -1;
PlaylistModel m_model;
};

View File

@ -1,237 +1,119 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "settings.h"
//
// SPDX-License-Identifier: MIT #include <QApplication>
#include <QStandardPaths>
#include "settings.h" #include <QDebug>
#include <QDir>
#include <QApplication>
#include <QStandardPaths> Settings *Settings::m_settings_instance = nullptr;
#include <QDebug>
#include <QDir> Settings *Settings::instance()
#include <QAction> {
#include <QWidget> if (!m_settings_instance) {
#include <QKeySequence> m_settings_instance = new Settings;
#include <QMetaEnum> }
namespace QEnumHelper return m_settings_instance;
{ }
template <typename E>
E fromString(const QString &text, const E defaultValue) bool Settings::stayOnTop()
{ {
bool ok; return m_qsettings->value("stay_on_top", true).toBool();
E result = static_cast<E>(QMetaEnum::fromType<E>().keyToValue(text.toUtf8(), &ok)); }
if (!ok) {
return defaultValue; DoubleClickBehavior Settings::doubleClickBehavior()
} {
return result; QString result = m_qsettings->value("double_click_behavior", "close").toString().toLower();
}
return stringToDoubleClickBehavior(result);
template <typename E> }
QString toString(E value)
{ MouseWheelBehavior Settings::mouseWheelBehavior()
const int intValue = static_cast<int>(value); {
return QString::fromUtf8(QMetaEnum::fromType<E>().valueToKey(intValue)); QString result = m_qsettings->value("mouse_wheel_behavior", "close").toString().toLower();
}
} return stringToMouseWheelBehavior(result);
}
Settings *Settings::m_settings_instance = nullptr;
void Settings::setStayOnTop(bool on)
Settings *Settings::instance() {
{ m_qsettings->setValue("stay_on_top", on);
if (!m_settings_instance) { m_qsettings->sync();
m_settings_instance = new Settings; }
}
void Settings::setDoubleClickBehavior(DoubleClickBehavior dcb)
return m_settings_instance; {
} m_qsettings->setValue("double_click_behavior", doubleClickBehaviorToString(dcb));
m_qsettings->sync();
bool Settings::stayOnTop() const }
{
return m_qsettings->value("stay_on_top", true).toBool(); void Settings::setMouseWheelBehavior(MouseWheelBehavior mwb)
} {
m_qsettings->setValue("mouse_wheel_behavior", mouseWheelBehaviorToString(mwb));
bool Settings::useBuiltInCloseAnimation() const m_qsettings->sync();
{ }
return m_qsettings->value("use_built_in_close_animation", true).toBool();
} QString Settings::doubleClickBehaviorToString(DoubleClickBehavior dcb)
{
bool Settings::useLightCheckerboard() const static QMap<DoubleClickBehavior, QString> _map {
{ {ActionCloseWindow, "close"},
return m_qsettings->value("use_light_checkerboard", false).toBool(); {ActionMaximizeWindow, "maximize"},
} {ActionDoNothing, "ignore"}
};
bool Settings::loopGallery() const
{ return _map.value(dcb, "close");
return m_qsettings->value("loop_gallery", true).toBool(); }
}
QString Settings::mouseWheelBehaviorToString(MouseWheelBehavior mwb)
bool Settings::autoLongImageMode() const {
{ static QMap<MouseWheelBehavior, QString> _map {
return m_qsettings->value("auto_long_image_mode", true).toBool(); {ActionZoomImage, "zoom"},
} {ActionPrevNextImage, "switch"}
};
Settings::DoubleClickBehavior Settings::doubleClickBehavior() const
{ return _map.value(mwb, "zoom");
QString result = m_qsettings->value("double_click_behavior", "Close").toString(); }
return QEnumHelper::fromString<DoubleClickBehavior>(result, DoubleClickBehavior::Close); DoubleClickBehavior Settings::stringToDoubleClickBehavior(QString str)
} {
static QMap<QString, DoubleClickBehavior> _map {
Settings::MouseWheelBehavior Settings::mouseWheelBehavior() const {"close", ActionCloseWindow},
{ {"maximize", ActionMaximizeWindow},
QString result = m_qsettings->value("mouse_wheel_behavior", "Zoom").toString(); {"ignore", ActionDoNothing}
};
return QEnumHelper::fromString<MouseWheelBehavior>(result, MouseWheelBehavior::Zoom);
} return _map.value(str, ActionCloseWindow);
}
Settings::WindowSizeBehavior Settings::initWindowSizeBehavior() const
{ MouseWheelBehavior Settings::stringToMouseWheelBehavior(QString str)
QString result = m_qsettings->value("init_window_size_behavior", "Auto").toString(); {
static QMap<QString, MouseWheelBehavior> _map {
return QEnumHelper::fromString<WindowSizeBehavior>(result, WindowSizeBehavior::Auto); {"zoom", ActionZoomImage},
} {"switch", ActionPrevNextImage}
};
Qt::HighDpiScaleFactorRoundingPolicy Settings::hiDpiScaleFactorBehavior() const
{ return _map.value(str, ActionZoomImage);
QString result = m_qsettings->value("hidpi_scale_factor_behavior", "PassThrough").toString(); }
return QEnumHelper::fromString<Qt::HighDpiScaleFactorRoundingPolicy>(result, Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); Settings::Settings()
} : QObject(qApp)
{
void Settings::setStayOnTop(bool on) QString configPath;
{
m_qsettings->setValue("stay_on_top", on); #ifdef FLAG_PORTABLE_MODE_SUPPORT
m_qsettings->sync(); QString portableConfigDirPath = QDir(QCoreApplication::applicationDirPath()).absoluteFilePath("data");
} QFileInfo portableConfigDirInfo(portableConfigDirPath);
if (portableConfigDirInfo.exists() && portableConfigDirInfo.isDir() && portableConfigDirInfo.isWritable()) {
void Settings::setUseBuiltInCloseAnimation(bool on) // we can use it.
{ configPath = portableConfigDirPath;
m_qsettings->setValue("use_built_in_close_animation", on); }
m_qsettings->sync(); #endif // FLAG_PORTABLE_MODE_SUPPORT
}
// %LOCALAPPDATA% under Windows.
void Settings::setUseLightCheckerboard(bool light) if (configPath.isEmpty()) {
{ configPath = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation);
m_qsettings->setValue("use_light_checkerboard", light); }
m_qsettings->sync();
} m_qsettings = new QSettings(QDir(configPath).absoluteFilePath("config.ini"), QSettings::IniFormat, this);
}
void Settings::setLoopGallery(bool on)
{
m_qsettings->setValue("loop_gallery", on);
m_qsettings->sync();
}
void Settings::setAutoLongImageMode(bool on)
{
m_qsettings->setValue("auto_long_image_mode", on);
m_qsettings->sync();
}
void Settings::setDoubleClickBehavior(DoubleClickBehavior dcb)
{
m_qsettings->setValue("double_click_behavior", QEnumHelper::toString(dcb));
m_qsettings->sync();
}
void Settings::setMouseWheelBehavior(MouseWheelBehavior mwb)
{
m_qsettings->setValue("mouse_wheel_behavior", QEnumHelper::toString(mwb));
m_qsettings->sync();
}
void Settings::setInitWindowSizeBehavior(WindowSizeBehavior wsb)
{
m_qsettings->setValue("init_window_size_behavior", QEnumHelper::toString(wsb));
m_qsettings->sync();
}
void Settings::setHiDpiScaleFactorBehavior(Qt::HighDpiScaleFactorRoundingPolicy hidpi)
{
m_qsettings->setValue("hidpi_scale_factor_behavior", QEnumHelper::toString(hidpi));
m_qsettings->sync();
}
void Settings::applyUserShortcuts(QWidget *widget)
{
m_qsettings->beginGroup("shortcuts");
const QStringList shortcutNames = m_qsettings->allKeys();
for (const QString & name : shortcutNames) {
QList<QKeySequence> shortcuts = m_qsettings->value(name).value<QList<QKeySequence>>();
setShortcutsForAction(widget, name, shortcuts, false);
}
m_qsettings->endGroup();
}
bool Settings::setShortcutsForAction(QWidget *widget, const QString &objectName,
QList<QKeySequence> shortcuts, bool writeConfig)
{
QAction * targetAction = nullptr;
for (QAction * action : widget->actions()) {
if (action->objectName() == objectName) {
targetAction = action;
} else {
for (const QKeySequence & shortcut : std::as_const(shortcuts)) {
if (action->shortcuts().contains(shortcut)) {
return false;
}
}
}
}
if (targetAction) {
targetAction->setShortcuts(shortcuts);
}
if (targetAction && writeConfig) {
m_qsettings->beginGroup("shortcuts");
m_qsettings->setValue(objectName, QVariant::fromValue(shortcuts));
m_qsettings->endGroup();
m_qsettings->sync();
}
return true;
}
#if defined(FLAG_PORTABLE_MODE_SUPPORT) && defined(Q_OS_WIN)
#include <windows.h>
// QCoreApplication::applicationDirPath() parses the "applicationDirPath" from arg0, which...
// 1. rely on a QApplication object instance
// but we need to call QGuiApplication::setHighDpiScaleFactorRoundingPolicy() before QApplication get created
// 2. arg0 is NOT garanteed to be the path of execution
// see also: https://stackoverflow.com/questions/383973/is-args0-guaranteed-to-be-the-path-of-execution
// This function is here mainly for #1.
QString getApplicationDirPath()
{
WCHAR buffer[MAX_PATH];
GetModuleFileNameW(NULL, buffer, MAX_PATH);
QString appPath = QString::fromWCharArray(buffer);
return appPath.left(appPath.lastIndexOf('\\'));
}
#endif // defined(FLAG_PORTABLE_MODE_SUPPORT) && defined(Q_OS_WIN)
Settings::Settings()
: QObject(qApp)
{
QString configPath;
#if defined(FLAG_PORTABLE_MODE_SUPPORT) && defined(Q_OS_WIN)
QString portableConfigDirPath = QDir(getApplicationDirPath()).absoluteFilePath("data");
QFileInfo portableConfigDirInfo(portableConfigDirPath);
if (portableConfigDirInfo.exists() && portableConfigDirInfo.isDir() && portableConfigDirInfo.isWritable()) {
// we can use it.
configPath = portableConfigDirPath;
}
#endif // defined(FLAG_PORTABLE_MODE_SUPPORT) && defined(Q_OS_WIN)
if (configPath.isEmpty()) {
// Should be %LOCALAPPDATA%\<APPNAME> under Windows, ~/.config/<APPNAME> under Linux.
configPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
}
m_qsettings = new QSettings(QDir(configPath).absoluteFilePath("config.ini"), QSettings::IniFormat, this);
qRegisterMetaType<QList<QKeySequence>>();
}

View File

@ -1,71 +1,53 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #pragma once
//
// SPDX-License-Identifier: MIT #include <QObject>
#include <QSettings>
#pragma once
enum DoubleClickBehavior {
#include <QObject> ActionDoNothing,
#include <QSettings> ActionCloseWindow,
ActionMaximizeWindow,
class Settings : public QObject
{ DCActionStart = ActionDoNothing,
Q_OBJECT DCActionEnd = ActionMaximizeWindow
public: };
enum DoubleClickBehavior {
Ignore, enum MouseWheelBehavior {
Close, ActionZoomImage,
Maximize, ActionPrevNextImage,
FullScreen,
}; MWActionStart = ActionZoomImage,
Q_ENUM(DoubleClickBehavior) MWActionEnd = ActionPrevNextImage
};
enum MouseWheelBehavior {
Zoom, class Settings : public QObject
Switch, {
}; Q_OBJECT
Q_ENUM(MouseWheelBehavior) public:
static Settings *instance();
enum WindowSizeBehavior {
Auto, bool stayOnTop();
Maximized, DoubleClickBehavior doubleClickBehavior();
Windowed, MouseWheelBehavior mouseWheelBehavior();
};
Q_ENUM(WindowSizeBehavior) void setStayOnTop(bool on);
void setDoubleClickBehavior(DoubleClickBehavior dcb);
static Settings *instance(); void setMouseWheelBehavior(MouseWheelBehavior mwb);
bool stayOnTop() const; static QString doubleClickBehaviorToString(DoubleClickBehavior dcb);
bool useBuiltInCloseAnimation() const; static QString mouseWheelBehaviorToString(MouseWheelBehavior mwb);
bool useLightCheckerboard() const; static DoubleClickBehavior stringToDoubleClickBehavior(QString str);
bool loopGallery() const; static MouseWheelBehavior stringToMouseWheelBehavior(QString str);
bool autoLongImageMode() const;
DoubleClickBehavior doubleClickBehavior() const; private:
MouseWheelBehavior mouseWheelBehavior() const; Settings();
WindowSizeBehavior initWindowSizeBehavior() const;
Qt::HighDpiScaleFactorRoundingPolicy hiDpiScaleFactorBehavior() const; static Settings *m_settings_instance;
void setStayOnTop(bool on); QSettings *m_qsettings;
void setUseBuiltInCloseAnimation(bool on);
void setUseLightCheckerboard(bool light); signals:
void setLoopGallery(bool on);
void setAutoLongImageMode(bool on); public slots:
void setDoubleClickBehavior(DoubleClickBehavior dcb); };
void setMouseWheelBehavior(MouseWheelBehavior mwb);
void setInitWindowSizeBehavior(WindowSizeBehavior wsb);
void setHiDpiScaleFactorBehavior(Qt::HighDpiScaleFactorRoundingPolicy hidpi);
void applyUserShortcuts(QWidget * widget);
bool setShortcutsForAction(QWidget * widget, const QString & objectName,
QList<QKeySequence> shortcuts, bool writeConfig = true);
private:
Settings();
static Settings *m_settings_instance;
QSettings *m_qsettings;
signals:
public slots:
};

View File

@ -1,207 +1,72 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "settingsdialog.h"
//
// SPDX-License-Identifier: MIT #include "settings.h"
#include "settingsdialog.h" #include <QCheckBox>
#include <QComboBox>
#include "settings.h" #include <QFormLayout>
#include "shortcutedit.h" #include <QStringListModel>
#include <QAction> SettingsDialog::SettingsDialog(QWidget *parent)
#include <QCheckBox> : QDialog(parent)
#include <QComboBox> , m_stayOnTop(new QCheckBox)
#include <QFormLayout> , m_doubleClickBehavior(new QComboBox)
#include <QKeySequenceEdit> , m_mouseWheelBehavior(new QComboBox)
#include <QScrollArea> {
#include <QSplitter> this->setWindowTitle(tr("Settings"));
#include <QStringListModel>
#include <QMessageBox> QFormLayout * settingsForm = new QFormLayout(this);
SettingsDialog::SettingsDialog(QWidget *parent) static QMap<DoubleClickBehavior, QString> _dc_map {
: QDialog(parent) { ActionDoNothing, tr("Do nothing") },
, m_stayOnTop(new QCheckBox) { ActionCloseWindow, tr("Close the window") },
, m_useBuiltInCloseAnimation(new QCheckBox) { ActionMaximizeWindow, tr("Toggle maximize") }
, m_useLightCheckerboard(new QCheckBox) };
, m_loopGallery(new QCheckBox)
, m_autoLongImageMode(new QCheckBox) static QMap<MouseWheelBehavior, QString> _mw_map {
, m_doubleClickBehavior(new QComboBox) { ActionZoomImage, tr("Zoom in and out") },
, m_mouseWheelBehavior(new QComboBox) { ActionPrevNextImage, tr("View next or previous item") }
, m_initWindowSizeBehavior(new QComboBox) };
, m_hiDpiRoundingPolicyBehavior(new QComboBox)
{ QStringList dcbDropDown;
this->setWindowTitle(tr("Settings")); for (int dcb = DCActionStart; dcb <= DCActionEnd; dcb++) {
dcbDropDown.append(_dc_map.value(static_cast<DoubleClickBehavior>(dcb)));
QHBoxLayout * mainLayout = new QHBoxLayout(this); }
QTabWidget * settingsTabs = new QTabWidget(this);
mainLayout->addWidget(settingsTabs); QStringList mwbDropDown;
for (int mwb = MWActionStart; mwb <= MWActionEnd; mwb++) {
QWidget * settingsFormHolder = new QWidget; mwbDropDown.append(_mw_map.value(static_cast<MouseWheelBehavior>(mwb)));
QFormLayout * settingsForm = new QFormLayout(settingsFormHolder); }
settingsTabs->addTab(settingsFormHolder, tr("Options"));
settingsForm->addRow(tr("Stay on top when start-up"), m_stayOnTop);
QSplitter * shortcutEditorSplitter = new QSplitter; settingsForm->addRow(tr("Double-click behavior"), m_doubleClickBehavior);
shortcutEditorSplitter->setOrientation(Qt::Vertical); settingsForm->addRow(tr("Mouse wheel behavior"), m_mouseWheelBehavior);
shortcutEditorSplitter->setChildrenCollapsible(false);
QScrollArea * shortcutScrollArea = new QScrollArea; m_stayOnTop->setChecked(Settings::instance()->stayOnTop());
shortcutEditorSplitter->addWidget(shortcutScrollArea); m_doubleClickBehavior->setModel(new QStringListModel(dcbDropDown));
shortcutScrollArea->setWidgetResizable(true); DoubleClickBehavior dcb = Settings::instance()->doubleClickBehavior();
shortcutScrollArea->setMinimumHeight(200); m_doubleClickBehavior->setCurrentIndex(static_cast<int>(dcb));
QWidget * shortcutsFormHolder = new QWidget; m_mouseWheelBehavior->setModel(new QStringListModel(mwbDropDown));
QFormLayout * shortcutsForm = new QFormLayout(shortcutsFormHolder); MouseWheelBehavior mwb = Settings::instance()->mouseWheelBehavior();
shortcutScrollArea->setWidget(shortcutsFormHolder); m_mouseWheelBehavior->setCurrentIndex(static_cast<int>(mwb));
settingsTabs->addTab(shortcutEditorSplitter, tr("Shortcuts"));
connect(m_stayOnTop, &QCheckBox::stateChanged, this, [ = ](int state){
for (const QAction * action : parent->actions()) { Settings::instance()->setStayOnTop(state == Qt::Checked);
ShortcutEdit * shortcutEdit = new ShortcutEdit; });
shortcutEdit->setObjectName(QLatin1String("shortcut_") + action->objectName());
shortcutEdit->setShortcuts(action->shortcuts()); connect(m_doubleClickBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
shortcutsForm->addRow(action->text(), shortcutEdit); Settings::instance()->setDoubleClickBehavior(static_cast<DoubleClickBehavior>(index));
connect(shortcutEdit, &ShortcutEdit::editButtonClicked, this, [=](){ });
if (shortcutEditorSplitter->count() == 1) shortcutEditorSplitter->addWidget(new QWidget);
ShortcutEditor * shortcutEditor = new ShortcutEditor(shortcutEdit); connect(m_mouseWheelBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
shortcutEditor->setDescription(tr("Editing shortcuts for action \"%1\":").arg(action->text())); Settings::instance()->setMouseWheelBehavior(static_cast<MouseWheelBehavior>(index));
QWidget * oldEditor = shortcutEditorSplitter->replaceWidget(1, shortcutEditor); });
shortcutEditorSplitter->setSizes({shortcutEditorSplitter->height(), 1});
oldEditor->deleteLater(); this->setMinimumSize(300, 61); // not sure why it complain "Unable to set geometry"
}); setWindowFlag(Qt::WindowContextHelpButtonHint, false);
connect(shortcutEdit, &ShortcutEdit::applyShortcutsRequested, this, [=](QList<QKeySequence> newShortcuts){ }
bool succ = Settings::instance()->setShortcutsForAction(parent, shortcutEdit->objectName().mid(9),
newShortcuts); SettingsDialog::~SettingsDialog()
if (!succ) { {
QMessageBox::warning(this, tr("Failed to set shortcuts"),
tr("Please check if shortcuts are duplicated with existing shortcuts.")); }
}
shortcutEdit->setShortcuts(action->shortcuts());
});
}
static QList< QPair<Settings::DoubleClickBehavior, QString> > _dc_options {
{ Settings::DoubleClickBehavior::Ignore, tr("Do nothing") },
{ Settings::DoubleClickBehavior::Close, tr("Close the window") },
{ Settings::DoubleClickBehavior::Maximize, tr("Toggle maximize") },
{ Settings::DoubleClickBehavior::FullScreen, tr("Toggle fullscreen") }
};
static QList< QPair<Settings::MouseWheelBehavior, QString> > _mw_options {
{ Settings::MouseWheelBehavior::Zoom, tr("Zoom in and out") },
{ 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") },
{ Settings::WindowSizeBehavior::Windowed, tr("Windowed") }
};
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 built-in close window animation"), m_useBuiltInCloseAnimation);
settingsForm->addRow(tr("Use light-color checkerboard"), m_useLightCheckerboard);
settingsForm->addRow(tr("Loop the loaded gallery"), m_loopGallery);
settingsForm->addRow(tr("Auto long image mode"), m_autoLongImageMode);
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_useBuiltInCloseAnimation->setChecked(Settings::instance()->useBuiltInCloseAnimation());
m_useLightCheckerboard->setChecked(Settings::instance()->useLightCheckerboard());
m_loopGallery->setChecked(Settings::instance()->loopGallery());
m_autoLongImageMode->setChecked(Settings::instance()->autoLongImageMode());
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;
}
}
#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
# define QCHECKBOX_CHECKSTATECHANGED QCheckBox::checkStateChanged
# define QT_CHECKSTATE Qt::CheckState
#else
# define QCHECKBOX_CHECKSTATECHANGED QCheckBox::stateChanged
# define QT_CHECKSTATE int
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
connect(m_stayOnTop, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
Settings::instance()->setStayOnTop(state == Qt::Checked);
});
connect(m_useBuiltInCloseAnimation, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
Settings::instance()->setUseBuiltInCloseAnimation(state == Qt::Checked);
});
connect(m_useLightCheckerboard, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
Settings::instance()->setUseLightCheckerboard(state == Qt::Checked);
});
connect(m_loopGallery, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
Settings::instance()->setLoopGallery(state == Qt::Checked);
});
connect(m_autoLongImageMode, &QCHECKBOX_CHECKSTATECHANGED, this, [ = ](QT_CHECKSTATE state){
Settings::instance()->setAutoLongImageMode(state == Qt::Checked);
});
connect(m_doubleClickBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
Settings::instance()->setDoubleClickBehavior(_dc_options.at(index).first);
});
connect(m_mouseWheelBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
Settings::instance()->setMouseWheelBehavior(_mw_options.at(index).first);
});
connect(m_initWindowSizeBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
Settings::instance()->setInitWindowSizeBehavior(_iws_options.at(index).first);
});
connect(m_hiDpiRoundingPolicyBehavior, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [ = ](int index){
Settings::instance()->setHiDpiScaleFactorBehavior(_hidpi_options.at(index).first);
});
adjustSize();
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
}
SettingsDialog::~SettingsDialog()
{
}

View File

@ -1,36 +1,26 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #ifndef SETTINGSDIALOG_H
// #define SETTINGSDIALOG_H
// SPDX-License-Identifier: MIT
#include <QObject>
#ifndef SETTINGSDIALOG_H #include <QDialog>
#define SETTINGSDIALOG_H
class QCheckBox;
#include <QObject> class QComboBox;
#include <QDialog> class SettingsDialog : public QDialog
{
class QCheckBox; Q_OBJECT
class QComboBox; public:
class SettingsDialog : public QDialog explicit SettingsDialog(QWidget *parent = nullptr);
{ ~SettingsDialog();
Q_OBJECT
public: signals:
explicit SettingsDialog(QWidget *parent = nullptr);
~SettingsDialog(); public slots:
signals: private:
QCheckBox * m_stayOnTop = nullptr;
public slots: QComboBox * m_doubleClickBehavior = nullptr;
QComboBox * m_mouseWheelBehavior = nullptr;
private: };
QCheckBox * m_stayOnTop = nullptr;
QCheckBox * m_useBuiltInCloseAnimation = nullptr; #endif // SETTINGSDIALOG_H
QCheckBox * m_useLightCheckerboard = nullptr;
QCheckBox * m_loopGallery = nullptr;
QCheckBox * m_autoLongImageMode = nullptr;
QComboBox * m_doubleClickBehavior = nullptr;
QComboBox * m_mouseWheelBehavior = nullptr;
QComboBox * m_initWindowSizeBehavior = nullptr;
QComboBox * m_hiDpiRoundingPolicyBehavior = nullptr;
};
#endif // SETTINGSDIALOG_H

View File

@ -1,126 +0,0 @@
// SPDX-FileCopyrightText: 2024 Gary Wang <opensource@blumia.net>
//
// SPDX-License-Identifier: MIT
#include "shortcutedit.h"
#include <QLabel>
#include <QToolButton>
#include <QHBoxLayout>
#include <QFormLayout>
#include <QDialogButtonBox>
#include <QKeySequenceEdit>
ShortcutEditor::ShortcutEditor(ShortcutEdit * shortcutEdit, QWidget * parent)
: QWidget(parent)
, m_descriptionLabel(new QLabel)
, m_shortcutEdit(shortcutEdit)
, m_shortcutLayout(new QFormLayout)
{
Q_CHECK_PTR(m_shortcutEdit);
QDialogButtonBox * buttons = new QDialogButtonBox(QDialogButtonBox::Apply | QDialogButtonBox::Discard);
QVBoxLayout * layout = new QVBoxLayout(this);
layout->addWidget(m_descriptionLabel);
layout->addLayout(m_shortcutLayout);
layout->addWidget(buttons);
connect(buttons, &QDialogButtonBox::clicked, this, [=](QAbstractButton *button){
if ((QPushButton *)button == buttons->button(QDialogButtonBox::Apply)) {
applyShortcuts();
} else {
reloadShortcuts();
}
});
connect(shortcutEdit, &ShortcutEdit::shortcutsChanged, this, &ShortcutEditor::reloadShortcuts);
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
reloadShortcuts();
}
void ShortcutEditor::setDescription(const QString &desc)
{
m_descriptionLabel->setText(desc);
}
void ShortcutEditor::reloadShortcuts()
{
if (!m_keySequenceEdits.isEmpty()) {
for (QKeySequenceEdit * keyseqEdit : m_keySequenceEdits) {
m_shortcutLayout->removeRow(keyseqEdit);
}
m_keySequenceEdits.clear();
}
QList<QKeySequence> shortcuts = m_shortcutEdit->shortcuts();
shortcuts.append(QKeySequence());
for (const QKeySequence & shortcut : shortcuts) {
QKeySequenceEdit * keyseqEdit = new QKeySequenceEdit(this);
keyseqEdit->setClearButtonEnabled(true);
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
keyseqEdit->setMaximumSequenceLength(1);
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
keyseqEdit->setKeySequence(shortcut);
m_keySequenceEdits.append(keyseqEdit);
}
for (int i = 0; i < m_keySequenceEdits.count(); i++) {
m_shortcutLayout->addRow(tr("Shortcut #%1").arg(i + 1), m_keySequenceEdits.at(i));
}
}
void ShortcutEditor::applyShortcuts()
{
QList<QKeySequence> shortcuts;
for (const QKeySequenceEdit * keyseqEdit : m_keySequenceEdits) {
if (!keyseqEdit->keySequence().isEmpty() && !shortcuts.contains(keyseqEdit->keySequence())) {
shortcuts.append(keyseqEdit->keySequence());
}
}
emit m_shortcutEdit->applyShortcutsRequested(shortcuts);
}
// ----------------------------------------
ShortcutEdit::ShortcutEdit(QWidget *parent)
: QWidget(parent)
, m_shortcutsLabel(new QLabel(this))
, m_setShortcutButton(new QToolButton(this))
{
m_setShortcutButton->setText("...");
QHBoxLayout * layout = new QHBoxLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(m_shortcutsLabel, 1);
layout->addWidget(m_setShortcutButton);
connect(this, &ShortcutEdit::shortcutsChanged, this, [=](){
QStringList shortcutTexts;
for (const QKeySequence & shortcut : std::as_const(m_shortcuts)) {
shortcutTexts.append(shortcut.toString(QKeySequence::NativeText));
}
m_shortcutsLabel->setText(shortcutTexts.isEmpty() ? tr("No shortcuts") : shortcutTexts.join(", "));
m_shortcutsLabel->setDisabled(shortcutTexts.isEmpty());
});
connect(m_setShortcutButton, &QToolButton::clicked, this, &ShortcutEdit::editButtonClicked);
adjustSize();
}
ShortcutEdit::~ShortcutEdit()
{
}
QList<QKeySequence> ShortcutEdit::shortcuts() const
{
return m_shortcuts;
}
void ShortcutEdit::setShortcuts(const QList<QKeySequence> &shortcuts)
{
m_shortcuts = shortcuts;
emit shortcutsChanged();
}

View File

@ -1,55 +0,0 @@
// SPDX-FileCopyrightText: 2024 Gary Wang <opensource@blumia.net>
//
// SPDX-License-Identifier: MIT
#pragma once
#include <QWidget>
#include <QList>
#include <QKeySequence>
class QLabel;
class QFormLayout;
class QToolButton;
class QKeySequenceEdit;
class ShortcutEdit;
class ShortcutEditor : public QWidget
{
Q_OBJECT
public:
explicit ShortcutEditor(ShortcutEdit * shortcutEdit, QWidget * parent = nullptr);
~ShortcutEditor() = default;
void setDescription(const QString & desc);
void reloadShortcuts();
void applyShortcuts();
private:
QLabel * m_descriptionLabel;
ShortcutEdit * m_shortcutEdit;
QFormLayout * m_shortcutLayout;
QList<QKeySequenceEdit *> m_keySequenceEdits;
};
class ShortcutEdit : public QWidget
{
Q_OBJECT
Q_PROPERTY(QList<QKeySequence> shortcuts MEMBER m_shortcuts WRITE setShortcuts NOTIFY shortcutsChanged)
public:
explicit ShortcutEdit(QWidget * parent = nullptr);
~ShortcutEdit();
QList<QKeySequence> shortcuts() const;
void setShortcuts(const QList<QKeySequence> &shortcuts);
signals:
void shortcutsChanged();
void editButtonClicked();
void applyShortcutsRequested(QList<QKeySequence> newShortcuts);
private:
QList<QKeySequence> m_shortcuts;
QLabel * m_shortcutsLabel;
QToolButton * m_setShortcutButton;
};

View File

@ -1,38 +1,28 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #include "toolbutton.h"
//
// SPDX-License-Identifier: MIT #include "opacityhelper.h"
#include "toolbutton.h" #include <QPainter>
#include <QGraphicsOpacityEffect>
#include "actionmanager.h" #include <QPropertyAnimation>
#include "opacityhelper.h"
ToolButton::ToolButton(bool hoverColor, QWidget *parent)
#include <QPainter> : QPushButton(parent)
#include <QGraphicsOpacityEffect> , m_opacityHelper(new OpacityHelper(this))
#include <QPropertyAnimation> {
setFlat(true);
ToolButton::ToolButton(bool hoverColor, QWidget *parent) QString qss = "QPushButton {"
: QPushButton(parent) "background: transparent;"
, m_opacityHelper(new OpacityHelper(this)) "}";
{ if (hoverColor) {
setFlat(true); qss += "QPushButton:hover {"
QString qss = "QPushButton {" "background: red;"
"background: transparent;" "}";
"}"; }
if (hoverColor) { setStyleSheet(qss);
qss += "QPushButton:hover {" }
"background: red;"
"}"; void ToolButton::setOpacity(qreal opacity, bool animated)
} {
setStyleSheet(qss); m_opacityHelper->setOpacity(opacity, animated);
} }
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);
}

View File

@ -1,25 +1,20 @@
// SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com> #ifndef TOOLBUTTON_H
// #define TOOLBUTTON_H
// SPDX-License-Identifier: MIT
#include <QPushButton>
#ifndef TOOLBUTTON_H
#define TOOLBUTTON_H class OpacityHelper;
class ToolButton : public QPushButton
#include <QPushButton> {
Q_OBJECT
class OpacityHelper; public:
class ToolButton : public QPushButton ToolButton(bool hoverColor = false, QWidget * parent = nullptr);
{
Q_OBJECT public slots:
public: void setOpacity(qreal opacity, bool animated = true);
ToolButton(bool hoverColor = false, QWidget * parent = nullptr);
void setIconResourcePath(const QString &iconp); private:
OpacityHelper * m_opacityHelper;
public slots: };
void setOpacity(qreal opacity, bool animated = true);
#endif // TOOLBUTTON_H
private:
OpacityHelper * m_opacityHelper;
};
#endif // TOOLBUTTON_H

View File

@ -1,908 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ca_ES">
<context>
<name>AboutDialog</name>
<message>
<location filename="../aboutdialog.cpp" line="29"/>
<source>About</source>
<translation>Quant a</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="32"/>
<source>Launch application with image file path as argument to load the file.</source>
<translation>Inicia l&apos;aplicació amb el camí del fitxer de la imatge com a argument per carregar la imatge.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="33"/>
<source>Drag and drop image file onto the window is also supported.</source>
<translation>També podeu arrossegar i deixar anar un fitxer d&apos;imatge a la finestra.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="34"/>
<source>None of the operations in this application will alter the pictures on disk.</source>
<translation>Cap de les operacions en aquesta aplicació alterarà els fitxers d&apos;imatge.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="35"/>
<source>Context menu option explanation:</source>
<translation>Explicació de les opcions del menú contextual:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="42"/>
<source>Make window stay on top of all other windows.</source>
<translation>Manté la finestra a sobre de totes les altres finestres.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="45"/>
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
<translation>Evita que es tanqui la finestra accidentalment (com ara en fer doble clic a la finestra)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="48"/>
<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="55"/>
<source>Version: %1</source>
<translation>Versió: %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="66"/>
<source>Logo designed by %1</source>
<translation>Logotip dissenyat por %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="68"/>
<source>Built with Qt %1 (%2)</source>
<translation>Creat amb Qt %1 (%2)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="69"/>
<source>Source code</source>
<translation>Codi font</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="79"/>
<source>Contributors</source>
<translation>Col·laboradors</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="81"/>
<source>List of contributors on GitHub</source>
<translation>Llista de col·laboradors al GitHub</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="82"/>
<source>Thanks to all people who contributed to this project.</source>
<translation>Gràcies a totes les persones que han col·laborat en aquest projecte.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="86"/>
<source>Translators</source>
<translation>Traductors</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="87"/>
<source>I would like to thank the following people who volunteered to translate this application.</source>
<translation>M&apos;agradaria donar les gràcies a les persones següents per oferir-se a traduir aquesta aplicació.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="131"/>
<source>%1 is built on the following free software libraries:</source>
<comment>Free as in freedom</comment>
<translation>%1 està construït sobre les biblioteques de programari lliure següents:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="155"/>
<source>&amp;Special Thanks</source>
<translation>&amp;Especial agraïment</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="157"/>
<source>&amp;Third-party Libraries</source>
<translation>&amp;Biblioteques de tercers</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="93"/>
<source>Your Rights</source>
<translation>Els vostres drets</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="63"/>
<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="95"/>
<source>%1 is released under the MIT License.</source>
<translation>%1 es publica sota la llicència MIT.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="96"/>
<source>This license grants people a number of freedoms:</source>
<translation>Aquesta llicència atorga a les persones diverses llibertats:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="97"/>
<source>You are free to use %1, for any purpose</source>
<translation>Sou lliure de fer servir %1 per a qualsevol propòsit</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="98"/>
<source>You are free to distribute %1</source>
<translation>Sou lliure de distribuir %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="99"/>
<source>You can study how %1 works and change it</source>
<translation>Podeu estudiar com funciona %1 i modificar-lo</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="100"/>
<source>You can distribute changed versions of %1</source>
<translation>Podeu distribuir les versions modificades de %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="102"/>
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
<translation>La llicència del MIT us garanteix aquesta llibertat. No és permès que ningú us la tregui.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="130"/>
<source>Third-party Libraries used by %1</source>
<translation>Biblioteques de tercers que fa servir %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="153"/>
<source>&amp;Help</source>
<translation>Aj&amp;uda</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="154"/>
<source>&amp;About</source>
<translation>&amp;Quant a</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="156"/>
<source>&amp;License</source>
<translation>&amp;Llicència</translation>
</message>
</context>
<context>
<name>GraphicsScene</name>
<message>
<location filename="../mainwindow.cpp" line="292"/>
<location filename="../graphicsscene.cpp" line="100"/>
<source>Drag image here</source>
<translation>Arrossegueu una imatge aquí</translation>
</message>
</context>
<context>
<name>GraphicsView</name>
<message>
<source>File url list is empty</source>
<translation type="vanished">La llista d&apos;ubicacions de fitxer és buida</translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="50"/>
<source>File is not a valid image</source>
<translation>El fitxer no és una imatge vàlida</translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="54"/>
<location filename="../graphicsview.cpp" line="58"/>
<source>Image data is invalid or currently unsupported</source>
<translation>Les dades de la imatge no són vàlides o no són compatibles</translation>
</message>
<message>
<source>Image data is invalid</source>
<translation type="vanished">Les dades de la imatge no són vàlides</translation>
</message>
<message>
<source>Not supported mimedata: %1</source>
<translation type="vanished">El tipus MIME no és compatible: %1</translation>
</message>
</context>
<context>
<name>MainWindow</name>
<message>
<location filename="../mainwindow.cpp" line="190"/>
<location filename="../mainwindow.cpp" line="561"/>
<source>File url list is empty</source>
<translation>La llista d&apos;ubicacions és buida</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="461"/>
<source>&amp;Copy</source>
<translation>&amp;Copia</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="569"/>
<source>Image data is invalid</source>
<translation>Les dades de la imatge no són vàlides</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="576"/>
<source>Not supported mimedata: %1</source>
<translation>El tipus MIME no és compatible: %1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="783"/>
<source>Image From Clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="801"/>
<source>Are you sure you want to move &quot;%1&quot; to recycle bin?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="805"/>
<source>Failed to move file to trash</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="806"/>
<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="106"/>
<source>Copy P&amp;ixmap</source>
<translation>Copia el &amp;mapa de píxels</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="107"/>
<source>Copy &amp;File Path</source>
<translation>Copia el camí del &amp;fitxer</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="125"/>
<source>Properties</source>
<translation>Propietats</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="110"/>
<location filename="../aboutdialog.cpp" line="41"/>
<source>Stay on top</source>
<translation>Mantén a sobre</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="111"/>
<location filename="../aboutdialog.cpp" line="44"/>
<source>Protected mode</source>
<translation>Mode protegit</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="112"/>
<location filename="../aboutdialog.cpp" line="47"/>
<source>Keep transformation</source>
<comment>The &apos;transformation&apos; means the flip/rotation status that currently applied to the image view</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="90"/>
<source>Zoom in</source>
<translation>Amplia</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="91"/>
<source>Zoom out</source>
<translation>Redueix</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="99"/>
<source>Pause/Resume Animation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="100"/>
<source>Animation Go to Next Frame</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="102"/>
<source>Flip &amp;Horizontally</source>
<translation>Inverteix &amp;horitzontalment</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="103"/>
<source>Fit to view</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="104"/>
<source>Fit to width</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="105"/>
<source>Fit long image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="108"/>
<source>&amp;Paste</source>
<translation>&amp;Enganxa</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="92"/>
<source>Toggle Checkerboard</source>
<translation>Commuta el tauler d&apos;escacs</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="86"/>
<source>&amp;Open...</source>
<translation>&amp;Obre...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="88"/>
<source>Actual size</source>
<translation>Mida real</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="89"/>
<source>Toggle maximize</source>
<translation>Commuta la maximització</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="93"/>
<source>Rotate right</source>
<translation>Commuta la maximització</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="94"/>
<source>Rotate left</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="96"/>
<source>Previous image</source>
<translation>Imatge anterior</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="97"/>
<source>Next image</source>
<translation>Imatge següent</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="800"/>
<location filename="../actionmanager.cpp" line="109"/>
<source>Move to Trash</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="113"/>
<source>Configure...</source>
<translation>Configura...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="114"/>
<source>Help</source>
<translation>Ajuda</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="117"/>
<source>Show in File Explorer</source>
<comment>File Explorer is the name of explorer.exe under Windows</comment>
<translation>Mostra al navegador de fitxers</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="123"/>
<source>Show in directory</source>
<translation>Mostra a la carpeta</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="126"/>
<source>Quit</source>
<translation>Surt</translation>
</message>
</context>
<context>
<name>MetadataDialog</name>
<message>
<location filename="../metadatadialog.cpp" line="84"/>
<source>Image Metadata</source>
<translation>Metadades de la imatge</translation>
</message>
</context>
<context>
<name>MetadataModel</name>
<message>
<location filename="../metadatamodel.cpp" line="43"/>
<source>Origin</source>
<comment>Section name.</comment>
<translation>Origen</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="44"/>
<source>Image</source>
<comment>Section name.</comment>
<translation>Imatge</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="48"/>
<source>File</source>
<comment>Section name.</comment>
<translation>Fitxer</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="45"/>
<source>Camera</source>
<comment>Section name.</comment>
<translation>Càmera</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="35"/>
<source>%1 File</source>
<translation>Fitxer %1</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="42"/>
<source>Description</source>
<comment>Section name.</comment>
<translation>Descripció</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="46"/>
<source>Advanced photo</source>
<comment>Section name.</comment>
<translation>Foto avançada</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="47"/>
<source>GPS</source>
<comment>Section name.</comment>
<translation>GPS</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="52"/>
<source>Dimensions</source>
<translation>Dimensions</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="54"/>
<source>Aspect ratio</source>
<translation>Relació d&apos;aspecte</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="58"/>
<source>Frame count</source>
<translation>Núm. d&apos;imatges</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="62"/>
<source>Name</source>
<translation>Nom</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="64"/>
<source>Item type</source>
<translation>Tipus d&apos;element</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="66"/>
<source>Folder path</source>
<translation>Camí de la carpeta</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="68"/>
<source>Size</source>
<translation>Mida</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="70"/>
<source>Date created</source>
<translation>Data de creació</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="72"/>
<source>Date modified</source>
<translation>Data de modificació</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="79"/>
<source>Title</source>
<translation>Títol</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="81"/>
<source>Subject</source>
<translation>Tema</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="83"/>
<source>Rating</source>
<translation>Valoració</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="85"/>
<source>Tags</source>
<translation>Etiquetes</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="87"/>
<source>Comments</source>
<translation>Comentaris</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="90"/>
<source>Authors</source>
<translation>Autors</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="92"/>
<source>Date taken</source>
<translation>Data de la foto</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="98"/>
<source>Program name</source>
<translation>Nom del programa</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="100"/>
<source>Copyright</source>
<translation>Copyright</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="103"/>
<source>Horizontal resolution</source>
<translation>Resolució horitzontal</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="105"/>
<source>Vertical resolution</source>
<translation>Resolució vertical</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="107"/>
<source>Resolution unit</source>
<translation>Unitat de resolució</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="109"/>
<source>Colour representation</source>
<translation>Representació del color</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="112"/>
<source>Camera maker</source>
<translation>Fabricant de la càmera</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="114"/>
<source>Camera model</source>
<translation>Model de la càmera</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="116"/>
<source>F-stop</source>
<translation>Relació focal</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="118"/>
<source>Exposure time</source>
<translation>Temps d&apos;exposició</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="120"/>
<source>ISO speed</source>
<translation>Sensibilitat ISO</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="122"/>
<source>Exposure bias</source>
<translation>Compensació d&apos;exposició</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="124"/>
<source>Focal length</source>
<translation>Distància focal</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="126"/>
<source>Max aperture</source>
<translation>Obertura màxima</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="128"/>
<source>Metering mode</source>
<translation>Mode de mesura</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="130"/>
<source>Subject distance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="132"/>
<source>Flash mode</source>
<translation>Mode del flaix</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="134"/>
<source>35mm focal length</source>
<translation>Distància focal de 35 mm</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="137"/>
<source>Lens model</source>
<translation>Model de lent</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="139"/>
<source>Contrast</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="141"/>
<source>Brightness</source>
<translation>Brillantor</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="143"/>
<source>Exposure program</source>
<translation>Programa d&apos;exposició</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="145"/>
<source>Saturation</source>
<translation>Saturació</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="147"/>
<source>Sharpness</source>
<translation>Nitidesa</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="149"/>
<source>White balance</source>
<translation>Balanç de blancs</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="151"/>
<source>Digital zoom</source>
<translation>Zoom digital</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="153"/>
<source>EXIF version</source>
<translation>Versió de l&apos;EXIF</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="156"/>
<source>Latitude reference</source>
<translation>Referència de la latitud</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="158"/>
<source>Latitude</source>
<translation>Latitud</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="160"/>
<source>Longitude reference</source>
<translation>Referència de la longitud</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="162"/>
<source>Longitude</source>
<translation>Longitud</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="164"/>
<source>Altitude reference</source>
<translation>Referència de l&apos;altitud</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="166"/>
<source>Altitude</source>
<translation>Altitud</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="176"/>
<source>%1 x %2</source>
<translation>%1 x %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="194"/>
<source>%1 : %2</source>
<translation>%1 : %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Property</source>
<translation>Propietat</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Value</source>
<translation>Valor</translation>
</message>
</context>
<context>
<name>SettingsDialog</name>
<message>
<location filename="../settingsdialog.cpp" line="32"/>
<source>Settings</source>
<translation>Paràmetres</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="40"/>
<source>Options</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="52"/>
<source>Shortcuts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="62"/>
<source>Editing shortcuts for action &quot;%1&quot;:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="71"/>
<source>Failed to set shortcuts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="72"/>
<source>Please check if shortcuts are duplicated with existing shortcuts.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="79"/>
<source>Do nothing</source>
<translation>No facis res</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="80"/>
<source>Close the window</source>
<translation>Tanca la finestra</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="81"/>
<source>Toggle maximize</source>
<translation>Commuta la maximització</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="82"/>
<source>Toggle fullscreen</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="86"/>
<source>Zoom in and out</source>
<translation>Amplia i redueix</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="87"/>
<source>View next or previous item</source>
<translation>Mostra l&apos;element següent o l&apos;anterior</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="91"/>
<source>Auto size</source>
<translation>Mida automàtica</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="92"/>
<source>Maximized</source>
<translation>Maximitza</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="93"/>
<source>Windowed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="97"/>
<source>Round (Integer scaling)</source>
<comment>This option means round up for .5 and above</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="98"/>
<source>Ceil (Integer scaling)</source>
<comment>This option means always round up</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="99"/>
<source>Floor (Integer scaling)</source>
<comment>This option means always round down</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="100"/>
<source>Follow system (Fractional scaling)</source>
<comment>This option means don&apos;t round</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="123"/>
<source>Stay on top when start-up</source>
<translation>Mantingues a sobre a l&apos;inici</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="124"/>
<source>Use built-in close window animation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="125"/>
<source>Use light-color checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="126"/>
<source>Loop the loaded gallery</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="127"/>
<source>Auto long image mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="128"/>
<source>Double-click behavior</source>
<translation>Comportament del doble clic</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="129"/>
<source>Mouse wheel behavior</source>
<translation>Comportament de la roda del ratolí</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="130"/>
<source>Default window size</source>
<translation>Mida de la finestra per defecte</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="131"/>
<source>HiDPI scale factor rounding policy</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ShortcutEdit</name>
<message>
<location filename="../shortcutedit.cpp" line="104"/>
<source>No shortcuts</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ShortcutEditor</name>
<message>
<location filename="../shortcutedit.cpp" line="70"/>
<source>Shortcut #%1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.cpp" line="42"/>
<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>Llista de fitxers.</translation>
</message>
</context>
</TS>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,912 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="id_ID">
<context>
<name>AboutDialog</name>
<message>
<location filename="../aboutdialog.cpp" line="29"/>
<source>About</source>
<translation>Tentang</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="32"/>
<source>Launch application with image file path as argument to load the file.</source>
<translation>Luncurkan aplikasi dengan lokasi file gambar sebagai argumen untuk memuat file.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="33"/>
<source>Drag and drop image file onto the window is also supported.</source>
<translation>Tarik dan lepaskan gambar ke jendela juga didukung.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="34"/>
<source>None of the operations in this application will alter the pictures on disk.</source>
<translation>Semua operasi pada aplikasi ini tidak akan mengubah gambar pada diska.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="35"/>
<source>Context menu option explanation:</source>
<translation>Penjelasan opsi menu Context:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="42"/>
<source>Make window stay on top of all other windows.</source>
<translation>Buat jendela tetap di atas semua jendela lainnya.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="45"/>
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
<translation>Hindari penutupan jendela secara tidak sengaja (contoh dengan mengklik jendela dua kali)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="55"/>
<source>Version: %1</source>
<translation>Versi: %1</translation>
</message>
<message>
<source>Copyright (c) 2020 %1</source>
<translation type="vanished">Hak Cipta (c) 2020 %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="66"/>
<source>Logo designed by %1</source>
<translation>Logo didesain oleh %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="68"/>
<source>Built with Qt %1 (%2)</source>
<translation>Dibuat dengan Qt %1 (%2)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="69"/>
<source>Source code</source>
<translation>Kode sumber</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="79"/>
<source>Contributors</source>
<translation>Kontributor-kontributor</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="81"/>
<source>List of contributors on GitHub</source>
<translation>Daftar kontributor di GitHub</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="82"/>
<source>Thanks to all people who contributed to this project.</source>
<translation>Terima kasih kepada semua orang yang telah berkontribusi ke proyek ini.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="86"/>
<source>Translators</source>
<translation>Penerjemah</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="87"/>
<source>I would like to thank the following people who volunteered to translate this application.</source>
<translation>Saya ingin berterima kasih orang-orang berikut yang secara sukarela menerjemahkan aplikasi ini.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="131"/>
<source>%1 is built on the following free software libraries:</source>
<comment>Free as in freedom</comment>
<translation>%1 dibangun dengan perpustakaan perangkat lunak bebas berikut:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="155"/>
<source>&amp;Special Thanks</source>
<translation>&amp;Terima kasih</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="157"/>
<source>&amp;Third-party Libraries</source>
<translation>&amp; Perpustakaan pihak ketiga</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="93"/>
<source>Your Rights</source>
<translation>Hak Anda</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="48"/>
<source>Avoid resetting the zoom/rotation/flip state that was applied to the image view when switching between images.</source>
<translation>Hindari mengatur ulang keadaan zoom/rotasi/flip yang diterapkan pada tampilan gambar saat beralih antara gambar.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="63"/>
<source>Copyright (c) %1 %2</source>
<comment>%1 is year, %2 is the name of copyright holder(s)</comment>
<translation>Hak Cipta (c) %1 %2</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="95"/>
<source>%1 is released under the MIT License.</source>
<translation>%1 diluncurkan di bawah lisensi MIT.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="96"/>
<source>This license grants people a number of freedoms:</source>
<translation>Lisensi ini memberikan orang-orang beberapa kebebasan:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="97"/>
<source>You are free to use %1, for any purpose</source>
<translation>Anda bebas menggunakan %1, untuk tujuan apapun</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="98"/>
<source>You are free to distribute %1</source>
<translation>Anda bebas mendistribusikan %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="99"/>
<source>You can study how %1 works and change it</source>
<translation>Anda dapat mempelajari bagaimana cara %1 bekerja dan mengubahnya</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="100"/>
<source>You can distribute changed versions of %1</source>
<translation>Anda dapat mendistribusikan versi %1 yang telah diubah</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="102"/>
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
<translation>Lisensi MIT menjamin kebebasan ini. Tidak ada yang pernah diizinkan untuk mengambilnya.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="130"/>
<source>Third-party Libraries used by %1</source>
<translation>Perpustakaan pihak ketiga yang digunakan oleh %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="153"/>
<source>&amp;Help</source>
<translation>&amp;Dukungan</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="154"/>
<source>&amp;About</source>
<translation>Tentan&amp;g</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="156"/>
<source>&amp;License</source>
<translation>&amp;Lisensi</translation>
</message>
</context>
<context>
<name>GraphicsScene</name>
<message>
<location filename="../mainwindow.cpp" line="292"/>
<location filename="../graphicsscene.cpp" line="100"/>
<source>Drag image here</source>
<translation>Tarik gambar ke sini</translation>
</message>
</context>
<context>
<name>GraphicsView</name>
<message>
<source>File url list is empty</source>
<translation type="vanished">Daftar url file kosong</translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="50"/>
<source>File is not a valid image</source>
<translation>File bukan gambar yang valid</translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="54"/>
<location filename="../graphicsview.cpp" line="58"/>
<source>Image data is invalid or currently unsupported</source>
<translation>Data gambar tidak valid atau belum didukung</translation>
</message>
<message>
<source>Image data is invalid</source>
<translation type="vanished">Data gambar tidak valid</translation>
</message>
<message>
<source>Not supported mimedata: %1</source>
<translation type="vanished">Tidak didukung mimedata: %1</translation>
</message>
</context>
<context>
<name>MainWindow</name>
<message>
<location filename="../mainwindow.cpp" line="190"/>
<location filename="../mainwindow.cpp" line="561"/>
<source>File url list is empty</source>
<translation>Daftar url file kosong</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="461"/>
<source>&amp;Copy</source>
<translation>&amp;Salin</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="569"/>
<source>Image data is invalid</source>
<translation>Data gambar tidak valid</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="576"/>
<source>Not supported mimedata: %1</source>
<translation>Tidak didukung mimedata: %1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="783"/>
<source>Image From Clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="801"/>
<source>Are you sure you want to move &quot;%1&quot; to recycle bin?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="805"/>
<source>Failed to move file to trash</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="806"/>
<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="106"/>
<source>Copy P&amp;ixmap</source>
<translation>Salin P&amp;ixmap</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="107"/>
<source>Copy &amp;File Path</source>
<translation>Salin &amp;Path Berkas</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="125"/>
<source>Properties</source>
<translation>Properti</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="110"/>
<location filename="../aboutdialog.cpp" line="41"/>
<source>Stay on top</source>
<translation>Tetap di atas</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="111"/>
<location filename="../aboutdialog.cpp" line="44"/>
<source>Protected mode</source>
<translation>Mode Terlindungi</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="112"/>
<location filename="../aboutdialog.cpp" line="47"/>
<source>Keep transformation</source>
<comment>The &apos;transformation&apos; means the flip/rotation status that currently applied to the image view</comment>
<translation>Simpan transformasi</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="90"/>
<source>Zoom in</source>
<translation>Perbesar</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="91"/>
<source>Zoom out</source>
<translation>Perkecil</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="99"/>
<source>Pause/Resume Animation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="100"/>
<source>Animation Go to Next Frame</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="102"/>
<source>Flip &amp;Horizontally</source>
<translation>Putar Secara &amp;Horizontal</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="103"/>
<source>Fit to view</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="104"/>
<source>Fit to width</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="105"/>
<source>Fit long image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="108"/>
<source>&amp;Paste</source>
<translation>&amp;Tempel</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="92"/>
<source>Toggle Checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="86"/>
<source>&amp;Open...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="88"/>
<source>Actual size</source>
<translation>Ukuran asli</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="89"/>
<source>Toggle maximize</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="93"/>
<source>Rotate right</source>
<translation>Putar ke kanan</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="94"/>
<source>Rotate left</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="96"/>
<source>Previous image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="97"/>
<source>Next image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="800"/>
<location filename="../actionmanager.cpp" line="109"/>
<source>Move to Trash</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="113"/>
<source>Configure...</source>
<translation>Konfigurasi...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="114"/>
<source>Help</source>
<translation>Dukungan</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="117"/>
<source>Show in File Explorer</source>
<comment>File Explorer is the name of explorer.exe under Windows</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="123"/>
<source>Show in directory</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="126"/>
<source>Quit</source>
<translation>Keluar</translation>
</message>
</context>
<context>
<name>MetadataDialog</name>
<message>
<location filename="../metadatadialog.cpp" line="84"/>
<source>Image Metadata</source>
<translation>Metadata Gambar</translation>
</message>
</context>
<context>
<name>MetadataModel</name>
<message>
<location filename="../metadatamodel.cpp" line="43"/>
<source>Origin</source>
<comment>Section name.</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="44"/>
<source>Image</source>
<comment>Section name.</comment>
<translation>Gambar</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="48"/>
<source>File</source>
<comment>Section name.</comment>
<translation>Berkas</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="45"/>
<source>Camera</source>
<comment>Section name.</comment>
<translation>Kamera</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="35"/>
<source>%1 File</source>
<translation>%1 Berkas</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="42"/>
<source>Description</source>
<comment>Section name.</comment>
<translation>Keterangan</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="46"/>
<source>Advanced photo</source>
<comment>Section name.</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="47"/>
<source>GPS</source>
<comment>Section name.</comment>
<translation>GPS</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="52"/>
<source>Dimensions</source>
<translation>Dimensi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="54"/>
<source>Aspect ratio</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="58"/>
<source>Frame count</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="62"/>
<source>Name</source>
<translation>Nama</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="64"/>
<source>Item type</source>
<translation>Jenis item</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="66"/>
<source>Folder path</source>
<translation>Path folder</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="68"/>
<source>Size</source>
<translation>Ukuran</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="70"/>
<source>Date created</source>
<translation>Tanggal dibuat</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="72"/>
<source>Date modified</source>
<translation>Tanggal dimodifikasi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="79"/>
<source>Title</source>
<translation>Judul</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="81"/>
<source>Subject</source>
<translation>Subyek</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="83"/>
<source>Rating</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="85"/>
<source>Tags</source>
<translation>Tag</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="87"/>
<source>Comments</source>
<translation>Komentar</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="90"/>
<source>Authors</source>
<translation>Penulis</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="92"/>
<source>Date taken</source>
<translation>Tanggal diambil</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="98"/>
<source>Program name</source>
<translation>Nama program</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="100"/>
<source>Copyright</source>
<translation>Hak cipta</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="103"/>
<source>Horizontal resolution</source>
<translation>Resolusi horizontal</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="105"/>
<source>Vertical resolution</source>
<translation>Resolusi vertikal</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="107"/>
<source>Resolution unit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="109"/>
<source>Colour representation</source>
<translation type="unfinished">Representasi warna</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="112"/>
<source>Camera maker</source>
<translation>Pembuat kamera</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="114"/>
<source>Camera model</source>
<translation>Model kamera</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="116"/>
<source>F-stop</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="118"/>
<source>Exposure time</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="120"/>
<source>ISO speed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="122"/>
<source>Exposure bias</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="124"/>
<source>Focal length</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="126"/>
<source>Max aperture</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="128"/>
<source>Metering mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="130"/>
<source>Subject distance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="132"/>
<source>Flash mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="134"/>
<source>35mm focal length</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="137"/>
<source>Lens model</source>
<translation>Model lensa</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="139"/>
<source>Contrast</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="141"/>
<source>Brightness</source>
<translation>Kecerahan</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="143"/>
<source>Exposure program</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="145"/>
<source>Saturation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="147"/>
<source>Sharpness</source>
<translation>Ketajaman</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="149"/>
<source>White balance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="151"/>
<source>Digital zoom</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="153"/>
<source>EXIF version</source>
<translation>Versi EXIF</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="156"/>
<source>Latitude reference</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="158"/>
<source>Latitude</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="160"/>
<source>Longitude reference</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="162"/>
<source>Longitude</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="164"/>
<source>Altitude reference</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="166"/>
<source>Altitude</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="176"/>
<source>%1 x %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="194"/>
<source>%1 : %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Property</source>
<translation>Properti</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Value</source>
<translation>Nilai</translation>
</message>
</context>
<context>
<name>SettingsDialog</name>
<message>
<location filename="../settingsdialog.cpp" line="32"/>
<source>Settings</source>
<translation>Pengaturan</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="40"/>
<source>Options</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="52"/>
<source>Shortcuts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="62"/>
<source>Editing shortcuts for action &quot;%1&quot;:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="71"/>
<source>Failed to set shortcuts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="72"/>
<source>Please check if shortcuts are duplicated with existing shortcuts.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="79"/>
<source>Do nothing</source>
<translation>Jangan lakukan apapun</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="80"/>
<source>Close the window</source>
<translation>Tutup jendela</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="81"/>
<source>Toggle maximize</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="82"/>
<source>Toggle fullscreen</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="86"/>
<source>Zoom in and out</source>
<translation>Perbesar dan perkecil</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="87"/>
<source>View next or previous item</source>
<translation>Lihat item berikutnya atau sebelumnya</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="91"/>
<source>Auto size</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="92"/>
<source>Maximized</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="93"/>
<source>Windowed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="97"/>
<source>Round (Integer scaling)</source>
<comment>This option means round up for .5 and above</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="98"/>
<source>Ceil (Integer scaling)</source>
<comment>This option means always round up</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="99"/>
<source>Floor (Integer scaling)</source>
<comment>This option means always round down</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="100"/>
<source>Follow system (Fractional scaling)</source>
<comment>This option means don&apos;t round</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="123"/>
<source>Stay on top when start-up</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="124"/>
<source>Use built-in close window animation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="125"/>
<source>Use light-color checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="126"/>
<source>Loop the loaded gallery</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="127"/>
<source>Auto long image mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="128"/>
<source>Double-click behavior</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="129"/>
<source>Mouse wheel behavior</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="130"/>
<source>Default window size</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="131"/>
<source>HiDPI scale factor rounding policy</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ShortcutEdit</name>
<message>
<location filename="../shortcutedit.cpp" line="104"/>
<source>No shortcuts</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ShortcutEditor</name>
<message>
<location filename="../shortcutedit.cpp" line="70"/>
<source>Shortcut #%1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.cpp" line="42"/>
<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>Daftar berkas.</translation>
</message>
</context>
</TS>

View File

@ -1,908 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="it_IT">
<context>
<name>AboutDialog</name>
<message>
<location filename="../aboutdialog.cpp" line="29"/>
<source>About</source>
<translation>Informazioni</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="32"/>
<source>Launch application with image file path as argument to load the file.</source>
<translation>Avvia l&apos;applicazione con il percorso del file immagine come argomento per caricare il file.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="33"/>
<source>Drag and drop image file onto the window is also supported.</source>
<translation>È supportato anche il trascinamento del file immagine sulla finestra.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="34"/>
<source>None of the operations in this application will alter the pictures on disk.</source>
<translation>Nessuna delle operazioni in questa applicazione altererà le immagini sul disco.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="35"/>
<source>Context menu option explanation:</source>
<translation>Spiegazione delle opzioni del menu contestuale:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="42"/>
<source>Make window stay on top of all other windows.</source>
<translation>Fai in modo che la finestra rimanga in cima a tutte le altre finestre.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="45"/>
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
<translation>Evitare di chiudere accidentalmente la finestra. (es. facendo doppio clic sulla finestra)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="48"/>
<source>Avoid resetting the zoom/rotation/flip state that was applied to the image view when switching between images.</source>
<translation>Evitare di reimpostare lo stato di zoom/rotazione/capovolgimento applicato alla visualizzazione dell&apos;immagine quando si passa da un&apos;immagine all&apos;altra.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="55"/>
<source>Version: %1</source>
<translation>Versione: %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="66"/>
<source>Logo designed by %1</source>
<translation>Logo disegnato da %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="68"/>
<source>Built with Qt %1 (%2)</source>
<translation>Costruito con Qt %1 (%2)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="69"/>
<source>Source code</source>
<translation>Codice sorgente</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="79"/>
<source>Contributors</source>
<translation>Contributori</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="81"/>
<source>List of contributors on GitHub</source>
<translation>Elenco dei contributori su GitHub</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="82"/>
<source>Thanks to all people who contributed to this project.</source>
<translation>Grazie a tutte le persone che hanno contribuito a questo progetto.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="86"/>
<source>Translators</source>
<translation>Traduttori</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="87"/>
<source>I would like to thank the following people who volunteered to translate this application.</source>
<translation>Vorrei ringraziare le seguenti persone che si sono offerte volontarie per tradurre questa applicazione.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="131"/>
<source>%1 is built on the following free software libraries:</source>
<comment>Free as in freedom</comment>
<translation>%1 si basa sulle seguenti librerie di software libero:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="155"/>
<source>&amp;Special Thanks</source>
<translation>&amp;Ringraziamenti speciali</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="157"/>
<source>&amp;Third-party Libraries</source>
<translation>&amp;Librerie di terze parti</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="93"/>
<source>Your Rights</source>
<translation>I tuoi diritti</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="63"/>
<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="95"/>
<source>%1 is released under the MIT License.</source>
<translation>%1 è rilasciato sotto licenza MIT.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="96"/>
<source>This license grants people a number of freedoms:</source>
<translation>Questa licenza garantisce alle persone una serie di libertà:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="97"/>
<source>You are free to use %1, for any purpose</source>
<translation>Sei libero di usare %1, per qualsiasi scopo</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="98"/>
<source>You are free to distribute %1</source>
<translation>Sei libero di distribuire %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="99"/>
<source>You can study how %1 works and change it</source>
<translation>Puoi studiare come funziona %1 e cambiarlo</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="100"/>
<source>You can distribute changed versions of %1</source>
<translation>Puoi distribuire versioni modificate di %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="102"/>
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
<translation>La licenza MIT ti garantisce questa libertà. A nessuno è mai permesso portarlo via.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="130"/>
<source>Third-party Libraries used by %1</source>
<translation>Librerie di terze parti utilizzate da %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="153"/>
<source>&amp;Help</source>
<translation>&amp;Aiuto</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="154"/>
<source>&amp;About</source>
<translation>&amp;Informazioni</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="156"/>
<source>&amp;License</source>
<translation>&amp;Licenza</translation>
</message>
</context>
<context>
<name>GraphicsScene</name>
<message>
<location filename="../mainwindow.cpp" line="292"/>
<location filename="../graphicsscene.cpp" line="100"/>
<source>Drag image here</source>
<translation>Trascina qui l&apos;immagine</translation>
</message>
</context>
<context>
<name>GraphicsView</name>
<message>
<source>File url list is empty</source>
<translation type="vanished">L&apos;elenco degli URL dei file è vuoto</translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="50"/>
<source>File is not a valid image</source>
<translation>Il file non è un&apos;immagine valida</translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="54"/>
<location filename="../graphicsview.cpp" line="58"/>
<source>Image data is invalid or currently unsupported</source>
<translation>I dati dell&apos;immagine non sono validi o non sono attualmente supportati</translation>
</message>
<message>
<source>Image data is invalid</source>
<translation type="vanished">I dati dell&apos;immagine non sono validi</translation>
</message>
<message>
<source>Not supported mimedata: %1</source>
<translation type="vanished">Dati mime non supportati: %1</translation>
</message>
</context>
<context>
<name>MainWindow</name>
<message>
<location filename="../mainwindow.cpp" line="190"/>
<location filename="../mainwindow.cpp" line="561"/>
<source>File url list is empty</source>
<translation>L&apos;elenco degli URL dei file è vuoto</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="461"/>
<source>&amp;Copy</source>
<translation>&amp;Copia</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="569"/>
<source>Image data is invalid</source>
<translation>I dati dell&apos;immagine non sono validi</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="576"/>
<source>Not supported mimedata: %1</source>
<translation>Dati mime non supportati: %1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="783"/>
<source>Image From Clipboard</source>
<translation>Immagine dagli appunti</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="801"/>
<source>Are you sure you want to move &quot;%1&quot; to recycle bin?</source>
<translation>Sei sicuro di voler spostare &quot;%1&quot; nel cestino?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="805"/>
<source>Failed to move file to trash</source>
<translation>Impossibile spostare il file nel cestino</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="806"/>
<source>Move to trash failed, it might caused by file permission issue, file system limitation, or platform limitation.</source>
<translation>Lo spostamento nel cestino non è riuscito, potrebbe essere causato da un problema di autorizzazione del file, da una limitazione del file system o da una limitazione della piattaforma.</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="106"/>
<source>Copy P&amp;ixmap</source>
<translation>Copia P&amp;ixmap</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="107"/>
<source>Copy &amp;File Path</source>
<translation>Copia &amp;Percorso file</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="125"/>
<source>Properties</source>
<translation>Proprietà</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="110"/>
<location filename="../aboutdialog.cpp" line="41"/>
<source>Stay on top</source>
<translation>Rimani in cima</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="111"/>
<location filename="../aboutdialog.cpp" line="44"/>
<source>Protected mode</source>
<translation>Modalità protetta</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="112"/>
<location filename="../aboutdialog.cpp" line="47"/>
<source>Keep transformation</source>
<comment>The &apos;transformation&apos; means the flip/rotation status that currently applied to the image view</comment>
<translation>Mantieni trasformazione</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="90"/>
<source>Zoom in</source>
<translation>Zoom avanti</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="91"/>
<source>Zoom out</source>
<translation>Zoom indietro</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="99"/>
<source>Pause/Resume Animation</source>
<translation>Pausa/Riprendi animazione</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="100"/>
<source>Animation Go to Next Frame</source>
<translation>Animazione Vai al fotogramma successivo</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="102"/>
<source>Flip &amp;Horizontally</source>
<translation>Capovolgi &amp;Orizzontalmente</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="103"/>
<source>Fit to view</source>
<translation>Adatto alla visualizzazione</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="104"/>
<source>Fit to width</source>
<translation>Adatta alla larghezza</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="105"/>
<source>Fit long image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="108"/>
<source>&amp;Paste</source>
<translation>&amp;Incolla</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="92"/>
<source>Toggle Checkerboard</source>
<translation>Attiva/disattiva scacchiera</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="86"/>
<source>&amp;Open...</source>
<translation>&amp;Apri...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="88"/>
<source>Actual size</source>
<translation>Dimensione reale</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="89"/>
<source>Toggle maximize</source>
<translation>Attiva massimizzazione</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="93"/>
<source>Rotate right</source>
<translation>Ruota a destra</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="94"/>
<source>Rotate left</source>
<translation>Ruota a sinistra</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="96"/>
<source>Previous image</source>
<translation>Immagine precedente</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="97"/>
<source>Next image</source>
<translation>Immagine successiva</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="800"/>
<location filename="../actionmanager.cpp" line="109"/>
<source>Move to Trash</source>
<translation>Sposta nel cestino</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="113"/>
<source>Configure...</source>
<translation>Configura...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="114"/>
<source>Help</source>
<translation>Aiuto</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="117"/>
<source>Show in File Explorer</source>
<comment>File Explorer is the name of explorer.exe under Windows</comment>
<translation>Mostra in Esplora file</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="123"/>
<source>Show in directory</source>
<translation>Mostra nella directory</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="126"/>
<source>Quit</source>
<translation>Esci</translation>
</message>
</context>
<context>
<name>MetadataDialog</name>
<message>
<location filename="../metadatadialog.cpp" line="84"/>
<source>Image Metadata</source>
<translation>Metadati dell&apos;immagine</translation>
</message>
</context>
<context>
<name>MetadataModel</name>
<message>
<location filename="../metadatamodel.cpp" line="43"/>
<source>Origin</source>
<comment>Section name.</comment>
<translation>Origine</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="44"/>
<source>Image</source>
<comment>Section name.</comment>
<translation>Immagine</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="48"/>
<source>File</source>
<comment>Section name.</comment>
<translation>File</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="45"/>
<source>Camera</source>
<comment>Section name.</comment>
<translation>Camera</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="35"/>
<source>%1 File</source>
<translation>%1 File</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="42"/>
<source>Description</source>
<comment>Section name.</comment>
<translation>Descrizione</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="46"/>
<source>Advanced photo</source>
<comment>Section name.</comment>
<translation>Foto avanzata</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="47"/>
<source>GPS</source>
<comment>Section name.</comment>
<translation>GPS</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="52"/>
<source>Dimensions</source>
<translation>Dimensioni</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="54"/>
<source>Aspect ratio</source>
<translation>Proporzioni</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="58"/>
<source>Frame count</source>
<translation>Conteggio fotogrammi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="62"/>
<source>Name</source>
<translation>Nome</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="64"/>
<source>Item type</source>
<translation>Tipo di elemento</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="66"/>
<source>Folder path</source>
<translation>Percorso cartella</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="68"/>
<source>Size</source>
<translation>Dimensione</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="70"/>
<source>Date created</source>
<translation>Data di creazione</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="72"/>
<source>Date modified</source>
<translation>Data di modifica</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="79"/>
<source>Title</source>
<translation>Titolo</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="81"/>
<source>Subject</source>
<translation>Soggetto</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="83"/>
<source>Rating</source>
<translation>Valutazione</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="85"/>
<source>Tags</source>
<translation>Tag</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="87"/>
<source>Comments</source>
<translation>Commenti</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="90"/>
<source>Authors</source>
<translation>Autori</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="92"/>
<source>Date taken</source>
<translation>Data scatto</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="98"/>
<source>Program name</source>
<translation>Nome programma</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="100"/>
<source>Copyright</source>
<translation>Copyright</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="103"/>
<source>Horizontal resolution</source>
<translation>Risoluzione orizzontale</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="105"/>
<source>Vertical resolution</source>
<translation>Risoluzione verticale</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="107"/>
<source>Resolution unit</source>
<translation>Unità di risoluzione</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="109"/>
<source>Colour representation</source>
<translation>Rappresentazione del colore</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="112"/>
<source>Camera maker</source>
<translation>Produttore macchina fotografica</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="114"/>
<source>Camera model</source>
<translation>Modello camera</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="116"/>
<source>F-stop</source>
<translation>F-stop</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="118"/>
<source>Exposure time</source>
<translation>Tempo di esposizione</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="120"/>
<source>ISO speed</source>
<translation>Velocità ISO</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="122"/>
<source>Exposure bias</source>
<translation>Bias d&apos;esposizione</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="124"/>
<source>Focal length</source>
<translation>Lunghezza focale</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="126"/>
<source>Max aperture</source>
<translation>Massima apertura</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="128"/>
<source>Metering mode</source>
<translation>Modalità di misurazione</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="130"/>
<source>Subject distance</source>
<translation>Distanza del soggetto</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="132"/>
<source>Flash mode</source>
<translation>Modalità flash</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="134"/>
<source>35mm focal length</source>
<translation>Lunghezza focale 35 mm</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="137"/>
<source>Lens model</source>
<translation>Modello di lente</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="139"/>
<source>Contrast</source>
<translation>Contrasto</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="141"/>
<source>Brightness</source>
<translation>Luminosità</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="143"/>
<source>Exposure program</source>
<translation>Programma di esposizione</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="145"/>
<source>Saturation</source>
<translation>Saturazione</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="147"/>
<source>Sharpness</source>
<translation>Nitidezza</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="149"/>
<source>White balance</source>
<translation>Bilanciamento del bianco</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="151"/>
<source>Digital zoom</source>
<translation>Zoom digitale</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="153"/>
<source>EXIF version</source>
<translation>Versione EXIF</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="156"/>
<source>Latitude reference</source>
<translation>Riferimento di latitudine</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="158"/>
<source>Latitude</source>
<translation>Latitudine</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="160"/>
<source>Longitude reference</source>
<translation>Riferimento di longitudine</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="162"/>
<source>Longitude</source>
<translation>Longitudine</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="164"/>
<source>Altitude reference</source>
<translation>Riferimento altimetrico</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="166"/>
<source>Altitude</source>
<translation>Altitudine</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="176"/>
<source>%1 x %2</source>
<translation>%1 x %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="194"/>
<source>%1 : %2</source>
<translation>%1 : %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Property</source>
<translation>Proprietà</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Value</source>
<translation>Valore</translation>
</message>
</context>
<context>
<name>SettingsDialog</name>
<message>
<location filename="../settingsdialog.cpp" line="32"/>
<source>Settings</source>
<translation>Impostazioni</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="40"/>
<source>Options</source>
<translation>Opzioni</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="52"/>
<source>Shortcuts</source>
<translation>Scorciatoie</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="62"/>
<source>Editing shortcuts for action &quot;%1&quot;:</source>
<translation>Modifica delle scorciatoie per l&apos;azione &quot;%1&quot;:</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="71"/>
<source>Failed to set shortcuts</source>
<translation>Impossibile impostare le scorciatoie</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="72"/>
<source>Please check if shortcuts are duplicated with existing shortcuts.</source>
<translation>Controlla se i collegamenti sono duplicati con collegamenti esistenti.</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="79"/>
<source>Do nothing</source>
<translation>Non fare nulla</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="80"/>
<source>Close the window</source>
<translation>Chiudi la finestra</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="81"/>
<source>Toggle maximize</source>
<translation>Attiva massimizzazione</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="82"/>
<source>Toggle fullscreen</source>
<translation>Attiva schermo intero</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="86"/>
<source>Zoom in and out</source>
<translation>Zoom avanti e indietro</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="87"/>
<source>View next or previous item</source>
<translation>Visualizza l&apos;elemento successivo o precedente</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="91"/>
<source>Auto size</source>
<translation>Dimensione automatica</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="92"/>
<source>Maximized</source>
<translation>Massimizzato</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="93"/>
<source>Windowed</source>
<translation>Finestrato</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="97"/>
<source>Round (Integer scaling)</source>
<comment>This option means round up for .5 and above</comment>
<translation>Round (ridimensionamento intero)</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="98"/>
<source>Ceil (Integer scaling)</source>
<comment>This option means always round up</comment>
<translation>Ceil (ridimensionamento intero)</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="99"/>
<source>Floor (Integer scaling)</source>
<comment>This option means always round down</comment>
<translation>Floor (ridimensionamento intero)</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="100"/>
<source>Follow system (Fractional scaling)</source>
<comment>This option means don&apos;t round</comment>
<translation>Segui il sistema (scala frazionaria)</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="123"/>
<source>Stay on top when start-up</source>
<translation>Rimani in cima quando si avvia</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="124"/>
<source>Use built-in close window animation</source>
<translation>Utilizza l&apos;animazione di chiusura della finestra integrata</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="125"/>
<source>Use light-color checkerboard</source>
<translation>Utilizzare scacchiera di colore chiaro</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="126"/>
<source>Loop the loaded gallery</source>
<translation>Esegui il loop della galleria caricata</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="127"/>
<source>Auto long image mode</source>
<translation>Modalità immagine lunga automatica</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="128"/>
<source>Double-click behavior</source>
<translation>Comportamento del doppio clic</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="129"/>
<source>Mouse wheel behavior</source>
<translation>Comportamento della rotellina del mouse</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="130"/>
<source>Default window size</source>
<translation>Dimensioni predefinite della finestra</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="131"/>
<source>HiDPI scale factor rounding policy</source>
<translation>Politica di arrotondamento del fattore di scala HiDPI</translation>
</message>
</context>
<context>
<name>ShortcutEdit</name>
<message>
<location filename="../shortcutedit.cpp" line="104"/>
<source>No shortcuts</source>
<translation>Nessuna scorciatoia</translation>
</message>
</context>
<context>
<name>ShortcutEditor</name>
<message>
<location filename="../shortcutedit.cpp" line="70"/>
<source>Shortcut #%1</source>
<translation>Scorciatoia #%1</translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.cpp" line="42"/>
<source>Pineapple Pictures</source>
<translation>Immagini di Pineapple</translation>
</message>
<message>
<location filename="../main.cpp" line="45"/>
<source>List supported image format suffixes, and quit program.</source>
<translation>Elenca i suffissi dei formati immagine supportati e chiudi il programma.</translation>
</message>
<message>
<location filename="../main.cpp" line="49"/>
<source>File list.</source>
<translation>Elenco file.</translation>
</message>
</context>
</TS>

View File

@ -1,908 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ja_JP">
<context>
<name>AboutDialog</name>
<message>
<location filename="../aboutdialog.cpp" line="29"/>
<source>About</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="32"/>
<source>Launch application with image file path as argument to load the file.</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="33"/>
<source>Drag and drop image file onto the window is also supported.</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="34"/>
<source>None of the operations in this application will alter the pictures on disk.</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="35"/>
<source>Context menu option explanation:</source>
<translation>:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="42"/>
<source>Make window stay on top of all other windows.</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="45"/>
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
<translation>()</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="48"/>
<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="55"/>
<source>Version: %1</source>
<translation>: %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="66"/>
<source>Logo designed by %1</source>
<translation>: %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="68"/>
<source>Built with Qt %1 (%2)</source>
<translation>Qt %1 (%2) </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="69"/>
<source>Source code</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="79"/>
<source>Contributors</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="81"/>
<source>List of contributors on GitHub</source>
<translation>GitHubでの貢献者リスト</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="82"/>
<source>Thanks to all people who contributed to this project.</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="86"/>
<source>Translators</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="87"/>
<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="131"/>
<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="155"/>
<source>&amp;Special Thanks</source>
<translation>(&amp;S)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="157"/>
<source>&amp;Third-party Libraries</source>
<translation>(&amp;T)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="93"/>
<source>Your Rights</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="63"/>
<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="95"/>
<source>%1 is released under the MIT License.</source>
<translation>%1MITライセンスのもとで公開されています</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="96"/>
<source>This license grants people a number of freedoms:</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="97"/>
<source>You are free to use %1, for any purpose</source>
<translation>%1使</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="98"/>
<source>You are free to distribute %1</source>
<translation>%1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="99"/>
<source>You can study how %1 works and change it</source>
<translation>%1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="100"/>
<source>You can distribute changed versions of %1</source>
<translation> %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="102"/>
<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="130"/>
<source>Third-party Libraries used by %1</source>
<translation>%1使</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="153"/>
<source>&amp;Help</source>
<translation>(&amp;H)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="154"/>
<source>&amp;About</source>
<translation>(&amp;A)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="156"/>
<source>&amp;License</source>
<translation>(&amp;L)</translation>
</message>
</context>
<context>
<name>GraphicsScene</name>
<message>
<location filename="../mainwindow.cpp" line="292"/>
<location filename="../graphicsscene.cpp" line="100"/>
<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="50"/>
<source>File is not a valid image</source>
<translation></translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="54"/>
<location filename="../graphicsview.cpp" line="58"/>
<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="190"/>
<location filename="../mainwindow.cpp" line="561"/>
<source>File url list is empty</source>
<translation>urlリストがエンプティーです</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="461"/>
<source>&amp;Copy</source>
<translation>(&amp;C)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="569"/>
<source>Image data is invalid</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="576"/>
<source>Not supported mimedata: %1</source>
<translation>mimedata: %1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="783"/>
<source>Image From Clipboard</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="801"/>
<source>Are you sure you want to move &quot;%1&quot; to recycle bin?</source>
<translation>%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="805"/>
<source>Failed to move file to trash</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="806"/>
<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="106"/>
<source>Copy P&amp;ixmap</source>
<translation>(&amp;I)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="107"/>
<source>Copy &amp;File Path</source>
<translation>(&amp;F)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="125"/>
<source>Properties</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="110"/>
<location filename="../aboutdialog.cpp" line="41"/>
<source>Stay on top</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="111"/>
<location filename="../aboutdialog.cpp" line="44"/>
<source>Protected mode</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="112"/>
<location filename="../aboutdialog.cpp" line="47"/>
<source>Keep transformation</source>
<comment>The &apos;transformation&apos; means the flip/rotation status that currently applied to the image view</comment>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="90"/>
<source>Zoom in</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="91"/>
<source>Zoom out</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="99"/>
<source>Pause/Resume Animation</source>
<translation> / </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="100"/>
<source>Animation Go to Next Frame</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="102"/>
<source>Flip &amp;Horizontally</source>
<translation>(&amp;H)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="103"/>
<source>Fit to view</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="104"/>
<source>Fit to width</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="105"/>
<source>Fit long image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="108"/>
<source>&amp;Paste</source>
<translation>(&amp;P)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="92"/>
<source>Toggle Checkerboard</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="86"/>
<source>&amp;Open...</source>
<translation>(&amp;O)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="88"/>
<source>Actual size</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="89"/>
<source>Toggle maximize</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="93"/>
<source>Rotate right</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="94"/>
<source>Rotate left</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="96"/>
<source>Previous image</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="97"/>
<source>Next image</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="800"/>
<location filename="../actionmanager.cpp" line="109"/>
<source>Move to Trash</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="113"/>
<source>Configure...</source>
<translation>...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="114"/>
<source>Help</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="117"/>
<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="123"/>
<source>Show in directory</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="126"/>
<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="43"/>
<source>Origin</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="44"/>
<source>Image</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="48"/>
<source>File</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="45"/>
<source>Camera</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="35"/>
<source>%1 File</source>
<translation>%1 </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="42"/>
<source>Description</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="46"/>
<source>Advanced photo</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="47"/>
<source>GPS</source>
<comment>Section name.</comment>
<translation>GPS</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="52"/>
<source>Dimensions</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="54"/>
<source>Aspect ratio</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="58"/>
<source>Frame count</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="62"/>
<source>Name</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="64"/>
<source>Item type</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="66"/>
<source>Folder path</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="68"/>
<source>Size</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="70"/>
<source>Date created</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="72"/>
<source>Date modified</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="79"/>
<source>Title</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="81"/>
<source>Subject</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="83"/>
<source>Rating</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="85"/>
<source>Tags</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="87"/>
<source>Comments</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="90"/>
<source>Authors</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="92"/>
<source>Date taken</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="98"/>
<source>Program name</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="100"/>
<source>Copyright</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="103"/>
<source>Horizontal resolution</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="105"/>
<source>Vertical resolution</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="107"/>
<source>Resolution unit</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="109"/>
<source>Colour representation</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="112"/>
<source>Camera maker</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="114"/>
<source>Camera model</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="116"/>
<source>F-stop</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="118"/>
<source>Exposure time</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="120"/>
<source>ISO speed</source>
<translation>ISO速度</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="122"/>
<source>Exposure bias</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="124"/>
<source>Focal length</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="126"/>
<source>Max aperture</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="128"/>
<source>Metering mode</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="130"/>
<source>Subject distance</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="132"/>
<source>Flash mode</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="134"/>
<source>35mm focal length</source>
<translation>35mm </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="137"/>
<source>Lens model</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="139"/>
<source>Contrast</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="141"/>
<source>Brightness</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="143"/>
<source>Exposure program</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="145"/>
<source>Saturation</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="147"/>
<source>Sharpness</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="149"/>
<source>White balance</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="151"/>
<source>Digital zoom</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="153"/>
<source>EXIF version</source>
<translation>EXIFバージョン</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="156"/>
<source>Latitude reference</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="158"/>
<source>Latitude</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="160"/>
<source>Longitude reference</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="162"/>
<source>Longitude</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="164"/>
<source>Altitude reference</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="166"/>
<source>Altitude</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="176"/>
<source>%1 x %2</source>
<translation>%1 × %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="194"/>
<source>%1 : %2</source>
<translation>%1 : %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Property</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Value</source>
<translation></translation>
</message>
</context>
<context>
<name>SettingsDialog</name>
<message>
<location filename="../settingsdialog.cpp" line="32"/>
<source>Settings</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="40"/>
<source>Options</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="52"/>
<source>Shortcuts</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="62"/>
<source>Editing shortcuts for action &quot;%1&quot;:</source>
<translation>%1:</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="71"/>
<source>Failed to set shortcuts</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="72"/>
<source>Please check if shortcuts are duplicated with existing shortcuts.</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="79"/>
<source>Do nothing</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="80"/>
<source>Close the window</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="81"/>
<source>Toggle maximize</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="82"/>
<source>Toggle fullscreen</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="86"/>
<source>Zoom in and out</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="87"/>
<source>View next or previous item</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="91"/>
<source>Auto size</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="92"/>
<source>Maximized</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="93"/>
<source>Windowed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="97"/>
<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="98"/>
<source>Ceil (Integer scaling)</source>
<comment>This option means always round up</comment>
<translation> ()</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="99"/>
<source>Floor (Integer scaling)</source>
<comment>This option means always round down</comment>
<translation> ()</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="100"/>
<source>Follow system (Fractional scaling)</source>
<comment>This option means don&apos;t round</comment>
<translation> ()</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="123"/>
<source>Stay on top when start-up</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="124"/>
<source>Use built-in close window animation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="125"/>
<source>Use light-color checkerboard</source>
<translation>使</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="126"/>
<source>Loop the loaded gallery</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="127"/>
<source>Auto long image mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="128"/>
<source>Double-click behavior</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="129"/>
<source>Mouse wheel behavior</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="130"/>
<source>Default window size</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="131"/>
<source>HiDPI scale factor rounding policy</source>
<translation>DPIスケーリングの四捨五入方法</translation>
</message>
</context>
<context>
<name>ShortcutEdit</name>
<message>
<location filename="../shortcutedit.cpp" line="104"/>
<source>No shortcuts</source>
<translation></translation>
</message>
</context>
<context>
<name>ShortcutEditor</name>
<message>
<location filename="../shortcutedit.cpp" line="70"/>
<source>Shortcut #%1</source>
<translation> #%1</translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.cpp" line="42"/>
<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></translation>
</message>
<message>
<location filename="../main.cpp" line="49"/>
<source>File list.</source>
<translation></translation>
</message>
</context>
</TS>

View File

@ -1,908 +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="29"/>
<source>About</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="32"/>
<source>Launch application with image file path as argument to load the file.</source>
<translation> .</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="33"/>
<source>Drag and drop image file onto the window is also supported.</source>
<translation> .</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="34"/>
<source>None of the operations in this application will alter the pictures on disk.</source>
<translation> .</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="35"/>
<source>Context menu option explanation:</source>
<translation> :</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="42"/>
<source>Make window stay on top of all other windows.</source>
<translation> .</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="45"/>
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
<translation> . (: 창을 )</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="48"/>
<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="55"/>
<source>Version: %1</source>
<translation>: %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="66"/>
<source>Logo designed by %1</source>
<translation>%1 </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="68"/>
<source>Built with Qt %1 (%2)</source>
<translation>Qt %1(%2) </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="69"/>
<source>Source code</source>
<translation> </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="79"/>
<source>Contributors</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="81"/>
<source>List of contributors on GitHub</source>
<translation>GitHub의 </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="82"/>
<source>Thanks to all people who contributed to this project.</source>
<translation> .</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="86"/>
<source>Translators</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="87"/>
<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="131"/>
<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="155"/>
<source>&amp;Special Thanks</source>
<translation> (&amp;S)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="157"/>
<source>&amp;Third-party Libraries</source>
<translation> (&amp;T)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="93"/>
<source>Your Rights</source>
<translation> </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="63"/>
<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="95"/>
<source>%1 is released under the MIT License.</source>
<translation> %1 MIT .</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="96"/>
<source>This license grants people a number of freedoms:</source>
<translation> :</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="97"/>
<source>You are free to use %1, for any purpose</source>
<translation>%1() </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="98"/>
<source>You are free to distribute %1</source>
<translation>%1 </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="99"/>
<source>You can study how %1 works and change it</source>
<translation>%1 </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="100"/>
<source>You can distribute changed versions of %1</source>
<translation> %1 </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="102"/>
<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="130"/>
<source>Third-party Libraries used by %1</source>
<translation>%1 </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="153"/>
<source>&amp;Help</source>
<translation>(&amp;H)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="154"/>
<source>&amp;About</source>
<translation>(&amp;A)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="156"/>
<source>&amp;License</source>
<translation>(&amp;L)</translation>
</message>
</context>
<context>
<name>GraphicsScene</name>
<message>
<location filename="../mainwindow.cpp" line="292"/>
<location filename="../graphicsscene.cpp" line="100"/>
<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="50"/>
<source>File is not a valid image</source>
<translation> </translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="54"/>
<location filename="../graphicsview.cpp" line="58"/>
<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="190"/>
<location filename="../mainwindow.cpp" line="561"/>
<source>File url list is empty</source>
<translation> URL </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="461"/>
<source>&amp;Copy</source>
<translation>(&amp;C)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="569"/>
<source>Image data is invalid</source>
<translation> </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="576"/>
<source>Not supported mimedata: %1</source>
<translation> mimedata: %1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="783"/>
<source>Image From Clipboard</source>
<translation> </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="801"/>
<source>Are you sure you want to move &quot;%1&quot; to recycle bin?</source>
<translation>&quot;%1&quot; ?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="805"/>
<source>Failed to move file to trash</source>
<translation> </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="806"/>
<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="106"/>
<source>Copy P&amp;ixmap</source>
<translation>Pixmap (&amp;I)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="107"/>
<source>Copy &amp;File Path</source>
<translation> (&amp;F)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="125"/>
<source>Properties</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="110"/>
<location filename="../aboutdialog.cpp" line="41"/>
<source>Stay on top</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="111"/>
<location filename="../aboutdialog.cpp" line="44"/>
<source>Protected mode</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="112"/>
<location filename="../aboutdialog.cpp" line="47"/>
<source>Keep transformation</source>
<comment>The &apos;transformation&apos; means the flip/rotation status that currently applied to the image view</comment>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="90"/>
<source>Zoom in</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="91"/>
<source>Zoom out</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="99"/>
<source>Pause/Resume Animation</source>
<translation> /</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="100"/>
<source>Animation Go to Next Frame</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="102"/>
<source>Flip &amp;Horizontally</source>
<translation> (&amp;H)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="103"/>
<source>Fit to view</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="104"/>
<source>Fit to width</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="105"/>
<source>Fit long image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="108"/>
<source>&amp;Paste</source>
<translation>(&amp;P)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="92"/>
<source>Toggle Checkerboard</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="86"/>
<source>&amp;Open...</source>
<translation>(&amp;O)...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="88"/>
<source>Actual size</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="89"/>
<source>Toggle maximize</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="93"/>
<source>Rotate right</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="94"/>
<source>Rotate left</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="96"/>
<source>Previous image</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="97"/>
<source>Next image</source>
<translation> </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="800"/>
<location filename="../actionmanager.cpp" line="109"/>
<source>Move to Trash</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="113"/>
<source>Configure...</source>
<translation>...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="114"/>
<source>Help</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="117"/>
<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="123"/>
<source>Show in directory</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="126"/>
<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="43"/>
<source>Origin</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="44"/>
<source>Image</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="48"/>
<source>File</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="45"/>
<source>Camera</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="35"/>
<source>%1 File</source>
<translation>%1 </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="42"/>
<source>Description</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="46"/>
<source>Advanced photo</source>
<comment>Section name.</comment>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="47"/>
<source>GPS</source>
<comment>Section name.</comment>
<translation>GPS</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="52"/>
<source>Dimensions</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="54"/>
<source>Aspect ratio</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="58"/>
<source>Frame count</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="62"/>
<source>Name</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="64"/>
<source>Item type</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="66"/>
<source>Folder path</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="68"/>
<source>Size</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="70"/>
<source>Date created</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="72"/>
<source>Date modified</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="79"/>
<source>Title</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="81"/>
<source>Subject</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="83"/>
<source>Rating</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="85"/>
<source>Tags</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="87"/>
<source>Comments</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="90"/>
<source>Authors</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="92"/>
<source>Date taken</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="98"/>
<source>Program name</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="100"/>
<source>Copyright</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="103"/>
<source>Horizontal resolution</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="105"/>
<source>Vertical resolution</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="107"/>
<source>Resolution unit</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="109"/>
<source>Colour representation</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="112"/>
<source>Camera maker</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="114"/>
<source>Camera model</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="116"/>
<source>F-stop</source>
<translation>F-</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="118"/>
<source>Exposure time</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="120"/>
<source>ISO speed</source>
<translation>ISO </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="122"/>
<source>Exposure bias</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="124"/>
<source>Focal length</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="126"/>
<source>Max aperture</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="128"/>
<source>Metering mode</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="130"/>
<source>Subject distance</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="132"/>
<source>Flash mode</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="134"/>
<source>35mm focal length</source>
<translation>35mm </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="137"/>
<source>Lens model</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="139"/>
<source>Contrast</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="141"/>
<source>Brightness</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="143"/>
<source>Exposure program</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="145"/>
<source>Saturation</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="147"/>
<source>Sharpness</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="149"/>
<source>White balance</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="151"/>
<source>Digital zoom</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="153"/>
<source>EXIF version</source>
<translation>EXIF </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="156"/>
<source>Latitude reference</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="158"/>
<source>Latitude</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="160"/>
<source>Longitude reference</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="162"/>
<source>Longitude</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="164"/>
<source>Altitude reference</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="166"/>
<source>Altitude</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="176"/>
<source>%1 x %2</source>
<translation>%1 x %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="194"/>
<source>%1 : %2</source>
<translation>%1 : %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Property</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Value</source>
<translation></translation>
</message>
</context>
<context>
<name>SettingsDialog</name>
<message>
<location filename="../settingsdialog.cpp" line="32"/>
<source>Settings</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="40"/>
<source>Options</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="52"/>
<source>Shortcuts</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="62"/>
<source>Editing shortcuts for action &quot;%1&quot;:</source>
<translation> &quot;%1&quot; :</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="71"/>
<source>Failed to set shortcuts</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="72"/>
<source>Please check if shortcuts are duplicated with existing shortcuts.</source>
<translation> .</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="79"/>
<source>Do nothing</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="80"/>
<source>Close the window</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="81"/>
<source>Toggle maximize</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="82"/>
<source>Toggle fullscreen</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="86"/>
<source>Zoom in and out</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="87"/>
<source>View next or previous item</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="91"/>
<source>Auto size</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="92"/>
<source>Maximized</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="93"/>
<source>Windowed</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="97"/>
<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="98"/>
<source>Ceil (Integer scaling)</source>
<comment>This option means always round up</comment>
<translation> ( )</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="99"/>
<source>Floor (Integer scaling)</source>
<comment>This option means always round down</comment>
<translation> ( )</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="100"/>
<source>Follow system (Fractional scaling)</source>
<comment>This option means don&apos;t round</comment>
<translation> ( )</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="123"/>
<source>Stay on top when start-up</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="124"/>
<source>Use built-in close window animation</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="125"/>
<source>Use light-color checkerboard</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="126"/>
<source>Loop the loaded gallery</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="127"/>
<source>Auto long image mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="128"/>
<source>Double-click behavior</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="129"/>
<source>Mouse wheel behavior</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="130"/>
<source>Default window size</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="131"/>
<source>HiDPI scale factor rounding policy</source>
<translation>HiDPI </translation>
</message>
</context>
<context>
<name>ShortcutEdit</name>
<message>
<location filename="../shortcutedit.cpp" line="104"/>
<source>No shortcuts</source>
<translation> </translation>
</message>
</context>
<context>
<name>ShortcutEditor</name>
<message>
<location filename="../shortcutedit.cpp" line="70"/>
<source>Shortcut #%1</source>
<translation> #%1</translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.cpp" line="42"/>
<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>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,896 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="pa_PK">
<context>
<name>AboutDialog</name>
<message>
<location filename="../aboutdialog.cpp" line="29"/>
<source>About</source>
<translation>بارے</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="32"/>
<source>Launch application with image file path as argument to load the file.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="33"/>
<source>Drag and drop image file onto the window is also supported.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="34"/>
<source>None of the operations in this application will alter the pictures on disk.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="35"/>
<source>Context menu option explanation:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="42"/>
<source>Make window stay on top of all other windows.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="45"/>
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="48"/>
<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="55"/>
<source>Version: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="66"/>
<source>Logo designed by %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="68"/>
<source>Built with Qt %1 (%2)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="69"/>
<source>Source code</source>
<translation>سروت دا کوڈ</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="79"/>
<source>Contributors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="81"/>
<source>List of contributors on GitHub</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="82"/>
<source>Thanks to all people who contributed to this project.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="86"/>
<source>Translators</source>
<translation>ترجمے والے</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="87"/>
<source>I would like to thank the following people who volunteered to translate this application.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="131"/>
<source>%1 is built on the following free software libraries:</source>
<comment>Free as in freedom</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="155"/>
<source>&amp;Special Thanks</source>
<translation>شکریئے</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="157"/>
<source>&amp;Third-party Libraries</source>
<translation>تیجی پارٹی سوفٹویر</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="93"/>
<source>Your Rights</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="63"/>
<source>Copyright (c) %1 %2</source>
<comment>%1 is year, %2 is the name of copyright holder(s)</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="95"/>
<source>%1 is released under the MIT License.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="96"/>
<source>This license grants people a number of freedoms:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="97"/>
<source>You are free to use %1, for any purpose</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="98"/>
<source>You are free to distribute %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="99"/>
<source>You can study how %1 works and change it</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="100"/>
<source>You can distribute changed versions of %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="102"/>
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="130"/>
<source>Third-party Libraries used by %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="153"/>
<source>&amp;Help</source>
<translation>مدد</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="154"/>
<source>&amp;About</source>
<translation>بارے</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="156"/>
<source>&amp;License</source>
<translation>لائیسنس</translation>
</message>
</context>
<context>
<name>GraphicsScene</name>
<message>
<location filename="../mainwindow.cpp" line="292"/>
<location filename="../graphicsscene.cpp" line="100"/>
<source>Drag image here</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>GraphicsView</name>
<message>
<location filename="../graphicsview.cpp" line="50"/>
<source>File is not a valid image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="54"/>
<location filename="../graphicsview.cpp" line="58"/>
<source>Image data is invalid or currently unsupported</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MainWindow</name>
<message>
<location filename="../mainwindow.cpp" line="190"/>
<location filename="../mainwindow.cpp" line="561"/>
<source>File url list is empty</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="461"/>
<source>&amp;Copy</source>
<translation>کاپی کرو</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="569"/>
<source>Image data is invalid</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="576"/>
<source>Not supported mimedata: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="783"/>
<source>Image From Clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="801"/>
<source>Are you sure you want to move &quot;%1&quot; to recycle bin?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="805"/>
<source>Failed to move file to trash</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="806"/>
<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="106"/>
<source>Copy P&amp;ixmap</source>
<translation>تصویر دا نقشہ کاپی کرو</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="107"/>
<source>Copy &amp;File Path</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="125"/>
<source>Properties</source>
<translation>وشیشتاواں</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="110"/>
<location filename="../aboutdialog.cpp" line="41"/>
<source>Stay on top</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="111"/>
<location filename="../aboutdialog.cpp" line="44"/>
<source>Protected mode</source>
<translation>سرکھیات سیٹنگ</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="112"/>
<location filename="../aboutdialog.cpp" line="47"/>
<source>Keep transformation</source>
<comment>The &apos;transformation&apos; means the flip/rotation status that currently applied to the image view</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="90"/>
<source>Zoom in</source>
<translation>وڈا کرو</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="91"/>
<source>Zoom out</source>
<translation>چھوٹا کرو</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="99"/>
<source>Pause/Resume Animation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="100"/>
<source>Animation Go to Next Frame</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="102"/>
<source>Flip &amp;Horizontally</source>
<translation>لیٹویں اُلٹاؤ</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="103"/>
<source>Fit to view</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="104"/>
<source>Fit to width</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="105"/>
<source>Fit long image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="108"/>
<source>&amp;Paste</source>
<translation>پیسٹ کرو</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="92"/>
<source>Toggle Checkerboard</source>
<translation>چیکبورڈ چالو بدلو</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="86"/>
<source>&amp;Open...</source>
<translation>کھُلھو</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="88"/>
<source>Actual size</source>
<translation>اصلی اکار</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="89"/>
<source>Toggle maximize</source>
<translation>ودھو ودھ بدلو</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="93"/>
<source>Rotate right</source>
<translation>سجے گھنماؤ</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="94"/>
<source>Rotate left</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="96"/>
<source>Previous image</source>
<translation>پچھلی تصویر</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="97"/>
<source>Next image</source>
<translation>اگلی تصویر</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="800"/>
<location filename="../actionmanager.cpp" line="109"/>
<source>Move to Trash</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="113"/>
<source>Configure...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="114"/>
<source>Help</source>
<translation>مدد</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="117"/>
<source>Show in File Explorer</source>
<comment>File Explorer is the name of explorer.exe under Windows</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="123"/>
<source>Show in directory</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="126"/>
<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="43"/>
<source>Origin</source>
<comment>Section name.</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="44"/>
<source>Image</source>
<comment>Section name.</comment>
<translation>تصویر</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="48"/>
<source>File</source>
<comment>Section name.</comment>
<translation>فائل</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="45"/>
<source>Camera</source>
<comment>Section name.</comment>
<translation>کیمرہ</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="35"/>
<source>%1 File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="42"/>
<source>Description</source>
<comment>Section name.</comment>
<translation>تفصیل</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="46"/>
<source>Advanced photo</source>
<comment>Section name.</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="47"/>
<source>GPS</source>
<comment>Section name.</comment>
<translation>گیپیایس</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="52"/>
<source>Dimensions</source>
<translation>ماپ</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="54"/>
<source>Aspect ratio</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="58"/>
<source>Frame count</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="62"/>
<source>Name</source>
<translation>ناں</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="64"/>
<source>Item type</source>
<translation>قسم</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="66"/>
<source>Folder path</source>
<translation>فولڈر پاتھ</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="68"/>
<source>Size</source>
<translation>اکار</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="70"/>
<source>Date created</source>
<translation>بݨاوݨ دی تریخ</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="72"/>
<source>Date modified</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="79"/>
<source>Title</source>
<translation>سرلیکھ</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="81"/>
<source>Subject</source>
<translation>وِشا</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="83"/>
<source>Rating</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="85"/>
<source>Tags</source>
<translation>ٹیگ</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="87"/>
<source>Comments</source>
<translation>ٹپݨیاں</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="90"/>
<source>Authors</source>
<translation>لیکھک</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="92"/>
<source>Date taken</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="98"/>
<source>Program name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="100"/>
<source>Copyright</source>
<translation>لائیسنس</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="103"/>
<source>Horizontal resolution</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="105"/>
<source>Vertical resolution</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="107"/>
<source>Resolution unit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="109"/>
<source>Colour representation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="112"/>
<source>Camera maker</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="114"/>
<source>Camera model</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="116"/>
<source>F-stop</source>
<translation>ایف سٹاپ</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="118"/>
<source>Exposure time</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="120"/>
<source>ISO speed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="122"/>
<source>Exposure bias</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="124"/>
<source>Focal length</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="126"/>
<source>Max aperture</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="128"/>
<source>Metering mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="130"/>
<source>Subject distance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="132"/>
<source>Flash mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="134"/>
<source>35mm focal length</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="137"/>
<source>Lens model</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="139"/>
<source>Contrast</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="141"/>
<source>Brightness</source>
<translation>چمک</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="143"/>
<source>Exposure program</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="145"/>
<source>Saturation</source>
<translation>سنترپتہ</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="147"/>
<source>Sharpness</source>
<translation>تکھاپن</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="149"/>
<source>White balance</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="151"/>
<source>Digital zoom</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="153"/>
<source>EXIF version</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="156"/>
<source>Latitude reference</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="158"/>
<source>Latitude</source>
<translation>اکشانش</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="160"/>
<source>Longitude reference</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="162"/>
<source>Longitude</source>
<translation>لمبکار</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="164"/>
<source>Altitude reference</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="166"/>
<source>Altitude</source>
<translation>اُچائی</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="176"/>
<source>%1 x %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="194"/>
<source>%1 : %2</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Property</source>
<translation>وشیشتا</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Value</source>
<translation>مُل</translation>
</message>
</context>
<context>
<name>SettingsDialog</name>
<message>
<location filename="../settingsdialog.cpp" line="32"/>
<source>Settings</source>
<translation>سیٹنگاں</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="40"/>
<source>Options</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="52"/>
<source>Shortcuts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="62"/>
<source>Editing shortcuts for action &quot;%1&quot;:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="71"/>
<source>Failed to set shortcuts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="72"/>
<source>Please check if shortcuts are duplicated with existing shortcuts.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="79"/>
<source>Do nothing</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="80"/>
<source>Close the window</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="81"/>
<source>Toggle maximize</source>
<translation type="unfinished">ودھو ودھ بدلو</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="82"/>
<source>Toggle fullscreen</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="86"/>
<source>Zoom in and out</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="87"/>
<source>View next or previous item</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="91"/>
<source>Auto size</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="92"/>
<source>Maximized</source>
<translation>ودھ توں ودھ</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="93"/>
<source>Windowed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="97"/>
<source>Round (Integer scaling)</source>
<comment>This option means round up for .5 and above</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="98"/>
<source>Ceil (Integer scaling)</source>
<comment>This option means always round up</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="99"/>
<source>Floor (Integer scaling)</source>
<comment>This option means always round down</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="100"/>
<source>Follow system (Fractional scaling)</source>
<comment>This option means don&apos;t round</comment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="123"/>
<source>Stay on top when start-up</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="124"/>
<source>Use built-in close window animation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="125"/>
<source>Use light-color checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="126"/>
<source>Loop the loaded gallery</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="127"/>
<source>Auto long image mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="128"/>
<source>Double-click behavior</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="129"/>
<source>Mouse wheel behavior</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="130"/>
<source>Default window size</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="131"/>
<source>HiDPI scale factor rounding policy</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ShortcutEdit</name>
<message>
<location filename="../shortcutedit.cpp" line="104"/>
<source>No shortcuts</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ShortcutEditor</name>
<message>
<location filename="../shortcutedit.cpp" line="70"/>
<source>Shortcut #%1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.cpp" line="42"/>
<source>Pineapple Pictures</source>
<translation type="unfinished"></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 type="unfinished"></translation>
</message>
</context>
</TS>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,896 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ta">
<context>
<name>AboutDialog</name>
<message>
<location filename="../aboutdialog.cpp" line="29"/>
<source>About</source>
<translation>ி</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="32"/>
<source>Launch application with image file path as argument to load the file.</source>
<translation> .</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="33"/>
<source>Drag and drop image file onto the window is also supported.</source>
<translation> ி ி.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="34"/>
<source>None of the operations in this application will alter the pictures on disk.</source>
<translation> ி ி .</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="35"/>
<source>Context menu option explanation:</source>
<translation> ி ி ி:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="42"/>
<source>Make window stay on top of all other windows.</source>
<translation> .</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="45"/>
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
<translation> ி. (.. )</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="48"/>
<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="55"/>
<source>Version: %1</source>
<translation>ி: %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="66"/>
<source>Logo designed by %1</source>
<translation> %1 ி</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="68"/>
<source>Built with Qt %1 (%2)</source>
<translation>ிி %1 ( %2) </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="69"/>
<source>Source code</source>
<translation> ி</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="79"/>
<source>Contributors</source>
<translation>ி</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="81"/>
<source>List of contributors on GitHub</source>
<translation>ிி ிி ி</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="82"/>
<source>Thanks to all people who contributed to this project.</source>
<translation> ிி ி ி.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="86"/>
<source>Translators</source>
<translation>ி</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="87"/>
<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="131"/>
<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="155"/>
<source>&amp;Special Thanks</source>
<translation>&amp; ி ி</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="157"/>
<source>&amp;Third-party Libraries</source>
<translation> </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="93"/>
<source>Your Rights</source>
<translation> ி</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="63"/>
<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="95"/>
<source>%1 is released under the MIT License.</source>
<translation>%1 ி ிி ிிி.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="96"/>
<source>This license grants people a number of freedoms:</source>
<translation> ி ி ி:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="97"/>
<source>You are free to use %1, for any purpose</source>
<translation> ி %1 </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="98"/>
<source>You are free to distribute %1</source>
<translation>%1 ிிி </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="99"/>
<source>You can study how %1 works and change it</source>
<translation>%1 ி ி </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="100"/>
<source>You can distribute changed versions of %1</source>
<translation> ி %1 ிிி</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="102"/>
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
<translation>ி ி ி ி. ிி.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="130"/>
<source>Third-party Libraries used by %1</source>
<translation>%1 </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="153"/>
<source>&amp;Help</source>
<translation>ி (&amp;h)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="154"/>
<source>&amp;About</source>
<translation>&amp;ி</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="156"/>
<source>&amp;License</source>
<translation>&amp; ி</translation>
</message>
</context>
<context>
<name>GraphicsScene</name>
<message>
<location filename="../mainwindow.cpp" line="292"/>
<location filename="../graphicsscene.cpp" line="100"/>
<source>Drag image here</source>
<translation> </translation>
</message>
</context>
<context>
<name>GraphicsView</name>
<message>
<location filename="../graphicsview.cpp" line="50"/>
<source>File is not a valid image</source>
<translation> ி </translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="54"/>
<location filename="../graphicsview.cpp" line="58"/>
<source>Image data is invalid or currently unsupported</source>
<translation> ி</translation>
</message>
</context>
<context>
<name>MainWindow</name>
<message>
<location filename="../mainwindow.cpp" line="190"/>
<location filename="../mainwindow.cpp" line="561"/>
<source>File url list is empty</source>
<translation> ி ி ி </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="461"/>
<source>&amp;Copy</source>
<translation> (&amp;c)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="569"/>
<source>Image data is invalid</source>
<translation> </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="576"/>
<source>Not supported mimedata: %1</source>
<translation> ிி: %1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="783"/>
<source>Image From Clipboard</source>
<translation>ிிிி </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="801"/>
<source>Are you sure you want to move &quot;%1&quot; to recycle bin?</source>
<translation>ி ி &quot;%1&quot; ிி?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="805"/>
<source>Failed to move file to trash</source>
<translation> ி ி</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="806"/>
<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="106"/>
<source>Copy P&amp;ixmap</source>
<translation>ி &amp; </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="107"/>
<source>Copy &amp;File Path</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="125"/>
<source>Properties</source>
<translation></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="110"/>
<location filename="../aboutdialog.cpp" line="41"/>
<source>Stay on top</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="111"/>
<location filename="../aboutdialog.cpp" line="44"/>
<source>Protected mode</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="112"/>
<location filename="../aboutdialog.cpp" line="47"/>
<source>Keep transformation</source>
<comment>The &apos;transformation&apos; means the flip/rotation status that currently applied to the image view</comment>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="90"/>
<source>Zoom in</source>
<translation>ி</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="91"/>
<source>Zoom out</source>
<translation>ிி</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="99"/>
<source>Pause/Resume Animation</source>
<translation>ி/ி </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="100"/>
<source>Animation Go to Next Frame</source>
<translation>ி ி </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="102"/>
<source>Flip &amp;Horizontally</source>
<translation>ி </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="103"/>
<source>Fit to view</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="104"/>
<source>Fit to width</source>
<translation>ி </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="105"/>
<source>Fit long image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="108"/>
<source>&amp;Paste</source>
<translation> (&amp;p)</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="92"/>
<source>Toggle Checkerboard</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="86"/>
<source>&amp;Open...</source>
<translation>&amp; ி ...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="88"/>
<source>Actual size</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="89"/>
<source>Toggle maximize</source>
<translation>ி </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="93"/>
<source>Rotate right</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="94"/>
<source>Rotate left</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="96"/>
<source>Previous image</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="97"/>
<source>Next image</source>
<translation> </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="800"/>
<location filename="../actionmanager.cpp" line="109"/>
<source>Move to Trash</source>
<translation> </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="113"/>
<source>Configure...</source>
<translation> ...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="114"/>
<source>Help</source>
<translation>ி</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="117"/>
<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="123"/>
<source>Show in directory</source>
<translation>ி </translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="126"/>
<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="43"/>
<source>Origin</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="44"/>
<source>Image</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="48"/>
<source>File</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="45"/>
<source>Camera</source>
<comment>Section name.</comment>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="35"/>
<source>%1 File</source>
<translation>%1 </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="42"/>
<source>Description</source>
<comment>Section name.</comment>
<translation>ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="46"/>
<source>Advanced photo</source>
<comment>Section name.</comment>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="47"/>
<source>GPS</source>
<comment>Section name.</comment>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="52"/>
<source>Dimensions</source>
<translation>ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="54"/>
<source>Aspect ratio</source>
<translation> ிி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="58"/>
<source>Frame count</source>
<translation> ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="62"/>
<source>Name</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="64"/>
<source>Item type</source>
<translation>ி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="66"/>
<source>Folder path</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="68"/>
<source>Size</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="70"/>
<source>Date created</source>
<translation>ி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="72"/>
<source>Date modified</source>
<translation>ி ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="79"/>
<source>Title</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="81"/>
<source>Subject</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="83"/>
<source>Rating</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="85"/>
<source>Tags</source>
<translation>ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="87"/>
<source>Comments</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="90"/>
<source>Authors</source>
<translation>ிி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="92"/>
<source>Date taken</source>
<translation> ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="98"/>
<source>Program name</source>
<translation>ி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="100"/>
<source>Copyright</source>
<translation>ிி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="103"/>
<source>Horizontal resolution</source>
<translation>ி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="105"/>
<source>Vertical resolution</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="107"/>
<source>Resolution unit</source>
<translation>ிி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="109"/>
<source>Colour representation</source>
<translation> ிிிி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="112"/>
<source>Camera maker</source>
<translation> ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="114"/>
<source>Camera model</source>
<translation> ிி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="116"/>
<source>F-stop</source>
<translation>-</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="118"/>
<source>Exposure time</source>
<translation>ி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="120"/>
<source>ISO speed</source>
<translation> ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="122"/>
<source>Exposure bias</source>
<translation>ி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="124"/>
<source>Focal length</source>
<translation>ி, ி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="126"/>
<source>Max aperture</source>
<translation>ி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="128"/>
<source>Metering mode</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="130"/>
<source>Subject distance</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="132"/>
<source>Flash mode</source>
<translation>ி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="134"/>
<source>35mm focal length</source>
<translation>35 ி ி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="137"/>
<source>Lens model</source>
<translation> ிி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="139"/>
<source>Contrast</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="141"/>
<source>Brightness</source>
<translation>ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="143"/>
<source>Exposure program</source>
<translation>ி ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="145"/>
<source>Saturation</source>
<translation>ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="147"/>
<source>Sharpness</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="149"/>
<source>White balance</source>
<translation> </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="151"/>
<source>Digital zoom</source>
<translation>ிி </translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="153"/>
<source>EXIF version</source>
<translation>Exif ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="156"/>
<source>Latitude reference</source>
<translation> ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="158"/>
<source>Latitude</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="160"/>
<source>Longitude reference</source>
<translation> ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="162"/>
<source>Longitude</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="164"/>
<source>Altitude reference</source>
<translation> ி</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="166"/>
<source>Altitude</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="176"/>
<source>%1 x %2</source>
<translation>%1 %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="194"/>
<source>%1 : %2</source>
<translation>%1: %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Property</source>
<translation></translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Value</source>
<translation>ி</translation>
</message>
</context>
<context>
<name>SettingsDialog</name>
<message>
<location filename="../settingsdialog.cpp" line="32"/>
<source>Settings</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="40"/>
<source>Options</source>
<translation>ி</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="52"/>
<source>Shortcuts</source>
<translation>ி</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="62"/>
<source>Editing shortcuts for action &quot;%1&quot;:</source>
<translation> ி ி &quot;%1&quot;:</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="71"/>
<source>Failed to set shortcuts</source>
<translation>ி ி ி</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="72"/>
<source>Please check if shortcuts are duplicated with existing shortcuts.</source>
<translation> ி ி ி.</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="79"/>
<source>Do nothing</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="80"/>
<source>Close the window</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="81"/>
<source>Toggle maximize</source>
<translation>ி </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="82"/>
<source>Toggle fullscreen</source>
<translation> ி</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="86"/>
<source>Zoom in and out</source>
<translation> ி ி</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="87"/>
<source>View next or previous item</source>
<translation> ி </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="91"/>
<source>Auto size</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="92"/>
<source>Maximized</source>
<translation>ி</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="93"/>
<source>Windowed</source>
<translation></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="97"/>
<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="98"/>
<source>Ceil (Integer scaling)</source>
<comment>This option means always round up</comment>
<translation> ( ி)</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="99"/>
<source>Floor (Integer scaling)</source>
<comment>This option means always round down</comment>
<translation>ி ( ி)</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="100"/>
<source>Follow system (Fractional scaling)</source>
<comment>This option means don&apos;t round</comment>
<translation>ிி ி (ி ி)</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="123"/>
<source>Stay on top when start-up</source>
<translation>ி </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="124"/>
<source>Use built-in close window animation</source>
<translation> ி </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="125"/>
<source>Use light-color checkerboard</source>
<translation>ி- </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="126"/>
<source>Loop the loaded gallery</source>
<translation> ி </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="127"/>
<source>Auto long image mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="128"/>
<source>Double-click behavior</source>
<translation> </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="129"/>
<source>Mouse wheel behavior</source>
<translation>ி </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="130"/>
<source>Default window size</source>
<translation>ி </translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="131"/>
<source>HiDPI scale factor rounding policy</source>
<translation>HIDPI ி ி ி </translation>
</message>
</context>
<context>
<name>ShortcutEdit</name>
<message>
<location filename="../shortcutedit.cpp" line="104"/>
<source>No shortcuts</source>
<translation>ி </translation>
</message>
</context>
<context>
<name>ShortcutEditor</name>
<message>
<location filename="../shortcutedit.cpp" line="70"/>
<source>Shortcut #%1</source>
<translation>ி #%1</translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.cpp" line="42"/>
<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>

View File

@ -1,912 +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="29"/>
<source>About</source>
<translation>Hakkında</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="32"/>
<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="33"/>
<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="34"/>
<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="35"/>
<source>Context menu option explanation:</source>
<translation>İçerik menüsü seçeneği ıklaması:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="42"/>
<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="45"/>
<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="55"/>
<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="66"/>
<source>Logo designed by %1</source>
<translation>Logo tasarımcısı: %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="68"/>
<source>Built with Qt %1 (%2)</source>
<translation>Qt %1 (%2) ile inşa edilmiştir</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="69"/>
<source>Source code</source>
<translation>Kaynak kodu</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="79"/>
<source>Contributors</source>
<translation>Katkıda bulunanlar</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="81"/>
<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="82"/>
<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="86"/>
<source>Translators</source>
<translation>Çevirmenler</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="87"/>
<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="131"/>
<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="155"/>
<source>&amp;Special Thanks</source>
<translation>Özel %Teşekkürler</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="157"/>
<source>&amp;Third-party Libraries</source>
<translation>Üçüncü Par&amp;ti Kitaplıklar</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="93"/>
<source>Your Rights</source>
<translation>Haklarınız</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="48"/>
<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="63"/>
<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="95"/>
<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="96"/>
<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="97"/>
<source>You are free to use %1, for any purpose</source>
<translation>%1&apos;i herhangi bir amaç için kullanmakta özgürsünüz</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="98"/>
<source>You are free to distribute %1</source>
<translation>%1&apos;i dağıtmakta özgürsünüz</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="99"/>
<source>You can study how %1 works and change it</source>
<translation>%1&apos;in nasıl çalıştığıyla ilgili çalışabilir ve onu değiştirebilirsiniz</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="100"/>
<source>You can distribute changed versions of %1</source>
<translation>%1&apos;in değiştirilmiş sürümünü dağıtabilirsiniz</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="102"/>
<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="130"/>
<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="153"/>
<source>&amp;Help</source>
<translation>&amp;Yardım</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="154"/>
<source>&amp;About</source>
<translation>H&amp;akkında</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="156"/>
<source>&amp;License</source>
<translation>&amp;Lisans</translation>
</message>
</context>
<context>
<name>GraphicsScene</name>
<message>
<location filename="../mainwindow.cpp" line="292"/>
<location filename="../graphicsscene.cpp" line="100"/>
<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="50"/>
<source>File is not a valid image</source>
<translation>Dosya, geçerli bir resim değil</translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="54"/>
<location filename="../graphicsview.cpp" line="58"/>
<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="190"/>
<location filename="../mainwindow.cpp" line="561"/>
<source>File url list is empty</source>
<translation>Dosya URL listesi boş</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="461"/>
<source>&amp;Copy</source>
<translation>&amp;Kopyala</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="569"/>
<source>Image data is invalid</source>
<translation>Resim verisi geçersiz</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="576"/>
<source>Not supported mimedata: %1</source>
<translation>Desteklenmeyen dosya türü verisi: %1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="783"/>
<source>Image From Clipboard</source>
<translation>Panodaki Resim</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="801"/>
<source>Are you sure you want to move &quot;%1&quot; to recycle bin?</source>
<translation>&quot;%1&quot; ögesini geri dönüşüm kutusuna taşımak istediğinizden emin misiniz?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="805"/>
<source>Failed to move file to trash</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="806"/>
<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="106"/>
<source>Copy P&amp;ixmap</source>
<translation>P&amp;ixmap&apos;i Kopyala</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="107"/>
<source>Copy &amp;File Path</source>
<translation>&amp;Dosya Yolunu Kopyala</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="125"/>
<source>Properties</source>
<translation>Özellikler</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="110"/>
<location filename="../aboutdialog.cpp" line="41"/>
<source>Stay on top</source>
<translation>Üstte tut</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="111"/>
<location filename="../aboutdialog.cpp" line="44"/>
<source>Protected mode</source>
<translation>Korumalı kip</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="112"/>
<location filename="../aboutdialog.cpp" line="47"/>
<source>Keep transformation</source>
<comment>The &apos;transformation&apos; 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="90"/>
<source>Zoom in</source>
<translation>Yaklaştır</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="91"/>
<source>Zoom out</source>
<translation>Uzaklaştır</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="99"/>
<source>Pause/Resume Animation</source>
<translation>Canlandırmayı Duraklat/Sürdür</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="100"/>
<source>Animation Go to Next Frame</source>
<translation>Canlandırma Sonraki Kareye Git</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="102"/>
<source>Flip &amp;Horizontally</source>
<translation>&amp;Yatay Çevir</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="103"/>
<source>Fit to view</source>
<translation>Görünüme sığdır</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="104"/>
<source>Fit to width</source>
<translation>Genişliğe sığdır</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="105"/>
<source>Fit long image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="108"/>
<source>&amp;Paste</source>
<translation>Ya&amp;pıştır</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="92"/>
<source>Toggle Checkerboard</source>
<translation>Damalı Ekrana Geç</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="86"/>
<source>&amp;Open...</source>
<translation>&amp;...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="88"/>
<source>Actual size</source>
<translation>Gerçek boyut</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="89"/>
<source>Toggle maximize</source>
<translation>Tam boyuta geç</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="93"/>
<source>Rotate right</source>
<translation>Sağa döndür</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="94"/>
<source>Rotate left</source>
<translation>Sola döndür</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="96"/>
<source>Previous image</source>
<translation>Önceki resim</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="97"/>
<source>Next image</source>
<translation>Sonraki resim</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="800"/>
<location filename="../actionmanager.cpp" line="109"/>
<source>Move to Trash</source>
<translation>Çöp Kutusuna Taşı</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="113"/>
<source>Configure...</source>
<translation>Yapılandır...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="114"/>
<source>Help</source>
<translation>Yardım</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="117"/>
<source>Show in File Explorer</source>
<comment>File Explorer is the name of explorer.exe under Windows</comment>
<translation>Dosya Gezgini&apos;nde Göster</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="123"/>
<source>Show in directory</source>
<translation>Dizinde göster</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="126"/>
<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="43"/>
<source>Origin</source>
<comment>Section name.</comment>
<translation>Köken</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="44"/>
<source>Image</source>
<comment>Section name.</comment>
<translation>Resim</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="48"/>
<source>File</source>
<comment>Section name.</comment>
<translation>Dosya</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="45"/>
<source>Camera</source>
<comment>Section name.</comment>
<translation>Kamera</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="35"/>
<source>%1 File</source>
<translation>%1 Dosya</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="42"/>
<source>Description</source>
<comment>Section name.</comment>
<translation>ıklama</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="46"/>
<source>Advanced photo</source>
<comment>Section name.</comment>
<translation>Gelişmiş foto</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="47"/>
<source>GPS</source>
<comment>Section name.</comment>
<translation>GPS</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="52"/>
<source>Dimensions</source>
<translation>Boyutlar</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="54"/>
<source>Aspect ratio</source>
<translation>En boy oranı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="58"/>
<source>Frame count</source>
<translation>Kare sayısı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="62"/>
<source>Name</source>
<translation>Adı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="64"/>
<source>Item type</source>
<translation>Öge türü</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="66"/>
<source>Folder path</source>
<translation>Klasör yolu</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="68"/>
<source>Size</source>
<translation>Boyut</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="70"/>
<source>Date created</source>
<translation>Oluşturulma tarihi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="72"/>
<source>Date modified</source>
<translation>Değiştirilme tarihi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="79"/>
<source>Title</source>
<translation>Başlık</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="81"/>
<source>Subject</source>
<translation>Konu</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="83"/>
<source>Rating</source>
<translation>Değerlendirme</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="85"/>
<source>Tags</source>
<translation>Etiketler</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="87"/>
<source>Comments</source>
<translation>Yorumlar</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="90"/>
<source>Authors</source>
<translation>Sanatçılar</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="92"/>
<source>Date taken</source>
<translation>Çekilme tarihi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="98"/>
<source>Program name</source>
<translation>Program adı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="100"/>
<source>Copyright</source>
<translation>Telif Hakkı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="103"/>
<source>Horizontal resolution</source>
<translation>Yatay çözünürlük</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="105"/>
<source>Vertical resolution</source>
<translation>Dikey çözünürlük</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="107"/>
<source>Resolution unit</source>
<translation>Çözünürlük birimi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="109"/>
<source>Colour representation</source>
<translation>Renk sunumu</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="112"/>
<source>Camera maker</source>
<translation>Kamera üreticisi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="114"/>
<source>Camera model</source>
<translation>Kamera modeli</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="116"/>
<source>F-stop</source>
<translation>Diyafram</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="118"/>
<source>Exposure time</source>
<translation>Pozlama süresi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="120"/>
<source>ISO speed</source>
<translation>ISO hızı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="122"/>
<source>Exposure bias</source>
<translation>Pozlama sapması</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="124"/>
<source>Focal length</source>
<translation>Odak uzaklığı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="126"/>
<source>Max aperture</source>
<translation>Azami ıklık</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="128"/>
<source>Metering mode</source>
<translation>Ölçme kipi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="130"/>
<source>Subject distance</source>
<translation>Konu mesafesi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="132"/>
<source>Flash mode</source>
<translation>Flaş kipi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="134"/>
<source>35mm focal length</source>
<translation>35mm odak uzaklığı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="137"/>
<source>Lens model</source>
<translation>Mercek modeli</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="139"/>
<source>Contrast</source>
<translation>Karşıtlık</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="141"/>
<source>Brightness</source>
<translation>Parlaklık</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="143"/>
<source>Exposure program</source>
<translation>Pozlama programı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="145"/>
<source>Saturation</source>
<translation>Doygunluk</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="147"/>
<source>Sharpness</source>
<translation>Keskinlik</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="149"/>
<source>White balance</source>
<translation>Beyaz dengesi</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="151"/>
<source>Digital zoom</source>
<translation>Dijital yakınlaştırma</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="153"/>
<source>EXIF version</source>
<translation>EXIF sürümü</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="156"/>
<source>Latitude reference</source>
<translation>Enlem kaynağı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="158"/>
<source>Latitude</source>
<translation>Enlem</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="160"/>
<source>Longitude reference</source>
<translation>Boylam kaynağı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="162"/>
<source>Longitude</source>
<translation>Boylam</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="164"/>
<source>Altitude reference</source>
<translation>Rakım kaynağı</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="166"/>
<source>Altitude</source>
<translation>Rakım</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="176"/>
<source>%1 x %2</source>
<translation>%1 x %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="194"/>
<source>%1 : %2</source>
<translation>%1 : %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Property</source>
<translation>Özellik</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Value</source>
<translation>Değer</translation>
</message>
</context>
<context>
<name>SettingsDialog</name>
<message>
<location filename="../settingsdialog.cpp" line="32"/>
<source>Settings</source>
<translation>Ayarlar</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="40"/>
<source>Options</source>
<translation>Seçenekler</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="52"/>
<source>Shortcuts</source>
<translation>Kısayollar</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="62"/>
<source>Editing shortcuts for action &quot;%1&quot;:</source>
<translation>&quot;%1&quot; için kısayol düzenleniyor:</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="71"/>
<source>Failed to set shortcuts</source>
<translation>Kısayollar ayarlanamadı</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="72"/>
<source>Please check if shortcuts are duplicated with existing shortcuts.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="79"/>
<source>Do nothing</source>
<translation>Hiçbir şey yapma</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="80"/>
<source>Close the window</source>
<translation>Pencereyi kapat</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="81"/>
<source>Toggle maximize</source>
<translation>Tam boyuta geç</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="82"/>
<source>Toggle fullscreen</source>
<translation>Tam ekranı /kapat</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="86"/>
<source>Zoom in and out</source>
<translation>Yaklaştır ve uzaklaştır</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="87"/>
<source>View next or previous item</source>
<translation>Sonraki veya önceki ögeyi görüntüle</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="91"/>
<source>Auto size</source>
<translation>Otomatik boyut</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="92"/>
<source>Maximized</source>
<translation>Tam boyut</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="93"/>
<source>Windowed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="97"/>
<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="98"/>
<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="99"/>
<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="100"/>
<source>Follow system (Fractional scaling)</source>
<comment>This option means don&apos;t round</comment>
<translation>Sistemi takip et (Kesirli ölçekleme)</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="123"/>
<source>Stay on top when start-up</source>
<translation>ılışta pencerelerin üstünde kal</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="124"/>
<source>Use built-in close window animation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="125"/>
<source>Use light-color checkerboard</source>
<translation>ık renk dama tahtası kullan</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="126"/>
<source>Loop the loaded gallery</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="127"/>
<source>Auto long image mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="128"/>
<source>Double-click behavior</source>
<translation>Çift tıklama davranışı</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="129"/>
<source>Mouse wheel behavior</source>
<translation>Fare tekeri davranışı</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="130"/>
<source>Default window size</source>
<translation>Öntanımlı pencere boyutu</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="131"/>
<source>HiDPI scale factor rounding policy</source>
<translation>HiDPI ölçek katsayısı yuvarlama ilkesi</translation>
</message>
</context>
<context>
<name>ShortcutEdit</name>
<message>
<location filename="../shortcutedit.cpp" line="104"/>
<source>No shortcuts</source>
<translation>Kısayol yok</translation>
</message>
</context>
<context>
<name>ShortcutEditor</name>
<message>
<location filename="../shortcutedit.cpp" line="70"/>
<source>Shortcut #%1</source>
<translation>Kısayol #%1</translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.cpp" line="42"/>
<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>

View File

@ -1,908 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="uk_UA">
<context>
<name>AboutDialog</name>
<message>
<location filename="../aboutdialog.cpp" line="29"/>
<source>About</source>
<translation>Про додаток</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="32"/>
<source>Launch application with image file path as argument to load the file.</source>
<translation>Запустіть додаток, вказавши шлях до файлу зображення у якості аргументу для завантаження файлу.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="33"/>
<source>Drag and drop image file onto the window is also supported.</source>
<translation>Також підтримується перетягування файлу зображення у вікно.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="34"/>
<source>None of the operations in this application will alter the pictures on disk.</source>
<translation>Жодна з операцій у цьому додатку не змінить зображення на диску.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="35"/>
<source>Context menu option explanation:</source>
<translation>Пояснення пунктів контекстного меню:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="42"/>
<source>Make window stay on top of all other windows.</source>
<translation>Зробити так, щоб вікно залишалося поверх усіх інших вікон.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="45"/>
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
<translation>Уникати випадкового закривання вікна. (Наприклад, подвійним клацанням по вікну.)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="48"/>
<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="55"/>
<source>Version: %1</source>
<translation>Версія: %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="66"/>
<source>Logo designed by %1</source>
<translation>Логотип розроблено %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="68"/>
<source>Built with Qt %1 (%2)</source>
<translation>Побудований за допомогою Qt %1 (%2)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="69"/>
<source>Source code</source>
<translation>Джерельний код</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="79"/>
<source>Contributors</source>
<translation>Учасники</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="81"/>
<source>List of contributors on GitHub</source>
<translation>Список учасників на GitHub</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="82"/>
<source>Thanks to all people who contributed to this project.</source>
<translation>Дякуємо всім, хто долучився до цього проєкту.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="86"/>
<source>Translators</source>
<translation>Перекладачі</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="87"/>
<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="131"/>
<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="155"/>
<source>&amp;Special Thanks</source>
<translation>&amp;Особлива подяка</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="157"/>
<source>&amp;Third-party Libraries</source>
<translation>&amp;Сторонні бібліотеки</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="93"/>
<source>Your Rights</source>
<translation>Ваші права</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="63"/>
<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="95"/>
<source>%1 is released under the MIT License.</source>
<translation>%1 випускається за ліцензією MIT.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="96"/>
<source>This license grants people a number of freedoms:</source>
<translation>Ця ліцензія надає людям низку свобод:</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="97"/>
<source>You are free to use %1, for any purpose</source>
<translation>Ви можете вільно використовувати %1 для будь-яких цілей</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="98"/>
<source>You are free to distribute %1</source>
<translation>Ви можете вільно розповсюджувати %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="99"/>
<source>You can study how %1 works and change it</source>
<translation>Ви можете вивчити, як працює %1, і змінити його</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="100"/>
<source>You can distribute changed versions of %1</source>
<translation>Ви можете розповсюджувати змінені версії %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="102"/>
<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="130"/>
<source>Third-party Libraries used by %1</source>
<translation>Сторонні бібліотеки, що використовуються %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="153"/>
<source>&amp;Help</source>
<translation>&amp;Допомога</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="154"/>
<source>&amp;About</source>
<translation>&amp;Про додаток</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="156"/>
<source>&amp;License</source>
<translation>&amp;Ліцензія</translation>
</message>
</context>
<context>
<name>GraphicsScene</name>
<message>
<location filename="../mainwindow.cpp" line="292"/>
<location filename="../graphicsscene.cpp" line="100"/>
<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="50"/>
<source>File is not a valid image</source>
<translation>Файл не є дійсним зображенням</translation>
</message>
<message>
<location filename="../graphicsview.cpp" line="54"/>
<location filename="../graphicsview.cpp" line="58"/>
<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="190"/>
<location filename="../mainwindow.cpp" line="561"/>
<source>File url list is empty</source>
<translation>Список URL-адрес файлів порожній</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="461"/>
<source>&amp;Copy</source>
<translation>&amp;Скопіювати</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="569"/>
<source>Image data is invalid</source>
<translation>Дані зображення недійсні</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="576"/>
<source>Not supported mimedata: %1</source>
<translation>Не підтримується mimedata: %1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="783"/>
<source>Image From Clipboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="801"/>
<source>Are you sure you want to move &quot;%1&quot; to recycle bin?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="805"/>
<source>Failed to move file to trash</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="806"/>
<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="106"/>
<source>Copy P&amp;ixmap</source>
<translation>Скопіювати P&amp;ixmap</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="107"/>
<source>Copy &amp;File Path</source>
<translation>Скопіювати &amp;шлях до файлу</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="125"/>
<source>Properties</source>
<translation>Властивості</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="110"/>
<location filename="../aboutdialog.cpp" line="41"/>
<source>Stay on top</source>
<translation>Поверх всіх вікон</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="111"/>
<location filename="../aboutdialog.cpp" line="44"/>
<source>Protected mode</source>
<translation>Захищений режим</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="112"/>
<location filename="../aboutdialog.cpp" line="47"/>
<source>Keep transformation</source>
<comment>The &apos;transformation&apos; means the flip/rotation status that currently applied to the image view</comment>
<translation>Зберігати трансформацію</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="90"/>
<source>Zoom in</source>
<translation>Збільшити</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="91"/>
<source>Zoom out</source>
<translation>Зменшити</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="99"/>
<source>Pause/Resume Animation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="100"/>
<source>Animation Go to Next Frame</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="102"/>
<source>Flip &amp;Horizontally</source>
<translation>Перевернути по &amp;горизонталі</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="103"/>
<source>Fit to view</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="104"/>
<source>Fit to width</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="105"/>
<source>Fit long image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="108"/>
<source>&amp;Paste</source>
<translation>&amp;Вставити</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="92"/>
<source>Toggle Checkerboard</source>
<translation>Перемкнути шахову дошку</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="86"/>
<source>&amp;Open...</source>
<translation>&amp;Відкрити...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="88"/>
<source>Actual size</source>
<translation>Фактичний розмір</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="89"/>
<source>Toggle maximize</source>
<translation>Перемкнути на максимум</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="93"/>
<source>Rotate right</source>
<translation>Перегорнути праворуч</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="94"/>
<source>Rotate left</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="96"/>
<source>Previous image</source>
<translation>Попереднє зображення</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="97"/>
<source>Next image</source>
<translation>Наступне зображення</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="800"/>
<location filename="../actionmanager.cpp" line="109"/>
<source>Move to Trash</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="113"/>
<source>Configure...</source>
<translation>Налаштувати...</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="114"/>
<source>Help</source>
<translation>Допомога</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="117"/>
<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="123"/>
<source>Show in directory</source>
<translation>Показати у теці</translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="126"/>
<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="43"/>
<source>Origin</source>
<comment>Section name.</comment>
<translation>Походження</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="44"/>
<source>Image</source>
<comment>Section name.</comment>
<translation>Зображення</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="48"/>
<source>File</source>
<comment>Section name.</comment>
<translation>Файл</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="45"/>
<source>Camera</source>
<comment>Section name.</comment>
<translation>Камера</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="35"/>
<source>%1 File</source>
<translation>%1 файл</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="42"/>
<source>Description</source>
<comment>Section name.</comment>
<translation>Опис</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="46"/>
<source>Advanced photo</source>
<comment>Section name.</comment>
<translation>Розширене фото</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="47"/>
<source>GPS</source>
<comment>Section name.</comment>
<translation>GPS</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="52"/>
<source>Dimensions</source>
<translation>Розміри</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="54"/>
<source>Aspect ratio</source>
<translation>Співвідношення сторін</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="58"/>
<source>Frame count</source>
<translation>Кількість кадрів</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="62"/>
<source>Name</source>
<translation>Імя</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="64"/>
<source>Item type</source>
<translation>Тип елемента</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="66"/>
<source>Folder path</source>
<translation>Шлях до теки</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="68"/>
<source>Size</source>
<translation>Розмір</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="70"/>
<source>Date created</source>
<translation>Дата створення</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="72"/>
<source>Date modified</source>
<translation>Дата зміни</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="79"/>
<source>Title</source>
<translation>Назва</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="81"/>
<source>Subject</source>
<translation>Тема</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="83"/>
<source>Rating</source>
<translation>Рейтинг</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="85"/>
<source>Tags</source>
<translation>Мітки</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="87"/>
<source>Comments</source>
<translation>Коментарі</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="90"/>
<source>Authors</source>
<translation>Автори</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="92"/>
<source>Date taken</source>
<translation>Дата зйомки</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="98"/>
<source>Program name</source>
<translation>Назва програми</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="100"/>
<source>Copyright</source>
<translation>Авторське право</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="103"/>
<source>Horizontal resolution</source>
<translation>Роздільна здатність по горизонталі</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="105"/>
<source>Vertical resolution</source>
<translation>Роздільна здатність по вертикалі</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="107"/>
<source>Resolution unit</source>
<translation>Одиниця роздільної здатності</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="109"/>
<source>Colour representation</source>
<translation>Представлення кольору</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="112"/>
<source>Camera maker</source>
<translation>Виробник камери</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="114"/>
<source>Camera model</source>
<translation>Модель камери</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="116"/>
<source>F-stop</source>
<translation>Діафрагма (F)</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="118"/>
<source>Exposure time</source>
<translation>Час експозиції</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="120"/>
<source>ISO speed</source>
<translation>Чутливість ISO</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="122"/>
<source>Exposure bias</source>
<translation>Зсув експозиції</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="124"/>
<source>Focal length</source>
<translation>Фокусна відстань</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="126"/>
<source>Max aperture</source>
<translation>Максимальна апертура</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="128"/>
<source>Metering mode</source>
<translation>Режим вимірювання</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="130"/>
<source>Subject distance</source>
<translation>Відстань до об&apos;єкта зйомки</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="132"/>
<source>Flash mode</source>
<translation>Режим спалаху</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="134"/>
<source>35mm focal length</source>
<translation>Фокусна відстань 35 мм</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="137"/>
<source>Lens model</source>
<translation>Модель об&apos;єктива</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="139"/>
<source>Contrast</source>
<translation>Контраст</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="141"/>
<source>Brightness</source>
<translation>Яскравість</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="143"/>
<source>Exposure program</source>
<translation>Програма експозиції</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="145"/>
<source>Saturation</source>
<translation>Насиченість</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="147"/>
<source>Sharpness</source>
<translation>Різкість</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="149"/>
<source>White balance</source>
<translation>Баланс білого</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="151"/>
<source>Digital zoom</source>
<translation>Цифровий зум</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="153"/>
<source>EXIF version</source>
<translation>Версія EXIF</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="156"/>
<source>Latitude reference</source>
<translation>Посилання на широту</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="158"/>
<source>Latitude</source>
<translation>Широта</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="160"/>
<source>Longitude reference</source>
<translation>Посилання на довготу</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="162"/>
<source>Longitude</source>
<translation>Довгота</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="164"/>
<source>Altitude reference</source>
<translation>Посилання на висоту над рівнем моря</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="166"/>
<source>Altitude</source>
<translation>Висота над рівнем моря</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="176"/>
<source>%1 x %2</source>
<translation>%1 x %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="194"/>
<source>%1 : %2</source>
<translation>%1 : %2</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Property</source>
<translation>Власність</translation>
</message>
<message>
<location filename="../metadatamodel.cpp" line="319"/>
<source>Value</source>
<translation>Значення</translation>
</message>
</context>
<context>
<name>SettingsDialog</name>
<message>
<location filename="../settingsdialog.cpp" line="32"/>
<source>Settings</source>
<translation>Налаштування</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="40"/>
<source>Options</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="52"/>
<source>Shortcuts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="62"/>
<source>Editing shortcuts for action &quot;%1&quot;:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="71"/>
<source>Failed to set shortcuts</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="72"/>
<source>Please check if shortcuts are duplicated with existing shortcuts.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="79"/>
<source>Do nothing</source>
<translation>Нічого не робити</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="80"/>
<source>Close the window</source>
<translation>Закрити вікно</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="81"/>
<source>Toggle maximize</source>
<translation>Перемкнути на максимум</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="82"/>
<source>Toggle fullscreen</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="86"/>
<source>Zoom in and out</source>
<translation>Збільшення та зменшення</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="87"/>
<source>View next or previous item</source>
<translation>Переглянути наступний або попередній елемент</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="91"/>
<source>Auto size</source>
<translation>Автоматичний розмір</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="92"/>
<source>Maximized</source>
<translation>Максимізувати</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="93"/>
<source>Windowed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="97"/>
<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="98"/>
<source>Ceil (Integer scaling)</source>
<comment>This option means always round up</comment>
<translation>Ceil (цілочисельне масштабування)</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="99"/>
<source>Floor (Integer scaling)</source>
<comment>This option means always round down</comment>
<translation>Floor (цілочисельне масштабування)</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="100"/>
<source>Follow system (Fractional scaling)</source>
<comment>This option means don&apos;t round</comment>
<translation>Стежити за системою (дробове масштабування)</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="123"/>
<source>Stay on top when start-up</source>
<translation>Поверх всіх вікон під час запуску</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="124"/>
<source>Use built-in close window animation</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="125"/>
<source>Use light-color checkerboard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="126"/>
<source>Loop the loaded gallery</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="127"/>
<source>Auto long image mode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="128"/>
<source>Double-click behavior</source>
<translation>Поведінка при подвійному кліку</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="129"/>
<source>Mouse wheel behavior</source>
<translation>Поведінка колеса миші</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="130"/>
<source>Default window size</source>
<translation>Розмір вікна за замовчуванням</translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="131"/>
<source>HiDPI scale factor rounding policy</source>
<translation>Політика округлення коефіцієнта HiDPI</translation>
</message>
</context>
<context>
<name>ShortcutEdit</name>
<message>
<location filename="../shortcutedit.cpp" line="104"/>
<source>No shortcuts</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>ShortcutEditor</name>
<message>
<location filename="../shortcutedit.cpp" line="70"/>
<source>Shortcut #%1</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>main</name>
<message>
<location filename="../main.cpp" line="42"/>
<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>

File diff suppressed because it is too large Load Diff

View File

@ -1,158 +1,140 @@
image: image:
- Visual Studio 2022 - Visual Studio 2019
environment: environment:
CMAKE_INSTALL_PREFIX: C:\projects\cmake CMAKE_INSTALL_ROOT: C:\projects\cmake
LIBZ: C:\projects\zlib LIBZ: C:\projects\zlib
LIBEXPAT: C:\projects\libexpat LIBEXPAT: C:\projects\libexpat
LIBAVIF: C:\projects\libavif LIBAVIF: C:\projects\libavif
LIBEXIV2: C:\projects\exiv2 LIBEXIV2: C:\projects\exiv2
PPKG: C:\projects\ppkg
matrix: matrix:
- job_name: mingw_64_qt6_8 - build_name: mingw81_64_qt5_15_2
QTDIR: C:\Qt\6.8\mingw_64 QTPATH: C:\Qt\5.15.2\mingw81_64
MINGW64: C:\Qt\Tools\mingw1310_64 MINGW64: C:\Qt\Tools\mingw810_64
KF_BRANCH: master
EXIV2_VERSION: "0.28.5"
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"
install: install:
- mkdir %CMAKE_INSTALL_PREFIX% - mkdir %CMAKE_INSTALL_ROOT%
- mkdir %LIBZ% - mkdir %LIBZ%
- mkdir %LIBEXPAT% - mkdir %LIBEXPAT%
- mkdir %LIBAVIF% - mkdir %LIBAVIF%
- mkdir %LIBEXIV2% - mkdir %LIBEXIV2%
- mkdir %PPKG%
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive - git submodule update --init --recursive
- set PATH=%PATH%;%CMAKE_INSTALL_PREFIX%;%QTDIR%\bin;%MINGW64%\bin;%PPKG% - set PATH=%PATH%;%CMAKE_INSTALL_ROOT%;%QTPATH%\bin;%MINGW64%\bin
- set CC=%MINGW64%\bin\gcc.exe - set CC=%MINGW64%\bin\gcc.exe
- set CXX=%MINGW64%\bin\g++.exe - set CXX=%MINGW64%\bin\g++.exe
build_script: build_script:
# prepare # prepare
- mkdir 3rdparty - mkdir 3rdparty
- choco install ninja - cinst 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 # download and install zlib for KArchive
- cd %LIBZ% - cd %LIBZ%
- curl -fsSL -o zlib131.zip https://zlib.net/zlib131.zip - curl -fsSL -o zlib1211.zip https://zlib.net/zlib1211.zip
- 7z x zlib131.zip -y - 7z x zlib1211.zip -y
- cd zlib-1.3.1 - cd zlib-1.2.11
- mkdir build - mkdir build
- cd build - cd build
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% - cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT%
- cmake --build . --config Release - cmake --build . --config Release
- cmake --build . --config Release --target install/strip - cmake --build . --config Release --target install/strip
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
# install ECM so we can build KImageFormats # install ECM so we can build KImageFormats
- cd 3rdparty - cd 3rdparty
- git clone -b %KF_BRANCH% -q https://invent.kde.org/frameworks/extra-cmake-modules.git - git clone -q https://invent.kde.org/frameworks/extra-cmake-modules.git
- git rev-parse HEAD - git rev-parse HEAD
- cd extra-cmake-modules - cd extra-cmake-modules
- cmake -G "Ninja" . -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% -DBUILD_TESTING=OFF - cmake -G "Ninja" . -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT% -DBUILD_TESTING=OFF
- cmake --build . - cmake --build .
- cmake --build . --target install - cmake --build . --target install
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
# install AOM for libavif AV1 decoding support... # install AOM for libavif AV1 decoding support...
- cd 3rdparty - cd 3rdparty
#- git clone -b v3.9.1 --depth 1 https://aomedia.googlesource.com/aom - git clone -b v2.0.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 - 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 - mkdir build.libavif
- ppkg ppkg-aom.zip - cd build.libavif
- 7z x ppkg-aom.zip LICENSE -y - cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT% -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
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
# install libavif for avif format support of KImageFormats # install libavif for avif format support of KImageFormats
- cd %LIBAVIF% - cd %LIBAVIF%
- curl -fsSL -o libavif-v1_1_1.zip https://github.com/AOMediaCodec/libavif/archive/v1.1.1.zip - curl -fsSL -o libavif-v0_8_4.zip https://github.com/AOMediaCodec/libavif/archive/v0.8.4.zip
- 7z x libavif-v1_1_1.zip -y - 7z x libavif-v0_8_4.zip -y
- cd libavif-1.1.1 - cd libavif-0.8.4
- mkdir build - mkdir build
- cd 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 .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT% -DAVIF_CODEC_AOM=ON
- cmake --build . --config Release - cmake --build . --config Release
- cmake --build . --config Release --target install/strip - cmake --build . --config Release --target install/strip
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
# install KArchive for kra format support of KImageFormats # install KArchive for kra format support of KImageFormats
- cd 3rdparty - cd 3rdparty
- git clone -b %KF_BRANCH% -q https://invent.kde.org/frameworks/karchive.git - git clone -q https://invent.kde.org/frameworks/karchive.git
- git rev-parse HEAD - git rev-parse HEAD
- cd karchive - cd karchive
- mkdir build - mkdir build
- cd build - cd build
- cmake .. -G "Ninja" -DBUILD_TESTING=OFF -DWITH_LIBZSTD=OFF -DWITH_BZIP2=OFF -DWITH_LIBLZMA=OFF -DWITH_OPENSSL=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% - cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT%
- cmake --build . --config Release - cmake --build . --config Release
- cmake --build . --config Release --target install/strip - cmake --build . --config Release --target install/strip
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
# build libexpat for libexiv2 # build libexpat for libexiv2
- cd %LIBEXPAT% - cd %LIBEXPAT%
- curl -fsSL -o R_2_6_2.zip https://github.com/libexpat/libexpat/archive/R_2_6_2.zip - curl -fsSL -o R_2_2_10.zip https://github.com/libexpat/libexpat/archive/R_2_2_10.zip
- 7z x R_2_6_2.zip -y - 7z x R_2_2_10.zip -y
- cd libexpat-R_2_6_2/expat/ - cd libexpat-R_2_2_10/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 -G "Ninja" . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT% -DEXPAT_BUILD_EXAMPLES=OFF -DEXPAT_BUILD_TESTS=OFF -DEXPAT_BUILD_TOOLS=OFF
- cmake --build . --target install/strip - cmake --build . --target install/strip
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
# build libexiv2 # build libexiv2
- cd %LIBEXIV2% - cd %LIBEXIV2%
- curl -fsSL -o v%EXIV2_VERSION%.zip https://github.com/Exiv2/exiv2/archive/v%EXIV2_VERSION%.zip - curl -fsSL -o v0.27.3.zip https://github.com/Exiv2/exiv2/archive/v0.27.3.zip
- 7z x v%EXIV2_VERSION%.zip -y - 7z x v0.27.3.zip -y
- cd exiv2-%EXIV2_VERSION% - cd exiv2-0.27.3
- cmake -G "Ninja" . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_PREFIX% %EXIV2_CMAKE_OPTIONS% - cmake -G "Ninja" . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CMAKE_INSTALL_ROOT% -DEXIV2_BUILD_SAMPLES=OFF -DEXIV2_ENABLE_WIN_UNICODE=ON
- cmake --build . --target install/strip - cmake --build . --target install/strip
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
# install KImageFormats # install KImageFormats
- cd 3rdparty - cd 3rdparty
- git clone -b %KF_BRANCH% -q https://invent.kde.org/frameworks/kimageformats.git - git clone -q https://invent.kde.org/frameworks/kimageformats.git
- git rev-parse HEAD - git rev-parse HEAD
- cd kimageformats - cd kimageformats
- mkdir build - mkdir build
- cd build - cd build
- cmake .. -G "Ninja" -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_QTPLUGINDIR=%QTDIR%\plugins - cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_QTPLUGINDIR=%QTPATH%\plugins
- cmake --build . --config Release - cmake --build . --config Release
- cmake --build . --config Release --target install/strip - cmake --build . --config Release --target install/strip
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
# finally... # finally...
- mkdir build - mkdir build
- cd build - cd build
- cmake .. -G "Ninja" %PPIC_CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%CMAKE_INSTALL_PREFIX% -DCMAKE_INSTALL_PREFIX='%cd%' - cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_INSTALL_PREFIX='%cd%'
- cmake --build . --config Release - cmake --build . --config Release
- cmake --build . --config Release --target install/strip - cmake --build . --config Release --target install/strip
# fixme: I don't know how to NOT make the binary installed to the ./bin/ folder... # fixme: I don't know how to NOT make the binary installed to the ./bin/ folder...
- cd bin - cd bin
- copy %APPVEYOR_BUILD_FOLDER%\LICENSE - copy %APPVEYOR_BUILD_FOLDER%\LICENSE .
- copy %CMAKE_INSTALL_PREFIX%\bin\libaom.dll - copy %CMAKE_INSTALL_ROOT%\lib\libaom.dll
- copy %CMAKE_INSTALL_PREFIX%\bin\libexpat-1.dll - copy %CMAKE_INSTALL_ROOT%\bin\libexpat.dll
- copy %CMAKE_INSTALL_PREFIX%\bin\libexiv2.dll - copy %CMAKE_INSTALL_ROOT%\bin\libexiv2.dll
- copy %CMAKE_INSTALL_PREFIX%\bin\libavif.dll - copy %CMAKE_INSTALL_ROOT%\bin\libavif.dll
- copy %CMAKE_INSTALL_PREFIX%\bin\libzlib.dll - copy %CMAKE_INSTALL_ROOT%\bin\libzlib.dll
- copy %CMAKE_INSTALL_PREFIX%\bin\libKF?Archive.dll - copy C:\projects\cmake\bin\libKF5Archive.dll .
- windeployqt %WINDEPLOYQT_ARGS% .\ppic.exe - windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-angle --no-system-d3d-compiler .\ppic.exe
# copy 3rdparty licenses for the libs we vendored for windows... # copy 3rdparty licenses for the libs we vendored for windows...
- mkdir licenses - mkdir licenses
- cd licenses - cd licenses
- copy %APPVEYOR_BUILD_FOLDER%\3rdparty\aom\LICENSE License.aom.txt - 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\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 %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 %LIBEXPAT%\libexpat-R_2_2_10\expat\COPYING License.expat.txt
- copy %LIBAVIF%\libavif-1.1.1\LICENSE License.libavif.txt - copy %LIBAVIF%\libavif-0.8.4\LICENSE License.libavif.txt
- copy %LIBEXIV2%\exiv2-%EXIV2_VERSION%\COPYING License.exiv2.txt - copy %LIBEXIV2%\exiv2-0.27.3\COPYING License.exiv2.txt
# TODO: Qt, zlib # TODO: Qt, zlib
- cd .. - cd ..
# for debug.. # for debug..
- tree /f - tree /f
- cd %APPVEYOR_BUILD_FOLDER%
- xcopy %CMAKE_INSTALL_PREFIX% .\cmake-prefix-copy /E /H /C /I
artifacts: artifacts:
- path: build\bin - path: build\bin
- path: cmake-prefix-copy

Binary file not shown.

View File

@ -1,15 +1,79 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?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
<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;"> xmlns:dc="http://purl.org/dc/elements/1.1/"
<g transform="matrix(1,0,0,1,-119,-102)"> xmlns:cc="http://creativecommons.org/ns#"
<g id="go-next" transform="matrix(1.25,0,0,1.44231,119,-7.61538)"> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<rect x="0" y="76" width="60" height="52" style="fill:none;"/> xmlns:svg="http://www.w3.org/2000/svg"
<g transform="matrix(0.8,0,0,0.693333,0.260244,25.056)"> xmlns="http://www.w3.org/2000/svg"
<circle cx="37.175" cy="110.977" r="33.175" style="fill-opacity:0.15;stroke:white;stroke-width:2px;"/> xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
</g> xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
<g id="path867" transform="matrix(0.8,0,0,0.693333,1.80436,76.0055)"> width="75"
<path d="M31.578,26.175L42.911,37.508L31.578,48.809" style="fill:none;fill-rule:nonzero;stroke:white;stroke-width:2px;"/> height="75"
</g> viewBox="0 0 19.84375 19.843751"
</g> version="1.1"
</g> id="svg8"
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
sodipodi:docname="go-next.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#282929"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.76862745"
inkscape:pageshadow="2"
inkscape:zoom="16.000001"
inkscape:cx="35.333099"
inkscape:cy="37.582065"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
units="px"
inkscape:pagecheckerboard="false"
showguides="true"
inkscape:guide-bbox="true"
inkscape:window-width="1920"
inkscape:window-height="1001"
inkscape:window-x="-9"
inkscape:window-y="-9"
inkscape:window-maximized="1">
<sodipodi:guide
position="11.453565,9.9198082"
orientation="0,-1"
id="guide857" />
<sodipodi:guide
position="9.9229088,19.564698"
orientation="1,0"
id="guide837" />
</sodipodi:namedview>
<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="图层 1"
inkscape:groupmode="layer"
id="layer1">
<ellipse
style="opacity:1;fill:#000000;fill-opacity:0.15678;stroke:#ffffff;stroke-width:0.396875;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path849"
cx="9.9368067"
cy="9.915391"
rx="8.6764698"
ry="8.9158831" />
<path
style="fill:none;stroke:#ffffff;stroke-width:0.396875;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 8.3550725,6.9255115 11.353504,9.9239423 8.3550725,12.91402"
id="path867" />
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -1,15 +1,79 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?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
<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;"> xmlns:dc="http://purl.org/dc/elements/1.1/"
<g transform="matrix(1,0,0,1,-39,-102)"> xmlns:cc="http://creativecommons.org/ns#"
<g id="go-previous" transform="matrix(1.25,0,0,1.44231,39,-7.61538)"> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<rect x="0" y="76" width="60" height="52" style="fill:none;"/> xmlns:svg="http://www.w3.org/2000/svg"
<g transform="matrix(0.8,0,0,0.693333,0.260244,25.056)"> xmlns="http://www.w3.org/2000/svg"
<circle cx="37.175" cy="110.977" r="33.175" style="fill-opacity:0.15;stroke:white;stroke-width:2px;"/> xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
</g> xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
<g id="path867" transform="matrix(0.8,0,0,0.693333,-1.8205,76.0055)"> sodipodi:docname="go-previous.svg"
<path d="M43.442,26.175L32.109,37.508L43.442,48.809" style="fill:none;fill-rule:nonzero;stroke:white;stroke-width:2px;"/> inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
</g> id="svg8"
</g> version="1.1"
</g> viewBox="0 0 19.84375 19.843751"
height="75"
width="75">
<defs
id="defs2" />
<sodipodi:namedview
inkscape:window-maximized="1"
inkscape:window-y="-9"
inkscape:window-x="-9"
inkscape:window-height="1001"
inkscape:window-width="1920"
inkscape:guide-bbox="true"
showguides="true"
inkscape:pagecheckerboard="false"
units="px"
showgrid="false"
inkscape:document-rotation="0"
inkscape:current-layer="layer1"
inkscape:document-units="px"
inkscape:cy="45.995918"
inkscape:cx="29.794477"
inkscape:zoom="11.313709"
inkscape:pageshadow="2"
inkscape:pageopacity="0.76862745"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#282929"
id="base">
<sodipodi:guide
id="guide857"
orientation="0,-1"
position="11.453565,9.9198082" />
<sodipodi:guide
id="guide837"
orientation="1,0"
position="9.9229088,19.564698" />
</sodipodi:namedview>
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:groupmode="layer"
inkscape:label="图层 1">
<ellipse
ry="8.9158831"
rx="8.6764698"
cy="9.915391"
cx="9.9368067"
id="path849"
style="opacity:1;fill:#000000;fill-opacity:0.15678;stroke:#ffffff;stroke-width:0.396875;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
id="path867"
d="M 11.494016,6.9255115 8.4955849,9.9239423 11.494016,12.91402"
style="fill:none;stroke:#ffffff;stroke-width:0.396875;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -1,17 +1,70 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?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"> <!-- Created with Inkscape (http://www.inkscape.org/) -->
<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)"> <svg
<g id="object-rotate-right" transform="matrix(1,0,0,1,74,7.10543e-15)"> xmlns:dc="http://purl.org/dc/elements/1.1/"
<rect x="0" y="0" width="32" height="32" style="fill:none;"/> xmlns:cc="http://creativecommons.org/ns#"
<g transform="matrix(1,0,0,1,-1,-0.275147)"> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<g transform="matrix(1,0,0,1,-74,-7.10543e-15)"> xmlns:svg="http://www.w3.org/2000/svg"
<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;"/> xmlns="http://www.w3.org/2000/svg"
</g> xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
<g transform="matrix(0.984136,-0.177418,0.177418,0.984136,-74.2676,16.4198)"> xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
<path d="M89,13L93,9L89,5" style="fill:none;stroke:white;stroke-width:2px;"/> width="32"
</g> height="32"
</g> viewBox="0 0 8.4666665 8.4666669"
</g> version="1.1"
</g> id="svg8"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="object-rorate-right.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.4"
inkscape:cx="13.471207"
inkscape:cy="14.931415"
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></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.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 6.2474252,294.57784 c -1.6704347,1.43657 -3.1237125,0.51783 -3.1237125,0.51783 -0.650925,-0.38244 -0.9769945,-1.03846 -1.0690781,-1.42823 -0.032148,-0.5952 -0.1092884,-1.34357 0.3591432,-1.95439 0.5186761,-0.51984 0.9614825,-0.84964 1.4783346,-0.9271 l 1.302939,-0.0167"
id="path21"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
<path
style="fill:none;stroke:#ffffff;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 4.5352297,289.82545 c 0.6598217,0.9438 0.6598217,0.9438 0.6598217,0.9438 l -0.626413,0.94379 -0.033409,0.0334"
id="path25"
inkscape:connector-curvature="0" />
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -1,24 +1,87 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?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"> <!-- Created with Inkscape (http://www.inkscape.org/) -->
<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)"> <svg
<g id="view-background-checkerboard" transform="matrix(1,0,0,1,0,37)"> xmlns:dc="http://purl.org/dc/elements/1.1/"
<rect x="0" y="0" width="32" height="32" style="fill:none;"/> xmlns:cc="http://creativecommons.org/ns#"
<g id="rect814" transform="matrix(0.964431,0,0,0.907545,0.187581,-988.266)"> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<rect x="6.027" y="1095.56" width="10.369" height="11.019" style="fill:white;fill-opacity:0.87;"/> xmlns:svg="http://www.w3.org/2000/svg"
</g> xmlns="http://www.w3.org/2000/svg"
<g id="rect814-4" transform="matrix(0.984615,0,0,0.898704,-0.143354,-978.502)"> xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
<rect x="16.396" y="1106.6" width="10.156" height="11.127" style="fill:white;fill-opacity:0.87;"/> xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
</g> width="32"
<g id="rect814-2" transform="matrix(0.963684,0,0,0.898697,0.199828,-978.495)"> height="32"
<rect x="6.019" y="1106.6" width="10.377" height="11.127" style="fill:white;fill-opacity:0.07;"/> viewBox="0 0 8.4666665 8.4666669"
</g> version="1.1"
<g id="rect814-2-6" transform="matrix(0.980558,0,0,0.898693,-0.0768322,-978.47)"> id="svg8"
<rect x="16.396" y="1095.45" width="10.198" height="11.127" style="fill:white;fill-opacity:0.07;"/> inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
</g> sodipodi:docname="view-background-checkerboard.svg">
<g transform="matrix(1,0,0,0.952381,-74,-34)"> <defs
<rect x="80" y="42" width="20" height="21" style="fill:none;stroke:white;stroke-width:2.05px;"/> id="defs2" />
</g> <sodipodi:namedview
</g> id="base"
</g> pagecolor="#000000"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.69803922"
inkscape:pageshadow="2"
inkscape:zoom="44.8"
inkscape:cx="14.891202"
inkscape:cy="11.596232"
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)">
<rect
style="fill:#ffffff;fill-opacity:0.87058824;stroke:none;stroke-width:0.37041664;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect814"
width="2.7434142"
height="2.9153748"
x="1.5945871"
y="289.86566" />
<rect
style="fill:#ffffff;fill-opacity:0.87058824;stroke:none;stroke-width:0.37041664;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect814-4"
width="2.6871748"
height="2.9440556"
x="4.3380013"
y="292.78696" />
<rect
style="fill:#ffffff;fill-opacity:0.07843137;stroke:#ffffff;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect814-2"
width="2.7455406"
height="2.9440758"
x="1.5924606"
y="292.78696" />
<rect
style="fill:#ffffff;fill-opacity:0.07843137;stroke:#ffffff;stroke-width:0;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect814-2-6"
width="2.6982937"
height="2.9440918"
x="4.3380013"
y="289.83694" />
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -1,24 +1,86 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?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"> <!-- Created with Inkscape (http://www.inkscape.org/) -->
<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)"> <svg
<g id="view-fullscreen" transform="matrix(1,0,0,1,37,37)"> xmlns:dc="http://purl.org/dc/elements/1.1/"
<rect x="0" y="0" width="32" height="32" style="fill:none;"/> xmlns:cc="http://creativecommons.org/ns#"
<g transform="matrix(1,0,0,1,-36,-37)"> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<path d="M42,49L42,43L48,43" style="fill:none;stroke:white;stroke-width:2px;"/> xmlns:svg="http://www.w3.org/2000/svg"
</g> xmlns="http://www.w3.org/2000/svg"
<g transform="matrix(-1,1.22465e-16,1.22465e-16,1,68,-37)"> xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
<path d="M42,49L42,43L48,43" style="fill:none;stroke:white;stroke-width:2px;"/> xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
</g> width="32"
<g transform="matrix(1,-2.46519e-32,-2.46519e-32,-1,-36,69)"> height="32"
<path d="M42,49L42,43L48,43" style="fill:none;stroke:white;stroke-width:2px;"/> viewBox="0 0 8.4666665 8.4666669"
</g> version="1.1"
<g transform="matrix(1.11111,0,0,1.14286,-42.3333,-42.8571)"> id="svg8"
<rect x="48" y="48" width="9" height="7" style="fill:none;stroke:white;stroke-width:1.77px;"/> inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
</g> sodipodi:docname="view-fullscreen-a.svg">
<g transform="matrix(-1,-1.22465e-16,1.22465e-16,-1,68,69)"> <defs
<path d="M42,49L42,43L48,43" style="fill:none;stroke:white;stroke-width:2px;"/> id="defs2" />
</g> <sodipodi:namedview
</g> id="base"
</g> pagecolor="#000000"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.69803922"
inkscape:pageshadow="2"
inkscape:zoom="22.4"
inkscape:cx="6.127457"
inkscape:cy="14.931415"
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)">
<rect
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:0.37041667;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect835"
width="2.4214098"
height="1.8308237"
x="3.0710566"
y="291.59018" />
<path
style="fill:none;stroke:#ffffff;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 1.630022,292.00359 1.615848,290.14918 H 3.6380209"
id="path837"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#ffffff;stroke-width:0.26531255px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 6.9097992,291.96816 0.014252,-1.85441 -2.0333353,0"
id="path837-6"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#ffffff;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 6.9306311,293.21954 0.014174,1.85441 H 4.9226322"
id="path837-9"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#ffffff;stroke-width:0.26531255px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 1.6393869,293.16031 -0.014252,1.85441 h 2.0333353"
id="path837-6-4"
inkscape:connector-curvature="0" />
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -1,17 +1,81 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?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"> <!-- Created with Inkscape (http://www.inkscape.org/) -->
<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;"/> <svg
<g id="zoom-in1" serif:id="zoom-in"> xmlns:dc="http://purl.org/dc/elements/1.1/"
<g> xmlns:cc="http://creativecommons.org/ns#"
<g transform="matrix(1,0,0,1,-1,0)"> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<circle cx="16" cy="15" r="9" style="fill:none;stroke:white;stroke-width:2px;"/> xmlns:svg="http://www.w3.org/2000/svg"
</g> xmlns="http://www.w3.org/2000/svg"
<g transform="matrix(0.8,0.8,-0.8,0.8,27.6,-17.2)"> xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
<path d="M21,28L26,28" style="fill:none;stroke:white;stroke-width:2.65px;"/> xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
</g> width="32"
<path d="M11,15L19,15" style="fill:none;stroke:white;stroke-width:2px;"/> height="32"
<path d="M15,11L15,19" style="fill:none;stroke:white;stroke-width:2px;"/> viewBox="0 0 8.4666665 8.4666669"
</g> version="1.1"
</g> id="svg8"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="zoom-in-a.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#000000"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.69803922"
inkscape:pageshadow="2"
inkscape:zoom="16"
inkscape:cx="17.492176"
inkscape:cy="13.486663"
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)">
<circle
style="fill:none;stroke:#ffffff;stroke-width:0.26458332;stroke-opacity:1"
id="path825"
cx="3.8955173"
cy="292.02957"
r="1.9725631" />
<path
style="fill:none;stroke:#ffffff;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 2.8678944,292.07683 H 4.9703868"
id="path827"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#ffffff;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 3.9309524,290.90746 0.035435,2.29149"
id="path829"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#ffffff;stroke-width:0.5291667;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 5.2066218,293.63598 1.3465403,1.42922 v 0"
id="path831"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccc" />
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -1,24 +1,71 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?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"> <!-- Created with Inkscape (http://www.inkscape.org/) -->
<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)"> <svg
<g id="zoom-original" transform="matrix(1,0,0,1,74,37)"> xmlns:dc="http://purl.org/dc/elements/1.1/"
<rect x="0" y="0" width="32" height="32" style="fill:none;"/> xmlns:cc="http://creativecommons.org/ns#"
<g transform="matrix(1,0,0,1,-73,-37)"> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<path d="M85,57L85,49L84,49" style="fill:none;stroke:white;stroke-width:2px;"/> xmlns:svg="http://www.w3.org/2000/svg"
</g> xmlns="http://www.w3.org/2000/svg"
<g transform="matrix(1,0,0,1,-74,-37)"> xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
<rect x="89" y="50" width="2" height="2" style="fill:white;"/> xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
</g> width="32"
<g transform="matrix(1,0,0,1,-74,-33)"> height="32"
<rect x="89" y="50" width="2" height="2" style="fill:white;"/> viewBox="0 0 8.4666665 8.4666669"
</g> version="1.1"
<g transform="matrix(1,0,0,1,-64,-37)"> id="svg8"
<path d="M85,57L85,49L84,49" style="fill:none;stroke:white;stroke-width:2px;"/> inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
</g> sodipodi:docname="zoom-original-a.svg">
<g transform="matrix(1,0,0,0.952381,-74,-34)"> <defs
<rect x="80" y="42" width="20" height="21" style="fill:none;stroke:white;stroke-width:2.05px;stroke-linecap:round;stroke-linejoin:round;"/> id="defs2" />
</g> <sodipodi:namedview
</g> id="base"
</g> pagecolor="#000000"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.69803922"
inkscape:pageshadow="2"
inkscape:zoom="15.839192"
inkscape:cx="22.610899"
inkscape:cy="17.020554"
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)">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.30979729px;line-height:6.44362354px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.25774494;"
x="1.0365982"
y="259.85211"
id="text819"
transform="scale(0.88039913,1.1358485)"><tspan
sodipodi:role="line"
id="tspan817"
x="1.0365982"
y="259.85211"
style="font-size:5.84221935px;stroke-width:0.25774494;fill:#ffffff;fill-opacity:1;">1:1</tspan></text>
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -1,18 +1,76 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?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"> <!-- Created with Inkscape (http://www.inkscape.org/) -->
<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)"> <svg
<g id="zoom-out" transform="matrix(1,0,0,1,74,0)"> xmlns:dc="http://purl.org/dc/elements/1.1/"
<rect x="0" y="0" width="32" height="32" style="fill:none;"/> xmlns:cc="http://creativecommons.org/ns#"
<g> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
<g transform="matrix(1,0,0,1,-1,0)"> xmlns:svg="http://www.w3.org/2000/svg"
<circle cx="16" cy="15" r="9" style="fill:none;stroke:white;stroke-width:2px;"/> xmlns="http://www.w3.org/2000/svg"
</g> xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
<g transform="matrix(0.8,0.8,-0.8,0.8,27.6,-17.2)"> xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
<path d="M21,28L26,28" style="fill:none;stroke:white;stroke-width:2.65px;"/> width="32"
</g> height="32"
<path d="M11,15L19,15" style="fill:none;stroke:white;stroke-width:2px;"/> viewBox="0 0 8.4666665 8.4666669"
</g> version="1.1"
</g> id="svg8"
</g> inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="zoom-out-a.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#000000"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.69803922"
inkscape:pageshadow="2"
inkscape:zoom="16"
inkscape:cx="17.492176"
inkscape:cy="13.486663"
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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-288.5333)">
<circle
style="fill:none;stroke:#ffffff;stroke-width:0.26458332;stroke-opacity:1"
id="path825"
cx="3.8955173"
cy="292.02957"
r="1.9725631" />
<path
style="fill:none;stroke:#ffffff;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 2.8678944,292.07683 H 4.9703868"
id="path827"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#ffffff;stroke-width:0.5291667;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 5.2066218,293.63598 1.3465403,1.42922 v 0"
id="path831"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccc" />
</g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -1,18 +1,17 @@
IDI_ICON1 ICON DISCARDABLE "@CMAKE_CURRENT_SOURCE_DIR@/assets/icons/app-icon.ico" IDI_ICON1 ICON DISCARDABLE "icons/app-icon.ico"
1 VERSIONINFO 1 VERSIONINFO
BEGIN BEGIN
BLOCK "StringFileInfo" BLOCK "StringFileInfo"
BEGIN BEGIN
BLOCK "040904E4" BLOCK "040904E4"
BEGIN BEGIN
VALUE "FileDescription", "Pineapple Pictures - Image Viewer" VALUE "FileDescription", "Pineapple Pictures - Image Viewer"
VALUE "LegalCopyright", "MIT/Expat License - Copyright (C) 2024 Gary Wang" VALUE "LegalCopyright", "MIT/Expat License - Copyright (C) 2020 Gary Wang"
VALUE "ProductName", "Pineapple Pictures" VALUE "ProductName", "Pineapple Pictures"
VALUE "ProductVersion", "@PROJECT_VERSION@" END
END END
END BLOCK "VarFileInfo"
BLOCK "VarFileInfo" BEGIN
BEGIN VALUE "Translation", 0x409, 1200
VALUE "Translation", 0x409, 1200 END
END END
END

View File

@ -1,19 +1,10 @@
<ul> <ul>
<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>
<li><u>French</u>: J. Lavoie, K. Herbert, Maxime Leroy</li> <li><u>French</u>: J. Lavoie, K. Herbert</li>
<li><u>German</u>: K. Herbert, J. Lavoie, sal0max</li> <li><u>German</u>: K. Herbert, J. Lavoie</li>
<li><u>Indonesian</u>: liimee, Reza Almanda</li> <li><u>Norwegian Bokmål</u>: Allan Nordhøy</li>
<li><u>Italian</u>: albanobattistella</li> <li><u>Russian</u>: Sergey Shornikov, Artem</li>
<li><u>Japanese</u>: Black Cat, mmahhi, Percy Hong</li>
<li><u>Korean</u>: VenusGirl</li>
<li><u>Norwegian Bokmål</u>: Allan Nordhøy, ovl-1</li>
<li><u>Punjabi (Pakistan)</u>: bgo-eiu</li>
<li><u>Russian</u>: Sergey Shornikov, Artem, Andrey</li>
<li><u>Sinhala</u>: HelaBasa</li> <li><u>Sinhala</u>: HelaBasa</li>
<li><u>Spanish</u>: Toni Estévez, Génesis Toxical, William(ѕ)ⁿ, gallegonovato</li> <li><u>Spanish</u>: William(ѕ)ⁿ</li>
<li><u>Tamil</u>: தமிழ்நேரம் (TamilNeram)</li>
<li><u>Turkish</u>: E-Akcaer, Oğuz Ersen, Sabri Ünal</li>
<li><u>Ukrainian</u>: Dan, volkov, Сергій</li>
</ul> </ul>

96
cmake/FindLibExiv2.cmake Normal file
View File

@ -0,0 +1,96 @@
#.rst:
# FindLibExiv2
# ------------
#
# Try to find the Exiv2 library.
#
# This will define the following variables:
#
# ``LibExiv2_FOUND``
# True if (the requested version of) Exiv2 is available
#
# ``LibExiv2_VERSION``
# The version of Exiv2
#
# ``LibExiv2_INCLUDE_DIRS``
# The include dirs of Exiv2 for use with target_include_directories()
#
# ``LibExiv2_LIBRARIES``
# The Exiv2 library for use with target_link_libraries().
# This can be passed to target_link_libraries() instead of
# the ``LibExiv2::LibExiv2`` target
#
# If ``LibExiv2_FOUND`` is TRUE, it will also define the following imported
# target:
#
# ``LibExiv2::LibExiv2``
# The Exiv2 library
#
# In general we recommend using the imported target, as it is easier to use.
# Bear in mind, however, that if the target is in the link interface of an
# exported library, it must be made available by the package config file.
#
# Since 5.53.0.
#
#=============================================================================
# SPDX-FileCopyrightText: 2018 Christophe Giboudeaux <christophe@krop.fr>
# SPDX-FileCopyrightText: 2010 Alexander Neundorf <neundorf@kde.org>
# SPDX-FileCopyrightText: 2008 Gilles Caulier <caulier.gilles@gmail.com>
#
# SPDX-License-Identifier: BSD-3-Clause
#=============================================================================
find_package(PkgConfig QUIET)
pkg_check_modules(PC_EXIV2 QUIET exiv2)
find_path(LibExiv2_INCLUDE_DIRS NAMES exiv2/exif.hpp
HINTS ${PC_EXIV2_INCLUDEDIR}
)
find_library(LibExiv2_LIBRARIES NAMES exiv2 libexiv2
HINTS ${PC_EXIV2_LIBRARY_DIRS}
)
set(LibExiv2_VERSION ${PC_EXIV2_VERSION})
if(NOT LibExiv2_VERSION AND DEFINED LibExiv2_INCLUDE_DIRS)
# With exiv >= 0.27, the version #defines are in exv_conf.h instead of version.hpp
foreach(_exiv2_version_file "version.hpp" "exv_conf.h")
if(EXISTS "${LibExiv2_INCLUDE_DIRS}/exiv2/${_exiv2_version_file}")
file(READ "${LibExiv2_INCLUDE_DIRS}/exiv2/${_exiv2_version_file}" _exiv_version_file_content)
string(REGEX MATCH "#define EXIV2_MAJOR_VERSION[ ]+\\([0-9]+\\)" EXIV2_MAJOR_VERSION_MATCH ${_exiv_version_file_content})
string(REGEX MATCH "#define EXIV2_MINOR_VERSION[ ]+\\([0-9]+\\)" EXIV2_MINOR_VERSION_MATCH ${_exiv_version_file_content})
string(REGEX MATCH "#define EXIV2_PATCH_VERSION[ ]+\\([0-9]+\\)" EXIV2_PATCH_VERSION_MATCH ${_exiv_version_file_content})
if(EXIV2_MAJOR_VERSION_MATCH)
string(REGEX REPLACE ".*_MAJOR_VERSION[ ]+\\((.*)\\)" "\\1" EXIV2_MAJOR_VERSION ${EXIV2_MAJOR_VERSION_MATCH})
string(REGEX REPLACE ".*_MINOR_VERSION[ ]+\\((.*)\\)" "\\1" EXIV2_MINOR_VERSION ${EXIV2_MINOR_VERSION_MATCH})
string(REGEX REPLACE ".*_PATCH_VERSION[ ]+\\((.*)\\)" "\\1" EXIV2_PATCH_VERSION ${EXIV2_PATCH_VERSION_MATCH})
endif()
endif()
endforeach()
set(LibExiv2_VERSION "${EXIV2_MAJOR_VERSION}.${EXIV2_MINOR_VERSION}.${EXIV2_PATCH_VERSION}")
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LibExiv2
FOUND_VAR LibExiv2_FOUND
REQUIRED_VARS LibExiv2_LIBRARIES LibExiv2_INCLUDE_DIRS
VERSION_VAR LibExiv2_VERSION
)
mark_as_advanced(LibExiv2_INCLUDE_DIRS LibExiv2_LIBRARIES)
if(LibExiv2_FOUND AND NOT TARGET LibExiv2::LibExiv2)
add_library(LibExiv2::LibExiv2 UNKNOWN IMPORTED)
set_target_properties(LibExiv2::LibExiv2 PROPERTIES
IMPORTED_LOCATION "${LibExiv2_LIBRARIES}"
INTERFACE_INCLUDE_DIRECTORIES "${LibExiv2_INCLUDE_DIRS}"
)
endif()
include(FeatureSummary)
set_package_properties(LibExiv2 PROPERTIES
URL "https://www.exiv2.org"
DESCRIPTION "Image metadata support"
)

View File

@ -1,136 +0,0 @@
<?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>CFBundleLongVersionString</key>
<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
<key>CFBundleName</key>
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</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>${MACOSX_BUNDLE_COPYRIGHT}</string>
<!-- FIXME: this list can't be automatically generated by Qt's CMake API, don't know why. -->
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>ca</string>
<string>de</string>
<string>es</string>
<string>fr</string>
<string>id</string>
<string>it</string>
<string>ja</string>
<string>ko</string>
<string>nb_NO</string>
<string>nl</string>
<string>pa_PK</string>
<string>ru</string>
<string>si</string>
<string>ta</string>
<string>tr</string>
<string>uk</string>
<string>zh_CN</string>
</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>

View File

@ -1,283 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<component type="desktop-application"> <component type="desktop-application">
<id>net.blumia.pineapple-pictures</id> <id>net.blumia.pineapple-pictures</id>
<name>Pineapple Pictures</name>
<name xml:lang="es">Pineapple Pictures</name>
<name xml:lang="ja">Pineapple Pictures</name>
<name xml:lang="nl">Pineapple Afbeeldingen</name>
<name xml:lang="ru">Pineapple Pictures</name>
<name xml:lang="ta">அன்னாசி படங்கள்</name>
<name xml:lang="uk">Pineapple Pictures</name>
<name xml:lang="zh-CN">菠萝看图</name>
<summary>Image Viewer</summary>
<summary xml:lang="es">Visor de imágenes</summary>
<summary xml:lang="ja">画像ビューアー</summary>
<summary xml:lang="nl">Afbeeldingsweergave</summary>
<summary xml:lang="ru">Просмотр изображений</summary>
<summary xml:lang="ta">பட பார்வையாளர்</summary>
<summary xml:lang="uk">Переглядач зображень</summary>
<summary xml:lang="zh-CN">图像查看器</summary>
<metadata_license>CC0-1.0</metadata_license> <metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license> <project_license>MIT</project_license>
<name>Pineapple Pictures</name>
<name xml:lang="zh-CN">菠萝看图</name>
<summary>Image Viewer</summary>
<summary xml:lang="zh-CN">图像查看器</summary>
<description> <description>
<p>Pineapple Pictures is a lightweight and easy-to-use image viewer that comes with a handy navigation thumbnail when zoom-in, and doesn't contain any image management support.</p> <p>Pineapple Pictures is a lightweight and easy-to-use image viewer that comes with a handy navigation thumbnail when zoom-in, and doesn't contain any image management support.</p>
<p xml:lang="es">Pineapple Pictures es un visor de imágenes ligero y fácil de usar que viene con una práctica miniatura de navegación al hacer zoom, y no contiene ningún soporte de gestión de imágenes.</p>
<p xml:lang="ja">Pineapple Picturesは、ズームイン時に便利なナビゲーションサムネイルを備えた軽量で使いやすい画像ビューアです。画像管理のサポートは含まれていません。</p>
<p xml:lang="nl">Pineapple Afbeeldingen is een licht en eenvoudig te gebruiken afbeeldingsweergaveprogramma met miniatuurnavigatie na inzoomen. Het programma heeft echter geen fotobeheermogelijkheid.</p>
<p xml:lang="ru">Pineapple Pictures - это легкий и простой в использовании просмотрщик изображений, оснащенный удобной навигацией по миниатюрам при увеличении масштаба и не содержащий никакой поддержки управления изображениями.</p>
<p xml:lang="ta">அன்னாசி படங்கள் ஒரு இலகுரக மற்றும் பயன்படுத்த எளிதான பட பார்வையாளராகும், இது பெரிதாக்கும்போது ஒரு எளிமையான வழிசெலுத்தல் சிறுபடத்துடன் வருகிறது, மேலும் எந்த பட மேலாண்மை ஆதரவையும் கொண்டிருக்கவில்லை.</p>
<p xml:lang="uk">Pineapple Pictures це легкий і простий у використанні переглядач зображень, який постачається зі зручною навігаційною мініатюрою при збільшенні масштабу і не містить жодної підтримки керування зображеннями.</p>
<p xml:lang="zh-CN">菠萝看图是一个轻量级易用的图像查看器,在图片放大时提供了方便的鸟瞰导航功能,且不包含任何图片管理功能。</p> <p xml:lang="zh-CN">菠萝看图是一个轻量级易用的图像查看器,在图片放大时提供了方便的鸟瞰导航功能,且不包含任何图片管理功能。</p>
</description> </description>
<developer id="net.blumia">
<name>Gary (BLumia) Wang et al.</name>
<name xml:lang="ja">Gary (BLumia) Wang など</name>
<name xml:lang="nl">Gary (BLumia) Wang e.a.</name>
<name xml:lang="ru">Gary (BLumia) Wang et al.</name>
<name xml:lang="uk">Gary (BLumia) Wang.</name>
<name xml:lang="zh-CN">Gary (BLumia) Wang 等人</name>
</developer>
<launchable type="desktop-id">net.blumia.pineapple-pictures.desktop</launchable>
<url type="homepage">https://github.com/BLumia/pineapple-pictures</url> <url type="homepage">https://github.com/BLumia/pineapple-pictures</url>
<url type="bugtracker">https://github.com/BLumia/pineapple-pictures/issues</url> <url type="bugtracker">https://github.com/BLumia/pineapple-pictures/issues</url>
<url type="translate">https://hosted.weblate.org/projects/pineapple-pictures/</url>
<provides> <provides>
<binary>ppic</binary> <binary>ppic</binary>
</provides> </provides>
<screenshots>
<screenshot type="default">
<caption>Main window when an image file is loaded</caption>
<caption xml:lang="es">Ventana principal cuando se carga un archivo de imagen</caption>
<caption xml:lang="ja">画像ファイル読み込み時のメインウィンドウ</caption>
<caption xml:lang="nl">Hoofdvenster na het laden van een afbeelding</caption>
<caption xml:lang="ru">Основное окно после загрузки файла изображения</caption>
<caption xml:lang="ta">ஒரு படக் கோப்பு ஏற்றப்படும் போது முதன்மையான சாளரம்</caption>
<caption xml:lang="uk">Головне вікно після завантаження файлу зображення</caption>
<caption xml:lang="zh-CN">加载图片后的主窗口</caption>
<image type="source" width="1503" height="640">https://pineapple-pictures.sourceforge.io/ppic-gui-static.png</image>
</screenshot>
<screenshot>
<caption>Zooming in a raster image</caption>
<caption xml:lang="es">Ampliar una imagen rasterizada</caption>
<caption xml:lang="ja">ラスター画像の拡大</caption>
<caption xml:lang="nl">Inzoomen op een roosterafbeelding</caption>
<caption xml:lang="ru">Масштабирование растрового изображения</caption>
<caption xml:lang="ta">ராச்டர் படத்தில் பெரிதாக்குதல்</caption>
<caption xml:lang="uk">Масштабування растрового зображення</caption>
<caption xml:lang="zh-CN">放大浏览位图</caption>
<image type="source" width="771" height="553">https://pineapple-pictures.sourceforge.io/ppic-zoom-raster.png</image>
</screenshot>
<screenshot>
<caption>Zooming in a vector image</caption>
<caption xml:lang="es">Ampliar una imagen vectorial</caption>
<caption xml:lang="ja">ベクター画像の拡大</caption>
<caption xml:lang="nl">Inzoomen op een vectorafbeelding</caption>
<caption xml:lang="ru">Масштабирование векторного изображения</caption>
<caption xml:lang="ta">ஒரு திசையன் படத்தில் பெரிதாக்குதல்</caption>
<caption xml:lang="uk">Масштабування векторного зображення</caption>
<caption xml:lang="zh-CN">放大浏览矢量图</caption>
<image type="source" width="771" height="553">https://pineapple-pictures.sourceforge.io/ppic-zoom-svg.png</image>
</screenshot>
</screenshots>
<releases>
<release type="stable" version="1.1.1" date="2025-08-02T00:00:00Z">
<description>
<p>This release adds the following feature:</p>
<ul>
<li>Click dock icon should show window when it's hidden on macOS</li>
</ul>
<p>This release fixes the following bug:</p>
<ul>
<li>Ensure "Fit by Width" position the view to the beginning of the image</li>
</ul>
<p>This release includes the following changes:</p>
<ul>
<li>Update translations</li>
<li>Update Exiv2 version for Windows binary build</li>
</ul>
<p>With contributions from:</p>
<p>Heimen Stoffels, VenusGirl, தமிழ்நேரம்</p>
</description>
</release>
<release type="stable" version="1.1.0" date="2025-07-06T00:00:00Z">
<description>
<p>This release adds the following features:</p>
<ul>
<li>New option to disable built-in close window animation</li>
<li>New option to disable gallery looping</li>
<li>Support load m3u8 as image gallery playlist</li>
</ul>
<p>This release includes the following change:</p>
<ul>
<li>Drop Qt 5 support</li>
</ul>
<p>With contributions from:</p>
<p>Heimen Stoffels, albanobattistella, தமிழ்நேரம்</p>
</description>
</release>
<release type="stable" version="1.0.0" date="2025-05-03T00:00:00Z">
<description>
<p>This release adds the following features:</p>
<ul>
<li>Support enforces windowed mode on start-up</li>
<li>Reload image automatically when current image gets updated</li>
</ul>
<p>This release fixes the following bug:</p>
<ul>
<li>Display correct text language on macOS</li>
</ul>
<p>This release includes the following changes:</p>
<ul>
<li>Use native text for shortcut editor's label</li>
<li>Display native commandline message when possible</li>
<li>Merge Qt translations into app applications as well</li>
</ul>
<p>With contributions from:</p>
<p>Heimen Stoffels, albanobattistella, mmahhi</p>
</description>
</release>
<release type="stable" version="0.9.2" date="2025-03-05T00:00:00Z">
<description>
<p>This release fixes the following bug:</p>
<ul>
<li>Refer to the right exiv2 CMake module so it can be found on Linux</li>
</ul>
<p>This release includes the following changes:</p>
<ul>
<li>Convert DEP5 to REUSE.toml for better REUSE compliance</li>
<li>Update translations</li>
</ul>
<p>With contributions from:</p>
<p>Pino Toscano, TamilNeram</p>
</description>
</release>
<release type="stable" version="0.9.1" date="2025-01-25T00:00:00Z">
<description>
<p>This release adds the following features:</p>
<ul>
<li>Option to double-click to fullscreen</li>
<li>Build-time option to embed translation resources</li>
</ul>
<p>This release fixes the following bugs:</p>
<ul>
<li>Fix window size not adjusted when open file on macOS</li>
<li>Should center window according to available screen geometry</li>
</ul>
<p>This release includes the following changes:</p>
<ul>
<li>Change close window bahavior on macOS</li>
<li>Update translations</li>
</ul>
<p>With contributions from:</p>
<p>albanobattistella, Sabri Ünal</p>
</description>
</release>
<release type="stable" version="0.9.0" date="2024-12-08T00:00:00Z">
<description>
<p>This release adds the following features:</p>
<ul>
<li>Support custom shortcuts for existing actions</li>
<li>Actions for frame-by-frame animated image playback support</li>
</ul>
<p>This release includes the following changes:</p>
<ul>
<li>Initial macOS bundle support</li>
<li>bump minimum required CMake version to 3.16</li>
<li>Update translations</li>
</ul>
<p>With contributions from:</p>
<p>albanobattistella, VenusGirl, gallegonovato, Sabri Ünal</p>
</description>
</release>
<release type="stable" version="0.8.2.1" date="2024-10-27T00:00:00Z">
<description>
<p>This release fixes the following bug:</p>
<ul>
<li>Cannot load translations caused by a change in 0.8.2</li>
</ul>
</description>
</release>
<release type="stable" version="0.8.2" date="2024-10-26T00:00:00Z">
<description>
<p>This release adds the following feature:</p>
<ul>
<li>New option to allow use light-color checkerboard by default</li>
</ul>
<p>With contributions from:</p>
<p>albanobattistella, mmahhi, gallegonovato</p>
</description>
</release>
<release type="stable" version="0.8.1" date="2024-08-25T00:00:00Z">
<description>
<p>This release adds the following feature:</p>
<ul>
<li>New command line option to list all supported formats</li>
</ul>
<p>With contributions from:</p>
<p>albanobattistella, mmahhi, ovl-1, gallegonovato, Oğuz Ersen</p>
</description>
</release>
<release type="stable" version="0.8.0" date="2024-06-29T00:00:00Z">
<description>
<p>This release adds the following feature:</p>
<ul>
<li>Support move image file to trash</li>
</ul>
<p>With contributions from:</p>
<p>albanobattistella, mmahhi, gallegonovato, Oğuz Ersen</p>
</description>
</release>
<release type="stable" version="0.7.4" date="2024-04-04T00:00:00Z">
<description>
<p>This release adds the following feature:</p>
<ul>
<li>Add some icons for corresponding menu actions</li>
</ul>
<p>With contributions from:</p>
<p>Reza Almanda, mmahhi, Oğuz Ersen, volkov, Сергій</p>
</description>
</release>
<release type="stable" version="0.7.3" date="2023-10-24T00:00:00Z">
<description>
<p>This release adds the following feature:</p>
<ul>
<li>Add "Keep transformation" to menu</li>
</ul>
<p>With contributions from:</p>
<p>mmahhi, VenusGirl, albanobattistella, gallegonovato, Heimen Stoffels</p>
</description>
</release>
<release type="stable" version="0.7.2" date="2023-08-27T00:00:00Z">
<description>
<p>This release adds the following feature:</p>
<ul>
<li>Add an option in setting dialog to tweak the High-DPI scaling rounding policy (might only works in Qt 6 build)</li>
</ul>
<p>This release fixes the following bugs:</p>
<ul>
<li>Remove image size limit for Qt 6 build</li>
<li>Fix application icon install location under Linux</li>
</ul>
<p>With contributions from:</p>
<p>Heimen Stoffels, Andrey, Dan, gallegonovato, albanobattistella, Sabri Ünal</p>
</description>
</release>
<release type="stable" version="0.7.1" date="2023-07-08T00:00:00Z">
<description>
<p>This release adds the following features:</p>
<ul>
<li>TIF and TIFF format files in the same folder will now be automatically added to the gallery</li>
<li>Built-in window resizing now also supports Linux desktop. (macOS might also works as well)</li>
</ul>
<p>This release fixes the following bugs:</p>
<ul>
<li>Settings dialog will automatedly use a suitable size instead of a hard-coded one</li>
<li>Fix default configuration file location under Linux. (was `~/.config/config.ini`, now it's `~/.config/Pineapple Pictures/config.ini`)</li>
</ul>
<p>With contributions from:</p>
<p>yyc12345</p>
</description>
</release>
</releases>
<content_rating type="oars-1.1"/>
</component> </component>

View File

@ -1,55 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-08-22 18:49中国标准时间\n"
"PO-Revision-Date: 2024-04-19 17:07+0000\n"
"Last-Translator: gallegonovato <fran-carro@hotmail.es>\n"
"Language-Team: Spanish <https://hosted.weblate.org/projects/pineapple-"
"pictures/appstream-metadata/es/>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.5-dev\n"
#. (itstool) path: component/name
#: net.blumia.pineapple-pictures.metainfo.xml:7
msgid "Pineapple Pictures"
msgstr "Pineapple Pictures"
#. (itstool) path: component/summary
#: net.blumia.pineapple-pictures.metainfo.xml:9
msgid "Image Viewer"
msgstr "Visor de imágenes"
#. (itstool) path: description/p
#: net.blumia.pineapple-pictures.metainfo.xml:12
msgid ""
"Pineapple Pictures is a lightweight and easy-to-use image viewer that comes "
"with a handy navigation thumbnail when zoom-in, and doesn't contain any "
"image management support."
msgstr ""
"Pineapple Pictures es un visor de imágenes ligero y fácil de usar que viene "
"con una práctica miniatura de navegación al hacer zoom, y no contiene ningún "
"soporte de gestión de imágenes."
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:17
msgid "Main window when an image file is loaded"
msgstr "Ventana principal cuando se carga un archivo de imagen"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:22
msgid "Zooming in a raster image"
msgstr "Ampliar una imagen rasterizada"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:27
msgid "Zooming in a vector image"
msgstr "Ampliar una imagen vectorial"
#. (itstool) path: component/developer_name
#: net.blumia.pineapple-pictures.metainfo.xml:34
msgid "Gary (BLumia) Wang et al."
msgstr "Gary (BLumia) Wang et al."

View File

@ -1,54 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-08-22 18:49中国标准时间\n"
"PO-Revision-Date: 2023-11-14 17:05+0000\n"
"Last-Translator: mmahhi <masa10suda@gmail.com>\n"
"Language-Team: Japanese <https://hosted.weblate.org/projects/pineapple-"
"pictures/appstream-metadata/ja/>\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 5.2-dev\n"
#. (itstool) path: component/name
#: net.blumia.pineapple-pictures.metainfo.xml:7
msgid "Pineapple Pictures"
msgstr "Pineapple Pictures"
#. (itstool) path: component/summary
#: net.blumia.pineapple-pictures.metainfo.xml:9
msgid "Image Viewer"
msgstr "画像ビューアー"
#. (itstool) path: description/p
#: net.blumia.pineapple-pictures.metainfo.xml:12
msgid ""
"Pineapple Pictures is a lightweight and easy-to-use image viewer that comes "
"with a handy navigation thumbnail when zoom-in, and doesn't contain any "
"image management support."
msgstr ""
"Pineapple Picturesは、ズームイン時に便利なナビゲーションサムネイルを備えた軽"
"量で使いやすい画像ビューアです。画像管理のサポートは含まれていません。"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:17
msgid "Main window when an image file is loaded"
msgstr "画像ファイル読み込み時のメインウィンドウ"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:22
msgid "Zooming in a raster image"
msgstr "ラスター画像の拡大"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:27
msgid "Zooming in a vector image"
msgstr "ベクター画像の拡大"
#. (itstool) path: component/developer_name
#: net.blumia.pineapple-pictures.metainfo.xml:34
msgid "Gary (BLumia) Wang et al."
msgstr "Gary (BLumia) Wang など"

View File

@ -1,55 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-08-22 18:49中国标准时间\n"
"PO-Revision-Date: 2023-08-23 06:41+0000\n"
"Last-Translator: Heimen Stoffels <vistausss@fastmail.com>\n"
"Language-Team: Dutch <https://hosted.weblate.org/projects/pineapple-pictures/"
"appstream-metadata/nl/>\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.0-dev\n"
#. (itstool) path: component/name
#: net.blumia.pineapple-pictures.metainfo.xml:7
msgid "Pineapple Pictures"
msgstr "Pineapple Afbeeldingen"
#. (itstool) path: component/summary
#: net.blumia.pineapple-pictures.metainfo.xml:9
msgid "Image Viewer"
msgstr "Afbeeldingsweergave"
#. (itstool) path: description/p
#: net.blumia.pineapple-pictures.metainfo.xml:12
msgid ""
"Pineapple Pictures is a lightweight and easy-to-use image viewer that comes "
"with a handy navigation thumbnail when zoom-in, and doesn't contain any "
"image management support."
msgstr ""
"Pineapple Afbeeldingen is een licht en eenvoudig te gebruiken "
"afbeeldingsweergaveprogramma met miniatuurnavigatie na inzoomen. Het "
"programma heeft echter geen fotobeheermogelijkheid."
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:17
msgid "Main window when an image file is loaded"
msgstr "Hoofdvenster na het laden van een afbeelding"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:22
msgid "Zooming in a raster image"
msgstr "Inzoomen op een roosterafbeelding"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:27
msgid "Zooming in a vector image"
msgstr "Inzoomen op een vectorafbeelding"
#. (itstool) path: component/developer_name
#: net.blumia.pineapple-pictures.metainfo.xml:34
msgid "Gary (BLumia) Wang et al."
msgstr "Gary (BLumia) Wang e.a."

View File

@ -1,46 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-08-22 18:49中国标准时间\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. (itstool) path: component/name
#: net.blumia.pineapple-pictures.metainfo.xml:7
msgid "Pineapple Pictures"
msgstr ""
#. (itstool) path: component/summary
#: net.blumia.pineapple-pictures.metainfo.xml:9
msgid "Image Viewer"
msgstr ""
#. (itstool) path: description/p
#: net.blumia.pineapple-pictures.metainfo.xml:12
msgid "Pineapple Pictures is a lightweight and easy-to-use image viewer that comes with a handy navigation thumbnail when zoom-in, and doesn't contain any image management support."
msgstr ""
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:17
msgid "Main window when an image file is loaded"
msgstr ""
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:22
msgid "Zooming in a raster image"
msgstr ""
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:27
msgid "Zooming in a vector image"
msgstr ""
#. (itstool) path: component/developer_name
#: net.blumia.pineapple-pictures.metainfo.xml:34
msgid "Gary (BLumia) Wang et al."
msgstr ""

View File

@ -1,56 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-08-22 18:49中国标准时间\n"
"PO-Revision-Date: 2023-08-23 06:41+0000\n"
"Last-Translator: Andrey <andrey@mailbox.org>\n"
"Language-Team: Russian <https://hosted.weblate.org/projects/pineapple-"
"pictures/appstream-metadata/ru/>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 5.0-dev\n"
#. (itstool) path: component/name
#: net.blumia.pineapple-pictures.metainfo.xml:7
msgid "Pineapple Pictures"
msgstr "Pineapple Pictures"
#. (itstool) path: component/summary
#: net.blumia.pineapple-pictures.metainfo.xml:9
msgid "Image Viewer"
msgstr "Просмотр изображений"
#. (itstool) path: description/p
#: net.blumia.pineapple-pictures.metainfo.xml:12
msgid ""
"Pineapple Pictures is a lightweight and easy-to-use image viewer that comes "
"with a handy navigation thumbnail when zoom-in, and doesn't contain any "
"image management support."
msgstr ""
"Pineapple Pictures - это легкий и простой в использовании просмотрщик "
"изображений, оснащенный удобной навигацией по миниатюрам при увеличении "
"масштаба и не содержащий никакой поддержки управления изображениями."
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:17
msgid "Main window when an image file is loaded"
msgstr "Основное окно после загрузки файла изображения"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:22
msgid "Zooming in a raster image"
msgstr "Масштабирование растрового изображения"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:27
msgid "Zooming in a vector image"
msgstr "Масштабирование векторного изображения"
#. (itstool) path: component/developer_name
#: net.blumia.pineapple-pictures.metainfo.xml:34
msgid "Gary (BLumia) Wang et al."
msgstr "Gary (BLumia) Wang et al."

View File

@ -1,52 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-08-22 18:49中国标准时间\n"
"PO-Revision-Date: 2025-01-28 09:01+0000\n"
"Last-Translator: தமிழ்நேரம் <anishprabu.t@gmail.com>\n"
"Language-Team: Tamil <https://hosted.weblate.org/projects/pineapple-pictures/"
"appstream-metadata/ta/>\n"
"Language: ta\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10-dev\n"
#. (itstool) path: component/name
#: net.blumia.pineapple-pictures.metainfo.xml:7
msgid "Pineapple Pictures"
msgstr "அன்னாசி படங்கள்"
#. (itstool) path: component/summary
#: net.blumia.pineapple-pictures.metainfo.xml:9
msgid "Image Viewer"
msgstr "பட பார்வையாளர்"
#. (itstool) path: description/p
#: net.blumia.pineapple-pictures.metainfo.xml:12
msgid "Pineapple Pictures is a lightweight and easy-to-use image viewer that comes with a handy navigation thumbnail when zoom-in, and doesn't contain any image management support."
msgstr ""
"அன்னாசி படங்கள் ஒரு இலகுரக மற்றும் பயன்படுத்த எளிதான பட பார்வையாளராகும், இது "
"பெரிதாக்கும்போது ஒரு எளிமையான வழிசெலுத்தல் சிறுபடத்துடன் வருகிறது, மேலும் எந்த பட "
"மேலாண்மை ஆதரவையும் கொண்டிருக்கவில்லை."
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:17
msgid "Main window when an image file is loaded"
msgstr "ஒரு படக் கோப்பு ஏற்றப்படும் போது முதன்மையான சாளரம்"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:22
msgid "Zooming in a raster image"
msgstr "ராச்டர் படத்தில் பெரிதாக்குதல்"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:27
msgid "Zooming in a vector image"
msgstr "ஒரு திசையன் படத்தில் பெரிதாக்குதல்"
#. (itstool) path: component/developer_name
#: net.blumia.pineapple-pictures.metainfo.xml:34
msgid "Gary (BLumia) Wang et al."
msgstr "கேரி (ப்ளூமியா) வாங் மற்றும் பலர்."

View File

@ -1,56 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-08-22 18:49中国标准时间\n"
"PO-Revision-Date: 2024-01-01 16:10+0000\n"
"Last-Translator: Сергій <sergiy.goncharuk.1@gmail.com>\n"
"Language-Team: Ukrainian <https://hosted.weblate.org/projects/"
"pineapple-pictures/appstream-metadata/uk/>\n"
"Language: uk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 5.4-dev\n"
#. (itstool) path: component/name
#: net.blumia.pineapple-pictures.metainfo.xml:7
msgid "Pineapple Pictures"
msgstr "Pineapple Pictures"
#. (itstool) path: component/summary
#: net.blumia.pineapple-pictures.metainfo.xml:9
msgid "Image Viewer"
msgstr "Переглядач зображень"
#. (itstool) path: description/p
#: net.blumia.pineapple-pictures.metainfo.xml:12
msgid ""
"Pineapple Pictures is a lightweight and easy-to-use image viewer that comes "
"with a handy navigation thumbnail when zoom-in, and doesn't contain any "
"image management support."
msgstr ""
"Pineapple Pictures це легкий і простий у використанні переглядач "
"зображень, який постачається зі зручною навігаційною мініатюрою при "
"збільшенні масштабу і не містить жодної підтримки керування зображеннями."
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:17
msgid "Main window when an image file is loaded"
msgstr "Головне вікно після завантаження файлу зображення"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:22
msgid "Zooming in a raster image"
msgstr "Масштабування растрового зображення"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:27
msgid "Zooming in a vector image"
msgstr "Масштабування векторного зображення"
#. (itstool) path: component/developer_name
#: net.blumia.pineapple-pictures.metainfo.xml:34
msgid "Gary (BLumia) Wang et al."
msgstr "Gary (BLumia) Wang."

View File

@ -1,52 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2023-08-22 18:49中国标准时间\n"
"PO-Revision-Date: 2023-08-22 18:22+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.3.2\n"
#. (itstool) path: component/name
#: net.blumia.pineapple-pictures.metainfo.xml:7
msgid "Pineapple Pictures"
msgstr "菠萝看图"
#. (itstool) path: component/summary
#: net.blumia.pineapple-pictures.metainfo.xml:9
msgid "Image Viewer"
msgstr "图像查看器"
#. (itstool) path: description/p
#: net.blumia.pineapple-pictures.metainfo.xml:12
msgid ""
"Pineapple Pictures is a lightweight and easy-to-use image viewer that comes "
"with a handy navigation thumbnail when zoom-in, and doesn't contain any "
"image management support."
msgstr ""
"菠萝看图是一个轻量级易用的图像查看器,在图片放大时提供了方便的鸟瞰导航功能,"
"且不包含任何图片管理功能。"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:17
msgid "Main window when an image file is loaded"
msgstr "加载图片后的主窗口"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:22
msgid "Zooming in a raster image"
msgstr "放大浏览位图"
#. (itstool) path: screenshot/caption
#: net.blumia.pineapple-pictures.metainfo.xml:27
msgid "Zooming in a vector image"
msgstr "放大浏览矢量图"
#. (itstool) path: component/developer_name
#: net.blumia.pineapple-pictures.metainfo.xml:34
msgid "Gary (BLumia) Wang et al."
msgstr "Gary (BLumia) Wang 等人"

View File

@ -5,7 +5,7 @@ Comment[zh_CN]=菠萝看图是一个轻量级的图像查看器
Exec=ppic %F Exec=ppic %F
GenericName=Image Viewer GenericName=Image Viewer
GenericName[zh_CN]=图像查看器 GenericName[zh_CN]=图像查看器
Icon=net.blumia.pineapple-pictures Icon=pineapple-pictures
Keywords=Picture;Image;Viewer;Jpg;Jpeg;Png; Keywords=Picture;Image;Viewer;Jpg;Jpeg;Png;
MimeType=image/bmp;image/bmp24;image/jpg;image/jpe;image/jpeg;image/jpeg24;image/jng;image/pcd;image/pcx;image/png;image/tif;image/tiff;image/tiff24;image/dds;image/gif;image/sgi;image/j2k;image/jp2;image/pct;image/wdp;image/arw;image/icb;image/dng;image/vda;image/vst;image/svg;image/ptif;image/mef;image/xbm;image/svg+xml; MimeType=image/bmp;image/bmp24;image/jpg;image/jpe;image/jpeg;image/jpeg24;image/jng;image/pcd;image/pcx;image/png;image/tif;image/tiff;image/tiff24;image/dds;image/gif;image/sgi;image/j2k;image/jp2;image/pct;image/wdp;image/arw;image/icb;image/dng;image/vda;image/vst;image/svg;image/ptif;image/mef;image/xbm;image/svg+xml;
Name=Pineapple Pictures Name=Pineapple Pictures

View File

@ -1,101 +1,82 @@
# SPDX-FileCopyrightText: 2025 Gary Wang <git@blumia.net> QT += core widgets gui svg
#
# SPDX-License-Identifier: MIT TARGET = ppic
TEMPLATE = app
QT += core widgets gui svg svgwidgets
# The following define makes your compiler emit warnings if you use
TARGET = ppic # any feature of Qt which has been marked as deprecated (the exact warnings
TEMPLATE = app # depend on your compiler). Please consult the documentation of the
DEFINES += PPIC_VERSION_STRING=\\\"x.y.z\\\" # deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
win32 {
DEFINES += FLAG_PORTABLE_MODE_SUPPORT=1 # You can also make your code fail to compile if you use deprecated APIs.
} # In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
# The following define makes your compiler emit warnings if you use #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the CONFIG += c++11 lrelease embed_translations
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS SOURCES += \
app/aboutdialog.cpp \
# You can also make your code fail to compile if you use deprecated APIs. app/main.cpp \
# In order to do so, uncomment the following line. app/framelesswindow.cpp \
# You can also select to disable deprecated APIs only up to a certain version of Qt. app/mainwindow.cpp \
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 app/graphicsview.cpp \
app/bottombuttongroup.cpp \
CONFIG += c++17 lrelease embed_translations app/graphicsscene.cpp \
app/navigatorview.cpp \
SOURCES += \ app/opacityhelper.cpp \
app/aboutdialog.cpp \ app/toolbutton.cpp \
app/main.cpp \ app/settings.cpp \
app/framelesswindow.cpp \ app/settingsdialog.cpp \
app/mainwindow.cpp \ app/metadatamodel.cpp \
app/graphicsview.cpp \ app/metadatadialog.cpp \
app/bottombuttongroup.cpp \ app/exiv2wrapper.cpp \
app/graphicsscene.cpp \ app/actionmanager.cpp \
app/navigatorview.cpp \ app/playlistmanager.cpp
app/opacityhelper.cpp \
app/toolbutton.cpp \ HEADERS += \
app/settings.cpp \ app/aboutdialog.h \
app/settingsdialog.cpp \ app/framelesswindow.h \
app/metadatamodel.cpp \ app/mainwindow.h \
app/metadatadialog.cpp \ app/graphicsview.h \
app/exiv2wrapper.cpp \ app/bottombuttongroup.h \
app/actionmanager.cpp \ app/graphicsscene.h \
app/playlistmanager.cpp \ app/navigatorview.h \
app/shortcutedit.cpp \ app/opacityhelper.h \
app/fileopeneventhandler.cpp app/toolbutton.h \
app/settings.h \
HEADERS += \ app/settingsdialog.h \
app/aboutdialog.h \ app/metadatamodel.h \
app/framelesswindow.h \ app/metadatadialog.h \
app/mainwindow.h \ app/exiv2wrapper.h \
app/graphicsview.h \ app/actionmanager.h \
app/bottombuttongroup.h \ app/playlistmanager.h
app/graphicsscene.h \
app/navigatorview.h \ TRANSLATIONS = \
app/opacityhelper.h \ app/translations/PineapplePictures.ts \
app/toolbutton.h \ app/translations/PineapplePictures_zh_CN.ts \
app/settings.h \ app/translations/PineapplePictures_de.ts \
app/settingsdialog.h \ app/translations/PineapplePictures_es.ts \
app/metadatamodel.h \ app/translations/PineapplePictures_fr.ts \
app/metadatadialog.h \ app/translations/PineapplePictures_nb_NO.ts \
app/exiv2wrapper.h \ app/translations/PineapplePictures_nl.ts \
app/actionmanager.h \ app/translations/PineapplePictures_ru.ts \
app/playlistmanager.h \ app/translations/PineapplePictures_si.ts
app/shortcutedit.h \
app/fileopeneventhandler.h # Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
TRANSLATIONS = \ else: unix:!android: target.path = /opt/$${TARGET}/bin
app/translations/PineapplePictures_en.ts \ !isEmpty(target.path): INSTALLS += target
app/translations/PineapplePictures_zh_CN.ts \
app/translations/PineapplePictures_de.ts \ RESOURCES += \
app/translations/PineapplePictures_es.ts \ assets/resources.qrc
app/translations/PineapplePictures_fr.ts \
app/translations/PineapplePictures_nb_NO.ts \ # Generate from svg:
app/translations/PineapplePictures_nl.ts \ # magick convert -density 512x512 -background none app-icon.svg -define icon:auto-resize app-icon.ico
app/translations/PineapplePictures_ru.ts \ RC_ICONS = assets/icons/app-icon.ico
app/translations/PineapplePictures_si.ts \
app/translations/PineapplePictures_id.ts # Windows only, for rc file (we're not going to use the .rc file in this repo)
QMAKE_TARGET_PRODUCT = Pineapple Pictures
# Default rules for deployment. QMAKE_TARGET_DESCRIPTION = Pineapple Pictures - Image Viewer
qnx: target.path = /tmp/$${TARGET}/bin QMAKE_TARGET_COPYRIGHT = MIT/Expat License - Copyright (C) 2020 Gary Wang
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RESOURCES += \
assets/resources.qrc
# Generate from svg:
# magick convert -density 512x512 -background none app-icon.svg -define icon:auto-resize app-icon.ico
RC_ICONS = assets/icons/app-icon.ico
# Windows only, for rc file (we're not going to use the .rc file in this repo)
QMAKE_TARGET_PRODUCT = Pineapple Pictures
QMAKE_TARGET_DESCRIPTION = Pineapple Pictures - Image Viewer
QMAKE_TARGET_COPYRIGHT = MIT/Expat License - Copyright (C) 2024 Gary Wang
# MSVC only, since QMake doesn't have a CMAKE_CXX_STANDARD_LIBRARIES or cpp_winlibs similar thing
win32-msvc* {
LIBS += -luser32
}