Skip to content

Add Polish translation #183

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 65 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
df1f8e2
Add Korean Translate
mirusu400 Oct 9, 2019
61e423c
Add French translation
maltaisn Oct 5, 2020
96d968e
Fix OpenGL rendering on Wayland
mara004 Aug 2, 2021
e122ba0
Improve code formatting
mara004 Aug 2, 2021
2de32ff
Add Polish translation
fyrtax Sep 25, 2021
e03960a
Ignore build folder
Feb 5, 2022
595a1ee
German translation added
Feb 5, 2022
592300b
Merge remote-tracking branch 'polish/master'
Feb 5, 2022
d3a03bc
Merge remote-tracking branch 'french/master'
Feb 5, 2022
87af484
Add option to use black as filling background color
Feb 5, 2022
b83d557
Better translation
Feb 5, 2022
7d4c4f3
Add 1200 DPI as option
Feb 5, 2022
692ffd8
Fix for #87af484 which broke the build
Feb 5, 2022
d16344c
Merge remote-tracking branch 'korean/master'
Feb 5, 2022
ca7d423
Update readme
Feb 5, 2022
b472a7a
German translation synced with project and translated missing phrases
Feb 6, 2022
a07c618
Translations synced with project
Feb 6, 2022
f3fe586
Bump version
Feb 6, 2022
2474dc0
Merge branch 'wayland-opengl' of https://github.com/mara004/scantailo…
Feb 9, 2022
8d4e15f
Enable negative margins
Feb 9, 2022
a2ad776
Qt6 port, warning suppression
kunzjacq Feb 15, 2022
f8be714
Enable compilation with both Qt5 and Qt6
kunzjacq Feb 16, 2022
06238ee
Require at least Qt 5.15
kunzjacq Feb 16, 2022
1359b27
Enable compilation with Qt5 starting from version 5.9
kunzjacq Feb 17, 2022
8ad0ec2
misc fix regarding the use of a deprecated function
kunzjacq Feb 18, 2022
a4c655f
misc fix regarding the use of a deprecated function (take two)
kunzjacq Feb 18, 2022
e1218c5
Update README.md
vigri Feb 24, 2022
4df65ca
Enable compilation with Qt6 and MSVC
kunzjacq Feb 25, 2022
a0112f9
fix install with MinGW GCC from command-line
kunzjacq Mar 5, 2022
5442e12
ignore CMake user settings
kunzjacq Mar 5, 2022
4e3d89b
Enable the installation of scantailor-advanced with libjpeg-turbo under
kunzjacq Mar 6, 2022
bd35d95
Merge branch 'master' into Qt6
kunzjacq Mar 9, 2022
5f4db25
Merge pull request #7 from kunzjacq/Qt6
vigri Mar 19, 2022
1590e99
Update Polish translation
fyrtax Apr 2, 2022
155807e
Merge pull request #11 from ukolaj-s/master
vigri Apr 2, 2022
70d87e4
Merge branch 'master' into develop
vigri Apr 23, 2022
b3481bf
Merge pull request #14 from vigri/develop
vigri Apr 23, 2022
85c3310
Update version.h.in
vigri Apr 23, 2022
713a0fb
Update README.md
mirusu400 May 5, 2022
d799b8a
Merge pull request #19 from mirusu400/master
vigri May 9, 2022
7e8c457
Add clang formatting checker
Mar 16, 2023
25341c0
Fix workflow
Mar 16, 2023
501da50
Run clang check for PRs too
Mar 17, 2023
7dc3c16
Merge pull request #36 from lightsilverberryfox/clang-format
vigri Mar 18, 2023
a6eae62
Clang formatting fixes
Mar 18, 2023
deef272
Update clang lint action
Mar 18, 2023
7dcf65d
Fix all clang issues
Mar 18, 2023
bb36374
Fix one small thing
Mar 18, 2023
3cf6a54
Fix whitespace
Mar 18, 2023
9a1ff4b
Automatic updates for GitHub actions
Mar 18, 2023
fdb4abb
Fix for loop item duplication warning
Mar 21, 2023
b812b77
Merge pull request #38 from lightsilverberryfox/clang-fixes
vigri Mar 22, 2023
eac0441
Merge pull request #39 from lightsilverberryfox/dependabot
vigri Mar 22, 2023
dc6f160
Merge pull request #44 from lightsilverberryfox/remove-warnings
vigri Mar 22, 2023
ed6d1f6
Improve readme (#45)
Jun 7, 2023
a2aef13
Fix building Proximity.cpp with Qt6 and gcc 11.2 (#54)
Jun 7, 2023
b4d8638
Linux Cmake build (#41)
Jun 7, 2023
8d45d0d
Add AppImage support for Linux (#58)
Jun 25, 2023
3fe3b73
1.0.18: feature #47: prefilter EdgeDiv: combine prefilters EdgePlus a…
zvezdochiot Jul 12, 2023
b0788fc
Merge pull request #48 from ImageProcessing-ElectronicPublications/ma…
vigri Jul 16, 2023
6df8b7d
Update version.h.in
vigri Jul 16, 2023
b6f8459
1.0.19: feature #50: foreground and background zones
zvezdochiot Jul 19, 2023
c575887
Merge pull request #70 from ImageProcessing-ElectronicPublications/ma…
vigri Aug 3, 2023
ab6018d
1.0.19: colors: wiener denoiser
zvezdochiot Aug 12, 2023
7601370
Merge pull request #77 from ImageProcessing-ElectronicPublications/ma…
vigri Aug 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Set update schedule for GitHub Actions

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every day
interval: "daily"
14 changes: 14 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: clang-format-check

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: DoozyX/[email protected]
with:
source: '.'
extensions: 'h,cpp,c'
77 changes: 77 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: CMake

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build-linux-qt5:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt install gcc g++ cmake libjpeg-dev libpng-dev libtiff5 libtiff5-dev libboost-test-dev qtbase5-dev libqt5svg5-dev qttools5-dev qttools5-dev-tools libqt5opengl5-dev libpthread-stubs0-dev rpm libfuse2

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Create DEB package
working-directory: ${{github.workspace}}/build
run: |
cpack -G "DEB"
mv scantailor*.deb scantailor.deb

- name: Create RPM package
working-directory: ${{github.workspace}}/build
run: |
cpack -G "RPM"
mv scantailor*.rpm scantailor.rpm

- name: Create AppImage package
working-directory: ${{github.workspace}}/build
run: |
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
./linuxdeploy-x86_64.AppImage --appdir AppDir --desktop-file ../src/resources/unix/scantailor.desktop --icon-file ../src/resources/ScanTailor.png --executable scantailor --output appimage
mv ScanTailor*.AppImage scantailor.AppImage

- name: Upload Linux bin
uses: actions/upload-artifact@v3
with:
name: scantailor-linux-ubuntu-latest-qt5
path: build/scantailor

- name: Upload Linux DEB
uses: actions/upload-artifact@v3
with:
name: scantailor-linux-ubuntu-latest-qt5-deb
path: build/scantailor.deb

- name: Upload Linux RPM
uses: actions/upload-artifact@v3
with:
name: scantailor-linux-ubuntu-latest-qt5-rpm
path: build/scantailor.rpm

- name: Upload Linux AppImage
uses: actions/upload-artifact@v3
with:
name: scantailor-linux-appimage
path: build/scantailor.AppImage
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CMakeLists.txt.user
build/

119 changes: 83 additions & 36 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ if (NOT DEFAULT_COMPILER_FLAGS_IS_SET)
if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wpedantic -Werror=return-type -Wno-unused")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Werror=return-type -Wno-unused")
add_compile_options("$<$<CONFIG:RELEASE>:-march=native;-mtune=native>")
endif()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}"
Expand Down Expand Up @@ -106,7 +107,7 @@ if (WIN32)
set(ZLIB_INSTALL_PREFIX "${zlib_dir_assumed}" CACHE PATH "Prefix where zlib is installed")
set(PNG_INSTALL_PREFIX "${png_dir_assumed}" CACHE PATH "Prefix where png is installed")
set(TIFF_INSTALL_PREFIX "${tiff_dir_assumed}" CACHE PATH "Prefix where tiff is installed")
set(QT_INSTALL_PREFIX "${qt_dir_assumed}" CACHE PATH "Prefix where Qt5 is installed")
set(QT_INSTALL_PREFIX "${qt_dir_assumed}" CACHE PATH "Prefix where Qt is installed")
set(BOOST_ROOT "${boost_dir_assumed}" CACHE PATH "Prefix where Boost is installed")

macro(list_append_existing_path Var Path)
Expand All @@ -131,7 +132,7 @@ endif()
find_package(JPEG REQUIRED)

if (WIN32)
add_dynamic_library_locations(JPEG::JPEG)
add_dynamic_library_locations(JPEG::JPEG "libjpeg-62.dll")
endif()

#=================================== ZLIB ===================================#
Expand All @@ -147,7 +148,7 @@ endif()
find_package(PNG REQUIRED)

if (WIN32)
add_dynamic_library_locations(PNG::PNG)
add_dynamic_library_locations(PNG::PNG "libpng16.dll")
endif()

#=================================== TIFF ===================================#
Expand All @@ -163,6 +164,8 @@ endif()

#================================= Boost ================================#

#set(Boost_NO_WARN_NEW_VERSIONS ON)

if (WIN32)
if (MINGW)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
Expand All @@ -172,10 +175,11 @@ if (WIN32)
endif()
set(Boost_ARCHITECTURE ${_boost_architecture} CACHE STRING "")

#set(Boost_DEBUG ON)
string(REGEX MATCHALL "[0-9]+" _boost_compiler_version ${CMAKE_CXX_COMPILER_VERSION})
list(GET _boost_compiler_version 0 _boost_compiler_version_major)
list(GET _boost_compiler_version 1 _boost_compiler_version_minor)
set(Boost_COMPILER "mgw${_boost_compiler_version_major}${_boost_compiler_version_minor}" CACHE STRING "")
set(Boost_COMPILER "-mgw${_boost_compiler_version_major}" CACHE STRING "")
endif()

real_path_find_glob(boost_include_dir_hints "${BOOST_ROOT}/include/boost-[_0-9]*/boost")
Expand All @@ -202,11 +206,40 @@ endif()

#=================================== Qt ===================================#

set(qt_min_version 5.6)
set(qt_min_version 5.9)

find_package(
Qt5 ${qt_min_version}
Qt6
COMPONENTS Core Gui Widgets Xml Network LinguistTools OpenGL Svg OpenGLWidgets
CONFIG)
if (Qt6_FOUND)
set(QT_BINDIR "${QT6_INSTALL_PREFIX}/bin")
else()
find_package(Qt5 ${qt_min_version}
COMPONENTS Core Gui Widgets Xml Network LinguistTools OpenGL Svg
CONFIG REQUIRED)
set(QT_BINDIR "${QT5_INSTALL_PREFIX}/bin")
endif()

if(Qt6_FOUND)
set(Qt_Core_lib Qt::Core)
set(Qt_Gui_lib Qt::Gui)
set(Qt_Network_lib Qt::Network)
set(Qt_OpenGL_lib Qt::OpenGL)
set(Qt_Svg_lib Qt::Svg)
set(Qt_Widgets_lib Qt::Widgets)
set(Qt_Xml_lib Qt::Xml)
set(Qt_OpenGLWidgets_lib Qt::OpenGLWidgets)
else()
set(Qt_Core_lib Qt5::Core)
set(Qt_Gui_lib Qt5::Gui)
set(Qt_Network_lib Qt5::Network)
set(Qt_OpenGL_lib Qt5::OpenGL)
set(Qt_Svg_lib Qt5::Svg)
set(Qt_Widgets_lib Qt5::Widgets)
set(Qt_Xml_lib Qt5::Xml)
endif()


#=================================== Threads ===================================#

Expand Down Expand Up @@ -293,7 +326,11 @@ finalize_translations(scantailor ${translation_files})
update_translations_target(update_translations scantailor)

list(FILTER translation_files EXCLUDE REGEX ".*untranslated.ts")
qt5_add_translation(qm_files ${translation_files})
if(Qt6_FOUND)
Qt_add_translation(qm_files ${translation_files})
else()
Qt5_add_translation(qm_files ${translation_files})
endif()
add_custom_target(compile_translations ALL DEPENDS ${qm_files})
if (WIN32)
install(FILES ${qm_files} DESTINATION "${CMAKE_INSTALL_BINDIR}/translations")
Expand Down Expand Up @@ -324,10 +361,17 @@ if (WIN32)
endmacro()

# Install the DLLs of the dependencies.
set(dep_libs
JPEG::JPEG PNG::PNG ZLIB::ZLIB TIFF::TIFF
Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Xml
Qt5::Network Qt5::OpenGL Qt5::Svg)
if(Qt6_FOUND)
set(dep_libs
JPEG::JPEG PNG::PNG ZLIB::ZLIB TIFF::TIFF
Qt::Core Qt::Gui Qt::Widgets Qt::Xml
Qt::Network Qt::OpenGL Qt::Svg Qt6::OpenGLWidgets)
else()
set(dep_libs
JPEG::JPEG PNG::PNG ZLIB::ZLIB TIFF::TIFF
Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Xml
Qt5::Network Qt5::OpenGL Qt5::Svg)
endif()

foreach (_target ${dep_libs})
get_target_property(target_type ${_target} TYPE)
Expand All @@ -346,34 +390,37 @@ if (WIN32)
add_runtime_libs_to_install(DEBUG "${debug_loc}")
endforeach()

# Install Qt's plugins.
macro (install_qt_plugin SubDir Target)
if (TARGET ${Target})
get_target_property(target_type ${Target} TYPE)
if (target_type STREQUAL "MODULE_LIBRARY")
get_target_property(release_loc ${Target} LOCATION_RELEASE)
get_target_property(debug_loc ${Target} LOCATION_DEBUG)
set_if_undefined(debug_loc "${release_loc}")

copy_to_build_dir("${release_loc}" SUBDIR ${SubDir} CONFIGURATIONS Release MinSizeRel RelWithDebInfo)
install(PROGRAMS "${release_loc}"
CONFIGURATIONS Release MinSizeRel RelWithDebInfo
#with Qt6, winqtdeploy is used to deploy plugins; the method below does not work anymore.
if (NOT Qt6_FOUND)
# Install Qt plugins.
macro (install_qt_plugin SubDir Target)
if (TARGET ${Target})
get_target_property(target_type ${Target} TYPE)
if (target_type STREQUAL "MODULE_LIBRARY")
get_target_property(release_loc ${Target} LOCATION_RELEASE)
get_target_property(debug_loc ${Target} LOCATION_DEBUG)
set_if_undefined(debug_loc "${release_loc}")

copy_to_build_dir("${release_loc}" SUBDIR ${SubDir} CONFIGURATIONS Release MinSizeRel RelWithDebInfo)
install(PROGRAMS "${release_loc}"
CONFIGURATIONS Release MinSizeRel RelWithDebInfo
DESTINATION "${CMAKE_INSTALL_BINDIR}/${SubDir}")
copy_to_build_dir("${debug_loc}" SUBDIR ${SubDir} CONFIGURATIONS Debug)
install(PROGRAMS "${debug_loc}"
CONFIGURATIONS Debug
copy_to_build_dir("${debug_loc}" SUBDIR ${SubDir} CONFIGURATIONS Debug)
install(PROGRAMS "${debug_loc}"
CONFIGURATIONS Debug
DESTINATION "${CMAKE_INSTALL_BINDIR}/${SubDir}")
endif()
endif()
endif()
endmacro()
endmacro()

install_qt_plugin("platforms" Qt::QWindowsIntegrationPlugin)
install_qt_plugin("styles" Qt::QWindowsVistaStylePlugin)
install_qt_plugin("imageformats" Qt::QJpegPlugin)
install_qt_plugin("accessible" Qt::QAccessiblePlugin)
install_qt_plugin("iconengines" Qt::QSvgIconPlugin)
install_qt_plugin("imageformats" Qt::QSvgPlugin)
endif()

install_qt_plugin("platforms" Qt5::QWindowsIntegrationPlugin)
install_qt_plugin("styles" Qt5::QWindowsVistaStylePlugin)
install_qt_plugin("imageformats" Qt5::QJpegPlugin)
install_qt_plugin("accessible" Qt5::QAccessiblePlugin)
install_qt_plugin("iconengines" Qt5::QSvgIconPlugin)
install_qt_plugin("imageformats" Qt5::QSvgPlugin)

# Install MinGW runtime components.
if (MINGW)
get_filename_component(_mingw_path ${CMAKE_CXX_COMPILER} PATH)
Expand Down Expand Up @@ -453,4 +500,4 @@ if (NOT TARGET uninstall)
add_custom_target(
uninstall
COMMAND "${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake")
endif()
endif()
Loading