├── .gitignore
├── JQLibraryImport.pri
├── JQTools.pro
├── LICENSE.txt
├── README.md
├── components
├── CalculateGroup
│ ├── BinarySearchAssistant
│ │ ├── BinarySearchAssistant.pri
│ │ ├── cpp
│ │ │ ├── BinarySearchAssistant
│ │ │ ├── binarysearchassistant.cpp
│ │ │ └── binarysearchassistant.h
│ │ └── qml
│ │ │ ├── BinarySearchAssistant.qml
│ │ │ └── BinarySearchAssistant.qrc
│ ├── CalculateGroup
│ ├── CalculateGroup.pri
│ ├── HashCalculate
│ │ ├── HashCalculate.pri
│ │ ├── cpp
│ │ │ ├── HashCalculate
│ │ │ ├── hashcalculate.cpp
│ │ │ └── hashcalculate.h
│ │ └── qml
│ │ │ ├── HashCalculate.qml
│ │ │ └── HashCalculate.qrc
│ ├── TimestampTransform
│ │ ├── TimestampTransform.pri
│ │ ├── cpp
│ │ │ ├── TimestampTransform
│ │ │ ├── timestamptransform.cpp
│ │ │ └── timestamptransform.h
│ │ └── qml
│ │ │ ├── TimestampTransform.qml
│ │ │ └── TimestampTransform.qrc
│ └── calculategroup.h
├── MakeGroup
│ ├── BarcodeMaker
│ │ ├── BarcodeMaker.pri
│ │ ├── cpp
│ │ │ ├── BarcodeMaker
│ │ │ ├── barcodemaker.cpp
│ │ │ └── barcodemaker.h
│ │ └── qml
│ │ │ ├── BarcodeMaker.qml
│ │ │ └── BarcodeMakerQml.qrc
│ ├── FontToPng
│ │ ├── FontToPng.pri
│ │ ├── Resource
│ │ │ └── Font
│ │ │ │ ├── Elusive
│ │ │ │ ├── Elusive.ttf
│ │ │ │ └── Elusive.txt
│ │ │ │ ├── FontAwesome
│ │ │ │ ├── FontAwesome.ttf
│ │ │ │ └── FontAwesome.txt
│ │ │ │ ├── FontToPngFont.qrc
│ │ │ │ ├── Foundation
│ │ │ │ ├── Foundation.ttf
│ │ │ │ └── Foundation.txt
│ │ │ │ ├── GlyphiconsHalflings
│ │ │ │ ├── GlyphiconsHalflings.ttf
│ │ │ │ └── GlyphiconsHalflings.txt
│ │ │ │ ├── IcoMoon
│ │ │ │ ├── IcoMoon.ttf
│ │ │ │ └── IcoMoon.txt
│ │ │ │ ├── IconFont
│ │ │ │ ├── IconFont.ttf
│ │ │ │ └── IconFont.txt
│ │ │ │ ├── IconWorks
│ │ │ │ ├── IconWorks.ttf
│ │ │ │ └── IconWorks.txt
│ │ │ │ ├── Icons8
│ │ │ │ ├── Icons8.ttf
│ │ │ │ └── Icons8.txt
│ │ │ │ ├── JustVector
│ │ │ │ ├── JustVector.ttf
│ │ │ │ └── JustVector.txt
│ │ │ │ ├── MaterialDesign
│ │ │ │ ├── MaterialDesign.ttf
│ │ │ │ └── MaterialDesign.txt
│ │ │ │ ├── Metrize
│ │ │ │ ├── Metrize.ttf
│ │ │ │ └── Metrize.txt
│ │ │ │ ├── Mfglabs
│ │ │ │ ├── Mfglabs.ttf
│ │ │ │ └── Mfglabs.txt
│ │ │ │ ├── OpenIconic
│ │ │ │ ├── OpenIconic.ttf
│ │ │ │ └── OpenIconic.txt
│ │ │ │ ├── Socicon
│ │ │ │ ├── Socicon.ttf
│ │ │ │ └── Socicon.txt
│ │ │ │ └── Typicons
│ │ │ │ ├── Typicons.ttf
│ │ │ │ └── Typicons.txt
│ │ ├── cpp
│ │ │ ├── FontToPng
│ │ │ ├── fonttopng.cpp
│ │ │ └── fonttopng.h
│ │ └── qml
│ │ │ ├── FontToPng.qml
│ │ │ └── FontToPng.qrc
│ ├── IconMaker
│ │ ├── IconMaker.pri
│ │ ├── Image
│ │ │ ├── Background.jpg
│ │ │ ├── DefaultIcon.png
│ │ │ └── IconMakerImage.qrc
│ │ ├── cpp
│ │ │ ├── IconMaker
│ │ │ ├── iconmaker.cpp
│ │ │ └── iconmaker.h
│ │ └── qml
│ │ │ ├── IconMaker.qml
│ │ │ └── IconMaker.qrc
│ ├── MakeGroup
│ ├── MakeGroup.pri
│ ├── QRCodeMaker
│ │ ├── QRCodeMaker.pri
│ │ ├── cpp
│ │ │ ├── QRCodeMaker
│ │ │ ├── qrcodemaker.cpp
│ │ │ └── qrcodemaker.h
│ │ └── qml
│ │ │ ├── QRCodeMaker.qml
│ │ │ └── QRCodeMakerQml.qrc
│ ├── WebPMaker
│ │ ├── WebPMaker.pri
│ │ ├── cpp
│ │ │ ├── WebPMaker
│ │ │ ├── webpmaker.cpp
│ │ │ └── webpmaker.h
│ │ └── qml
│ │ │ ├── WebPMaker.qml
│ │ │ └── WebPMaker.qrc
│ └── makegroup.h
├── QtGroup
│ ├── CppFileMaker
│ │ ├── CppFileMaker.pri
│ │ ├── cpp
│ │ │ ├── CppFileMaker
│ │ │ ├── cppfilemaker.cpp
│ │ │ └── cppfilemaker.h
│ │ ├── qml
│ │ │ ├── CppFileMaker.qml
│ │ │ └── CppFileMaker.qrc
│ │ └── resources
│ │ │ └── files
│ │ │ ├── CppFileMakerFiles.qrc
│ │ │ └── template
│ │ │ ├── CppTemplate
│ │ │ ├── QmlTemplate
│ │ │ ├── cpptemplate.cpp
│ │ │ ├── cpptemplate.h
│ │ │ ├── cpptemplate.inc
│ │ │ ├── qmltemplate.cpp
│ │ │ ├── qmltemplate.h
│ │ │ └── qmltemplate.inc
│ ├── PngWarningRemover
│ │ ├── PngWarningRemover.pri
│ │ ├── cpp
│ │ │ ├── PngWarningRemover
│ │ │ ├── pngwarningremover.cpp
│ │ │ └── pngwarningremover.h
│ │ └── qml
│ │ │ ├── PngWarningRemover.qml
│ │ │ └── PngWarningRemover.qrc
│ ├── PropertyMaker
│ │ ├── PropertyMaker.pri
│ │ ├── cpp
│ │ │ ├── PropertyMaker
│ │ │ ├── propertymaker.cpp
│ │ │ └── propertymaker.h
│ │ └── qml
│ │ │ ├── PropertyMaker.qml
│ │ │ └── PropertyMaker.qrc
│ ├── QtGroup
│ ├── QtGroup.pri
│ └── qtgroup.h
├── TextGroup
│ ├── CaseTransform
│ │ ├── CaseTransform.pri
│ │ ├── cpp
│ │ │ ├── CaseTransform
│ │ │ ├── casetransform.cpp
│ │ │ └── casetransform.h
│ │ └── qml
│ │ │ ├── CaseTransform.qml
│ │ │ └── CaseTransform.qrc
│ ├── JsonFormat
│ │ ├── JsonFormat.pri
│ │ ├── cpp
│ │ │ ├── JsonFormat
│ │ │ ├── jsonformat.cpp
│ │ │ └── jsonformat.h
│ │ └── qml
│ │ │ ├── JsonFormat.qml
│ │ │ └── JsonFormat.qrc
│ ├── RandomPassword
│ │ ├── RandomPassword.pri
│ │ ├── cpp
│ │ │ ├── RandomPassword
│ │ │ ├── randompassword.cpp
│ │ │ └── randompassword.h
│ │ └── qml
│ │ │ ├── RandomPassword.qml
│ │ │ └── RandomPassword.qrc
│ ├── RandomUuid
│ │ ├── RandomUuid.pri
│ │ ├── cpp
│ │ │ ├── RandomUuid
│ │ │ ├── randomuuid.cpp
│ │ │ └── randomuuid.h
│ │ └── qml
│ │ │ ├── RandomUuid.qml
│ │ │ └── RandomUuid.qrc
│ ├── RgbStringTransform
│ │ ├── RgbStringTransform.pri
│ │ ├── cpp
│ │ │ ├── RgbStringTransform
│ │ │ ├── rgbstringtransform.cpp
│ │ │ └── rgbstringtransform.h
│ │ └── qml
│ │ │ ├── RgbStringTransform.qml
│ │ │ └── RgbStringTransform.qrc
│ ├── StringSort
│ │ ├── StringSort.pri
│ │ ├── cpp
│ │ │ ├── StringSort
│ │ │ ├── stringsort.cpp
│ │ │ └── stringsort.h
│ │ └── qml
│ │ │ ├── StringSort.qml
│ │ │ └── StringSort.qrc
│ ├── TextGroup
│ ├── TextGroup.pri
│ ├── UrlEncode
│ │ ├── UrlEncode.pri
│ │ ├── cpp
│ │ │ ├── UrlEncode
│ │ │ ├── urlencode.cpp
│ │ │ └── urlencode.h
│ │ └── qml
│ │ │ ├── UrlEncode.qml
│ │ │ └── UrlEncode.qrc
│ ├── Utf16Transform
│ │ ├── Utf16Transform.pri
│ │ ├── cpp
│ │ │ ├── Utf16Transform
│ │ │ ├── utf16transform.cpp
│ │ │ └── utf16transform.h
│ │ └── qml
│ │ │ ├── Utf16Transform.qml
│ │ │ └── Utf16Transform.qrc
│ └── textgroup.h
├── ToolsGroup
│ ├── BatchReplacement
│ │ ├── BatchReplacement.pri
│ │ ├── cpp
│ │ │ ├── BatchReplacement
│ │ │ ├── batchreplacement.cpp
│ │ │ └── batchreplacement.h
│ │ └── qml
│ │ │ ├── BatchReplacement.qml
│ │ │ └── BatchReplacement.qrc
│ ├── JpgOptimize
│ │ ├── JpgOptimize.pri
│ │ ├── cpp
│ │ │ ├── JpgOptimize
│ │ │ ├── jpgoptimize.cpp
│ │ │ └── jpgoptimize.h
│ │ └── qml
│ │ │ ├── JpgOptimize.qml
│ │ │ └── JpgOptimize.qrc
│ ├── LanFileTransport
│ │ ├── LanFileTransport.pri
│ │ ├── cpp
│ │ │ ├── LanFileTransport
│ │ │ ├── lanfiletransport.h
│ │ │ └── lanfiletransport_.cpp
│ │ └── qml
│ │ │ ├── LanFileTransport.qml
│ │ │ └── LanFileTransport.qrc
│ ├── LinesStatistics
│ │ ├── LinesStatistics.pri
│ │ ├── cpp
│ │ │ ├── LinesStatistics
│ │ │ ├── linesstatistics.cpp
│ │ │ └── linesstatistics.h
│ │ └── qml
│ │ │ ├── LinesStatistics.qml
│ │ │ └── LinesStatistics.qrc
│ ├── PngOptimize
│ │ ├── PngOptimize.pri
│ │ ├── cpp
│ │ │ ├── PngOptimize
│ │ │ ├── pngoptimize.cpp
│ │ │ └── pngoptimize.h
│ │ └── qml
│ │ │ ├── PngOptimize.qml
│ │ │ └── PngOptimize.qrc
│ ├── QRCodeReader
│ │ ├── QRCodeReader.pri
│ │ ├── cpp
│ │ │ ├── QRCodeReader
│ │ │ ├── qrcodereader.h
│ │ │ └── qrcodereader_.cpp
│ │ ├── qml
│ │ │ ├── QRCodeReader.qml
│ │ │ └── QRCodeReaderQml.qrc
│ │ └── resources
│ │ │ └── images
│ │ │ ├── QRCodeReaderImages.qrc
│ │ │ └── test.png
│ ├── ScreenColorPicker
│ │ ├── ScreenColorPicker.pri
│ │ ├── cpp
│ │ │ ├── ScreenColorPicker
│ │ │ ├── colorpicker.cpp
│ │ │ ├── colorpicker.h
│ │ │ ├── mousedropper.cpp
│ │ │ ├── mousedropper.h
│ │ │ ├── screenColorPicker.cpp
│ │ │ └── screenColorPicker.h
│ │ ├── qml
│ │ │ ├── ColorChooser.png
│ │ │ ├── ColorPickerPen.png
│ │ │ ├── ScreenColorPicker.qml
│ │ │ └── ScreenColorPicker.qrc
│ │ └── res
│ │ │ └── ico
│ │ │ └── 更多颜色.png
│ ├── ToolsGroup
│ ├── ToolsGroup.pri
│ └── toolsgroup.h
├── WelcomeGroup
│ ├── WelcomeGroup
│ ├── WelcomeGroup.pri
│ ├── cpp
│ │ ├── Welcome
│ │ ├── welcome.cpp
│ │ └── welcome.h
│ ├── qml
│ │ ├── Welcome.qml
│ │ └── Welcome.qrc
│ └── welcomegroup.h
└── components.pri
├── cpp
├── JQToolsManage
├── jqtools_manage.hpp
├── main.cpp
└── stable.h
├── icon
├── icon.icns
└── icon.ico
├── library
├── JQLibrary
│ ├── JQGuetzli.pri
│ ├── JQLibrary.pri
│ ├── JQQRCodeReader.pri
│ ├── JQQRCodeWriter.pri
│ ├── JQZopfli.pri
│ ├── bin
│ │ └── JQGuetzli
│ │ │ └── x86_64
│ │ │ └── macx-clang
│ │ │ ├── gflags
│ │ │ └── libgflags.2.2.0.dylib
│ │ │ └── png
│ │ │ └── libpng16.16.dylib
│ ├── include
│ │ ├── JQBarcode.h
│ │ ├── JQDeclare
│ │ ├── JQFile.h
│ │ ├── JQFoundation.h
│ │ ├── JQGuetzli
│ │ │ ├── JQGuetzli.h
│ │ │ ├── butteraugli
│ │ │ │ └── butteraugli.h
│ │ │ ├── gflags
│ │ │ │ ├── gflags.h
│ │ │ │ ├── gflags_completions.h
│ │ │ │ ├── gflags_declare.h
│ │ │ │ └── gflags_gflags.h
│ │ │ ├── guetzli
│ │ │ │ ├── butteraugli_comparator.h
│ │ │ │ ├── color_transform.h
│ │ │ │ ├── comparator.h
│ │ │ │ ├── dct_double.h
│ │ │ │ ├── debug_print.h
│ │ │ │ ├── entropy_encode.h
│ │ │ │ ├── fast_log.h
│ │ │ │ ├── fdct.h
│ │ │ │ ├── gamma_correct.h
│ │ │ │ ├── idct.h
│ │ │ │ ├── jpeg_bit_writer.h
│ │ │ │ ├── jpeg_data.h
│ │ │ │ ├── jpeg_data_decoder.h
│ │ │ │ ├── jpeg_data_encoder.h
│ │ │ │ ├── jpeg_data_reader.h
│ │ │ │ ├── jpeg_data_writer.h
│ │ │ │ ├── jpeg_error.h
│ │ │ │ ├── jpeg_huffman_decode.h
│ │ │ │ ├── order.inc
│ │ │ │ ├── output_image.h
│ │ │ │ ├── preprocess_downsample.h
│ │ │ │ ├── processor.h
│ │ │ │ ├── quality.h
│ │ │ │ ├── quantize.h
│ │ │ │ ├── score.h
│ │ │ │ └── stats.h
│ │ │ └── png
│ │ │ │ ├── png.h
│ │ │ │ ├── pngconf.h
│ │ │ │ └── pnglibconf.h
│ │ ├── JQQRCodeReader
│ │ │ ├── JQQRCodeReader.h
│ │ │ └── JQQRCodeReaderForQml.h
│ │ ├── JQQRCodeWriter
│ │ │ └── JQQRCodeWriter.h
│ │ ├── JQZopfli
│ │ │ ├── JQZopfli.h
│ │ │ ├── zopfli
│ │ │ │ ├── blocksplitter.h
│ │ │ │ ├── cache.h
│ │ │ │ ├── deflate.h
│ │ │ │ ├── gzip_container.h
│ │ │ │ ├── hash.h
│ │ │ │ ├── katajainen.h
│ │ │ │ ├── lz77.h
│ │ │ │ ├── squeeze.h
│ │ │ │ ├── symbols.h
│ │ │ │ ├── tree.h
│ │ │ │ ├── util.h
│ │ │ │ ├── zlib_container.h
│ │ │ │ └── zopfli.h
│ │ │ └── zopflipng
│ │ │ │ ├── lodepng
│ │ │ │ ├── lodepng.h
│ │ │ │ └── lodepng_util.h
│ │ │ │ └── zopflipng_lib.h
│ │ └── jqdeclare.hpp
│ └── src
│ │ ├── JQBarcode.cpp
│ │ ├── JQFile.cpp
│ │ ├── JQFoundation.cpp
│ │ ├── JQGuetzli
│ │ ├── JQGuetzli.cpp
│ │ ├── butteraugli
│ │ │ └── butteraugli.cc
│ │ └── guetzli
│ │ │ ├── butteraugli_comparator.cc
│ │ │ ├── dct_double.cc
│ │ │ ├── debug_print.cc
│ │ │ ├── entropy_encode.cc
│ │ │ ├── fdct.cc
│ │ │ ├── gamma_correct.cc
│ │ │ ├── idct.cc
│ │ │ ├── jpeg_data.cc
│ │ │ ├── jpeg_data_decoder.cc
│ │ │ ├── jpeg_data_encoder.cc
│ │ │ ├── jpeg_data_reader.cc
│ │ │ ├── jpeg_data_writer.cc
│ │ │ ├── jpeg_huffman_decode.cc
│ │ │ ├── output_image.cc
│ │ │ ├── preprocess_downsample.cc
│ │ │ ├── processor.cc
│ │ │ ├── quality.cc
│ │ │ ├── quantize.cc
│ │ │ └── score.cc
│ │ ├── JQQRCodeReader
│ │ ├── JQQRCodeReader.cpp
│ │ ├── JQQRCodeReaderForQml.cpp
│ │ └── zxing
│ │ │ ├── bigint
│ │ │ ├── .gitignore
│ │ │ ├── BigInteger.cc
│ │ │ ├── BigInteger.hh
│ │ │ ├── BigIntegerAlgorithms.cc
│ │ │ ├── BigIntegerAlgorithms.hh
│ │ │ ├── BigIntegerLibrary.hh
│ │ │ ├── BigIntegerUtils.cc
│ │ │ ├── BigIntegerUtils.hh
│ │ │ ├── BigUnsigned.cc
│ │ │ ├── BigUnsigned.hh
│ │ │ ├── BigUnsignedInABase.cc
│ │ │ ├── BigUnsignedInABase.hh
│ │ │ ├── ChangeLog
│ │ │ ├── NumberlikeArray.hh
│ │ │ └── README
│ │ │ ├── win32
│ │ │ └── zxing
│ │ │ │ ├── iconv.h
│ │ │ │ ├── stdint.h
│ │ │ │ └── win_iconv.c
│ │ │ └── zxing
│ │ │ ├── BarcodeFormat.cpp
│ │ │ ├── BarcodeFormat.h
│ │ │ ├── Binarizer.cpp
│ │ │ ├── Binarizer.h
│ │ │ ├── BinaryBitmap.cpp
│ │ │ ├── BinaryBitmap.h
│ │ │ ├── ChecksumException.cpp
│ │ │ ├── ChecksumException.h
│ │ │ ├── DecodeHints.cpp
│ │ │ ├── DecodeHints.h
│ │ │ ├── Exception.cpp
│ │ │ ├── Exception.h
│ │ │ ├── FormatException.cpp
│ │ │ ├── FormatException.h
│ │ │ ├── IllegalStateException.h
│ │ │ ├── InvertedLuminanceSource.cpp
│ │ │ ├── InvertedLuminanceSource.h
│ │ │ ├── LuminanceSource.cpp
│ │ │ ├── LuminanceSource.h
│ │ │ ├── MultiFormatReader.cpp
│ │ │ ├── MultiFormatReader.h
│ │ │ ├── NotFoundException.h
│ │ │ ├── Reader.cpp
│ │ │ ├── Reader.h
│ │ │ ├── ReaderException.h
│ │ │ ├── Result.cpp
│ │ │ ├── Result.h
│ │ │ ├── ResultIO.cpp
│ │ │ ├── ResultPoint.cpp
│ │ │ ├── ResultPoint.h
│ │ │ ├── ResultPointCallback.cpp
│ │ │ ├── ResultPointCallback.h
│ │ │ ├── ZXing.h
│ │ │ ├── aztec
│ │ │ ├── AztecDetectorResult.cpp
│ │ │ ├── AztecDetectorResult.h
│ │ │ ├── AztecReader.cpp
│ │ │ ├── AztecReader.h
│ │ │ ├── decoder
│ │ │ │ ├── Decoder.h
│ │ │ │ └── Decoder1.cpp
│ │ │ └── detector
│ │ │ │ ├── Detector.h
│ │ │ │ └── Detector1.cpp
│ │ │ ├── common
│ │ │ ├── Array.h
│ │ │ ├── BitArray.cpp
│ │ │ ├── BitArray.h
│ │ │ ├── BitArrayIO.cpp
│ │ │ ├── BitMatrix.cpp
│ │ │ ├── BitMatrix.h
│ │ │ ├── BitSource.cpp
│ │ │ ├── BitSource.h
│ │ │ ├── CharacterSetECI.cpp
│ │ │ ├── CharacterSetECI.h
│ │ │ ├── Counted.h
│ │ │ ├── DecoderResult.cpp
│ │ │ ├── DecoderResult.h
│ │ │ ├── DetectorResult.cpp
│ │ │ ├── DetectorResult.h
│ │ │ ├── GlobalHistogramBinarizer.cpp
│ │ │ ├── GlobalHistogramBinarizer.h
│ │ │ ├── GreyscaleLuminanceSource.cpp
│ │ │ ├── GreyscaleLuminanceSource.h
│ │ │ ├── GreyscaleRotatedLuminanceSource.cpp
│ │ │ ├── GreyscaleRotatedLuminanceSource.h
│ │ │ ├── GridSampler.cpp
│ │ │ ├── GridSampler.h
│ │ │ ├── HybridBinarizer.cpp
│ │ │ ├── HybridBinarizer.h
│ │ │ ├── IllegalArgumentException.cpp
│ │ │ ├── IllegalArgumentException.h
│ │ │ ├── PerspectiveTransform.cpp
│ │ │ ├── PerspectiveTransform.h
│ │ │ ├── Point.h
│ │ │ ├── Str.cpp
│ │ │ ├── Str.h
│ │ │ ├── StringUtils.cpp
│ │ │ ├── StringUtils.h
│ │ │ ├── detector
│ │ │ │ ├── JavaMath.h
│ │ │ │ ├── MathUtils.h
│ │ │ │ ├── MonochromeRectangleDetector.cpp
│ │ │ │ ├── MonochromeRectangleDetector.h
│ │ │ │ ├── WhiteRectangleDetector.cpp
│ │ │ │ └── WhiteRectangleDetector.h
│ │ │ └── reedsolomon
│ │ │ │ ├── GenericGF.cpp
│ │ │ │ ├── GenericGF.h
│ │ │ │ ├── GenericGFPoly.cpp
│ │ │ │ ├── GenericGFPoly.h
│ │ │ │ ├── ReedSolomonDecoder.cpp
│ │ │ │ ├── ReedSolomonDecoder.h
│ │ │ │ ├── ReedSolomonException.cpp
│ │ │ │ └── ReedSolomonException.h
│ │ │ ├── datamatrix
│ │ │ ├── DataMatrixReader.cpp
│ │ │ ├── DataMatrixReader.h
│ │ │ ├── Version.h
│ │ │ ├── Version1.cpp
│ │ │ ├── decoder
│ │ │ │ ├── BitMatrixParser.h
│ │ │ │ ├── BitMatrixParser1.cpp
│ │ │ │ ├── DataBlock.h
│ │ │ │ ├── DataBlock1.cpp
│ │ │ │ ├── DecodedBitStreamParser.h
│ │ │ │ ├── DecodedBitStreamParser1.cpp
│ │ │ │ ├── Decoder.h
│ │ │ │ └── Decoder2.cpp
│ │ │ └── detector
│ │ │ │ ├── CornerPoint.cpp
│ │ │ │ ├── CornerPoint.h
│ │ │ │ ├── Detector.h
│ │ │ │ ├── Detector2.cpp
│ │ │ │ ├── DetectorException.cpp
│ │ │ │ └── DetectorException.h
│ │ │ ├── multi
│ │ │ ├── ByQuadrantReader.cpp
│ │ │ ├── ByQuadrantReader.h
│ │ │ ├── GenericMultipleBarcodeReader.cpp
│ │ │ ├── GenericMultipleBarcodeReader.h
│ │ │ ├── MultipleBarcodeReader.cpp
│ │ │ ├── MultipleBarcodeReader.h
│ │ │ └── qrcode
│ │ │ │ ├── QRCodeMultiReader.cpp
│ │ │ │ ├── QRCodeMultiReader.h
│ │ │ │ └── detector
│ │ │ │ ├── MultiDetector.cpp
│ │ │ │ ├── MultiDetector.h
│ │ │ │ ├── MultiFinderPatternFinder.h
│ │ │ │ └── MultiFinderPatternFinder1.cpp
│ │ │ ├── oned
│ │ │ ├── CodaBarReader.cpp
│ │ │ ├── CodaBarReader.h
│ │ │ ├── Code128Reader.cpp
│ │ │ ├── Code128Reader.h
│ │ │ ├── Code39Reader.cpp
│ │ │ ├── Code39Reader.h
│ │ │ ├── Code93Reader.cpp
│ │ │ ├── Code93Reader.h
│ │ │ ├── EAN13Reader.cpp
│ │ │ ├── EAN13Reader.h
│ │ │ ├── EAN8Reader.cpp
│ │ │ ├── EAN8Reader.h
│ │ │ ├── ITFReader.cpp
│ │ │ ├── ITFReader.h
│ │ │ ├── MultiFormatOneDReader.cpp
│ │ │ ├── MultiFormatOneDReader.h
│ │ │ ├── MultiFormatUPCEANReader.cpp
│ │ │ ├── MultiFormatUPCEANReader.h
│ │ │ ├── OneDReader.cpp
│ │ │ ├── OneDReader.h
│ │ │ ├── OneDResultPoint.cpp
│ │ │ ├── OneDResultPoint.h
│ │ │ ├── UPCAReader.cpp
│ │ │ ├── UPCAReader.h
│ │ │ ├── UPCEANReader.cpp
│ │ │ ├── UPCEANReader.h
│ │ │ ├── UPCEReader.cpp
│ │ │ └── UPCEReader.h
│ │ │ ├── pdf417
│ │ │ ├── PDF417Reader.cpp
│ │ │ ├── PDF417Reader.h
│ │ │ ├── decoder
│ │ │ │ ├── BitMatrixParser.h
│ │ │ │ ├── BitMatrixParser2.cpp
│ │ │ │ ├── DecodedBitStreamParser.h
│ │ │ │ ├── DecodedBitStreamParser2.cpp
│ │ │ │ ├── Decoder.h
│ │ │ │ ├── Decoder3.cpp
│ │ │ │ └── ec
│ │ │ │ │ ├── ErrorCorrection.cpp
│ │ │ │ │ ├── ErrorCorrection.h
│ │ │ │ │ ├── ModulusGF.cpp
│ │ │ │ │ ├── ModulusGF.h
│ │ │ │ │ ├── ModulusPoly.cpp
│ │ │ │ │ └── ModulusPoly.h
│ │ │ └── detector
│ │ │ │ ├── Detector.h
│ │ │ │ ├── Detector3.cpp
│ │ │ │ ├── LinesSampler.cpp
│ │ │ │ └── LinesSampler.h
│ │ │ └── qrcode
│ │ │ ├── ErrorCorrectionLevel.cpp
│ │ │ ├── ErrorCorrectionLevel.h
│ │ │ ├── FormatInformation.cpp
│ │ │ ├── FormatInformation.h
│ │ │ ├── QRCodeReader.cpp
│ │ │ ├── QRCodeReader.h
│ │ │ ├── Version.h
│ │ │ ├── Version2.cpp
│ │ │ ├── decoder
│ │ │ ├── BitMatrixParser.h
│ │ │ ├── BitMatrixParser3.cpp
│ │ │ ├── DataBlock.h
│ │ │ ├── DataBlock2.cpp
│ │ │ ├── DataMask.cpp
│ │ │ ├── DataMask.h
│ │ │ ├── DecodedBitStreamParser.h
│ │ │ ├── DecodedBitStreamParser3.cpp
│ │ │ ├── Decoder.h
│ │ │ ├── Decoder4.cpp
│ │ │ ├── Mode.cpp
│ │ │ └── Mode.h
│ │ │ └── detector
│ │ │ ├── AlignmentPattern.cpp
│ │ │ ├── AlignmentPattern.h
│ │ │ ├── AlignmentPatternFinder.cpp
│ │ │ ├── AlignmentPatternFinder.h
│ │ │ ├── Detector.h
│ │ │ ├── Detector4.cpp
│ │ │ ├── FinderPattern.cpp
│ │ │ ├── FinderPattern.h
│ │ │ ├── FinderPatternFinder.h
│ │ │ ├── FinderPatternFinder2.cpp
│ │ │ ├── FinderPatternInfo.cpp
│ │ │ └── FinderPatternInfo.h
│ │ ├── JQQRCodeWriter
│ │ ├── JQQRCodeWriter.cpp
│ │ └── qrencode
│ │ │ ├── COPYING
│ │ │ ├── ChangeLog
│ │ │ ├── Doxyfile
│ │ │ ├── NEWS
│ │ │ ├── README
│ │ │ ├── TODO
│ │ │ ├── acinclude.m4
│ │ │ ├── aclocal.m4
│ │ │ ├── autogen.sh
│ │ │ ├── bitstream.c
│ │ │ ├── bitstream.h
│ │ │ ├── config.h
│ │ │ ├── configure
│ │ │ ├── configure.ac
│ │ │ ├── libqrencode.pc.in
│ │ │ ├── mask.c
│ │ │ ├── mask.h
│ │ │ ├── mmask.c
│ │ │ ├── mmask.h
│ │ │ ├── mqrspec.c
│ │ │ ├── mqrspec.h
│ │ │ ├── qrenc.c
│ │ │ ├── qrencode.1.in
│ │ │ ├── qrencode.c
│ │ │ ├── qrencode.h
│ │ │ ├── qrencode.spec
│ │ │ ├── qrencode.spec.in
│ │ │ ├── qrencode_inner.h
│ │ │ ├── qrinput.c
│ │ │ ├── qrinput.h
│ │ │ ├── qrspec.c
│ │ │ ├── qrspec.h
│ │ │ ├── rscode.c
│ │ │ ├── rscode.h
│ │ │ ├── split.c
│ │ │ ├── split.h
│ │ │ ├── tests
│ │ │ ├── common.h
│ │ │ ├── create_frame_pattern.c
│ │ │ ├── create_mqr_frame_pattern.c
│ │ │ ├── decoder.c
│ │ │ ├── decoder.h
│ │ │ ├── frame
│ │ │ ├── prof_qrencode.c
│ │ │ ├── pthread_qrencode.c
│ │ │ ├── test_all.sh
│ │ │ ├── test_bitstream.c
│ │ │ ├── test_estimatebit.c
│ │ │ ├── test_mask.c
│ │ │ ├── test_mmask.c
│ │ │ ├── test_monkey.c
│ │ │ ├── test_mqrspec.c
│ │ │ ├── test_qrencode.c
│ │ │ ├── test_qrinput.c
│ │ │ ├── test_qrspec.c
│ │ │ ├── test_rs.c
│ │ │ ├── test_split.c
│ │ │ └── view_qrcode.c
│ │ │ └── use
│ │ │ ├── compile
│ │ │ ├── config.guess
│ │ │ ├── config.rpath
│ │ │ ├── config.sub
│ │ │ ├── depcomp
│ │ │ ├── install-sh
│ │ │ ├── ltmain.sh
│ │ │ └── missing
│ │ └── JQZopfli
│ │ ├── JQZopfli.cpp
│ │ ├── zopfli
│ │ ├── blocksplitter.c
│ │ ├── cache.c
│ │ ├── deflate.c
│ │ ├── gzip_container.c
│ │ ├── hash.c
│ │ ├── katajainen.c
│ │ ├── lz77.c
│ │ ├── squeeze.c
│ │ ├── symbols.c
│ │ ├── tree.c
│ │ ├── util.c
│ │ └── zlib_container.c
│ │ └── zopflipng
│ │ └── lodepng
│ │ ├── lodepng.cpp
│ │ └── lodepng_util.cpp
├── JQNetwork
│ ├── JQNetwork.pri
│ ├── include
│ │ ├── JQNetwork
│ │ ├── JQNetworkClient
│ │ ├── JQNetworkClientForQml
│ │ ├── JQNetworkConnect
│ │ ├── JQNetworkConnectPool
│ │ ├── JQNetworkEncrypt
│ │ ├── JQNetworkFoundation
│ │ ├── JQNetworkLan
│ │ ├── JQNetworkPackage
│ │ ├── JQNetworkProcessor
│ │ ├── JQNetworkServer
│ │ ├── jqnetwork_client.h
│ │ ├── jqnetwork_client.inc
│ │ ├── jqnetwork_clientforqml.h
│ │ ├── jqnetwork_clientforqml.inc
│ │ ├── jqnetwork_connect.h
│ │ ├── jqnetwork_connect.inc
│ │ ├── jqnetwork_connectpool.h
│ │ ├── jqnetwork_connectpool.inc
│ │ ├── jqnetwork_foundation.h
│ │ ├── jqnetwork_foundation.inc
│ │ ├── jqnetwork_lan.h
│ │ ├── jqnetwork_lan.inc
│ │ ├── jqnetwork_package.h
│ │ ├── jqnetwork_package.inc
│ │ ├── jqnetwork_processor.h
│ │ ├── jqnetwork_processor.inc
│ │ ├── jqnetwork_server.h
│ │ └── jqnetwork_server.inc
│ ├── qml
│ │ ├── JQNetwork
│ │ │ ├── JQNetworkClient.qml
│ │ │ └── qmldir
│ │ └── JQNetworkQml.qrc
│ └── src
│ │ ├── jqnetwork_client.cpp
│ │ ├── jqnetwork_clientforqml.cpp
│ │ ├── jqnetwork_connect.cpp
│ │ ├── jqnetwork_connectpool.cpp
│ │ ├── jqnetwork_foundation.cpp
│ │ ├── jqnetwork_lan.cpp
│ │ ├── jqnetwork_package.cpp
│ │ ├── jqnetwork_processor.cpp
│ │ └── jqnetwork_server.cpp
├── JQToolsLibrary
│ ├── JQToolsLibrary.pri
│ ├── include
│ │ ├── JQToolsLibrary
│ │ └── jqtoolslibrary.h
│ └── src
│ │ └── jqtoolslibrary.cpp
└── MaterialUI
│ ├── Element
│ ├── BaseListItem.qml
│ ├── BottomSheet.qml
│ ├── CircleMask.qml
│ ├── Divider.qml
│ ├── Dropdown.qml
│ ├── Ink.qml
│ ├── PopupBase.qml
│ ├── Scrollbar.qml
│ ├── Standard.qml
│ ├── Subheader.qml
│ ├── ThemePalette.qml
│ ├── ThinDivider.qml
│ └── View.qml
│ ├── Interface
│ ├── MaterialActionButton.qml
│ ├── MaterialAnimation.qml
│ ├── MaterialBottomActionSheet.qml
│ ├── MaterialButton.qml
│ ├── MaterialCheckBox.qml
│ ├── MaterialDatePicker.qml
│ ├── MaterialDialog.qml
│ ├── MaterialDialogAlert.qml
│ ├── MaterialDialogConfirm.qml
│ ├── MaterialDialogDatePicker.qml
│ ├── MaterialDialogPrompt.qml
│ ├── MaterialDialogScrolling.qml
│ ├── MaterialDialogTextArea.qml
│ ├── MaterialDialogTimePicker.qml
│ ├── MaterialLabel.qml
│ ├── MaterialMenuField.qml
│ ├── MaterialPage.qml
│ ├── MaterialProgressBar.qml
│ ├── MaterialProgressCircle.qml
│ ├── MaterialRadioButton.qml
│ ├── MaterialSlider.qml
│ ├── MaterialSnackbar.qml
│ ├── MaterialSwipeToRefresh.qml
│ ├── MaterialSwitch.qml
│ ├── MaterialTabbed.qml
│ ├── MaterialTableView.qml
│ ├── MaterialTabs.qml
│ ├── MaterialTextField.qml
│ ├── MaterialTimePicker.qml
│ └── MaterialTreeView.qml
│ ├── Material-Design-Iconic-Font.ttf
│ ├── MaterialUI.pri
│ ├── MaterialUI.qml
│ └── MaterialUI.qrc
├── preview
└── JQToolsPreview.png
└── qml
├── main.qml
└── qml.qrc
/.gitignore:
--------------------------------------------------------------------------------
1 | ### JQNetworkLib ###
2 | library/JQNetwork/bin
3 |
4 | ### JQQRCode bin ###
5 | library/JQLibrary/bin/JQQRCode*
6 |
7 | ### C++ ###
8 | # Prerequisites
9 | *.d
10 |
11 | # Compiled Object files
12 | *.slo
13 | *.lo
14 | *.o
15 | *.obj
16 |
17 | # Precompiled Headers
18 | *.gch
19 | *.pch
20 |
21 | # Fortran module files
22 | *.mod
23 | *.smod
24 |
25 |
26 | ### Qt ###
27 |
28 | # Qt-es
29 |
30 | /.qmake.cache
31 | /.qmake.stash
32 | *.pro.user
33 | *.pro.user.*
34 | *.qbs.user
35 | *.qbs.user.*
36 | *.moc
37 | moc_*.cpp
38 | qrc_*.cpp
39 | ui_*.h
40 | Makefile*
41 | *build-*
42 |
43 | # QtCreator
44 | *.autosave
45 | *.TMP
46 |
47 | # QtCtreator Qml
48 | *.qmlproject.user
49 | *.qmlproject.user.*
50 |
51 | # QtCtreator CMake
52 | CMakeLists.txt.user*
53 |
54 | ### macOS ###
55 | *.DS_Store
56 |
57 | ### Visual Studio Code ###
58 | .vscode/
59 |
60 | ### build ###
61 | /build
62 |
--------------------------------------------------------------------------------
/JQLibraryImport.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | include( $$PWD/library/JQLibrary/JQLibrary.pri )
14 | include( $$PWD/library/JQLibrary/JQQRCodeReader.pri )
15 | include( $$PWD/library/JQLibrary/JQQRCodeWriter.pri )
16 | include( $$PWD/library/JQLibrary/JQZopfli.pri )
17 |
18 | mac {
19 | include( $$PWD/library/JQLibrary/JQGuetzli.pri )
20 | }
21 |
--------------------------------------------------------------------------------
/JQTools.pro:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | TEMPLATE = app
14 |
15 | QT += qml quick widgets concurrent
16 |
17 | CONFIG += c++11
18 | CONFIG += c++14
19 |
20 | include( $$PWD/JQLibraryImport.pri )
21 | include( $$PWD/library/JQToolsLibrary/JQToolsLibrary.pri )
22 | include( $$PWD/library/JQNetwork/JQNetwork.pri )
23 | include( $$PWD/library/MaterialUI/MaterialUI.pri )
24 | include( $$PWD/components/components.pri )
25 |
26 | PRECOMPILED_HEADER = $$PWD/cpp/stable.h
27 | CONFIG += precompile_header
28 |
29 | INCLUDEPATH *= \
30 | $$PWD/cpp/
31 |
32 | HEADERS *= \
33 | $$PWD/cpp/jqtools_manage.hpp
34 |
35 | SOURCES *= \
36 | $$PWD/cpp/main.cpp
37 |
38 | RESOURCES *= \
39 | $$PWD/qml/qml.qrc
40 |
41 | mac {
42 | ICON = $$PWD/icon/icon.icns
43 |
44 | CONFIG += sdk_no_version_check
45 | }
46 |
47 | win32 {
48 | RC_ICONS = $$PWD/icon/icon.ico
49 | }
50 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright Jason and others
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/components/CalculateGroup/BinarySearchAssistant/BinarySearchAssistant.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: shijie.chen
7 | #
8 | # Contact email: xingwozhonghua@126.com
9 | #
10 | # GitHub: https://github.com/xingwozhonghua126
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/binarysearchassistant.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/binarysearchassistant.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/BinarySearchAssistant.qrc
24 |
--------------------------------------------------------------------------------
/components/CalculateGroup/BinarySearchAssistant/cpp/BinarySearchAssistant:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: shijie.chen
7 |
8 | Contact email: xingwozhonghua@126.com
9 |
10 | GitHub: https://github.com/xingwozhonghua126
11 | */
12 |
13 | #include "binarysearchassistant.h"
14 |
--------------------------------------------------------------------------------
/components/CalculateGroup/BinarySearchAssistant/cpp/binarysearchassistant.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: shijie.chen
7 |
8 | Contact email: xingwozhonghua@126.com
9 |
10 | GitHub: https://github.com/xingwozhonghua126
11 | */
12 |
13 | #include "binarysearchassistant.h"
14 |
15 | // Qt lib import
16 | using namespace BinarySearchAssistant;
17 |
18 | void Manage::startNewGame(int min, int max)
19 | {
20 | m_min = min;
21 | m_max = max;
22 | updateGuess();
23 | }
24 |
25 | void Manage::guessHigher()
26 | {
27 | m_min = m_guess + 1;
28 | updateGuess();
29 | }
30 |
31 | void Manage::guessLower()
32 | {
33 | m_max = m_guess - 1;
34 | updateGuess();
35 | }
36 |
37 | void Manage::updateGuess()
38 | {
39 | m_guess = (m_min + m_max) / 2;
40 | emit guessChanged();
41 | }
42 |
--------------------------------------------------------------------------------
/components/CalculateGroup/BinarySearchAssistant/qml/BinarySearchAssistant.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | BinarySearchAssistant.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/CalculateGroup/CalculateGroup:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "calculategroup.h"
14 |
--------------------------------------------------------------------------------
/components/CalculateGroup/CalculateGroup.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | include( $$PWD/HashCalculate/HashCalculate.pri )
14 | include( $$PWD/TimestampTransform/TimestampTransform.pri )
15 | include( $$PWD/BinarySearchAssistant/BinarySearchAssistant.pri )
16 |
17 | INCLUDEPATH *= \
18 | $$PWD/
19 |
20 | HEADERS *= \
21 | $$PWD/calculategroup.h
22 |
--------------------------------------------------------------------------------
/components/CalculateGroup/HashCalculate/HashCalculate.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/hashcalculate.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/hashcalculate.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/HashCalculate.qrc
24 |
--------------------------------------------------------------------------------
/components/CalculateGroup/HashCalculate/cpp/HashCalculate:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "hashcalculate.h"
14 |
--------------------------------------------------------------------------------
/components/CalculateGroup/HashCalculate/qml/HashCalculate.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | HashCalculate.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/CalculateGroup/TimestampTransform/TimestampTransform.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/timestamptransform.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/timestamptransform.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/TimestampTransform.qrc
24 |
--------------------------------------------------------------------------------
/components/CalculateGroup/TimestampTransform/cpp/TimestampTransform:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "timestamptransform.h"
14 |
--------------------------------------------------------------------------------
/components/CalculateGroup/TimestampTransform/cpp/timestamptransform.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "timestamptransform.h"
14 |
15 | // Qt lib import
16 | #include
17 | #include
18 |
19 | using namespace TimestampTransform;
20 |
21 | QString Manage::currentDateTimeTimestampString()
22 | {
23 | return QString::number( QDateTime::currentDateTime().toTime_t() );
24 | }
25 |
26 | QString Manage::dateTimeStringFromTimestampString(const QString ×tampString)
27 | {
28 | if ( timestampString.size() == 13 )
29 | {
30 | return QDateTime::fromMSecsSinceEpoch( timestampString.toLongLong() ).toString( "yyyy-MM-dd hh:mm:ss" );
31 | }
32 | else if ( timestampString.size() == 10 )
33 | {
34 | return QDateTime::fromTime_t( timestampString.toInt() ).toString( "yyyy-MM-dd hh:mm:ss" );
35 | }
36 |
37 | return { };
38 | }
39 |
--------------------------------------------------------------------------------
/components/CalculateGroup/TimestampTransform/cpp/timestamptransform.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_CALCULATEGROUP_TIMESTAMPTRANSFORM_CPP_TIMESTAMPTRANSFORM_H_
14 | #define GROUP_CALCULATEGROUP_TIMESTAMPTRANSFORM_CPP_TIMESTAMPTRANSFORM_H_
15 |
16 | // JQToolsLibrary import
17 | #include
18 |
19 | #define TTIMESTAMPTRANSFORM_INITIALIZA \
20 | { \
21 | qmlRegisterType("TimestampTransform", 1, 0, "TimestampTransformManage"); \
22 | }
23 |
24 | namespace TimestampTransform
25 | {
26 |
27 | class Manage: public AbstractTool
28 | {
29 | Q_OBJECT
30 | Q_DISABLE_COPY(Manage)
31 |
32 | public:
33 | Manage() = default;
34 |
35 | ~Manage() = default;
36 |
37 | public slots:
38 | QString currentDateTimeTimestampString();
39 |
40 | QString dateTimeStringFromTimestampString(const QString ×tampString);
41 | };
42 |
43 | }
44 |
45 | #endif//GROUP_CALCULATEGROUP_TIMESTAMPTRANSFORM_CPP_TIMESTAMPTRANSFORM_H_
46 |
--------------------------------------------------------------------------------
/components/CalculateGroup/TimestampTransform/qml/TimestampTransform.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | TimestampTransform.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/CalculateGroup/calculategroup.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef CALCULATEGROUP_CALCULATEGROUP_H_
14 | #define CALCULATEGROUP_CALCULATEGROUP_H_
15 |
16 | // CalculateGroup lib import
17 | #include
18 | #include
19 | #include
20 |
21 | #define CALCULATEGROUP_INITIALIZA \
22 | HASHCALCULATE_INITIALIZA; \
23 | TTIMESTAMPTRANSFORM_INITIALIZA;\
24 | BINARYSEARCHASSISTANT_INITIALIZA;
25 |
26 | #endif//CALCULATEGROUP_CALCULATEGROUP_H_
27 |
--------------------------------------------------------------------------------
/components/MakeGroup/BarcodeMaker/BarcodeMaker.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/barcodemaker.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/barcodemaker.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/BarcodeMakerQml.qrc
24 |
--------------------------------------------------------------------------------
/components/MakeGroup/BarcodeMaker/cpp/BarcodeMaker:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "barcodemaker.h"
14 |
--------------------------------------------------------------------------------
/components/MakeGroup/BarcodeMaker/cpp/barcodemaker.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_MAKEGROUP_BARCODEMAKER_CPP_BARCODEMAKER_H_
14 | #define GROUP_MAKEGROUP_BARCODEMAKER_CPP_BARCODEMAKER_H_
15 |
16 | // Qt lib import
17 | #include
18 | #include
19 |
20 | // JQToolsLibrary import
21 | #include
22 |
23 | #define BARCODEMAKER_INITIALIZA \
24 | { \
25 | qmlRegisterType< BarcodeMaker::Manage >( "BarcodeMaker", 1, 0, "BarcodeMakerManage" ); \
26 | }
27 |
28 | namespace BarcodeMaker
29 | {
30 |
31 | class Manage: public AbstractTool
32 | {
33 | Q_OBJECT
34 | Q_DISABLE_COPY(Manage)
35 |
36 | public:
37 | Manage();
38 |
39 | ~Manage();
40 |
41 | public slots:
42 | QString savePng(const QString &string);
43 | };
44 |
45 | class ImageProvider: public QQuickImageProvider
46 | {
47 | public:
48 | ImageProvider();
49 |
50 | ~ImageProvider() = default;
51 |
52 | QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize);
53 | };
54 |
55 | }
56 |
57 | #endif//GROUP_MAKEGROUP_BARCODEMAKER_CPP_BARCODEMAKER_H_
58 |
--------------------------------------------------------------------------------
/components/MakeGroup/BarcodeMaker/qml/BarcodeMakerQml.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | BarcodeMaker.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/FontToPng.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/fonttopng.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/fonttopng.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/FontToPng.qrc \
24 | $$PWD/Resource/Font/FontToPngFont.qrc
25 |
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/Elusive/Elusive.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/Elusive/Elusive.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/FontAwesome/FontAwesome.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/FontAwesome/FontAwesome.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/Foundation/Foundation.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/Foundation/Foundation.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/GlyphiconsHalflings/GlyphiconsHalflings.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/GlyphiconsHalflings/GlyphiconsHalflings.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/IcoMoon/IcoMoon.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/IcoMoon/IcoMoon.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/IconFont/IconFont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/IconFont/IconFont.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/IconWorks/IconWorks.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/IconWorks/IconWorks.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/IconWorks/IconWorks.txt:
--------------------------------------------------------------------------------
1 | 33:
2 | 34:
3 | 35:
4 | 36:
5 | 38:
6 | 39:
7 | 40:
8 | 41:
9 | 42:
10 | 43:
11 | 44:
12 | 45:
13 | 46:
14 | 47:
15 | 48:
16 | 49:
17 | 50:
18 | 51:
19 | 52:
20 | 53:
21 | 54:
22 | 55:
23 | 56:
24 | 57:
25 | 58:
26 | 59:
27 | 60:
28 | 61:
29 | 62:
30 | 63:
31 | 64:
32 | 65:
33 | 66:
34 | 67:
35 | 68:
36 | 69:
37 | 70:
38 | 71:
39 | 72:
40 | 73:
41 | 74:
42 | 75:
43 | 76:
44 | 77:
45 | 78:
46 | 79:
47 | 80:
48 | 81:
49 | 82:
50 | 83:
51 | 84:
52 | 85:
53 | 86:
54 | 87:
55 | 88:
56 | 89:
57 | 90:
58 | 91:
59 | 92:
60 | 93:
61 | 94:
62 | 95:
63 | 96:
64 | 97:
65 | 98:
66 | 99:
67 | 100:
68 | 101:
69 | 102:
70 | 103:
71 | 104:
72 | 105:
73 | 106:
74 | 107:
75 | 108:
76 | 109:
77 | 110:
78 | 111:
79 | 112:
80 | 113:
81 | 114:
82 | 115:
83 | 116:
84 | 117:
85 | 118:
86 | 119:
87 | 120:
88 | 121:
89 | 122:
90 | 123:
91 | 124:
92 | 125:
93 | 126:
94 | 163:
95 | 169:
96 | 171:
97 | 174:
98 | 187:
99 | 192:
100 | 193:
101 | 195:
102 | 196:
103 | 199:
104 | 200:
105 | 201:
106 | 203:
107 | 204:
108 | 205:
109 | 207:
110 | 210:
111 | 211:
112 | 213:
113 | 214:
114 | 217:
115 | 218:
116 | 220:
117 | 224:
118 | 225:
119 | 227:
120 | 228:
121 | 231:
122 | 232:
123 | 233:
124 | 235:
125 | 236:
126 | 237:
127 | 239:
128 | 242:
129 | 243:
130 | 245:
131 | 246:
132 | 249:
133 | 250:
134 | 252:
135 | 8364:
136 | 8482:
137 |
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/Icons8/Icons8.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/Icons8/Icons8.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/JustVector/JustVector.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/JustVector/JustVector.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/MaterialDesign/MaterialDesign.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/MaterialDesign/MaterialDesign.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/Metrize/Metrize.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/Metrize/Metrize.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/Mfglabs/Mfglabs.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/Mfglabs/Mfglabs.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/OpenIconic/OpenIconic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/OpenIconic/OpenIconic.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/Socicon/Socicon.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/Socicon/Socicon.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/Resource/Font/Typicons/Typicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/FontToPng/Resource/Font/Typicons/Typicons.ttf
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/cpp/FontToPng:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "fonttopng.h"
14 |
--------------------------------------------------------------------------------
/components/MakeGroup/FontToPng/qml/FontToPng.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | FontToPng.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/MakeGroup/IconMaker/IconMaker.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/iconmaker.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/iconmaker.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/IconMaker.qrc \
24 | $$PWD/Image/IconMakerImage.qrc
25 |
--------------------------------------------------------------------------------
/components/MakeGroup/IconMaker/Image/Background.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/IconMaker/Image/Background.jpg
--------------------------------------------------------------------------------
/components/MakeGroup/IconMaker/Image/DefaultIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/MakeGroup/IconMaker/Image/DefaultIcon.png
--------------------------------------------------------------------------------
/components/MakeGroup/IconMaker/Image/IconMakerImage.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | Background.jpg
4 | DefaultIcon.png
5 |
6 |
7 |
--------------------------------------------------------------------------------
/components/MakeGroup/IconMaker/cpp/IconMaker:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "iconmaker.h"
14 |
--------------------------------------------------------------------------------
/components/MakeGroup/IconMaker/qml/IconMaker.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | IconMaker.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/MakeGroup/MakeGroup:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "makegroup.h"
14 |
--------------------------------------------------------------------------------
/components/MakeGroup/MakeGroup.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | include( $$PWD/IconMaker/IconMaker.pri )
14 | include( $$PWD/FontToPng/FontToPng.pri )
15 | include( $$PWD/QRCodeMaker/QRCodeMaker.pri )
16 | include( $$PWD/BarcodeMaker/BarcodeMaker.pri )
17 | include( $$PWD/WebPMaker/WebPMaker.pri )
18 |
19 | INCLUDEPATH *= \
20 | $$PWD/
21 |
22 | HEADERS *= \
23 | $$PWD/makegroup.h
24 |
--------------------------------------------------------------------------------
/components/MakeGroup/QRCodeMaker/QRCodeMaker.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/qrcodemaker.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/qrcodemaker.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/QRCodeMakerQml.qrc
24 |
--------------------------------------------------------------------------------
/components/MakeGroup/QRCodeMaker/cpp/QRCodeMaker:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "qrcodemaker.h"
14 |
--------------------------------------------------------------------------------
/components/MakeGroup/QRCodeMaker/cpp/qrcodemaker.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_MAKEGROUP_QRCODEMAKER_CPP_QRCODEMAKER_H_
14 | #define GROUP_MAKEGROUP_QRCODEMAKER_CPP_QRCODEMAKER_H_
15 |
16 | // Qt lib import
17 | #include
18 | #include
19 |
20 | // JQToolsLibrary import
21 | #include
22 |
23 | #define QRCODEMAKER_INITIALIZA \
24 | { \
25 | qmlRegisterType< QRCodeMaker::Manage >( "QRCodeMaker", 1, 0, "QRCodeMakerManage" ); \
26 | }
27 |
28 | namespace QRCodeMaker
29 | {
30 |
31 | class Manage: public AbstractTool
32 | {
33 | Q_OBJECT
34 | Q_DISABLE_COPY(Manage)
35 |
36 | public:
37 | Manage();
38 |
39 | ~Manage();
40 |
41 | public slots:
42 | QString savePng(const QString &string);
43 | };
44 |
45 | class ImageProvider: public QQuickImageProvider
46 | {
47 | public:
48 | ImageProvider();
49 |
50 | ~ImageProvider() = default;
51 |
52 | QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize);
53 | };
54 |
55 | }
56 |
57 | #endif//GROUP_MAKEGROUP_QRCODEMAKER_CPP_QRCODEMAKER_H_
58 |
--------------------------------------------------------------------------------
/components/MakeGroup/QRCodeMaker/qml/QRCodeMakerQml.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | QRCodeMaker.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/MakeGroup/WebPMaker/WebPMaker.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/webpmaker.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/webpmaker.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/WebPMaker.qrc
24 |
--------------------------------------------------------------------------------
/components/MakeGroup/WebPMaker/cpp/WebPMaker:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "webpmaker.h"
14 |
--------------------------------------------------------------------------------
/components/MakeGroup/WebPMaker/qml/WebPMaker.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | WebPMaker.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/MakeGroup/makegroup.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef MAKEGROUP_MAKEGROUP_H_
14 | #define MAKEGROUP_MAKEGROUP_H_
15 |
16 | // MakeGroup lib import
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 |
23 | #define MAKEGROUP_INITIALIZA \
24 | ICONMAKER_INITIALIZA; \
25 | FONTTOPNG_INITIALIZA; \
26 | QRCODEMAKER_INITIALIZA; \
27 | BARCODEMAKER_INITIALIZA; \
28 | WEBPMAKER_INITIALIZA;
29 |
30 | #endif//MAKEGROUP_MAKEGROUP_H_
31 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/CppFileMaker.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/cppfilemaker.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/cppfilemaker.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/CppFileMaker.qrc \
24 | $$PWD/resources/files/CppFileMakerFiles.qrc
25 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/cpp/CppFileMaker:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "cppfilemaker.h"
14 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/qml/CppFileMaker.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | CppFileMaker.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/resources/files/CppFileMakerFiles.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | template/CppTemplate
4 | template/cpptemplate.cpp
5 | template/cpptemplate.h
6 | template/cpptemplate.inc
7 | template/QmlTemplate
8 | template/qmltemplate.cpp
9 | template/qmltemplate.h
10 | template/qmltemplate.inc
11 |
12 |
13 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/resources/files/template/CppTemplate:
--------------------------------------------------------------------------------
1 | // .h include
2 | #include "%classname%.h"
3 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/resources/files/template/QmlTemplate:
--------------------------------------------------------------------------------
1 | // .h include
2 | #include "%classname%.h"
3 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/resources/files/template/cpptemplate.cpp:
--------------------------------------------------------------------------------
1 | // .h include
2 | #include "%classname%.h"
3 |
4 | // Qt lib import
5 | #include
6 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/resources/files/template/cpptemplate.h:
--------------------------------------------------------------------------------
1 | #ifndef %MACROPROTECTSPREFIX%_%CLASSNAME%_H_
2 | #define %MACROPROTECTSPREFIX%_%CLASSNAME%_H_
3 |
4 | // Qt lib import
5 | #include
6 |
7 | class %ClassName%: public QObject
8 | {
9 | Q_OBJECT
10 | Q_DISABLE_COPY( %ClassName% )
11 |
12 | public:
13 | %ClassName%() = default;
14 |
15 | ~%ClassName%() = default;
16 |
17 | public slots:
18 | //...
19 |
20 | private:
21 | //...
22 | };
23 |
24 | // .inc include
25 | #include "%classname%.inc"
26 |
27 | #endif//%MACROPROTECTSPREFIX%_%CLASSNAME%_H_
28 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/resources/files/template/cpptemplate.inc:
--------------------------------------------------------------------------------
1 | #ifndef %MACROPROTECTSPREFIX%_%CLASSNAME%_INC_
2 | #define %MACROPROTECTSPREFIX%_%CLASSNAME%_INC_
3 |
4 | // .h include
5 | #include "%classname%.h"
6 |
7 | #endif//%MACROPROTECTSPREFIX%_%CLASSNAME%_INC_
8 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/resources/files/template/qmltemplate.cpp:
--------------------------------------------------------------------------------
1 | // .h include
2 | #include "%classname%.h"
3 |
4 | // Qt lib import
5 | #include
6 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/resources/files/template/qmltemplate.h:
--------------------------------------------------------------------------------
1 | #ifndef %MACROPROTECTSPREFIX%_%CLASSNAME%_H_
2 | #define %MACROPROTECTSPREFIX%_%CLASSNAME%_H_
3 |
4 | // Qt lib import
5 | #include
6 |
7 | #define %CLASSNAME%_REGISTERTYPE \
8 | qmlRegisterType< %ClassName% >( "%ClassName%", 1, 0, "%ClassName%" );
9 |
10 | class %ClassName%: public QObject
11 | {
12 | Q_OBJECT
13 | Q_DISABLE_COPY( %ClassName% )
14 |
15 | public:
16 | %ClassName%() = default;
17 |
18 | ~%ClassName%() = default;
19 |
20 | public slots:
21 | //...
22 |
23 | private:
24 | //...
25 | };
26 |
27 | // .inc include
28 | #include "%classname%.inc"
29 |
30 | #endif//%MACROPROTECTSPREFIX%_%CLASSNAME%_H_
31 |
--------------------------------------------------------------------------------
/components/QtGroup/CppFileMaker/resources/files/template/qmltemplate.inc:
--------------------------------------------------------------------------------
1 | #ifndef %MACROPROTECTSPREFIX%_%CLASSNAME%_INC_
2 | #define %MACROPROTECTSPREFIX%_%CLASSNAME%_INC_
3 |
4 | // .h include
5 | #include "%classname%.h"
6 |
7 | #endif//%MACROPROTECTSPREFIX%_%CLASSNAME%_INC_
8 |
--------------------------------------------------------------------------------
/components/QtGroup/PngWarningRemover/PngWarningRemover.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/pngwarningremover.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/pngwarningremover.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/PngWarningRemover.qrc
24 |
--------------------------------------------------------------------------------
/components/QtGroup/PngWarningRemover/cpp/PngWarningRemover:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "pngwarningremover.h"
14 |
--------------------------------------------------------------------------------
/components/QtGroup/PngWarningRemover/cpp/pngwarningremover.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_QTGROUP_PNGWARNINGREMOVER_CPP_PNGWARNINGREMOVER_H_
14 | #define GROUP_QTGROUP_PNGWARNINGREMOVER_CPP_PNGWARNINGREMOVER_H_
15 |
16 | // JQToolsLibrary import
17 | #include
18 |
19 | #define PNGWARNINGREMOVER_INITIALIZA \
20 | { \
21 | qmlRegisterType("PngWarningRemover", 1, 0, "PngWarningRemoverManage"); \
22 | }
23 |
24 | namespace PngWarningRemover
25 | {
26 |
27 | class Manage: public AbstractTool
28 | {
29 | Q_OBJECT
30 | Q_DISABLE_COPY(Manage)
31 |
32 | public:
33 | Manage() = default;
34 |
35 | ~Manage() = default;
36 |
37 | public slots:
38 | QString conversationPng();
39 |
40 | inline QString lastErrorFileName() { return lastErrorFileName_; }
41 |
42 | private:
43 | QString lastErrorFileName_;
44 | };
45 |
46 | }
47 |
48 | #endif//GROUP_QTGROUP_PNGWARNINGREMOVER_CPP_PNGWARNINGREMOVER_H_
49 |
--------------------------------------------------------------------------------
/components/QtGroup/PngWarningRemover/qml/PngWarningRemover.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | PngWarningRemover.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/QtGroup/PropertyMaker/PropertyMaker.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/propertymaker.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/propertymaker.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/PropertyMaker.qrc
24 |
--------------------------------------------------------------------------------
/components/QtGroup/PropertyMaker/cpp/PropertyMaker:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "propertymaker.h"
14 |
--------------------------------------------------------------------------------
/components/QtGroup/PropertyMaker/qml/PropertyMaker.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | PropertyMaker.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/QtGroup/QtGroup:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "qtgroup.h"
14 |
--------------------------------------------------------------------------------
/components/QtGroup/QtGroup.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | include( $$PWD/PngWarningRemover/PngWarningRemover.pri )
14 | include( $$PWD/PropertyMaker/PropertyMaker.pri )
15 | include( $$PWD/CppFileMaker/CppFileMaker.pri )
16 |
17 | INCLUDEPATH *= \
18 | $$PWD/
19 |
20 | HEADERS *= \
21 | $$PWD/qtgroup.h
22 |
--------------------------------------------------------------------------------
/components/QtGroup/qtgroup.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef QTGROUP_QTGROUP_H_
14 | #define QTGROUP_QTGROUP_H_
15 |
16 | // QtGroup lib import
17 | #include
18 | #include
19 | #include
20 |
21 | #define QTGROUP_INITIALIZA \
22 | PNGWARNINGREMOVER_INITIALIZA; \
23 | PROPERTYMAKER_INITIALIZA; \
24 | CPPFILEMAKER_INITIALIZA;
25 |
26 | #endif//QTGROUP_QTGROUP_H_
27 |
--------------------------------------------------------------------------------
/components/TextGroup/CaseTransform/CaseTransform.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/casetransform.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/casetransform.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/CaseTransform.qrc
24 |
--------------------------------------------------------------------------------
/components/TextGroup/CaseTransform/cpp/CaseTransform:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "casetransform.h"
14 |
--------------------------------------------------------------------------------
/components/TextGroup/CaseTransform/cpp/casetransform.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "casetransform.h"
14 |
15 | // Qt lib import
16 | #include
17 | #include
18 |
19 | using namespace CaseTransform;
20 |
21 | QString Manage::upper(const QString &string)
22 | {
23 | return string.toUpper();
24 | }
25 |
26 | QString Manage::lower(const QString &string)
27 | {
28 | return string.toLower();
29 | }
30 |
--------------------------------------------------------------------------------
/components/TextGroup/CaseTransform/cpp/casetransform.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_TEXTGROUP_CASETRANSFORM_CPP_CASETRANSFORM_H_
14 | #define GROUP_TEXTGROUP_CASETRANSFORM_CPP_CASETRANSFORM_H_
15 |
16 | // JQToolsLibrary import
17 | #include
18 |
19 | #define CASETRANSFORM_INITIALIZA \
20 | { \
21 | qmlRegisterType("CaseTransform", 1, 0, "CaseTransformManage"); \
22 | }
23 |
24 | namespace CaseTransform
25 | {
26 |
27 | class Manage: public AbstractTool
28 | {
29 | Q_OBJECT
30 | Q_DISABLE_COPY(Manage)
31 |
32 | public:
33 | Manage() = default;
34 |
35 | ~Manage() = default;
36 |
37 | public slots:
38 | QString upper(const QString &string);
39 |
40 | QString lower(const QString &string);
41 | };
42 |
43 | }
44 |
45 | #endif//GROUP_TEXTGROUP_CASETRANSFORM_CPP_CASETRANSFORM_H_
46 |
--------------------------------------------------------------------------------
/components/TextGroup/CaseTransform/qml/CaseTransform.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | CaseTransform.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/TextGroup/JsonFormat/JsonFormat.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/jsonformat.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/jsonformat.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/JsonFormat.qrc
24 |
--------------------------------------------------------------------------------
/components/TextGroup/JsonFormat/cpp/JsonFormat:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "jsonformat.h"
14 |
--------------------------------------------------------------------------------
/components/TextGroup/JsonFormat/cpp/jsonformat.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "jsonformat.h"
14 |
15 | // Qt lib import
16 | #include
17 | #include
18 |
19 | using namespace JsonFormat;
20 |
21 | bool Manage::check(const QString &string)
22 | {
23 | return !QJsonDocument::fromJson( string.toUtf8() ).isNull();
24 | }
25 |
26 | QString Manage::format(const QString &string, const bool &compact)
27 | {
28 | return QJsonDocument::fromJson( string.toUtf8() ).toJson( ( compact ) ? ( QJsonDocument::Compact ) : ( QJsonDocument::Indented ) );
29 | }
30 |
--------------------------------------------------------------------------------
/components/TextGroup/JsonFormat/cpp/jsonformat.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_TEXTGROUP_JSONFORMAT_CPP_JSONFORMAT_H_
14 | #define GROUP_TEXTGROUP_JSONFORMAT_CPP_JSONFORMAT_H_
15 |
16 | // JQToolsLibrary import
17 | #include
18 |
19 | #define JSONFORMAT_INITIALIZA \
20 | { \
21 | qmlRegisterType("JsonFormat", 1, 0, "JsonFormatManage"); \
22 | }
23 |
24 | namespace JsonFormat
25 | {
26 |
27 | class Manage: public AbstractTool
28 | {
29 | Q_OBJECT
30 | Q_DISABLE_COPY(Manage)
31 |
32 | public:
33 | Manage() = default;
34 |
35 | ~Manage() = default;
36 |
37 | public slots:
38 | bool check(const QString &string);
39 |
40 | QString format(const QString &string, const bool &compact);
41 | };
42 |
43 | }
44 |
45 | #endif//GROUP_TEXTGROUP_JSONFORMAT_CPP_JSONFORMAT_H_
46 |
--------------------------------------------------------------------------------
/components/TextGroup/JsonFormat/qml/JsonFormat.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | JsonFormat.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/TextGroup/RandomPassword/RandomPassword.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/randompassword.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/randompassword.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/RandomPassword.qrc
24 |
--------------------------------------------------------------------------------
/components/TextGroup/RandomPassword/cpp/RandomPassword:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "randompassword.h"
14 |
--------------------------------------------------------------------------------
/components/TextGroup/RandomPassword/cpp/randompassword.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_TEXTGROUP_RANDOMPASSWORD_CPP_RANDOMPASSWORD_H_
14 | #define GROUP_TEXTGROUP_RANDOMPASSWORD_CPP_RANDOMPASSWORD_H_
15 |
16 | // JQToolsLibrary import
17 | #include
18 |
19 | #define RANDOMPASSWORD_INITIALIZA \
20 | { \
21 | qmlRegisterType("RandomPassword", 1, 0, "RandomPasswordManage"); \
22 | }
23 |
24 | namespace RandomPassword
25 | {
26 |
27 | class Manage: public AbstractTool
28 | {
29 | Q_OBJECT
30 | Q_DISABLE_COPY(Manage)
31 |
32 | public:
33 | Manage();
34 |
35 | ~Manage() = default;
36 |
37 | public slots:
38 | QString randomPassword(const int &length, const bool &number, const bool &englishCharacters, const bool &caseSensitive, const bool &dividingLine);
39 | };
40 |
41 | }
42 |
43 | #endif//GROUP_TEXTGROUP_RANDOMPASSWORD_CPP_RANDOMPASSWORD_H_
44 |
--------------------------------------------------------------------------------
/components/TextGroup/RandomPassword/qml/RandomPassword.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | RandomPassword.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/TextGroup/RandomUuid/RandomUuid.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/randomuuid.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/randomuuid.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/RandomUuid.qrc
24 |
--------------------------------------------------------------------------------
/components/TextGroup/RandomUuid/cpp/RandomUuid:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "randomuuid.h"
14 |
--------------------------------------------------------------------------------
/components/TextGroup/RandomUuid/cpp/randomuuid.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "randomuuid.h"
14 |
15 | // Qt lib import
16 | #include
17 | #include
18 |
19 | // JQLibrary lib import
20 | #include "JQFoundation.h"
21 |
22 | using namespace RandomUuid;
23 |
24 | Manage::Manage()
25 | {
26 | srand( QDateTime::currentDateTime().toTime_t() + qApp->applicationFilePath().size() );
27 | }
28 |
29 | QString Manage::randomUuid(const bool &includeParantheses)
30 | {
31 | if ( includeParantheses )
32 | {
33 | return "{" + JQFoundation::createUuidString() + "}";
34 | }
35 | else
36 | {
37 | return JQFoundation::createUuidString();
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/components/TextGroup/RandomUuid/cpp/randomuuid.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_TEXTGROUP_RANDOMUUID_CPP_RANDOMUUID_H_
14 | #define GROUP_TEXTGROUP_RANDOMUUID_CPP_RANDOMUUID_H_
15 |
16 | // JQToolsLibrary import
17 | #include
18 |
19 | #define RANDOMUUID_INITIALIZA \
20 | { \
21 | qmlRegisterType("RandomUuid", 1, 0, "RandomUuidManage"); \
22 | }
23 |
24 | namespace RandomUuid
25 | {
26 |
27 | class Manage: public AbstractTool
28 | {
29 | Q_OBJECT
30 | Q_DISABLE_COPY(Manage)
31 |
32 | public:
33 | Manage();
34 |
35 | ~Manage() = default;
36 |
37 | public slots:
38 | QString randomUuid(const bool &includeParantheses);
39 | };
40 |
41 | }
42 |
43 | #endif//GROUP_TEXTGROUP_RANDOMUUID_CPP_RANDOMUUID_H_
44 |
--------------------------------------------------------------------------------
/components/TextGroup/RandomUuid/qml/RandomUuid.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | RandomUuid.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/TextGroup/RgbStringTransform/RgbStringTransform.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/rgbstringtransform.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/rgbstringtransform.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/RgbStringTransform.qrc
24 |
--------------------------------------------------------------------------------
/components/TextGroup/RgbStringTransform/cpp/RgbStringTransform:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "rgbstringtransform.h"
14 |
--------------------------------------------------------------------------------
/components/TextGroup/RgbStringTransform/cpp/rgbstringtransform.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "rgbstringtransform.h"
14 |
15 | // Qt lib import
16 | #include
17 |
18 | using namespace RgbStringTransform;
19 |
20 | QString Manage::getHexStringFromColorName(const QString &colorName)
21 | {
22 | return QColor( colorName ).name();
23 | }
24 |
25 | QString Manage::getHexString(const QString &red, const QString &green, const QString &blue)
26 | {
27 | QColor color( red.toInt(), green.toInt(), blue.toInt() );
28 | return color.name();
29 | }
30 |
31 | QString Manage::getHexString(QColor color)
32 | {
33 | return color.name();
34 | }
35 |
36 | QString Manage::getRed(const QString &hexString)
37 | {
38 | QColor color( hexString );
39 | return QString::number( color.red() );
40 | }
41 |
42 | QString Manage::getGreen(const QString &hexString)
43 | {
44 | QColor color( hexString );
45 | return QString::number( color.green() );
46 | }
47 |
48 | QString Manage::getBlue(const QString &hexString)
49 | {
50 | QColor color( hexString );
51 | return QString::number( color.blue() );
52 | }
53 |
--------------------------------------------------------------------------------
/components/TextGroup/RgbStringTransform/qml/RgbStringTransform.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | RgbStringTransform.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/TextGroup/StringSort/StringSort.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/stringsort.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/stringsort.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/StringSort.qrc
24 |
--------------------------------------------------------------------------------
/components/TextGroup/StringSort/cpp/StringSort:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "stringsort.h"
14 |
--------------------------------------------------------------------------------
/components/TextGroup/StringSort/cpp/stringsort.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "stringsort.h"
14 |
15 | // C++ lib import
16 | #include
17 |
18 | using namespace StringSort;
19 |
20 | QString Manage::sort(const QString &string, const bool &descOrder)
21 | {
22 | auto list = string.split( "\n", QString::SkipEmptyParts );
23 |
24 | std::sort( list.begin(), list.end(), [ = ]( const QString &a, const QString &b )
25 | {
26 | if ( descOrder ) { return a > b; }
27 | return a < b;
28 | } );
29 |
30 | return list.join( "\n" );
31 | }
32 |
--------------------------------------------------------------------------------
/components/TextGroup/StringSort/cpp/stringsort.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_TEXTGROUP_STRINGSORT_CPP_STRINGSORT_H_
14 | #define GROUP_TEXTGROUP_STRINGSORT_CPP_STRINGSORT_H_
15 |
16 | // JQToolsLibrary import
17 | #include
18 |
19 | #define STRINGSORT_INITIALIZA \
20 | { \
21 | qmlRegisterType("StringSort", 1, 0, "StringSortManage"); \
22 | }
23 |
24 | namespace StringSort
25 | {
26 |
27 | class Manage: public AbstractTool
28 | {
29 | Q_OBJECT
30 | Q_DISABLE_COPY(Manage)
31 |
32 | public:
33 | Manage() = default;
34 |
35 | ~Manage() = default;
36 |
37 | public slots:
38 | QString sort(const QString &string, const bool &descOrder);
39 | };
40 |
41 | }
42 |
43 | #endif//GROUP_TEXTGROUP_STRINGSORT_CPP_STRINGSORT_H_
44 |
--------------------------------------------------------------------------------
/components/TextGroup/StringSort/qml/StringSort.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | StringSort.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/TextGroup/TextGroup:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "textgroup.h"
14 |
--------------------------------------------------------------------------------
/components/TextGroup/TextGroup.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | include( $$PWD/Utf16Transform/Utf16Transform.pri )
14 | include( $$PWD/RgbStringTransform/RgbStringTransform.pri )
15 | include( $$PWD/UrlEncode/UrlEncode.pri )
16 | include( $$PWD/RandomPassword/RandomPassword.pri )
17 | include( $$PWD/RandomUuid/RandomUuid.pri )
18 | include( $$PWD/CaseTransform/CaseTransform.pri )
19 | include( $$PWD/JsonFormat/JsonFormat.pri )
20 | include( $$PWD/StringSort/StringSort.pri )
21 |
22 | INCLUDEPATH *= \
23 | $$PWD/
24 |
25 | HEADERS *= \
26 | $$PWD/textgroup.h
27 |
--------------------------------------------------------------------------------
/components/TextGroup/UrlEncode/UrlEncode.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/urlencode.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/urlencode.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/UrlEncode.qrc
24 |
--------------------------------------------------------------------------------
/components/TextGroup/UrlEncode/cpp/UrlEncode:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "urlencode.h"
14 |
--------------------------------------------------------------------------------
/components/TextGroup/UrlEncode/cpp/urlencode.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "urlencode.h"
14 |
15 | // Qt lib import
16 | #include
17 | #include
18 | #include
19 |
20 | using namespace UrlEncode;
21 |
22 | QString Manage::encode(const QString &string)
23 | {
24 | return QUrl::toPercentEncoding( string, "/:?=&%" );
25 | }
26 |
27 | QString Manage::decode(const QString &string)
28 | {
29 | return QUrl::fromPercentEncoding( string.toUtf8() );
30 | }
31 |
--------------------------------------------------------------------------------
/components/TextGroup/UrlEncode/cpp/urlencode.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_TEXTGROUP_URLENCODE_CPP_URLENCODE_H_
14 | #define GROUP_TEXTGROUP_URLENCODE_CPP_URLENCODE_H_
15 |
16 | // JQToolsLibrary import
17 | #include
18 |
19 | #define URLENCODE_INITIALIZA \
20 | { \
21 | qmlRegisterType("UrlEncode", 1, 0, "UrlEncodeManage"); \
22 | }
23 |
24 | namespace UrlEncode
25 | {
26 |
27 | class Manage: public AbstractTool
28 | {
29 | Q_OBJECT
30 | Q_DISABLE_COPY(Manage)
31 |
32 | public:
33 | Manage() = default;
34 |
35 | ~Manage() = default;
36 |
37 | public slots:
38 | QString encode(const QString &string);
39 |
40 | QString decode(const QString &string);
41 | };
42 |
43 | }
44 |
45 | #endif//GROUP_TEXTGROUP_URLENCODE_CPP_URLENCODE_H_
46 |
--------------------------------------------------------------------------------
/components/TextGroup/UrlEncode/qml/UrlEncode.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | UrlEncode.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/TextGroup/Utf16Transform/Utf16Transform.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/utf16transform.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/utf16transform.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/Utf16Transform.qrc
24 |
--------------------------------------------------------------------------------
/components/TextGroup/Utf16Transform/cpp/Utf16Transform:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "utf16transform.h"
14 |
--------------------------------------------------------------------------------
/components/TextGroup/Utf16Transform/cpp/utf16transform.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "utf16transform.h"
14 |
15 | // Qt lib import
16 | #include
17 | #include
18 |
19 | using namespace Utf16Transform;
20 |
21 | QString Manage::toUtf16(const QString &string)
22 | {
23 | QString source = string;
24 | QString target;
25 |
26 | for ( auto c: source )
27 | {
28 | if ( c.unicode() > 0xff )
29 | {
30 | target += "\\u";
31 | target += QString::number( c.unicode(), 16 ).toUpper().rightJustified( 4, '0' );
32 | }
33 | else
34 | {
35 | target += c;
36 | }
37 | }
38 |
39 | return target;
40 | }
41 |
42 | QString Manage::fromUtf16(const QString &string)
43 | {
44 | QString source = string;
45 | QString target;
46 |
47 | while ( !source.isEmpty() )
48 | {
49 | if ( ( source.size() >= 6 ) && source.startsWith( "\\u" ))
50 | {
51 | target += QChar( ushort( source.mid( 2, 4 ).toUShort( 0, 16 ) ) );
52 | source.remove( 0, 6 );
53 | }
54 | else
55 | {
56 | target += source.at( 0 );
57 | source.remove( 0, 1 );
58 | }
59 | }
60 |
61 | return target;
62 | }
63 |
--------------------------------------------------------------------------------
/components/TextGroup/Utf16Transform/cpp/utf16transform.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_TEXTGROUP_UTF16TRANSFORM_CPP_UTF16TRANSFORM_H_
14 | #define GROUP_TEXTGROUP_UTF16TRANSFORM_CPP_UTF16TRANSFORM_H_
15 |
16 | // JQToolsLibrary import
17 | #include
18 |
19 | #define UTF16TRANSFORM_INITIALIZA \
20 | { \
21 | qmlRegisterType("Utf16Transform", 1, 0, "Utf16TransformManage"); \
22 | }
23 |
24 | namespace Utf16Transform
25 | {
26 |
27 | class Manage: public AbstractTool
28 | {
29 | Q_OBJECT
30 | Q_DISABLE_COPY(Manage)
31 |
32 | public:
33 | Manage() = default;
34 |
35 | ~Manage() = default;
36 |
37 | public slots:
38 | QString toUtf16(const QString &string);
39 |
40 | QString fromUtf16(const QString &string);
41 | };
42 |
43 | }
44 |
45 | #endif//GROUP_TEXTGROUP_UTF16TRANSFORM_CPP_UTF16TRANSFORM_H_
46 |
--------------------------------------------------------------------------------
/components/TextGroup/Utf16Transform/qml/Utf16Transform.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | Utf16Transform.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/TextGroup/textgroup.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef TEXTGROUP_TEXTGROUP_H_
14 | #define TEXTGROUP_TEXTGROUP_H_
15 |
16 | // TextGroup lib import
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 | #include
23 | #include
24 | #include
25 |
26 | #define TEXTGROUP_INITIALIZA \
27 | UTF16TRANSFORM_INITIALIZA; \
28 | RGBSTRINGTRANSFORM_INITIALIZA; \
29 | CASETRANSFORM_INITIALIZA; \
30 | RANDOMPASSWORD_INITIALIZA; \
31 | RANDOMUUID_INITIALIZA; \
32 | URLENCODE_INITIALIZA; \
33 | JSONFORMAT_INITIALIZA; \
34 | STRINGSORT_INITIALIZA;
35 |
36 | #endif//TEXTGROUP_TEXTGROUP_H_
37 |
--------------------------------------------------------------------------------
/components/ToolsGroup/BatchReplacement/BatchReplacement.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/batchreplacement.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/batchreplacement.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/BatchReplacement.qrc
24 |
--------------------------------------------------------------------------------
/components/ToolsGroup/BatchReplacement/cpp/BatchReplacement:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "batchreplacement.h"
14 |
--------------------------------------------------------------------------------
/components/ToolsGroup/BatchReplacement/cpp/batchreplacement.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_TOOLSGROUP_BATCHREPLACEMENT_CPP_BATCHREPLACEMENT_H_
14 | #define GROUP_TOOLSGROUP_BATCHREPLACEMENT_CPP_BATCHREPLACEMENT_H_
15 |
16 | // Qt lib import
17 | #include
18 |
19 | // JQToolsLibrary import
20 | #include
21 |
22 | #define BATCHREPLACEMENT_INITIALIZA \
23 | { \
24 | qmlRegisterType("BatchReplacement", 1, 0, "BatchReplacementManage"); \
25 | }
26 |
27 | namespace BatchReplacement
28 | {
29 |
30 | class Manage: public AbstractTool
31 | {
32 | Q_OBJECT
33 | Q_DISABLE_COPY(Manage)
34 |
35 | public:
36 | Manage() = default;
37 |
38 | ~Manage() = default;
39 |
40 | public slots:
41 | QJsonObject startBatchReplacement(
42 | const QJsonArray &suffixs,
43 | const QString &sourceKey,
44 | const QString &targetKey,
45 | const bool &multiCase
46 | );
47 | };
48 |
49 | }
50 |
51 | #endif//GROUP_TOOLSGROUP_BATCHREPLACEMENT_CPP_BATCHREPLACEMENT_H_
52 |
--------------------------------------------------------------------------------
/components/ToolsGroup/BatchReplacement/qml/BatchReplacement.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | BatchReplacement.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/ToolsGroup/JpgOptimize/JpgOptimize.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | DEFINES += \
14 | TOOLSGROUP_JPGOPTIMIZE_ENABLE
15 |
16 | INCLUDEPATH *= \
17 | $$PWD/cpp/
18 |
19 | HEADERS *= \
20 | $$PWD/cpp/jpgoptimize.h
21 |
22 | SOURCES *= \
23 | $$PWD/cpp/jpgoptimize.cpp
24 |
25 | RESOURCES *= \
26 | $$PWD/qml/JpgOptimize.qrc
27 |
--------------------------------------------------------------------------------
/components/ToolsGroup/JpgOptimize/cpp/JpgOptimize:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "jpgoptimize.h"
14 |
--------------------------------------------------------------------------------
/components/ToolsGroup/JpgOptimize/qml/JpgOptimize.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | JpgOptimize.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/ToolsGroup/LanFileTransport/LanFileTransport.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/lanfiletransport.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/lanfiletransport_.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/LanFileTransport.qrc
24 |
--------------------------------------------------------------------------------
/components/ToolsGroup/LanFileTransport/cpp/LanFileTransport:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "lanfiletransport.h"
14 |
--------------------------------------------------------------------------------
/components/ToolsGroup/LanFileTransport/qml/LanFileTransport.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | LanFileTransport.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/ToolsGroup/LinesStatistics/LinesStatistics.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/linesstatistics.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/linesstatistics.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/LinesStatistics.qrc
24 |
--------------------------------------------------------------------------------
/components/ToolsGroup/LinesStatistics/cpp/LinesStatistics:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "linesstatistics.h"
14 |
--------------------------------------------------------------------------------
/components/ToolsGroup/LinesStatistics/cpp/linesstatistics.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_TOOLSGROUP_LINESSTATISTICS_CPP_LINESSTATISTICS_H_
14 | #define GROUP_TOOLSGROUP_LINESSTATISTICS_CPP_LINESSTATISTICS_H_
15 |
16 | // Qt lib import
17 | #include
18 |
19 | // JQToolsLibrary import
20 | #include
21 |
22 | #define LINESSTATISTICS_INITIALIZA \
23 | { \
24 | qmlRegisterType("LinesStatistics", 1, 0, "LinesStatisticsManage"); \
25 | }
26 |
27 | namespace LinesStatistics
28 | {
29 |
30 | class Manage: public AbstractTool
31 | {
32 | Q_OBJECT
33 | Q_DISABLE_COPY(Manage)
34 |
35 | public:
36 | Manage() = default;
37 |
38 | ~Manage() = default;
39 |
40 | public slots:
41 | QJsonObject statisticsLines(const QJsonArray &suffixs);
42 | };
43 |
44 | }
45 |
46 | #endif//GROUP_TOOLSGROUP_LINESSTATISTICS_CPP_LINESSTATISTICS_H_
47 |
--------------------------------------------------------------------------------
/components/ToolsGroup/LinesStatistics/qml/LinesStatistics.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | LinesStatistics.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/ToolsGroup/PngOptimize/PngOptimize.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/pngoptimize.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/pngoptimize.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/PngOptimize.qrc
24 |
--------------------------------------------------------------------------------
/components/ToolsGroup/PngOptimize/cpp/PngOptimize:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "pngoptimize.h"
14 |
--------------------------------------------------------------------------------
/components/ToolsGroup/PngOptimize/qml/PngOptimize.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | PngOptimize.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/ToolsGroup/QRCodeReader/QRCodeReader.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/qrcodereader.h
18 |
19 | SOURCES *= \
20 | $$PWD/cpp/qrcodereader_.cpp
21 |
22 | RESOURCES *= \
23 | $$PWD/qml/QRCodeReaderQml.qrc \
24 | $$PWD/resources/images/QRCodeReaderImages.qrc
25 |
--------------------------------------------------------------------------------
/components/ToolsGroup/QRCodeReader/cpp/QRCodeReader:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "qrcodereader.h"
14 |
--------------------------------------------------------------------------------
/components/ToolsGroup/QRCodeReader/cpp/qrcodereader.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_MAKEGROUP_QRCODEREADER_CPP_QRCODEREADER_H_
14 | #define GROUP_MAKEGROUP_QRCODEREADER_CPP_QRCODEREADER_H_
15 |
16 | // Qt lib import
17 | #include
18 | #include
19 |
20 | // JQToolsLibrary import
21 | #include
22 |
23 | #define QRCODEREADER_INITIALIZA \
24 | { \
25 | qmlRegisterType< QRCodeReader_::Manage >( "QRCodeReader", 1, 0, "QRCodeReaderManage" ); \
26 | }
27 |
28 | class JQQRCodeReader;
29 |
30 | namespace QRCodeReader_
31 | {
32 |
33 | class Manage: public AbstractTool
34 | {
35 | Q_OBJECT
36 | Q_DISABLE_COPY(Manage)
37 |
38 | public:
39 | Manage();
40 |
41 | ~Manage() = default;
42 |
43 | public slots:
44 | QUrl chooseImage() const;
45 |
46 | QString decodeImage(const QUrl &imageUrl);
47 |
48 | private:
49 | QSharedPointer< JQQRCodeReader > jqQRCodeReader_;
50 | };
51 |
52 | }
53 |
54 | #endif//GROUP_MAKEGROUP_QRCODEREADER_CPP_QRCODEREADER_H_
55 |
--------------------------------------------------------------------------------
/components/ToolsGroup/QRCodeReader/cpp/qrcodereader_.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "qrcodereader.h"
14 |
15 | // Qt lib import
16 | #include
17 | #include
18 | #include
19 | #include
20 |
21 | // JQLibrary lib import
22 | #include "JQQRCodeReader.h"
23 |
24 | using namespace QRCodeReader_;
25 |
26 | Manage::Manage():
27 | jqQRCodeReader_( new JQQRCodeReader )
28 | { }
29 |
30 | QUrl Manage::chooseImage() const
31 | {
32 | return QUrl::fromLocalFile(
33 | QFileDialog::getOpenFileName(
34 | nullptr,
35 | QStringLiteral( "\u8BF7\u9009\u62E9\u56FE\u7247" ),
36 | QStandardPaths::writableLocation( QStandardPaths::DesktopLocation ),
37 | "*.png *.jpg"
38 | )
39 | );
40 | }
41 |
42 | QString Manage::decodeImage(const QUrl &imageUrl)
43 | {
44 | if ( imageUrl.toString().startsWith( "file:" ) )
45 | {
46 | return jqQRCodeReader_->decodeImage( QImage( imageUrl.toLocalFile() ) );
47 | }
48 | else if ( imageUrl.toString().startsWith( "qrc:" ) )
49 | {
50 | return jqQRCodeReader_->decodeImage( QImage( imageUrl.toString().mid( 3 ) ) );
51 | }
52 |
53 | return { };
54 | }
55 |
--------------------------------------------------------------------------------
/components/ToolsGroup/QRCodeReader/qml/QRCodeReaderQml.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | QRCodeReader.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/ToolsGroup/QRCodeReader/resources/images/QRCodeReaderImages.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | test.png
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/ToolsGroup/QRCodeReader/resources/images/test.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/ToolsGroup/QRCodeReader/resources/images/test.png
--------------------------------------------------------------------------------
/components/ToolsGroup/ScreenColorPicker/ScreenColorPicker.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/
15 |
16 | HEADERS *= \
17 | $$PWD/cpp/colorpicker.h\
18 | $$PWD/cpp/mousedropper.h \
19 | $$PWD/cpp/screenColorPicker.h
20 | $$PWD/cpp/screenColorPicker.h
21 |
22 |
23 | SOURCES *= \
24 | $$PWD/cpp/colorpicker.cpp\
25 | $$PWD/cpp/mousedropper.cpp\
26 | $$PWD/cpp/screenColorPicker.cpp
27 |
28 |
29 | RESOURCES *= \
30 | $$PWD/qml/ScreenColorPicker.qrc
31 |
32 | DISTFILES += \
33 | $$PWD/res/ico/ColorPickerPen.png
34 |
--------------------------------------------------------------------------------
/components/ToolsGroup/ScreenColorPicker/cpp/ScreenColorPicker:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "screenColorPicker.h"
14 |
--------------------------------------------------------------------------------
/components/ToolsGroup/ScreenColorPicker/cpp/colorpicker.cpp:
--------------------------------------------------------------------------------
1 | #include "colorpicker.h"
2 | #include
3 | #include
4 | #include
5 | #include
6 | #include
7 | ColorPicker::ColorPicker(QWidget *parent)
8 | : QWidget(parent)
9 | , mousedropper(new MouseDropper(this))
10 | {
11 | resize(QGuiApplication::primaryScreen()->size());
12 | this->setWindowFlags(Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint); //设置为无边框窗口
13 | this->setAttribute(Qt::WA_TranslucentBackground);
14 | this->setCursor(QCursor(QPixmap("qrc:/ColorPickerPen.png"),0,19));
15 | }
16 |
17 | void ColorPicker::paintEvent(QPaintEvent *e)
18 | {
19 | Q_UNUSED( e );
20 |
21 | QPainter painter(this);
22 | painter.fillRect(rect(),QColor(255,255,255,1));
23 | }
24 |
25 | void ColorPicker::mousePressEvent(QMouseEvent *e)
26 | {
27 | Q_UNUSED( e );
28 |
29 | emit colorSelect(mousedropper->getColor());
30 | close();
31 | }
32 |
--------------------------------------------------------------------------------
/components/ToolsGroup/ScreenColorPicker/cpp/colorpicker.h:
--------------------------------------------------------------------------------
1 | #ifndef COLORPICKER_H
2 | #define COLORPICKER_H
3 |
4 | #include "mousedropper.h"
5 | #include
6 |
7 | class ColorPicker : public QWidget
8 | {
9 | Q_OBJECT
10 | public:
11 | explicit ColorPicker(QWidget *parent = nullptr);
12 | private:
13 | MouseDropper *mousedropper;
14 | protected:
15 | void paintEvent(QPaintEvent *e);
16 | void mousePressEvent(QMouseEvent *e);
17 | signals:
18 | void colorSelect(const QColor & c);
19 | public slots:
20 | };
21 | #endif // COLORPICKER_H
22 |
--------------------------------------------------------------------------------
/components/ToolsGroup/ScreenColorPicker/cpp/mousedropper.h:
--------------------------------------------------------------------------------
1 | #ifndef MOUSEDROPPER_H
2 | #define MOUSEDROPPER_H
3 |
4 | #include
5 | #include
6 | #include
7 | #include
8 | class MouseDropper : public QWidget
9 | {
10 | Q_OBJECT
11 | public:
12 | explicit MouseDropper(QWidget *parent = nullptr);
13 | QColor getColor() const;
14 |
15 | private:
16 | QColor color;
17 | protected:
18 | void paintEvent(QPaintEvent *e);
19 |
20 | };
21 |
22 | #endif // MOUSEDROPPER_H
23 |
--------------------------------------------------------------------------------
/components/ToolsGroup/ScreenColorPicker/cpp/screenColorPicker.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "screenColorPicker.h"
14 | #include
15 |
16 |
17 | using namespace ScreenColorPicker;
18 |
19 |
20 | Manage::Manage(): colorPicker(new ColorPicker),currentColor(QColor("blue"))
21 | {
22 | connect(colorPicker, &ColorPicker::colorSelect, this, &Manage::onColorSelect);
23 | }
24 |
25 | void Manage::onColorSelect(const QColor & c)
26 | {
27 | currentColor = c;
28 | emit colorSelect(c);
29 | }
30 |
31 | void Manage::openPicker()
32 | {
33 | colorPicker->show();
34 | }
35 |
36 | void Manage::copyColorToClipboard()
37 | {
38 | QGuiApplication::clipboard()->setText(currentColor.name());
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/components/ToolsGroup/ScreenColorPicker/cpp/screenColorPicker.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef GROUP_TOOLSGROUP_SCREENCOLORPICKER_CPP_SCREENCOLORPICKER_H
14 | #define GROUP_TOOLSGROUP_SCREENCOLORPICKER_CPP_SCREENCOLORPICKER_H
15 |
16 | // Qt lib import
17 | #include
18 |
19 | // JQToolsLibrary import
20 | #include
21 | #include "colorpicker.h"
22 |
23 |
24 | #define SCREENCOLORPICKER_INITIALIZA \
25 | { \
26 | qmlRegisterType("ScreenColorPicker", 1, 0, "ScreenColorPickerManage"); \
27 | }
28 |
29 | namespace ScreenColorPicker
30 | {
31 |
32 | class Manage: public AbstractTool
33 | {
34 | Q_OBJECT
35 | Q_DISABLE_COPY(Manage)
36 |
37 | public:
38 | Manage();
39 | ~Manage() = default;
40 | signals:
41 | void colorSelect(const QColor & c);
42 | public slots:
43 | void openPicker();
44 | void onColorSelect(const QColor & c);
45 | void copyColorToClipboard();
46 |
47 | private:
48 | QColor currentColor;
49 | ColorPicker *colorPicker;
50 | };
51 |
52 | }
53 |
54 | #endif//GROUP_TOOLSGROUP_SCREENCOLORPICKER_CPP_SCREENCOLORPICKER_H
55 |
--------------------------------------------------------------------------------
/components/ToolsGroup/ScreenColorPicker/qml/ColorChooser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/ToolsGroup/ScreenColorPicker/qml/ColorChooser.png
--------------------------------------------------------------------------------
/components/ToolsGroup/ScreenColorPicker/qml/ColorPickerPen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/ToolsGroup/ScreenColorPicker/qml/ColorPickerPen.png
--------------------------------------------------------------------------------
/components/ToolsGroup/ScreenColorPicker/qml/ScreenColorPicker.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | ScreenColorPicker.qml
4 | ColorChooser.png
5 | ColorPickerPen.png
6 |
7 |
8 |
--------------------------------------------------------------------------------
/components/ToolsGroup/ScreenColorPicker/res/ico/更多颜色.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/components/ToolsGroup/ScreenColorPicker/res/ico/更多颜色.png
--------------------------------------------------------------------------------
/components/ToolsGroup/ToolsGroup:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "toolsgroup.h"
14 |
--------------------------------------------------------------------------------
/components/ToolsGroup/ToolsGroup.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | include( $$PWD/LinesStatistics/LinesStatistics.pri )
14 | include( $$PWD/LanFileTransport/LanFileTransport.pri )
15 | include( $$PWD/PngOptimize/PngOptimize.pri )
16 | mac {
17 | include( $$PWD/JpgOptimize/JpgOptimize.pri )
18 | }
19 | include( $$PWD/QRCodeReader/QRCodeReader.pri )
20 | include( $$PWD/BatchReplacement/BatchReplacement.pri )
21 | include( $$PWD/ScreenColorPicker/ScreenColorPicker.pri )
22 |
23 | INCLUDEPATH *= \
24 | $$PWD/
25 |
26 | HEADERS *= \
27 | $$PWD/toolsgroup.h
28 |
--------------------------------------------------------------------------------
/components/ToolsGroup/toolsgroup.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef TOOLSGROUP_TOOLSGROUP_H_
14 | #define TOOLSGROUP_TOOLSGROUP_H_
15 |
16 | // ToolsGroup lib import
17 | #include
18 | #include
19 | #include
20 | #ifdef TOOLSGROUP_JPGOPTIMIZE_ENABLE
21 | # include
22 | #endif
23 | #include
24 | #include
25 | #include
26 |
27 | #ifdef TOOLSGROUP_JPGOPTIMIZE_ENABLE
28 | # define TOOLSGROUP_INITIALIZA \
29 | LINESSTATISTICS_INITIALIZA; \
30 | PNGOPTIMIZE_INITIALIZA; \
31 | JPGOPTIMIZE_INITIALIZA; \
32 | LANFILETRANSPORT_INITIALIZA; \
33 | QRCODEREADER_INITIALIZA; \
34 | BATCHREPLACEMENT_INITIALIZA;\
35 | SCREENCOLORPICKER_INITIALIZA;
36 | #else
37 | # define TOOLSGROUP_INITIALIZA \
38 | LINESSTATISTICS_INITIALIZA; \
39 | PNGOPTIMIZE_INITIALIZA; \
40 | LANFILETRANSPORT_INITIALIZA; \
41 | QRCODEREADER_INITIALIZA; \
42 | BATCHREPLACEMENT_INITIALIZA;\
43 | SCREENCOLORPICKER_INITIALIZA;
44 | #endif
45 |
46 | #endif//TOOLSGROUP_TOOLSGROUP_H_
47 |
--------------------------------------------------------------------------------
/components/WelcomeGroup/WelcomeGroup:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "welcomegroup.h"
14 |
--------------------------------------------------------------------------------
/components/WelcomeGroup/WelcomeGroup.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | INCLUDEPATH *= \
14 | $$PWD/cpp/ \
15 | $$PWD/
16 |
17 | HEADERS *= \
18 | $$PWD/cpp/welcome.h \
19 | $$PWD/welcomegroup.h
20 |
21 | SOURCES *= \
22 | $$PWD/cpp/welcome.cpp
23 |
24 | RESOURCES *= \
25 | $$PWD/qml/Welcome.qrc
26 |
--------------------------------------------------------------------------------
/components/WelcomeGroup/cpp/Welcome:
--------------------------------------------------------------------------------
1 | #ifndef __GROUP_WELCOMEGROUP_CPP_WELCOME_H__
2 | #define __GROUP_WELCOMEGROUP_CPP_WELCOME_H__
3 |
4 | // JQToolsLibrary import
5 | #include "JQToolsLibrary.h"
6 |
7 | #define WELCOME_INITIALIZA \
8 | { \
9 | qmlRegisterType("Welcome", 1, 0, "WelcomeManage"); \
10 | }
11 |
12 | namespace Welcome
13 | {
14 |
15 | class Manage: public AbstractTool
16 | {
17 | Q_OBJECT
18 | Q_DISABLE_COPY(Manage)
19 |
20 | public:
21 | Manage() = default;
22 |
23 | ~Manage() = default;
24 |
25 | public slots:
26 | void openGitHubLink();
27 |
28 | void openLatestVersionDownloadLink();
29 | };
30 |
31 | }
32 |
33 | #endif//__GROUP_WELCOME_CPP_WELCOME_H__
34 |
--------------------------------------------------------------------------------
/components/WelcomeGroup/cpp/welcome.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "welcome.h"
14 |
15 | // Qt lib import
16 | #include
17 | #include
18 |
19 | using namespace Welcome;
20 |
21 | void Manage::openGitHubLink()
22 | {
23 | QDesktopServices::openUrl( QUrl( "https://github.com/188080501/JQTools" ) );
24 | }
25 |
26 | void Manage::openLatestVersionDownloadLink()
27 | {
28 | QDesktopServices::openUrl( QUrl( "https://github.com/188080501/JQTools/releases/latest" ) );
29 | }
30 |
--------------------------------------------------------------------------------
/components/WelcomeGroup/cpp/welcome.h:
--------------------------------------------------------------------------------
1 | #ifndef GROUP_WELCOMEGROUP_CPP_WELCOME_H_
2 | #define GROUP_WELCOMEGROUP_CPP_WELCOME_H_
3 |
4 | // JQToolsLibrary import
5 | #include
6 |
7 | #define WELCOME_INITIALIZA \
8 | { \
9 | qmlRegisterType("Welcome", 1, 0, "WelcomeManage"); \
10 | }
11 |
12 | namespace Welcome
13 | {
14 |
15 | class Manage: public AbstractTool
16 | {
17 | Q_OBJECT
18 | Q_DISABLE_COPY(Manage)
19 |
20 | public:
21 | Manage() = default;
22 |
23 | ~Manage() = default;
24 |
25 | public slots:
26 | void openGitHubLink();
27 |
28 | void openLatestVersionDownloadLink();
29 | };
30 |
31 | }
32 |
33 | #endif//GROUP_WELCOMEGROUP_CPP_WELCOME_H_
34 |
--------------------------------------------------------------------------------
/components/WelcomeGroup/qml/Welcome.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | Welcome.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/components/WelcomeGroup/welcomegroup.h:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef WELCOMEGROUP_WELCOMEGROUP_H_
14 | #define WELCOMEGROUP_WELCOMEGROUP_H_
15 |
16 | // WelcomeGroup lib import
17 | #include "welcome.h"
18 |
19 | #define WELCOMEGROUP_INITIALIZA \
20 | WELCOME_INITIALIZA;
21 |
22 | #endif//WELCOMEGROUP_WELCOMEGROUP_H_
23 |
--------------------------------------------------------------------------------
/components/components.pri:
--------------------------------------------------------------------------------
1 | #
2 | # This file is part of JQTools
3 | #
4 | # Project introduce: https://github.com/188080501/JQTools
5 | #
6 | # Copyright: Jason
7 | #
8 | # Contact email: Jason@JasonServer.com
9 | #
10 | # GitHub: https://github.com/188080501/
11 | #
12 |
13 | include( $$PWD/WelcomeGroup/WelcomeGroup.pri )
14 | include( $$PWD/TextGroup/TextGroup.pri )
15 | include( $$PWD/CalculateGroup/CalculateGroup.pri )
16 | include( $$PWD/MakeGroup/MakeGroup.pri )
17 | include( $$PWD/ToolsGroup/ToolsGroup.pri )
18 | include( $$PWD/QtGroup/QtGroup.pri )
19 |
--------------------------------------------------------------------------------
/cpp/JQToolsManage:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #include "jqtools_manage.hpp"
14 |
--------------------------------------------------------------------------------
/cpp/jqtools_manage.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | This file is part of JQTools
3 |
4 | Project introduce: https://github.com/188080501/JQTools
5 |
6 | Copyright: Jason
7 |
8 | Contact email: Jason@JasonServer.com
9 |
10 | GitHub: https://github.com/188080501/
11 | */
12 |
13 | #ifndef __CPP_JQTOOLS_MANAGE_HPP__
14 | #define __CPP_JQTOOLS_MANAGE_HPP__
15 |
16 | // Qt ib import
17 | #include
18 | #include
19 |
20 | // JQToolsLibrary import
21 | #include
22 |
23 | class JQToolsManage: public AbstractTool
24 | {
25 | Q_OBJECT
26 |
27 | public:
28 | JQToolsManage() = default;
29 |
30 | ~JQToolsManage() = default;
31 | };
32 |
33 | #endif//__CPP_JQTOOLS_MANAGE_HPP__
34 |
--------------------------------------------------------------------------------
/cpp/stable.h:
--------------------------------------------------------------------------------
1 | #if defined __cplusplus
2 |
3 | #include
4 | #include
5 | #include
6 | #include
7 | #include
8 |
9 | #include
10 | #include
11 | #include
12 | #include
13 | #include
14 | #include
15 | #include
16 | #include
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 | #include
23 | #include
24 | #include
25 | #include
26 | #include
27 | #include
28 | #include
29 | #include
30 | #include
31 | #include
32 | #include
33 | #include
34 | #include
35 | #include
36 | #include
37 | #include
38 |
39 | #endif
40 |
--------------------------------------------------------------------------------
/icon/icon.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/icon/icon.icns
--------------------------------------------------------------------------------
/icon/icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/icon/icon.ico
--------------------------------------------------------------------------------
/library/JQLibrary/bin/JQGuetzli/x86_64/macx-clang/gflags/libgflags.2.2.0.dylib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/library/JQLibrary/bin/JQGuetzli/x86_64/macx-clang/gflags/libgflags.2.2.0.dylib
--------------------------------------------------------------------------------
/library/JQLibrary/bin/JQGuetzli/x86_64/macx-clang/png/libpng16.16.dylib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/library/JQLibrary/bin/JQGuetzli/x86_64/macx-clang/png/libpng16.16.dylib
--------------------------------------------------------------------------------
/library/JQLibrary/include/JQDeclare:
--------------------------------------------------------------------------------
1 | #include "jqdeclare.hpp"
2 |
--------------------------------------------------------------------------------
/library/JQLibrary/include/JQGuetzli/guetzli/dct_double.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 Google Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef GUETZLI_DCT_DOUBLE_H_
18 | #define GUETZLI_DCT_DOUBLE_H_
19 |
20 | namespace guetzli {
21 |
22 | // Performs in-place floating point 8x8 DCT on block[0..63].
23 | // Note that the DCT used here is the DCT-2 with the first term multiplied by
24 | // 1/sqrt(2) and the result scaled by 1/2.
25 | void ComputeBlockDCTDouble(double block[64]);
26 |
27 | // Performs in-place floating point 8x8 inverse DCT on block[0..63].
28 | void ComputeBlockIDCTDouble(double block[64]);
29 |
30 | } // namespace guetzli
31 |
32 | #endif // GUETZLI_DCT_DOUBLE_H_
33 |
--------------------------------------------------------------------------------
/library/JQLibrary/include/JQGuetzli/guetzli/fast_log.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 Google Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef GUETZLI_FAST_LOG_H_
18 | #define GUETZLI_FAST_LOG_H_
19 |
20 | #include
21 |
22 | namespace guetzli {
23 |
24 | inline int Log2FloorNonZero(uint32_t n) {
25 | #ifdef __GNUC__
26 | return 31 ^ __builtin_clz(n);
27 | #else
28 | unsigned int result = 0;
29 | while (n >>= 1) result++;
30 | return result;
31 | #endif
32 | }
33 |
34 | inline int Log2Floor(uint32_t n) {
35 | return n == 0 ? -1 : Log2FloorNonZero(n);
36 | }
37 |
38 | } // namespace guetzli
39 |
40 | #endif // GUETZLI_FAST_LOG_H_
41 |
--------------------------------------------------------------------------------
/library/JQLibrary/include/JQGuetzli/guetzli/fdct.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 Google Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef GUETZLI_FDCT_H_
18 | #define GUETZLI_FDCT_H_
19 |
20 | #include "guetzli/jpeg_data.h"
21 |
22 | namespace guetzli {
23 |
24 | // Computes the DCT (Discrete Cosine Transform) of the 8x8 array in 'block',
25 | // scaled up by a factor of 16. The values in 'block' are laid out row-by-row
26 | // and the result is written to the same memory area.
27 | void ComputeBlockDCT(coeff_t* block);
28 |
29 | } // namespace guetzli
30 |
31 | #endif // GUETZLI_FDCT_H_
32 |
--------------------------------------------------------------------------------
/library/JQLibrary/include/JQGuetzli/guetzli/gamma_correct.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 Google Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef GUETZLI_GAMMA_CORRECT_H_
18 | #define GUETZLI_GAMMA_CORRECT_H_
19 |
20 | namespace guetzli {
21 |
22 | const double* Srgb8ToLinearTable();
23 |
24 | } // namespace guetzli
25 |
26 | #endif // GUETZLI_GAMMA_CORRECT_H_
27 |
--------------------------------------------------------------------------------
/library/JQLibrary/include/JQGuetzli/guetzli/idct.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 Google Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef GUETZLI_IDCT_H_
18 | #define GUETZLI_IDCT_H_
19 |
20 | #include "guetzli/jpeg_data.h"
21 |
22 | namespace guetzli {
23 |
24 | // Fills in 'result' with the inverse DCT of 'block'.
25 | // The arguments 'block' and 'result' point to 8x8 arrays that are arranged in
26 | // a row-by-row memory layout.
27 | void ComputeBlockIDCT(const coeff_t* block, uint8_t* result);
28 |
29 | } // namespace guetzli
30 |
31 | #endif // GUETZLI_IDCT_H_
32 |
--------------------------------------------------------------------------------
/library/JQLibrary/include/JQGuetzli/guetzli/jpeg_data_encoder.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 Google Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef GUETZLI_JPEG_DATA_ENCODER_H_
18 | #define GUETZLI_JPEG_DATA_ENCODER_H_
19 |
20 | #include
21 |
22 | #include "guetzli/jpeg_data.h"
23 |
24 | namespace guetzli {
25 |
26 |
27 | // Adds APP0 header data.
28 | void AddApp0Data(JPEGData* jpg);
29 |
30 | // Creates a JPEG from the rgb pixel data. Returns true on success.
31 | bool EncodeRGBToJpeg(const std::vector& rgb, int w, int h,
32 | JPEGData* jpg);
33 |
34 | // Creates a JPEG from the rgb pixel data. Returns true on success. The given
35 | // quantization table must have 3 * kDCTBlockSize values.
36 | bool EncodeRGBToJpeg(const std::vector& rgb, int w, int h,
37 | const int* quant, JPEGData* jpg);
38 |
39 | } // namespace guetzli
40 |
41 | #endif // GUETZLI_JPEG_DATA_ENCODER_H_
42 |
--------------------------------------------------------------------------------
/library/JQLibrary/include/JQGuetzli/guetzli/quality.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 Google Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef GUETZLI_QUALITY_H_
18 | #define GUETZLI_QUALITY_H_
19 |
20 | namespace guetzli {
21 |
22 | double ButteraugliScoreForQuality(double quality);
23 |
24 | } // namespace guetzli
25 |
26 | #endif // GUETZLI_QUALITY_H_
27 |
--------------------------------------------------------------------------------
/library/JQLibrary/include/JQGuetzli/guetzli/quantize.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 Google Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef GUETZLI_QUANTIZE_H_
18 | #define GUETZLI_QUANTIZE_H_
19 |
20 | #include "guetzli/jpeg_data.h"
21 |
22 | namespace guetzli {
23 |
24 | inline coeff_t Quantize(coeff_t raw_coeff, int quant) {
25 | const int r = raw_coeff % quant;
26 | const coeff_t delta =
27 | 2 * r > quant ? quant - r : (-2) * r > quant ? -quant - r : -r;
28 | return raw_coeff + delta;
29 | }
30 |
31 | bool QuantizeBlock(coeff_t block[kDCTBlockSize], const int q[kDCTBlockSize]);
32 |
33 | } // namespace guetzli
34 |
35 | #endif // GUETZLI_QUANTIZE_H_
36 |
--------------------------------------------------------------------------------
/library/JQLibrary/include/JQGuetzli/guetzli/score.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 Google Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef GUETZLI_SCORE_H_
18 | #define GUETZLI_SCORE_H_
19 |
20 | #include
21 |
22 | namespace guetzli {
23 |
24 | double ScoreJPEG(double butteraugli_distance, int size,
25 | double butteraugli_target);
26 |
27 | } // namespace guetzli
28 | #endif // GUETZLI_SCORE_H_
29 |
--------------------------------------------------------------------------------
/library/JQLibrary/include/JQGuetzli/guetzli/stats.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016 Google Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef GUETZLI_STATS_H_
18 | #define GUETZLI_STATS_H_
19 |
20 | #include
21 | #include