Skip to content

Commit

Permalink
0.6.5: QT5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Jul 19, 2022
1 parent f37a198 commit 4c9bec7
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 121 deletions.
27 changes: 20 additions & 7 deletions README → README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
YASW
----
![GitHub release (latest by date)](https://img.shields.io/github/v/release/ImageProcessing-ElectronicPublications/yasw)
![GitHub Release Date](https://img.shields.io/github/release-date/ImageProcessing-ElectronicPublications/yasw)
![GitHub repo size](https://img.shields.io/github/repo-size/ImageProcessing-ElectronicPublications/yasw)
![GitHub all releases](https://img.shields.io/github/downloads/ImageProcessing-ElectronicPublications/yasw/total)
![GitHub](https://img.shields.io/github/license/ImageProcessing-ElectronicPublications/yasw)

# YASW

![yasw](yasw.png)

## Intro

YASW (Yet Another Scan Wizard) is an application used to correct images taken
with a camera while scanning a book. See http://http://www.diybookscanner.org/
for full information on how to scan with digital cameras.

LICENSE
-------
## LICENSE

YASW is licenced under GPLv3.
=> See documentation/gpl.txt for details.
```
=> See LICENSE for details.
```

yasw uses icons fron the Tango Theme, which are in the public domain.
```
=> See src/icons/tango-icon-theme/copyright.txt for details:
The icons in this folder are taken from the Tango Icon Theme Version 0.8.90.
It can be downloaded from http://tango.freedesktop.org/releases
The icons in the Tango Icon Theme are released under the Public Domain, as stated by the COPYING file in the original tarball:
"The icons in this repository are herefore released into the Public Domain."
```

## Links

DOWNLOAD
--------
You can download YASW from https://sourceforge.net/projects/yascanw/
1 change: 1 addition & 0 deletions src/filter/colorcorrectiongraphicsview.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <QColor>
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsView>
#include <cmath>

class ColorCorrectionGraphicsView : public QGraphicsView
{
Expand Down
114 changes: 0 additions & 114 deletions src/yasw.pro

This file was deleted.

Binary file added yasw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 124 additions & 0 deletions yasw.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# Copyright (C) 2012 Robert Chéramy ([email protected])
#
# This file is part of YASW (Yet Another Scan Wizard).
#
# YASW is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# YASW is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with YASW. If not, see <http://www.gnu.org/licenses/>.

# Disable warning about non-static data member initializers.
# No idea if this works on other platforms, old platforms will probably do not support it.
QMAKE_CXXFLAGS += -Isrc -std=c++11
QMAKE_LDFLAGS += -lm
TARGET = yasw
TEMPLATE = app
QT += xml widgets printsupport
SOURCES += \
src/main.cpp \
src/mainwindow.cpp \
src/filter/basefilter.cpp \
src/filter/basefiltergraphicsview.cpp \
src/filter/basefilterwidget.cpp \
src/filtercontainer.cpp \
src/filter/dekeystoning/dekeystoningwidget.cpp \
src/filter/dekeystoning/dekeystoning.cpp \
src/filter/rotation/rotationwidget.cpp \
src/filter/rotation/rotation.cpp \
src/filter/abstractfilterwidget.cpp \
src/filter/cropping/cropping.cpp \
src/filter/cropping/croppingwidget.cpp \
src/filter/cropping/croppinggraphicsview.cpp \
src/filter/cropping/croppingcorner.cpp \
src/filter/dekeystoning/dekeystoningline.cpp \
src/filter/dekeystoning/dekeystoningcorner.cpp \
src/imagetablewidget.cpp \
src/filter/scalewidget.cpp \
src/preferencesdialog.cpp \
src/filter/colorcorrectionwidget.cpp \
src/filter/colorcorrection.cpp \
src/filter/dekeystoning/dekeystoninggraphicsview.cpp \
src/filter/colorcorrectiongraphicsview.cpp \
src/filter/colorcorrectiongraphicsscene.cpp \
src/constants.cpp \
src/filter/layoutfilter.cpp \
src/filter/layoutwidget.cpp \
src/filter/scalefilter.cpp
HEADERS += \
src/mainwindow.h \
src/filter/basefilter.h \
src/filter/basefiltergraphicsview.h \
src/filter/basefilterwidget.h \
src/filtercontainer.h \
src/filter/dekeystoning/dekeystoningwidget.h \
src/filter/dekeystoning/dekeystoninggraphicsview.h \
src/filter/dekeystoning/dekeystoning.h \
src/filter/rotation/rotationwidget.h \
src/filter/rotation/rotation.h \
src/filter/abstractfilterwidget.h \
src/filter/cropping/cropping.h \
src/filter/cropping/croppingwidget.h \
src/filter/cropping/croppinggraphicsview.h \
src/filter/cropping/croppingcorner.h \
src/filter/dekeystoning/dekeystoningline.h \
src/filter/dekeystoning/dekeystoningcorner.h \
src/imagetablewidget.h \
src/filter/scalewidget.h \
src/filter/layoutfilter.h \
src/filter/layoutwidget.h \
src/preferencesdialog.h \
src/filter/colorcorrectionwidget.h \
src/filter/colorcorrection.h \
src/filter/colorcorrectiongraphicsview.h \
src/filter/colorcorrectiongraphicsscene.h \
src/constants.h \
src/filter/scalefilter.h
FORMS += \
src/mainwindow.ui \
src/filter/basefilterwidget.ui \
src/filter/dekeystoning/dekeystoningwidget.ui \
src/filter/rotation/rotationwidget.ui \
src/filter/cropping/croppingwidget.ui \
src/imagetablewidget.ui \
src/preferencesdialog.ui \
src/filter/scalewidget.ui \
src/filter/layoutwidget.ui \
src/filter/colorcorrectionwidget.ui
INCLUDEPATH += \
src/filter \
src/filter/dekeystoning \
src/filter/rotation \
src/filter/cropping
RESOURCES += src/icons/icons.qrc

OTHER_FILES += \
changelog.txt \
install.txt \
developpers.txt \
LICENSE \
README.md

# build dir
UI_DIR = ./build
MOC_DIR = ./build
RCC_DIR = ./build
OBJECTS_DIR = ./build
mytarget.commands += $${QMAKE_MKDIR} ./build

static {
## Everything below takes effect when calling qmake with CONFIG += static
## thanks to Charles N. Burns, http://www.formortals.com/how-to-statically-link-qt-4/ for the help
## Update Qt5: Q_IMPORT_PLUGIN(qsvg) in main.c is not needed anymore; QT += svg neither
QTPLUGIN += qsvg
DEFINES += STATIC
message ("This is a static build")
}

0 comments on commit 4c9bec7

Please sign in to comment.