Zadania 1-3

This commit is contained in:
BohdanBakhlul 2021-05-08 00:31:08 +02:00
parent ccacb8b8e8
commit 5da7ec6ba0
255 changed files with 326106 additions and 454 deletions

488
.gitignore vendored
View File

@ -1,454 +1,34 @@
# ---> C++ syntax: glob
# Prerequisites
*.d # Visual Studio generated files:
GeneratedFiles/*
# Compiled Object files Release/*
*.slo Debug/*
*.lo release/*
*.o debug/*
*.obj ipch/*
# Precompiled Headers # Build and relase directories:
*.gch build/*
*.pch build*/*
# Compiled Dynamic libraries # Temporary files:
*.so vc100.pdb
*.dylib
*.dll Makefile
Makefile.Release
# Fortran module files Makefile.Debug
*.mod MySimpleGimp.pro.user
*.smod MySimpleGimp.vcxproj.user
MySimpleGimp.v11.suo
# Compiled Static libraries MySimpleGimp.sdf
*.lai gen/*
*.la MySimpleGimp.opensdf
*.a MySimpleGimp.vcxproj*
*.lib syntax: regexp
# Executables # ui .h files. Auto generated by Qt on compile i.e. ui_histogram.h etc.
*.exe ui_.+.h
*.out
*.app # merge files
.+.orig
# ---> Qt
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.so.*
*.dll
*.dylib
# Qt-es
object_script.*.Release
object_script.*.Debug
*_plugin_import.cpp
/.qmake.cache
/.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
*.qmlc
*.jsc
Makefile*
*build-*
*.qm
*.prl
# Qt unit tests
target_wrapper.*
# QtCreator
*.autosave
# QtCreator Qml
*.qmlproject.user
*.qmlproject.user.*
# QtCreator CMake
CMakeLists.txt.user*
# QtCreator 4.8< compilation database
compile_commands.json
# QtCreator local machine specific files for imported projects
*creator.user*
*_qmlcache.qrc
# ---> VisualStudio
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsd

22
MySimpleGimp.pro Normal file
View File

@ -0,0 +1,22 @@
QT += core gui widgets
TARGET = MySimpleGimp
TEMPLATE = app
INCLUDEPATH += src/
SOURCES += src/main.cpp
include(src/core/core.pri)
include(src/gui/gui.pri)
RESOURCES += res/icons.qrc
CONFIG += c++11
gcc:QMAKE_CXXFLAGS += -Wno-ignored-qualifiers -Wno-unused-parameter -Wno-unused-variable -Wno-unused-but-set-variable -Wno-reorder
msvc {
QMAKE_CXXFLAGS_WARN_ON -= -W3
QMAKE_CXXFLAGS_WARN_ON += -W2
}

4
images/1_black_pixel.pbm Normal file
View File

@ -0,0 +1,4 @@
P4
# CREATOR: GIMP PNM Filter Version 1.1
1 1

BIN
images/1_white_pixel.pbm Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
P4
# CREATOR: GIMP PNM Filter Version 1.1
5 5
€@ @

Binary file not shown.

1330
images/cat_375x500.pnm Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

8810
images/fruits_512x480.pnm Normal file

File diff suppressed because one or more lines are too long

102
images/kitty_131x131.pgm Normal file

File diff suppressed because one or more lines are too long

42
images/lenna_154x154.pnm Normal file

File diff suppressed because one or more lines are too long

5
images/lenna_512x512.pgm Normal file

File diff suppressed because one or more lines are too long

542
images/lenna_512x512.pnm Normal file

File diff suppressed because one or more lines are too long

47
images/morph_279x200.pnm Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

BIN
images/rectangle_67x63.pnm Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

180004
images/sample_ascii_200x300.ppm Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

4
images/stuff_640x480.pnm Normal file

File diff suppressed because one or more lines are too long

11
images/text1_728x460.pnm Normal file

File diff suppressed because one or more lines are too long

24
images/text2_532x730.pnm Normal file

File diff suppressed because one or more lines are too long

4
images/text3_490x354.pnm Normal file

File diff suppressed because one or more lines are too long

4
images/text4_700x445.pnm Normal file

File diff suppressed because one or more lines are too long

22
images/text5_636x439.pnm Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

67
res/icons.qrc Normal file
View File

@ -0,0 +1,67 @@
<RCC>
<qresource prefix="/icons">
<file>icons/chart_curve.png</file>
<file>icons/chart_curve_add.png</file>
<file>icons/chart_curve_delete.png</file>
<file>icons/chart_line_edit.png</file>
<file>icons/door_out.png</file>
<file>icons/eye.png</file>
<file>icons/eye_blue.png</file>
<file>icons/eye_gray.png</file>
<file>icons/eye_green.png</file>
<file>icons/eye_red.png</file>
<file>icons/folder.png</file>
<file>icons/things_digital.png</file>
<file>icons/transform_rotate_90.png</file>
<file>icons/transform_rotate_180.png</file>
<file>icons/transform_rotate_270.png</file>
<file>icons/transform_rotate.png</file>
<file>icons/zoom_in.png</file>
<file>icons/zoom_out.png</file>
<file>icons/chart_curve_error.png</file>
<file>icons/chart_curve_go.png</file>
<file>icons/draw_convolve.png</file>
<file>icons/lightbulb.png</file>
<file>icons/checkerboard.png</file>
<file>icons/filter.png</file>
<file>icons/flag_airfield_vehicle_safety.png</file>
<file>icons/zoom_extend.png</file>
<file>icons/zoom_last.png</file>
<file>icons/convert_color_to_gray.png</file>
<file>icons/edge_detection.png</file>
<file>icons/personal_finance.png</file>
<file>icons/witch.png</file>
<file>icons/arrow_in.png</file>
<file>icons/arrow_out.png</file>
<file>icons/document_shapes.png</file>
<file>icons/key_a.png</file>
<file>icons/key_b.png</file>
<file>icons/key_c.png</file>
<file>icons/key_d.png</file>
<file>icons/key_e.png</file>
<file>icons/key_f.png</file>
<file>icons/key_g.png</file>
<file>icons/key_i.png</file>
<file>icons/key_j.png</file>
<file>icons/key_k.png</file>
<file>icons/key_l.png</file>
<file>icons/key_m.png</file>
<file>icons/key_n.png</file>
<file>icons/key_o.png</file>
<file>icons/key_p.png</file>
<file>icons/key_q.png</file>
<file>icons/key_s.png</file>
<file>icons/key_t.png</file>
<file>icons/key_u.png</file>
<file>icons/key_v.png</file>
<file>icons/key_w.png</file>
<file>icons/key_x.png</file>
<file>icons/key_y.png</file>
<file>icons/key_z.png</file>
<file>icons/arrow_divide.png</file>
<file>icons/arrow_join.png</file>
<file>icons/universal_binary.png</file>
<file>icons/videodisplay.png</file>
<file>icons/key_r.png</file>
</qresource>
</RCC>

BIN
res/icons/arrow_divide.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/icons/arrow_in.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/icons/arrow_join.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/icons/arrow_out.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/icons/chart_curve.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
res/icons/checkerboard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/icons/door_out.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/icons/draw_convolve.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/icons/eye.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
res/icons/eye_blue.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
res/icons/eye_gray.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
res/icons/eye_green.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
res/icons/eye_red.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
res/icons/filter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/icons/folder.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/icons/key_a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/icons/key_b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/icons/key_c.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/icons/key_d.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/icons/key_e.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/icons/key_f.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/icons/key_g.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/icons/key_i.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 975 B

BIN
res/icons/key_j.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
res/icons/key_k.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/icons/key_l.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1002 B

BIN
res/icons/key_m.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/icons/key_n.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/icons/key_o.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/icons/key_p.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/icons/key_q.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/icons/key_r.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
res/icons/key_s.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/icons/key_t.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1023 B

BIN
res/icons/key_u.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/icons/key_v.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/icons/key_w.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/icons/key_x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
res/icons/key_y.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/icons/key_z.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
res/icons/layer_save.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
res/icons/lightbulb.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
res/icons/picture.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
res/icons/picture_save.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Some files were not shown because too many files have changed in this diff Show More