├── .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 22 | #include 23 | #include 24 | #include 25 | 26 | 27 | namespace guetzli { 28 | 29 | static const char* const kNumItersCnt = "number of iterations"; 30 | static const char* const kNumItersUpCnt = "number of iterations up"; 31 | static const char* const kNumItersDownCnt = "number of iterations down"; 32 | 33 | struct ProcessStats { 34 | ProcessStats() {} 35 | std::map counters; 36 | std::string* debug_output = nullptr; 37 | FILE* debug_output_file = nullptr; 38 | 39 | std::string filename; 40 | }; 41 | 42 | } // namespace guetzli 43 | 44 | #endif // GUETZLI_STATS_H_ 45 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQGuetzli/guetzli/debug_print.cc: -------------------------------------------------------------------------------- 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 | #include "guetzli/debug_print.h" 18 | 19 | namespace guetzli { 20 | 21 | void PrintDebug(ProcessStats* stats, std::string s) { 22 | if (stats->debug_output) { 23 | stats->debug_output->append(s); 24 | } 25 | if (stats->debug_output_file) { 26 | fprintf(stats->debug_output_file, "%s", s.c_str()); 27 | } 28 | } 29 | 30 | } // namespace guetzli 31 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQGuetzli/guetzli/gamma_correct.cc: -------------------------------------------------------------------------------- 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 | #include "guetzli/gamma_correct.h" 18 | 19 | #include 20 | 21 | namespace guetzli { 22 | 23 | const double* NewSrgb8ToLinearTable() { 24 | double* table = new double[256]; 25 | int i = 0; 26 | for (; i < 11; ++i) { 27 | table[i] = i / 12.92; 28 | } 29 | for (; i < 256; ++i) { 30 | table[i] = 255.0 * std::pow(((i / 255.0) + 0.055) / 1.055, 2.4); 31 | } 32 | return table; 33 | } 34 | 35 | const double* Srgb8ToLinearTable() { 36 | static const double* const kSrgb8ToLinearTable = NewSrgb8ToLinearTable(); 37 | return kSrgb8ToLinearTable; 38 | } 39 | 40 | } // namespace guetzli 41 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQGuetzli/guetzli/quantize.cc: -------------------------------------------------------------------------------- 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 | #include "guetzli/quantize.h" 18 | 19 | namespace guetzli { 20 | 21 | bool QuantizeBlock(coeff_t block[kDCTBlockSize], 22 | const int q[kDCTBlockSize]) { 23 | bool changed = false; 24 | for (int k = 0; k < kDCTBlockSize; ++k) { 25 | coeff_t coeff = Quantize(block[k], q[k]); 26 | changed = changed || (coeff != block[k]); 27 | block[k] = coeff; 28 | } 29 | return changed; 30 | } 31 | 32 | } // namespace guetzli 33 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQGuetzli/guetzli/score.cc: -------------------------------------------------------------------------------- 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 | #include "guetzli/score.h" 18 | 19 | #include 20 | 21 | namespace guetzli { 22 | 23 | double ScoreJPEG(double butteraugli_distance, int size, 24 | double butteraugli_target) { 25 | constexpr double kScale = 50; 26 | constexpr double kMaxExponent = 10; 27 | constexpr double kLargeSize = 1e30; 28 | // TODO(user): The score should also depend on distance below target (and be 29 | // smooth). 30 | double diff = butteraugli_distance - butteraugli_target; 31 | if (diff <= 0.0) { 32 | return size; 33 | } else { 34 | double exponent = kScale * diff; 35 | if (exponent > kMaxExponent) { 36 | return kLargeSize * std::exp(kMaxExponent) * diff + size; 37 | } else { 38 | return std::exp(exponent) * size; 39 | } 40 | } 41 | } 42 | 43 | } // namespace guetzli 44 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/bigint/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | sample 3 | testsuite 4 | testsuite.expected 5 | testsuite.out 6 | testsuite.err 7 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/bigint/BigIntegerAlgorithms.hh: -------------------------------------------------------------------------------- 1 | #ifndef BIGINTEGERALGORITHMS_H 2 | #define BIGINTEGERALGORITHMS_H 3 | 4 | #include "BigInteger.hh" 5 | 6 | /* Some mathematical algorithms for big integers. 7 | * This code is new and, as such, experimental. */ 8 | 9 | // Returns the greatest common divisor of a and b. 10 | BigUnsigned gcd(BigUnsigned a, BigUnsigned b); 11 | 12 | /* Extended Euclidean algorithm. 13 | * Given m and n, finds gcd g and numbers r, s such that r*m + s*n == g. */ 14 | void extendedEuclidean(BigInteger m, BigInteger n, 15 | BigInteger &g, BigInteger &r, BigInteger &s); 16 | 17 | /* Returns the multiplicative inverse of x modulo n, or throws an exception if 18 | * they have a common factor. */ 19 | BigUnsigned modinv(const BigInteger &x, const BigUnsigned &n); 20 | 21 | // Returns (base ^ exponent) % modulus. 22 | BigUnsigned modexp(const BigInteger &base, const BigUnsigned &exponent, 23 | const BigUnsigned &modulus); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/bigint/BigIntegerLibrary.hh: -------------------------------------------------------------------------------- 1 | // This header file includes all of the library header files. 2 | 3 | #include "NumberlikeArray.hh" 4 | #include "BigUnsigned.hh" 5 | #include "BigInteger.hh" 6 | #include "BigIntegerAlgorithms.hh" 7 | #include "BigUnsignedInABase.hh" 8 | #include "BigIntegerUtils.hh" 9 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/win32/zxing/iconv.h: -------------------------------------------------------------------------------- 1 | #ifndef _LIBICONV_H 2 | #define _LIBICONV_H 3 | #include 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | typedef void* iconv_t; 8 | iconv_t iconv_open(const char *tocode, const char *fromcode); 9 | int iconv_close(iconv_t cd); 10 | size_t iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); 11 | #ifdef __cplusplus 12 | } 13 | #endif 14 | #endif//_LIBICONV_H -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/BarcodeFormat.cpp: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | /* 3 | * Created by Christian Brunschen on 13/05/2008. 4 | * Copyright 2008 ZXing authors All rights reserved. 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | #include 20 | 21 | const char* zxing::BarcodeFormat::barcodeFormatNames[] = { 22 | 0, 23 | "AZTEC", 24 | "CODABAR", 25 | "CODE_39", 26 | "CODE_93", 27 | "CODE_128", 28 | "DATA_MATRIX", 29 | "EAN_8", 30 | "EAN_13", 31 | "ITF", 32 | "MAXICODE", 33 | "PDF_417", 34 | "QR_CODE", 35 | "RSS_14", 36 | "RSS_EXPANDED", 37 | "UPC_A", 38 | "UPC_E", 39 | "UPC_EAN_EXTENSION" 40 | }; 41 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/Binarizer.cpp: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | /* 3 | * Binarizer.cpp 4 | * zxing 5 | * 6 | * Created by Ralf Kistner on 16/10/2009. 7 | * Copyright 2008 ZXing authors All rights reserved. 8 | * Modified by Lukasz Warchol on 02/02/2010. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | #include 24 | 25 | namespace zxing { 26 | 27 | Binarizer::Binarizer(Ref source) : source_(source) { 28 | } 29 | 30 | Binarizer::~Binarizer() { 31 | } 32 | 33 | Ref Binarizer::getLuminanceSource() const { 34 | return source_; 35 | } 36 | 37 | int Binarizer::getWidth() const { 38 | return source_->getWidth(); 39 | } 40 | 41 | int Binarizer::getHeight() const { 42 | return source_->getHeight(); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/ChecksumException.cpp: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | /* 3 | * ChecksumException.cpp 4 | * zxing 5 | * 6 | * Created by Christian Brunschen on 13/05/2008. 7 | * Copyright 2008 ZXing authors All rights reserved. 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | #include 23 | 24 | using zxing::ChecksumException; 25 | 26 | ChecksumException::ChecksumException() throw() {} 27 | ChecksumException::ChecksumException(const char *msg) throw() : ReaderException(msg) {} 28 | ChecksumException::~ChecksumException() throw() {} 29 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/ChecksumException.h: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | 3 | #ifndef __CHECKSUM_EXCEPTION_H__ 4 | #define __CHECKSUM_EXCEPTION_H__ 5 | 6 | /* 7 | * Copyright 20011 ZXing authors 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | #include 23 | 24 | namespace zxing { 25 | class ChecksumException : public ReaderException { 26 | typedef ReaderException Base; 27 | public: 28 | ChecksumException() throw(); 29 | ChecksumException(const char *msg) throw(); 30 | ~ChecksumException() throw(); 31 | }; 32 | } 33 | 34 | #endif // __CHECKSUM_EXCEPTION_H__ 35 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/Exception.cpp: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | /* 3 | * Exception.cpp 4 | * ZXing 5 | * 6 | * Created by Christian Brunschen on 03/06/2008. 7 | * Copyright 2008-2011 ZXing authors All rights reserved. 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | 21 | */ 22 | 23 | #include 24 | #include 25 | #include 26 | 27 | using zxing::Exception; 28 | 29 | void Exception::deleteMessage() { 30 | delete [] message; 31 | } 32 | 33 | char const* Exception::copy(char const* msg) { 34 | char* message = 0; 35 | if (msg) { 36 | int l = static_cast(strlen(msg)+1); 37 | if (l) { 38 | message = new char[l]; 39 | strcpy(message, msg); 40 | } 41 | } 42 | return message; 43 | } 44 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/FormatException.cpp: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | /* 3 | * FormatException.cpp 4 | * zxing 5 | * 6 | * Created by Christian Brunschen on 13/05/2008. 7 | * Copyright 2008 ZXing authors All rights reserved. 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | #include 23 | 24 | namespace zxing { 25 | 26 | FormatException::FormatException() {} 27 | 28 | FormatException::FormatException(const char *msg) : 29 | ReaderException(msg) { 30 | } 31 | 32 | FormatException::~FormatException() throw() { 33 | } 34 | 35 | FormatException const& 36 | FormatException::getFormatInstance() { 37 | static FormatException instance; 38 | return instance; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/FormatException.h: -------------------------------------------------------------------------------- 1 | #ifndef __FORMAT_EXCEPTION_H__ 2 | #define __FORMAT_EXCEPTION_H__ 3 | 4 | /* 5 | * FormatException.h 6 | * zxing 7 | * 8 | * Copyright 2010 ZXing authors All rights reserved. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | #include 24 | 25 | namespace zxing { 26 | 27 | class FormatException : public ReaderException { 28 | public: 29 | FormatException(); 30 | FormatException(const char *msg); 31 | ~FormatException() throw(); 32 | 33 | static FormatException const& getFormatInstance(); 34 | }; 35 | 36 | } 37 | #endif // __FORMAT_EXCEPTION_H__ 38 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/IllegalStateException.h: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | 3 | #ifndef __ILLEGAL_STATE_EXCEPTION_H__ 4 | #define __ILLEGAL_STATE_EXCEPTION_H__ 5 | 6 | /* 7 | * Copyright 20011 ZXing authors 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may illegal use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | #include 23 | 24 | namespace zxing { 25 | 26 | class IllegalStateException : public ReaderException { 27 | public: 28 | IllegalStateException() throw() {} 29 | IllegalStateException(const char *msg) throw() : ReaderException(msg) {} 30 | ~IllegalStateException() throw() {} 31 | }; 32 | 33 | } 34 | 35 | #endif // __ILLEGAL_STATE_EXCEPTION_H__ 36 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/NotFoundException.h: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | 3 | #ifndef __NOT_FOUND_EXCEPTION_H__ 4 | #define __NOT_FOUND_EXCEPTION_H__ 5 | 6 | /* 7 | * Copyright 20011 ZXing authors 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | #include 23 | 24 | namespace zxing { 25 | 26 | class NotFoundException : public ReaderException { 27 | public: 28 | NotFoundException() throw() {} 29 | NotFoundException(const char *msg) throw() : ReaderException(msg) {} 30 | ~NotFoundException() throw() {} 31 | }; 32 | 33 | } 34 | 35 | #endif // __NOT_FOUND_EXCEPTION_H__ 36 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/Reader.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Reader.cpp 3 | * zxing 4 | * 5 | * Created by Christian Brunschen on 13/05/2008. 6 | * Copyright 2008 ZXing authors All rights reserved. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | #include 22 | 23 | namespace zxing { 24 | 25 | Reader::~Reader() { } 26 | 27 | Ref Reader::decode(Ref image) { 28 | return decode(image, DecodeHints::DEFAULT_HINT); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/Reader.h: -------------------------------------------------------------------------------- 1 | #ifndef __READER_H__ 2 | #define __READER_H__ 3 | 4 | /* 5 | * Reader.h 6 | * zxing 7 | * 8 | * Copyright 2010 ZXing authors All rights reserved. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | #include 24 | #include 25 | #include 26 | 27 | namespace zxing { 28 | 29 | class Reader : public Counted { 30 | protected: 31 | Reader() {} 32 | public: 33 | virtual Ref decode(Ref image); 34 | virtual Ref decode(Ref image, DecodeHints hints) = 0; 35 | virtual ~Reader(); 36 | }; 37 | 38 | } 39 | 40 | #endif // __READER_H__ 41 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/ReaderException.h: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | #ifndef __READER_EXCEPTION_H__ 3 | #define __READER_EXCEPTION_H__ 4 | 5 | /* 6 | * ReaderException.h 7 | * zxing 8 | * 9 | * Copyright 2010 ZXing authors All rights reserved. 10 | * 11 | * Licensed under the Apache License, Version 2.0 (the "License"); 12 | * you may not use this file except in compliance with the License. 13 | * You may obtain a copy of the License at 14 | * 15 | * http://www.apache.org/licenses/LICENSE-2.0 16 | * 17 | * Unless required by applicable law or agreed to in writing, software 18 | * distributed under the License is distributed on an "AS IS" BASIS, 19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 | * See the License for the specific language governing permissions and 21 | * limitations under the License. 22 | */ 23 | 24 | #include 25 | 26 | namespace zxing { 27 | 28 | class ReaderException : public Exception { 29 | public: 30 | ReaderException() throw() {} 31 | ReaderException(char const* msg) throw() : Exception(msg) {} 32 | ~ReaderException() throw() {} 33 | }; 34 | 35 | } 36 | 37 | #endif // __READER_EXCEPTION_H__ 38 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/ResultIO.cpp: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | /* 3 | * ResultIO.cpp 4 | * zxing 5 | * 6 | * Created by Christian Brunschen on 13/05/2008. 7 | * Copyright 2008 ZXing authors All rights reserved. 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | #include 23 | 24 | using zxing::Result; 25 | using std::ostream; 26 | 27 | ostream& zxing::operator<<(ostream &out, Result& result) { 28 | if (result.text_ != 0) { 29 | out << result.text_->getText(); 30 | } else { 31 | out << "[" << result.rawBytes_->size() << " bytes]"; 32 | } 33 | return out; 34 | } 35 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/ResultPointCallback.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ResultPointCallback.cpp 3 | * zxing 4 | * 5 | * Copyright 2010 ZXing authors All rights reserved. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | 20 | #include 21 | 22 | namespace zxing { 23 | 24 | ResultPointCallback::~ResultPointCallback() {} 25 | 26 | } 27 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/ResultPointCallback.h: -------------------------------------------------------------------------------- 1 | #ifndef __RESULT_POINT_CALLBACK_H__ 2 | #define __RESULT_POINT_CALLBACK_H__ 3 | 4 | /* 5 | * ResultPointCallback.h 6 | * zxing 7 | * 8 | * Copyright 2010 ZXing authors All rights reserved. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | #include 24 | 25 | namespace zxing { 26 | 27 | class ResultPoint; 28 | 29 | class ResultPointCallback : public Counted { 30 | protected: 31 | ResultPointCallback() {} 32 | public: 33 | virtual void foundPossibleResultPoint(ResultPoint const& point) = 0; 34 | virtual ~ResultPointCallback(); 35 | }; 36 | 37 | } 38 | 39 | #endif // __RESULT_POINT_CALLBACK_H__ 40 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/common/BitArrayIO.cpp: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | /* 3 | * Copyright 2010 ZXing authors. All rights reserved. 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | #include 19 | 20 | using zxing::BitArray; 21 | using std::ostream; 22 | 23 | ostream& zxing::operator << (ostream& os, BitArray const& ba) { 24 | for (int i = 0, size = ba.getSize(); i < size; i++) { 25 | if ((i & 0x07) == 0) { 26 | os << ' '; 27 | } 28 | os << (ba.get(i) ? 'X' : '.'); 29 | } 30 | return os; 31 | } 32 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/common/DetectorResult.cpp: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | /* 3 | * DetectorResult.cpp 4 | * zxing 5 | * 6 | * Created by Christian Brunschen on 14/05/2008. 7 | * Copyright 2008 ZXing authors All rights reserved. 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | #include 23 | 24 | namespace zxing { 25 | 26 | DetectorResult::DetectorResult(Ref bits, 27 | ArrayRef< Ref > points) 28 | : bits_(bits), points_(points) { 29 | } 30 | 31 | Ref DetectorResult::getBits() { 32 | return bits_; 33 | } 34 | 35 | ArrayRef< Ref > DetectorResult::getPoints() { 36 | return points_; 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/common/DetectorResult.h: -------------------------------------------------------------------------------- 1 | #ifndef __DETECTOR_RESULT_H__ 2 | #define __DETECTOR_RESULT_H__ 3 | 4 | /* 5 | * DetectorResult.h 6 | * zxing 7 | * 8 | * Copyright 2010 ZXing authors All rights reserved. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | 28 | namespace zxing { 29 | 30 | class DetectorResult : public Counted { 31 | private: 32 | Ref bits_; 33 | ArrayRef< Ref > points_; 34 | 35 | public: 36 | DetectorResult(Ref bits, ArrayRef< Ref > points); 37 | Ref getBits(); 38 | ArrayRef< Ref > getPoints(); 39 | }; 40 | 41 | } 42 | 43 | #endif // __DETECTOR_RESULT_H__ 44 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/common/IllegalArgumentException.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * IllegalArgumentException.cpp 3 | * zxing 4 | * 5 | * Created by Christian Brunschen on 06/05/2008. 6 | * Copyright 2008 Google UK. All rights reserved. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | #include 22 | 23 | using zxing::IllegalArgumentException; 24 | 25 | IllegalArgumentException::IllegalArgumentException() : Exception() {} 26 | IllegalArgumentException::IllegalArgumentException(const char *msg) : Exception(msg) {} 27 | IllegalArgumentException::~IllegalArgumentException() throw() {} 28 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/common/IllegalArgumentException.h: -------------------------------------------------------------------------------- 1 | #ifndef __ILLEGAL_ARGUMENT_EXCEPTION_H__ 2 | #define __ILLEGAL_ARGUMENT_EXCEPTION_H__ 3 | 4 | /* 5 | * IllegalArgumentException.h 6 | * zxing 7 | * 8 | * Copyright 2010 ZXing authors All rights reserved. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | #include 24 | 25 | namespace zxing { 26 | 27 | class IllegalArgumentException : public Exception { 28 | public: 29 | IllegalArgumentException(); 30 | IllegalArgumentException(const char *msg); 31 | ~IllegalArgumentException() throw(); 32 | }; 33 | 34 | } 35 | 36 | #endif // __ILLEGAL_ARGUMENT_EXCEPTION_H__ 37 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/common/Point.h: -------------------------------------------------------------------------------- 1 | #ifndef __POINT_H__ 2 | #define __POINT_H__ 3 | 4 | /* 5 | * Point.h 6 | * zxing 7 | * 8 | * Copyright 2010 ZXing authors All rights reserved. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | namespace zxing { 24 | class PointI { 25 | public: 26 | int x; 27 | int y; 28 | }; 29 | 30 | class Point { 31 | public: 32 | Point() : x(0.0f), y(0.0f) {}; 33 | Point(float x_, float y_) : x(x_), y(y_) {}; 34 | 35 | float x; 36 | float y; 37 | }; 38 | 39 | class Line { 40 | public: 41 | Line(Point start_, Point end_) : start(start_), end(end_) {}; 42 | 43 | Point start; 44 | Point end; 45 | }; 46 | } 47 | #endif // POINT_H_ 48 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/common/detector/JavaMath.h: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | #ifndef __ZXING_COMMON_DETECTOR_MATH_H__ 3 | #define __ZXING_COMMON_DETECTOR_MATH_H__ 4 | /* 5 | * Copyright 2012 ZXing authors All rights reserved. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | 20 | #include 21 | 22 | namespace zxing { 23 | namespace common { 24 | namespace detector { 25 | 26 | class Math { 27 | private: 28 | Math(); 29 | ~Math(); 30 | public: 31 | 32 | // Java standard Math.round 33 | static inline int round(float a) { 34 | return (int)std::floor(a +0.5f); 35 | } 36 | 37 | }; 38 | 39 | } 40 | } 41 | } 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/common/reedsolomon/ReedSolomonException.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * ReedSolomonException.cpp 3 | * zxing 4 | * 5 | * Created by Christian Brunschen on 06/05/2008. 6 | * Copyright 2008 Google UK. All rights reserved. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | #include 22 | 23 | namespace zxing { 24 | ReedSolomonException::ReedSolomonException(const char *msg) throw() : 25 | Exception(msg) { 26 | } 27 | ReedSolomonException::~ReedSolomonException() throw() { 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/common/reedsolomon/ReedSolomonException.h: -------------------------------------------------------------------------------- 1 | #ifndef __REED_SOLOMON_EXCEPTION_H__ 2 | #define __REED_SOLOMON_EXCEPTION_H__ 3 | 4 | /* 5 | * ReedSolomonException.h 6 | * zxing 7 | * 8 | * Copyright 2010 ZXing authors All rights reserved. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | #include 24 | 25 | namespace zxing { 26 | class ReedSolomonException : public Exception { 27 | public: 28 | ReedSolomonException(const char *msg) throw(); 29 | ~ReedSolomonException() throw(); 30 | }; 31 | } 32 | 33 | #endif // __REED_SOLOMON_EXCEPTION_H__ 34 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/datamatrix/DataMatrixReader.h: -------------------------------------------------------------------------------- 1 | #ifndef __DATA_MATRIX_READER_H__ 2 | #define __DATA_MATRIX_READER_H__ 3 | 4 | /* 5 | * DataMatrixReader.h 6 | * zxing 7 | * 8 | * Created by Luiz Silva on 09/02/2010. 9 | * Copyright 2010 ZXing authors All rights reserved. 10 | * 11 | * Licensed under the Apache License, Version 2.0 (the "License"); 12 | * you may not use this file except in compliance with the License. 13 | * You may obtain a copy of the License at 14 | * 15 | * http://www.apache.org/licenses/LICENSE-2.0 16 | * 17 | * Unless required by applicable law or agreed to in writing, software 18 | * distributed under the License is distributed on an "AS IS" BASIS, 19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 | * See the License for the specific language governing permissions and 21 | * limitations under the License. 22 | */ 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | namespace zxing { 29 | namespace datamatrix { 30 | 31 | class DataMatrixReader : public Reader { 32 | private: 33 | Decoder decoder_; 34 | 35 | public: 36 | DataMatrixReader(); 37 | virtual Ref decode(Ref image, DecodeHints hints); 38 | virtual ~DataMatrixReader(); 39 | 40 | }; 41 | 42 | } 43 | } 44 | 45 | #endif // __DATA_MATRIX_READER_H__ 46 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/datamatrix/decoder/Decoder.h: -------------------------------------------------------------------------------- 1 | #ifndef __DECODER_DM_H__ 2 | #define __DECODER_DM_H__ 3 | 4 | /* 5 | * Decoder.h 6 | * zxing 7 | * 8 | * Created by Luiz Silva on 09/02/2010. 9 | * Copyright 2010 ZXing authors All rights reserved. 10 | * 11 | * Licensed under the Apache License, Version 2.0 (the "License"); 12 | * you may not use this file except in compliance with the License. 13 | * You may obtain a copy of the License at 14 | * 15 | * http://www.apache.org/licenses/LICENSE-2.0 16 | * 17 | * Unless required by applicable law or agreed to in writing, software 18 | * distributed under the License is distributed on an "AS IS" BASIS, 19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 | * See the License for the specific language governing permissions and 21 | * limitations under the License. 22 | */ 23 | 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | 30 | 31 | namespace zxing { 32 | namespace datamatrix { 33 | 34 | class Decoder { 35 | private: 36 | ReedSolomonDecoder rsDecoder_; 37 | 38 | void correctErrors(ArrayRef bytes, int numDataCodewords); 39 | 40 | public: 41 | Decoder(); 42 | 43 | Ref decode(Ref bits); 44 | }; 45 | 46 | } 47 | } 48 | 49 | #endif // __DECODER_DM_H__ 50 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/datamatrix/detector/CornerPoint.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * CornerPoint.cpp 3 | * zxing 4 | * 5 | * Created by Luiz Silva on 09/02/2010. 6 | * Copyright 2010 ZXing authors All rights reserved. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | #include 22 | 23 | 24 | namespace zxing { 25 | namespace datamatrix { 26 | 27 | using namespace std; 28 | 29 | CornerPoint::CornerPoint(float posX, float posY) : 30 | ResultPoint(posX,posY), counter_(0) { 31 | } 32 | 33 | int CornerPoint::getCount() const { 34 | return counter_; 35 | } 36 | 37 | void CornerPoint::incrementCount() { 38 | counter_++; 39 | } 40 | 41 | bool CornerPoint::equals(Ref other) const { 42 | return posX_ == other->getX() && posY_ == other->getY(); 43 | } 44 | 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/datamatrix/detector/CornerPoint.h: -------------------------------------------------------------------------------- 1 | #ifndef __CORNER_FINDER_H__ 2 | #define __CORNER_FINDER_H__ 3 | 4 | /* 5 | * CornerPoint.h 6 | * zxing 7 | * 8 | * Created by Luiz Silva on 09/02/2010. 9 | * Copyright 2010 ZXing authors All rights reserved. 10 | * 11 | * Licensed under the Apache License, Version 2.0 (the "License"); 12 | * you may not use this file except in compliance with the License. 13 | * You may obtain a copy of the License at 14 | * 15 | * http://www.apache.org/licenses/LICENSE-2.0 16 | * 17 | * Unless required by applicable law or agreed to in writing, software 18 | * distributed under the License is distributed on an "AS IS" BASIS, 19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 | * See the License for the specific language governing permissions and 21 | * limitations under the License. 22 | */ 23 | 24 | #include 25 | #include 26 | 27 | namespace zxing { 28 | namespace datamatrix { 29 | 30 | class CornerPoint : public ResultPoint { 31 | private: 32 | int counter_; 33 | 34 | public: 35 | CornerPoint(float posX, float posY); 36 | int getCount() const; 37 | void incrementCount(); 38 | bool equals(Ref other) const; 39 | }; 40 | } 41 | } 42 | 43 | #endif // __CORNER_FINDER_H__ 44 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/datamatrix/detector/DetectorException.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * DetectorException.cpp 3 | * 4 | * Created on: Aug 26, 2011 5 | * Author: luiz 6 | */ 7 | 8 | #include "DetectorException.h" 9 | 10 | namespace zxing { 11 | namespace datamatrix { 12 | 13 | DetectorException::DetectorException(const char *msg) : 14 | Exception(msg) { 15 | 16 | } 17 | 18 | DetectorException::~DetectorException() throw () { 19 | // TODO Auto-generated destructor stub 20 | } 21 | 22 | } 23 | } /* namespace zxing */ 24 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/datamatrix/detector/DetectorException.h: -------------------------------------------------------------------------------- 1 | /* 2 | * DetectorException.h 3 | * 4 | * Created on: Aug 26, 2011 5 | * Author: luiz 6 | */ 7 | 8 | #ifndef DETECTOREXCEPTION_H_ 9 | #define DETECTOREXCEPTION_H_ 10 | 11 | #include 12 | 13 | namespace zxing { 14 | namespace datamatrix { 15 | 16 | class DetectorException : public Exception { 17 | public: 18 | DetectorException(const char *msg); 19 | virtual ~DetectorException() throw(); 20 | }; 21 | } /* namespace nexxera */ 22 | } /* namespace zxing */ 23 | #endif /* DETECTOREXCEPTION_H_ */ 24 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/multi/ByQuadrantReader.h: -------------------------------------------------------------------------------- 1 | #ifndef __BY_QUADRANT_READER_H__ 2 | #define __BY_QUADRANT_READER_H__ 3 | 4 | /* 5 | * Copyright 2011 ZXing authors All rights reserved. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | 20 | #include 21 | #include 22 | #include 23 | #include 24 | 25 | namespace zxing { 26 | namespace multi { 27 | 28 | class ByQuadrantReader : public Reader { 29 | private: 30 | Reader& delegate_; 31 | 32 | public: 33 | ByQuadrantReader(Reader& delegate); 34 | virtual ~ByQuadrantReader(); 35 | virtual Ref decode(Ref image); 36 | virtual Ref decode(Ref image, DecodeHints hints); 37 | }; 38 | 39 | } 40 | } 41 | 42 | #endif // __BY_QUADRANT_READER_H__ 43 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/multi/MultipleBarcodeReader.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011 ZXing authors All rights reserved. 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 | #include 18 | 19 | namespace zxing { 20 | namespace multi { 21 | 22 | MultipleBarcodeReader::~MultipleBarcodeReader() { } 23 | 24 | std::vector > MultipleBarcodeReader::decodeMultiple(Ref image) { 25 | return decodeMultiple(image, DecodeHints::DEFAULT_HINT); 26 | } 27 | 28 | } // End zxing::multi namespace 29 | } // End zxing namespace 30 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/multi/MultipleBarcodeReader.h: -------------------------------------------------------------------------------- 1 | #ifndef __MULTIPLE_BARCODE_READER_H__ 2 | #define __MULTIPLE_BARCODE_READER_H__ 3 | 4 | /* 5 | * Copyright 2011 ZXing authors All rights reserved. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | 26 | namespace zxing { 27 | namespace multi { 28 | 29 | class MultipleBarcodeReader : public Counted { 30 | protected: 31 | MultipleBarcodeReader() {} 32 | public: 33 | virtual std::vector > decodeMultiple(Ref image); 34 | virtual std::vector > decodeMultiple(Ref image, DecodeHints hints) = 0; 35 | virtual ~MultipleBarcodeReader(); 36 | }; 37 | 38 | } 39 | } 40 | 41 | #endif // __MULTIPLE_BARCODE_READER_H__ 42 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/multi/qrcode/QRCodeMultiReader.h: -------------------------------------------------------------------------------- 1 | #ifndef __QRCODE_MULTI_READER_H__ 2 | #define __QRCODE_MULTI_READER_H__ 3 | 4 | /* 5 | * Copyright 2011 ZXing authors All rights reserved. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | 20 | #include 21 | #include 22 | 23 | namespace zxing { 24 | namespace multi { 25 | 26 | class QRCodeMultiReader: public zxing::qrcode::QRCodeReader, public MultipleBarcodeReader { 27 | public: 28 | QRCodeMultiReader(); 29 | virtual ~QRCodeMultiReader(); 30 | virtual std::vector > decodeMultiple(Ref image, DecodeHints hints); 31 | }; 32 | 33 | } 34 | } 35 | 36 | #endif // __QRCODE_MULTI_READER_H__ 37 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/multi/qrcode/detector/MultiDetector.h: -------------------------------------------------------------------------------- 1 | #ifndef __MULTI_DETECTOR_H__ 2 | #define __MULTI_DETECTOR_H__ 3 | 4 | /* 5 | * Copyright 2011 ZXing authors 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | 20 | #include 21 | #include 22 | #include 23 | 24 | namespace zxing { 25 | namespace multi { 26 | 27 | class MultiDetector : public zxing::qrcode::Detector { 28 | public: 29 | MultiDetector(Ref image); 30 | virtual ~MultiDetector(); 31 | virtual std::vector > detectMulti(DecodeHints hints); 32 | }; 33 | 34 | } 35 | } 36 | 37 | #endif // __MULTI_DETECTOR_H__ 38 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/oned/EAN8Reader.h: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | #ifndef __EAN_8_READER_H__ 3 | #define __EAN_8_READER_H__ 4 | 5 | /* 6 | * EAN8Reader.h 7 | * ZXing 8 | * 9 | * Copyright 2010 ZXing authors All rights reserved. 10 | * 11 | * Licensed under the Apache License, Version 2.0 (the "License"); 12 | * you may not use this file except in compliance with the License. 13 | * You may obtain a copy of the License at 14 | * 15 | * http://www.apache.org/licenses/LICENSE-2.0 16 | * 17 | * Unless required by applicable law or agreed to in writing, software 18 | * distributed under the License is distributed on an "AS IS" BASIS, 19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 | * See the License for the specific language governing permissions and 21 | * limitations under the License. 22 | */ 23 | 24 | #include 25 | #include 26 | 27 | namespace zxing { 28 | namespace oned { 29 | 30 | class EAN8Reader : public UPCEANReader { 31 | private: 32 | std::vector decodeMiddleCounters; 33 | 34 | public: 35 | EAN8Reader(); 36 | 37 | int decodeMiddle(Ref row, 38 | Range const& startRange, 39 | std::string& resultString); 40 | 41 | BarcodeFormat getBarcodeFormat(); 42 | }; 43 | 44 | } 45 | } 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/oned/MultiFormatOneDReader.h: -------------------------------------------------------------------------------- 1 | #ifndef __MULTI_FORMAT_ONED_READER_H__ 2 | #define __MULTI_FORMAT_ONED_READER_H__ 3 | /* 4 | * MultiFormatOneDReader.h 5 | * ZXing 6 | * 7 | * Copyright 2010 ZXing authors All rights reserved. 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | 22 | #include 23 | 24 | namespace zxing { 25 | namespace oned { 26 | class MultiFormatOneDReader : public OneDReader { 27 | 28 | private: 29 | std::vector > readers; 30 | public: 31 | MultiFormatOneDReader(DecodeHints hints); 32 | 33 | Ref decodeRow(int rowNumber, Ref row); 34 | }; 35 | } 36 | } 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/oned/MultiFormatUPCEANReader.h: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | #ifndef __MULTI_FORMAT_UPC_EAN_READER_H__ 3 | #define __MULTI_FORMAT_UPC_EAN_READER_H__ 4 | /* 5 | * MultiFormatUPCEANReader.h 6 | * ZXing 7 | * 8 | * Copyright 2010 ZXing authors All rights reserved. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | #include 24 | 25 | namespace zxing { 26 | namespace oned { 27 | 28 | class UPCEANReader; 29 | 30 | class MultiFormatUPCEANReader : public OneDReader { 31 | private: 32 | std::vector< Ref > readers; 33 | public: 34 | MultiFormatUPCEANReader(DecodeHints hints); 35 | Ref decodeRow(int rowNumber, Ref row); 36 | }; 37 | 38 | } 39 | } 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/oned/OneDResultPoint.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * OneDResultPoint.cpp 3 | * ZXing 4 | * 5 | * Copyright 2010 ZXing authors All rights reserved. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | 20 | #include "OneDResultPoint.h" 21 | 22 | namespace zxing { 23 | namespace oned { 24 | 25 | OneDResultPoint::OneDResultPoint(float posX, float posY) : ResultPoint(posX,posY) { 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/oned/OneDResultPoint.h: -------------------------------------------------------------------------------- 1 | #ifndef __ONED_RESULT_POINT_H__ 2 | #define __ONED_RESULT_POINT_H__ 3 | /* 4 | * OneDResultPoint.h 5 | * ZXing 6 | * 7 | * Copyright 2010 ZXing authors All rights reserved. 8 | * 9 | * Licensed under the Apache License, Version 2.0 (the "License"); 10 | * you may not use this file except in compliance with the License. 11 | * You may obtain a copy of the License at 12 | * 13 | * http://www.apache.org/licenses/LICENSE-2.0 14 | * 15 | * Unless required by applicable law or agreed to in writing, software 16 | * distributed under the License is distributed on an "AS IS" BASIS, 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | * See the License for the specific language governing permissions and 19 | * limitations under the License. 20 | */ 21 | #include 22 | #include 23 | 24 | namespace zxing { 25 | namespace oned { 26 | 27 | class OneDResultPoint : public ResultPoint { 28 | 29 | public: 30 | OneDResultPoint(float posX, float posY); 31 | }; 32 | } 33 | } 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/qrcode/QRCodeReader.h: -------------------------------------------------------------------------------- 1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- 2 | #ifndef __QR_CODE_READER_H__ 3 | #define __QR_CODE_READER_H__ 4 | 5 | /* 6 | * QRCodeReader.h 7 | * zxing 8 | * 9 | * Copyright 2010 ZXing authors All rights reserved. 10 | * 11 | * Licensed under the Apache License, Version 2.0 (the "License"); 12 | * you may not use this file except in compliance with the License. 13 | * You may obtain a copy of the License at 14 | * 15 | * http://www.apache.org/licenses/LICENSE-2.0 16 | * 17 | * Unless required by applicable law or agreed to in writing, software 18 | * distributed under the License is distributed on an "AS IS" BASIS, 19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 | * See the License for the specific language governing permissions and 21 | * limitations under the License. 22 | */ 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | namespace zxing { 29 | namespace qrcode { 30 | 31 | class QRCodeReader : public Reader { 32 | private: 33 | Decoder decoder_; 34 | 35 | protected: 36 | Decoder& getDecoder(); 37 | 38 | public: 39 | QRCodeReader(); 40 | virtual ~QRCodeReader(); 41 | 42 | Ref decode(Ref image, DecodeHints hints); 43 | }; 44 | 45 | } 46 | } 47 | 48 | #endif // __QR_CODE_READER_H__ 49 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/qrcode/decoder/DataMask.h: -------------------------------------------------------------------------------- 1 | #ifndef __DATA_MASK_H__ 2 | #define __DATA_MASK_H__ 3 | 4 | /* 5 | * DataMask.h 6 | * zxing 7 | * 8 | * Copyright 2010 ZXing authors All rights reserved. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | #include 24 | #include 25 | #include 26 | 27 | #include 28 | 29 | namespace zxing { 30 | namespace qrcode { 31 | 32 | class DataMask : public Counted { 33 | private: 34 | static std::vector > DATA_MASKS; 35 | 36 | protected: 37 | 38 | public: 39 | static int buildDataMasks(); 40 | DataMask(); 41 | virtual ~DataMask(); 42 | void unmaskBitMatrix(BitMatrix& matrix, size_t dimension); 43 | virtual bool isMasked(size_t x, size_t y) = 0; 44 | static DataMask& forReference(int reference); 45 | }; 46 | 47 | } 48 | } 49 | 50 | #endif // __DATA_MASK_H__ 51 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/qrcode/decoder/Decoder.h: -------------------------------------------------------------------------------- 1 | #ifndef __DECODER_H__ 2 | #define __DECODER_H__ 3 | 4 | /* 5 | * Decoder.h 6 | * zxing 7 | * 8 | * Copyright 2010 ZXing authors All rights reserved. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | 29 | namespace zxing { 30 | namespace qrcode { 31 | 32 | class Decoder { 33 | private: 34 | ReedSolomonDecoder rsDecoder_; 35 | 36 | void correctErrors(ArrayRef bytes, int numDataCodewords); 37 | 38 | public: 39 | Decoder(); 40 | Ref decode(Ref bits); 41 | }; 42 | 43 | } 44 | } 45 | 46 | #endif // __DECODER_H__ 47 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/qrcode/detector/FinderPatternInfo.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * FinderPatternInfo.cpp 3 | * zxing 4 | * 5 | * Created by Christian Brunschen on 13/05/2008. 6 | * Copyright 2008 ZXing authors All rights reserved. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | #include 22 | 23 | namespace zxing { 24 | namespace qrcode { 25 | 26 | FinderPatternInfo::FinderPatternInfo(std::vector > patternCenters) : 27 | bottomLeft_(patternCenters[0]), topLeft_(patternCenters[1]), topRight_(patternCenters[2]) { 28 | } 29 | 30 | Ref FinderPatternInfo::getBottomLeft() { 31 | return bottomLeft_; 32 | } 33 | Ref FinderPatternInfo::getTopLeft() { 34 | return topLeft_; 35 | } 36 | Ref FinderPatternInfo::getTopRight() { 37 | return topRight_; 38 | } 39 | 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeReader/zxing/zxing/qrcode/detector/FinderPatternInfo.h: -------------------------------------------------------------------------------- 1 | #ifndef __FINDER_PATTERN_INFO_H__ 2 | #define __FINDER_PATTERN_INFO_H__ 3 | 4 | /* 5 | * FinderPatternInfo.h 6 | * zxing 7 | * 8 | * Copyright 2010 ZXing authors All rights reserved. 9 | * 10 | * Licensed under the Apache License, Version 2.0 (the "License"); 11 | * you may not use this file except in compliance with the License. 12 | * You may obtain a copy of the License at 13 | * 14 | * http://www.apache.org/licenses/LICENSE-2.0 15 | * 16 | * Unless required by applicable law or agreed to in writing, software 17 | * distributed under the License is distributed on an "AS IS" BASIS, 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | * See the License for the specific language governing permissions and 20 | * limitations under the License. 21 | */ 22 | 23 | #include 24 | #include 25 | #include 26 | #include 27 | 28 | namespace zxing { 29 | namespace qrcode { 30 | 31 | class FinderPatternInfo : public Counted { 32 | private: 33 | Ref bottomLeft_; 34 | Ref topLeft_; 35 | Ref topRight_; 36 | 37 | public: 38 | FinderPatternInfo(std::vector > patternCenters); 39 | 40 | Ref getBottomLeft(); 41 | Ref getTopLeft(); 42 | Ref getTopRight(); 43 | }; 44 | } 45 | } 46 | 47 | #endif // __FINDER_PATTERN_INFO_H__ 48 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeWriter/qrencode/TODO: -------------------------------------------------------------------------------- 1 | Micro QR code encoding is not tested well. 2 | 3 | Documents (not only the README, but also the manual of the library) needs 4 | revision of grammer, spell or to resolve ambiguity or incomplete descriptions. 5 | Feel really free to send us your revision. 6 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeWriter/qrencode/acinclude.m4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/library/JQLibrary/src/JQQRCodeWriter/qrencode/acinclude.m4 -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeWriter/qrencode/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ `uname -s` = Darwin ]; then 6 | LIBTOOLIZE=glibtoolize 7 | else 8 | LIBTOOLIZE=libtoolize 9 | fi 10 | 11 | ACLOCAL_OPT="" 12 | if [ -d /usr/local/share/aclocal ]; then 13 | ACLOCAL_OPT="-I /usr/local/share/aclocal" 14 | elif [ -d /opt/local/share/aclocal ]; then 15 | ACLOCAL_OPT="-I /opt/local/share/aclocal" 16 | elif [ -d /usr/share/aclocal ]; then 17 | ACLOCAL_OPT="-I /usr/share/aclocal" 18 | fi 19 | 20 | if [ ! -d use ]; then 21 | mkdir use 22 | fi 23 | 24 | autoheader 25 | 26 | aclocal $ACLOCAL_OPT 27 | 28 | $LIBTOOLIZE --automake --copy 29 | automake --add-missing --copy 30 | 31 | autoconf 32 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeWriter/qrencode/libqrencode.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libqrencode 7 | Description: A QR Code encoding library 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lqrencode 10 | Libs.private: @LIBPTHREAD@ 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeWriter/qrencode/tests/decoder.h: -------------------------------------------------------------------------------- 1 | #ifndef __DECODER_H__ 2 | #define __DECODER_H__ 3 | 4 | #include "../qrencode.h" 5 | 6 | typedef struct _DataChunk { 7 | QRencodeMode mode; 8 | int size; 9 | int bits; 10 | unsigned char *data; 11 | struct _DataChunk *next; 12 | } DataChunk; 13 | 14 | typedef struct { 15 | int size; 16 | unsigned char *data; 17 | int mqr; 18 | int version; 19 | QRecLevel level; 20 | DataChunk *chunks, *last; 21 | } QRdata; 22 | 23 | struct FormatInfo { 24 | int version; 25 | QRecLevel level; 26 | }; 27 | 28 | extern struct FormatInfo MQRformat[]; 29 | 30 | QRdata *QRdata_new(void); 31 | QRdata *QRdata_newMQR(void); 32 | int QRdata_decodeBitStream(QRdata *qrdata, BitStream *bstream); 33 | void QRdata_dump(QRdata *data); 34 | void QRdata_free(QRdata *data); 35 | 36 | unsigned int QRcode_decodeVersion(QRcode *code); 37 | int QRcode_decodeFormat(QRcode *code, QRecLevel *level, int *mask); 38 | unsigned char *QRcode_unmask(QRcode *code); 39 | unsigned char *QRcode_extractBits(QRcode *code, int *length); 40 | QRdata *QRcode_decodeBits(QRcode *code); 41 | QRdata *QRcode_decode(QRcode *code); 42 | 43 | int QRcode_decodeFormatMQR(QRcode *code, int *vesion, QRecLevel *level, int *mask); 44 | unsigned char *QRcode_unmaskMQR(QRcode *code); 45 | unsigned char *QRcode_extractBitsMQR(QRcode *code, int *length); 46 | QRdata *QRcode_decodeBitsMQR(QRcode *code); 47 | QRdata *QRcode_decodeMQR(QRcode *code); 48 | 49 | #endif /* __DECODER_H__ */ 50 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeWriter/qrencode/tests/frame: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/library/JQLibrary/src/JQQRCodeWriter/qrencode/tests/frame -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeWriter/qrencode/tests/test_all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | ./test_bitstream 3 | ./test_estimatebit 4 | ./test_qrencode 5 | ./test_qrinput 6 | ./test_qrspec 7 | ./test_rs 8 | ./test_split 9 | ./test_mask 10 | ./test_mqrspec 11 | ./test_mmask 12 | ./test_monkey 13 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQQRCodeWriter/qrencode/tests/test_rs.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "common.h" 4 | #include "../qrencode_inner.h" 5 | #include "../qrinput.h" 6 | #include "../rscode.h" 7 | 8 | /* See pp. 73 of JIS X0510:2004 */ 9 | void test_rscode1(void) 10 | { 11 | QRinput *stream; 12 | QRRawCode *code; 13 | static const char str[9] = "01234567"; 14 | static unsigned char correct[26] = { 15 | 0x10, 0x20, 0x0c, 0x56, 0x61, 0x80, 0xec, 0x11, 0xec, 0x11, 0xec, 0x11, 16 | 0xec, 0x11, 0xec, 0x11, 0xa5, 0x24, 0xd4, 0xc1, 0xed, 0x36, 0xc7, 0x87, 17 | 0x2c, 0x55}; 18 | 19 | testStart("RS ecc test"); 20 | stream = QRinput_new(); 21 | QRinput_append(stream, QR_MODE_NUM, 8, (unsigned char *)str); 22 | QRinput_setErrorCorrectionLevel(stream, QR_ECLEVEL_M); 23 | code = QRraw_new(stream); 24 | 25 | testEnd(memcmp(correct + 16, code->rsblock[0].ecc, 10)); 26 | QRinput_free(stream); 27 | QRraw_free(code); 28 | } 29 | 30 | int main(void) 31 | { 32 | test_rscode1(); 33 | 34 | free_rs_cache(); 35 | report(); 36 | 37 | return 0; 38 | } 39 | -------------------------------------------------------------------------------- /library/JQLibrary/src/JQZopfli/zopfli/util.c: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2011 Google Inc. All Rights Reserved. 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 | Author: lode.vandevenne@gmail.com (Lode Vandevenne) 17 | Author: jyrki.alakuijala@gmail.com (Jyrki Alakuijala) 18 | */ 19 | 20 | #include "util.h" 21 | 22 | #include "zopfli.h" 23 | 24 | #include 25 | #include 26 | #include 27 | 28 | void ZopfliInitOptions(ZopfliOptions* options) { 29 | options->verbose = 0; 30 | options->verbose_more = 0; 31 | options->numiterations = 15; 32 | options->blocksplitting = 1; 33 | options->blocksplittinglast = 0; 34 | options->blocksplittingmax = 15; 35 | } 36 | -------------------------------------------------------------------------------- /library/JQNetwork/include/JQNetwork: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | #ifdef QT_QML_LIB 23 | # include 24 | #endif 25 | -------------------------------------------------------------------------------- /library/JQNetwork/include/JQNetworkClient: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #include "jqnetwork_client.h" 14 | -------------------------------------------------------------------------------- /library/JQNetwork/include/JQNetworkClientForQml: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #include "jqnetwork_clientforqml.h" 14 | -------------------------------------------------------------------------------- /library/JQNetwork/include/JQNetworkConnect: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #include "jqnetwork_connect.h" 14 | -------------------------------------------------------------------------------- /library/JQNetwork/include/JQNetworkConnectPool: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #include "jqnetwork_connectpool.h" 14 | -------------------------------------------------------------------------------- /library/JQNetwork/include/JQNetworkEncrypt: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #include "jqnetwork_encrypt.h" 14 | -------------------------------------------------------------------------------- /library/JQNetwork/include/JQNetworkFoundation: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #include "jqnetwork_foundation.h" 14 | -------------------------------------------------------------------------------- /library/JQNetwork/include/JQNetworkLan: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #include "jqnetwork_lan.h" 14 | -------------------------------------------------------------------------------- /library/JQNetwork/include/JQNetworkPackage: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #include "jqnetwork_package.h" 14 | -------------------------------------------------------------------------------- /library/JQNetwork/include/JQNetworkProcessor: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #include "jqnetwork_processor.h" 14 | -------------------------------------------------------------------------------- /library/JQNetwork/include/JQNetworkServer: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #include "jqnetwork_server.h" 14 | -------------------------------------------------------------------------------- /library/JQNetwork/include/jqnetwork_clientforqml.inc: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #ifndef JQNETWORK_INCLUDE_JQNETWORK_CLIENGFORQML_INC_ 14 | #define JQNETWORK_INCLUDE_JQNETWORK_CLIENGFORQML_INC_ 15 | 16 | // JQNetwork lib import 17 | #include "jqnetwork_clientforqml.h" 18 | 19 | inline void JQNetworkClientForQml::runOnClientThread(const std::function &callback) 20 | { 21 | callback(); 22 | } 23 | 24 | #endif//JQNETWORK_INCLUDE_JQNETWORK_CLIENGFORQML_INC_ 25 | -------------------------------------------------------------------------------- /library/JQNetwork/include/jqnetwork_processor.inc: -------------------------------------------------------------------------------- 1 | /* 2 | This file is part of JQNetwork 3 | 4 | Library introduce: https://github.com/188080501/JQNetwork 5 | 6 | Copyright: Jason 7 | 8 | Contact email: Jason@JasonServer.com 9 | 10 | GitHub: https://github.com/188080501/ 11 | */ 12 | 13 | #ifndef JQNETWORK_INCLUDE_JQNETWORK_PROCESSOR_INC_ 14 | #define JQNETWORK_INCLUDE_JQNETWORK_PROCESSOR_INC_ 15 | 16 | // JQNetwork lib import 17 | #include "jqnetwork_processor.h" 18 | 19 | inline void JQNetworkProcessor::deleteByteArray(QByteArray *ptr) 20 | { 21 | delete ptr; 22 | } 23 | 24 | inline void JQNetworkProcessor::deleteVariantMap(QVariantMap *ptr) 25 | { 26 | delete ptr; 27 | } 28 | 29 | #endif//JQNETWORK_INCLUDE_JQNETWORK_PROCESSOR_INC_ 30 | -------------------------------------------------------------------------------- /library/JQNetwork/qml/JQNetwork/JQNetworkClient.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.8 2 | import JQNetworkClientForQml 1.0 3 | 4 | JQNetworkClientForQml { 5 | id: jqNetworkClientForQml 6 | 7 | function onSendSucceed( callback, received ) { 8 | callback( received ); 9 | } 10 | 11 | function onSendFail( callback ) { 12 | callback(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /library/JQNetwork/qml/JQNetwork/qmldir: -------------------------------------------------------------------------------- 1 | module JQNetwork 2 | 3 | JQNetworkClient 1.0 JQNetworkClient.qml 4 | -------------------------------------------------------------------------------- /library/JQNetwork/qml/JQNetworkQml.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | JQNetwork/JQNetworkClient.qml 4 | JQNetwork/qmldir 5 | 6 | 7 | -------------------------------------------------------------------------------- /library/JQToolsLibrary/JQToolsLibrary.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/include/ 15 | 16 | HEADERS *= \ 17 | $$PWD/include/jqtoolslibrary.h 18 | 19 | SOURCES *= \ 20 | $$PWD/src/jqtoolslibrary.cpp 21 | -------------------------------------------------------------------------------- /library/JQToolsLibrary/include/JQToolsLibrary: -------------------------------------------------------------------------------- 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 "jqtoolslibrary.h" 14 | -------------------------------------------------------------------------------- /library/JQToolsLibrary/include/jqtoolslibrary.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 JQTOOLSLIBRARY_H_ 14 | #define JQTOOLSLIBRARY_H_ 15 | 16 | // Qt lib import 17 | #include 18 | #include 19 | 20 | #define JQTOOLS_VERSIONSTRING "24.8.28" 21 | 22 | class QQmlApplicationEngine; 23 | 24 | class AbstractTool: public QObject 25 | { 26 | Q_OBJECT 27 | 28 | public slots: 29 | QString jqToolsVersionString(); 30 | 31 | QString clipboardText(); 32 | 33 | void setClipboardText(const QString &string); 34 | 35 | static void setQmlApplicationEngine(QQmlApplicationEngine *qmlApplicationEngine); 36 | 37 | static QPointer< QQmlApplicationEngine > qmlApplicationEngine(); 38 | 39 | private: 40 | static QPointer< QQmlApplicationEngine > qmlApplicationEngine_; 41 | }; 42 | 43 | #endif//JQTOOLSLIBRARY_H_ 44 | -------------------------------------------------------------------------------- /library/JQToolsLibrary/src/jqtoolslibrary.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 "jqtoolslibrary.h" 14 | 15 | // Qt lib import 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | QPointer< QQmlApplicationEngine > AbstractTool::qmlApplicationEngine_; 22 | 23 | QString AbstractTool::jqToolsVersionString() 24 | { 25 | return JQTOOLS_VERSIONSTRING; 26 | } 27 | 28 | QString AbstractTool::clipboardText() 29 | { 30 | return qApp->clipboard()->text(); 31 | } 32 | 33 | void AbstractTool::setClipboardText(const QString &string) 34 | { 35 | qApp->clipboard()->setText( string ); 36 | } 37 | 38 | void AbstractTool::setQmlApplicationEngine(QQmlApplicationEngine *qmlApplicationEngine) 39 | { 40 | qmlApplicationEngine_ = qmlApplicationEngine; 41 | } 42 | 43 | QPointer< QQmlApplicationEngine > AbstractTool::qmlApplicationEngine() 44 | { 45 | return qmlApplicationEngine_; 46 | } 47 | -------------------------------------------------------------------------------- /library/MaterialUI/Element/BaseListItem.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.5 2 | 3 | View { 4 | id: listItem 5 | anchors { 6 | left: parent.left 7 | right: parent.right 8 | } 9 | 10 | property int margins: (16) 11 | 12 | property bool selected 13 | property bool interactive: true 14 | 15 | property int dividerInset: 0 16 | property bool showDivider: false 17 | 18 | signal clicked() 19 | signal pressAndHold() 20 | 21 | ThinDivider { 22 | anchors.bottom: parent.bottom 23 | anchors.leftMargin: dividerInset 24 | 25 | visible: showDivider 26 | } 27 | 28 | Ink { 29 | id: ink 30 | 31 | onClicked: listItem.clicked() 32 | onPressAndHold: listItem.pressAndHold() 33 | 34 | anchors.fill: parent 35 | 36 | enabled: listItem.interactive 37 | z: -1 38 | } 39 | 40 | tintColor: selected 41 | ? Qt.rgba(0,0,0,0.05) 42 | : ink.containsMouse ? Qt.rgba(0,0,0,0.03) : Qt.rgba(0,0,0,0) 43 | } 44 | -------------------------------------------------------------------------------- /library/MaterialUI/Element/CircleMask.qml: -------------------------------------------------------------------------------- 1 | /* 2 | * QML Extras - Extra types and utilities to make QML even more awesome 3 | * 4 | * Copyright (C) 2015 Michael Spencer 5 | * 6 | * This program is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License as 8 | * published by the Free Software Foundation, either version 2.1 of the 9 | * License, or (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | import QtQuick 2.5 21 | import QtGraphicalEffects 1.0 22 | 23 | Item { 24 | id: item 25 | 26 | property alias source: mask.source 27 | 28 | Rectangle { 29 | id: circleMask 30 | anchors.fill: parent 31 | 32 | smooth: true 33 | visible: false 34 | 35 | radius: Math.max(width/2, height/2) 36 | } 37 | 38 | OpacityMask { 39 | id: mask 40 | 41 | anchors.fill: parent 42 | maskSource: circleMask 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /library/MaterialUI/Element/Divider.qml: -------------------------------------------------------------------------------- 1 | /* 2 | * QML Material - An application framework implementing Material Design. 3 | * Copyright (C) 2015 Michael Spencer 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU Lesser General Public License as 7 | * published by the Free Software Foundation, either version 2.1 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU Lesser General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Lesser General Public License 16 | * along with this program. If not, see . 17 | */ 18 | import QtQuick 2.5 19 | 20 | /*! 21 | \qmltype Divider 22 | \inqmlmodule Material.ListItems 0.1 23 | 24 | \brief A divider divides content in a list. 25 | */ 26 | Item { 27 | id: divider 28 | 29 | anchors { 30 | left: parent.left 31 | right: parent.right 32 | } 33 | 34 | height: (8) 35 | 36 | ThinDivider { 37 | anchors.verticalCenter: parent.verticalCenter 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /library/MaterialUI/Element/PopupBase.qml: -------------------------------------------------------------------------------- 1 | /* 2 | * QML Material - An application framework implementing Material Design. 3 | * Copyright (C) 2015 Michael Spencer 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU Lesser General Public License as 7 | * published by the Free Software Foundation, either version 2.1 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU Lesser General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Lesser General Public License 16 | * along with this program. If not, see . 17 | */ 18 | import QtQuick 2.5 19 | 20 | FocusScope { 21 | id: popup 22 | 23 | property color overlayColor: "transparent" 24 | property string overlayLayer: "overlayLayer" 25 | property bool showing: false 26 | 27 | signal opened 28 | 29 | function toggle(widget) { 30 | if (showing) { 31 | close() 32 | } else { 33 | open(widget) 34 | } 35 | } 36 | 37 | function open() { 38 | showing = true 39 | forceActiveFocus() 40 | 41 | opened() 42 | } 43 | 44 | function close() { 45 | showing = false 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /library/MaterialUI/Element/ThinDivider.qml: -------------------------------------------------------------------------------- 1 | /* 2 | * QML Material - An application framework implementing Material Design. 3 | * Copyright (C) 2014 Michael Spencer 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU Lesser General Public License as 7 | * published by the Free Software Foundation, either version 2.1 of the 8 | * License, or (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU Lesser General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU Lesser General Public License 16 | * along with this program. If not, see . 17 | */ 18 | import QtQuick 2.5 19 | 20 | Rectangle { 21 | anchors { 22 | left: parent.left 23 | right: parent.right 24 | } 25 | 26 | color: Qt.rgba(0,0,0,0.1) 27 | height: 1 28 | } 29 | -------------------------------------------------------------------------------- /library/MaterialUI/Interface/MaterialDialogAlert.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.5 2 | import QtQuick.Controls 1.4 as Controls 3 | import QtQuick.Controls.Styles 1.4 as ControlStyles 4 | 5 | MaterialDialog { 6 | id: dialog 7 | 8 | negativeButtonText: "" 9 | positiveButtonText: ("OK") 10 | 11 | property var callbackOnOK: null 12 | 13 | function show(title, message, callbackOnOK) { 14 | dialog.title = title; 15 | dialog.text = message; 16 | dialog.callbackOnOK = callbackOnOK; 17 | dialog.open(); 18 | 19 | materialUI.showDarkBackground(function() { 20 | dialog.close(); 21 | materialUI.hideDarkBackground(); 22 | 23 | if (dialog.callbackOnOK) 24 | { 25 | dialog.callbackOnOK(); 26 | } 27 | }); 28 | } 29 | 30 | onAccepted: { 31 | materialUI.hideDarkBackground(); 32 | 33 | if (callbackOnOK) 34 | { 35 | callbackOnOK(); 36 | } 37 | } 38 | 39 | onRejected: { 40 | materialUI.hideDarkBackground(); 41 | 42 | if (callbackOnOK) 43 | { 44 | callbackOnOK(); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /library/MaterialUI/Interface/MaterialDialogConfirm.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.5 2 | import QtQuick.Controls 1.4 as Controls 3 | import QtQuick.Controls.Styles 1.4 as ControlStyles 4 | 5 | MaterialDialog { 6 | id: dialog 7 | 8 | negativeButtonText: ("Cancel") 9 | positiveButtonText: ("OK") 10 | 11 | property var callbackOnCancel: null 12 | property var callbackOnOK: null 13 | 14 | function show(title, message, callbackOnCancel, callbackOnOK) { 15 | dialog.title = title; 16 | dialog.text = message; 17 | dialog.callbackOnCancel = callbackOnCancel; 18 | dialog.callbackOnOK = callbackOnOK; 19 | dialog.open(); 20 | 21 | materialUI.showDarkBackground(); 22 | } 23 | 24 | onAccepted: { 25 | materialUI.hideDarkBackground(); 26 | 27 | if (callbackOnOK) 28 | { 29 | callbackOnOK(); 30 | } 31 | } 32 | 33 | onRejected: { 34 | materialUI.hideDarkBackground(); 35 | 36 | if (callbackOnCancel) 37 | { 38 | callbackOnCancel(); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /library/MaterialUI/Interface/MaterialDialogDatePicker.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.5 2 | import QtQuick.Controls 1.4 as Controls 3 | import QtQuick.Controls.Styles 1.4 as ControlStyles 4 | 5 | MaterialDialog { 6 | id: dialog 7 | 8 | negativeButtonText: ("Cancel") 9 | positiveButtonText: ("OK") 10 | 11 | property var callbackOnCancel: null 12 | property var callbackOnOK: null 13 | 14 | function show(title, message, currentDate, callbackOnCancel, callbackOnOK) { 15 | dialog.title = title; 16 | dialog.text = message; 17 | dialog.callbackOnCancel = callbackOnCancel; 18 | dialog.callbackOnOK = callbackOnOK; 19 | dialog.open(); 20 | 21 | if (currentDate) 22 | { 23 | datePicker.selectedDate = currentDate; 24 | } 25 | else 26 | { 27 | datePicker.selectedDate = new Date; 28 | } 29 | 30 | materialUI.showDarkBackground(); 31 | } 32 | 33 | onAccepted: { 34 | materialUI.hideDarkBackground(); 35 | 36 | if (callbackOnOK) 37 | { 38 | callbackOnOK( datePicker.selectedDate ); 39 | } 40 | } 41 | 42 | onRejected: { 43 | materialUI.hideDarkBackground(); 44 | 45 | if (callbackOnCancel) 46 | { 47 | callbackOnCancel(); 48 | } 49 | } 50 | 51 | Item { 52 | width: datePicker.width 53 | height: datePicker.height 54 | 55 | MaterialDatePicker { 56 | id: datePicker 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /library/MaterialUI/Interface/MaterialDialogPrompt.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.5 2 | import QtQuick.Layouts 1.1 3 | 4 | MaterialDialog { 5 | id: dialog 6 | 7 | negativeButtonText: ("Cancel") 8 | positiveButtonText: ("OK") 9 | 10 | property var callbackOnCancel: null 11 | property var callbackOnOK: null 12 | 13 | function show(title, message, placeholderText, currentText, callbackOnCancel, callbackOnOK) { 14 | dialog.title = title; 15 | dialog.text = message; 16 | dialog.callbackOnCancel = callbackOnCancel; 17 | dialog.callbackOnOK = callbackOnOK; 18 | dialog.open(); 19 | 20 | textField.placeholderText = placeholderText; 21 | textField.text = currentText; 22 | 23 | materialUI.showDarkBackground(); 24 | } 25 | 26 | onAccepted: { 27 | materialUI.hideDarkBackground(); 28 | 29 | if (callbackOnOK) 30 | { 31 | callbackOnOK(textField.text); 32 | } 33 | } 34 | 35 | onRejected: { 36 | materialUI.hideDarkBackground(); 37 | 38 | if (callbackOnCancel) 39 | { 40 | callbackOnCancel(); 41 | } 42 | } 43 | 44 | Item { 45 | width: parent.width 46 | height: 64 47 | 48 | MaterialTextField { 49 | id: textField 50 | y: 0 51 | z: 2 52 | width: parent.width 53 | height: 56 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /library/MaterialUI/Material-Design-Iconic-Font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/library/MaterialUI/Material-Design-Iconic-Font.ttf -------------------------------------------------------------------------------- /library/MaterialUI/MaterialUI.pri: -------------------------------------------------------------------------------- 1 | RESOURCES *= \ 2 | $$PWD/MaterialUI.qrc 3 | -------------------------------------------------------------------------------- /preview/JQToolsPreview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/188080501/JQTools/ba167498156d5098801cf2bb1489595b561e9649/preview/JQToolsPreview.png -------------------------------------------------------------------------------- /qml/qml.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | main.qml 4 | 5 | 6 | --------------------------------------------------------------------------------