mirror of
https://github.com/NanjingForestryUniversity/UpmatchinePassion-tomato.git
synced 2025-11-08 14:24:06 +00:00
202404version
This commit is contained in:
commit
73b208327f
65
.gitignore
vendored
Normal file
65
.gitignore
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
# Build and Release Folders
|
||||
bin-debug/
|
||||
bin-release/
|
||||
[Oo]bj/
|
||||
[Bb]in/
|
||||
|
||||
# Other files and folders
|
||||
.settings/
|
||||
|
||||
# Executables
|
||||
*.swf
|
||||
*.air
|
||||
*.ipa
|
||||
*.apk
|
||||
|
||||
# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
|
||||
# should NOT be excluded as they contain compiler settings and other important
|
||||
# information for Eclipse / Flash Builder.
|
||||
=======
|
||||
=======
|
||||
>>>>>>> 8c8f42896f9ce7278b17e528952b417e775bcbb8
|
||||
>>>>>>> 2b89ef0 (202304passion)
|
||||
# Prerequisites
|
||||
*.d
|
||||
|
||||
# Compiled Object files
|
||||
*.slo
|
||||
*.lo
|
||||
*.o
|
||||
*.obj
|
||||
|
||||
# Precompiled Headers
|
||||
*.gch
|
||||
*.pch
|
||||
|
||||
# Compiled Dynamic libraries
|
||||
*.so
|
||||
*.dylib
|
||||
*.dll
|
||||
|
||||
# Fortran module files
|
||||
*.mod
|
||||
*.smod
|
||||
|
||||
# Compiled Static libraries
|
||||
*.lai
|
||||
*.la
|
||||
*.a
|
||||
*.lib
|
||||
|
||||
# Executables
|
||||
*.exe
|
||||
*.out
|
||||
*.app
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
<<<<<<< HEAD
|
||||
>>>>>>> 8c8f42896f9ce7278b17e528952b417e775bcbb8
|
||||
=======
|
||||
>>>>>>> 8c8f42896f9ce7278b17e528952b417e775bcbb8
|
||||
>>>>>>> 2b89ef0 (202304passion)
|
||||
21
.qmake.stash
Normal file
21
.qmake.stash
Normal file
@ -0,0 +1,21 @@
|
||||
QMAKE_CXX.QT_COMPILER_STDCXX = 201402L
|
||||
QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 8
|
||||
QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 1
|
||||
QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0
|
||||
QMAKE_CXX.COMPILER_MACROS = \
|
||||
QT_COMPILER_STDCXX \
|
||||
QMAKE_GCC_MAJOR_VERSION \
|
||||
QMAKE_GCC_MINOR_VERSION \
|
||||
QMAKE_GCC_PATCH_VERSION
|
||||
QMAKE_CXX.INCDIRS = \
|
||||
F:/QT/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++ \
|
||||
F:/QT/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32 \
|
||||
F:/QT/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward \
|
||||
F:/QT/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include \
|
||||
F:/QT/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed \
|
||||
F:/QT/Tools/mingw810_64/x86_64-w64-mingw32/include
|
||||
QMAKE_CXX.LIBDIRS = \
|
||||
F:/QT/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0 \
|
||||
F:/QT/Tools/mingw810_64/lib/gcc \
|
||||
F:/QT/Tools/mingw810_64/x86_64-w64-mingw32/lib \
|
||||
F:/QT/Tools/mingw810_64/lib
|
||||
43
LICENSE
Normal file
43
LICENSE
Normal file
@ -0,0 +1,43 @@
|
||||
Academic Free License (“AFL”) v. 3.0
|
||||
|
||||
This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
|
||||
|
||||
Licensed under the Academic Free License version 3.0
|
||||
|
||||
1) Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
|
||||
|
||||
a) to reproduce the Original Work in copies, either alone or as part of a collective work;
|
||||
b) to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
|
||||
c) to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor’s reserved rights and remedies, in this Academic Free License;
|
||||
d) to perform the Original Work publicly; and
|
||||
e) to display the Original Work publicly.
|
||||
|
||||
2) Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
|
||||
|
||||
3) Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
|
||||
|
||||
4) Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor’s trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
|
||||
|
||||
5) External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
|
||||
|
||||
6) Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
|
||||
|
||||
7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
|
||||
|
||||
8) Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
|
||||
|
||||
9) Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including “fair use” or “fair dealing”). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
|
||||
|
||||
10) Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
|
||||
|
||||
11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
|
||||
|
||||
12) Attorneys’ Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
|
||||
|
||||
13) Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
|
||||
|
||||
14) Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
15) Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
|
||||
|
||||
16) Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under <insert your license name here>" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
|
||||
476
Makefile
Normal file
476
Makefile
Normal file
@ -0,0 +1,476 @@
|
||||
#############################################################################
|
||||
# Makefile for building: tomato1227
|
||||
# Generated by qmake (3.1) (Qt 5.15.2)
|
||||
# Project: tomato1227.pro
|
||||
# Template: app
|
||||
# Command: E:\QT\5.15.2\mingw81_64\bin\qmake.exe -o Makefile tomato1227.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
|
||||
#############################################################################
|
||||
|
||||
MAKEFILE = Makefile
|
||||
|
||||
EQ = =
|
||||
|
||||
first: debug
|
||||
install: debug-install
|
||||
uninstall: debug-uninstall
|
||||
QMAKE = E:\QT\5.15.2\mingw81_64\bin\qmake.exe
|
||||
DEL_FILE = del
|
||||
CHK_DIR_EXISTS= if not exist
|
||||
MKDIR = mkdir
|
||||
COPY = copy /y
|
||||
COPY_FILE = copy /y
|
||||
COPY_DIR = xcopy /s /q /y /i
|
||||
INSTALL_FILE = copy /y
|
||||
INSTALL_PROGRAM = copy /y
|
||||
INSTALL_DIR = xcopy /s /q /y /i
|
||||
QINSTALL = E:\QT\5.15.2\mingw81_64\bin\qmake.exe -install qinstall
|
||||
QINSTALL_PROGRAM = E:\QT\5.15.2\mingw81_64\bin\qmake.exe -install qinstall -exe
|
||||
DEL_FILE = del
|
||||
SYMLINK = $(QMAKE) -install ln -f -s
|
||||
DEL_DIR = rmdir
|
||||
MOVE = move
|
||||
IDC = idc
|
||||
IDL = midl
|
||||
ZIP = zip -r -9
|
||||
DEF_FILE =
|
||||
RES_FILE =
|
||||
SED = $(QMAKE) -install sed
|
||||
MOVE = move
|
||||
SUBTARGETS = \
|
||||
debug \
|
||||
release
|
||||
|
||||
|
||||
debug: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Debug
|
||||
debug-make_first: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Debug
|
||||
debug-all: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Debug all
|
||||
debug-clean: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Debug clean
|
||||
debug-distclean: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Debug distclean
|
||||
debug-install: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Debug install
|
||||
debug-uninstall: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Debug uninstall
|
||||
release: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Release
|
||||
release-make_first: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Release
|
||||
release-all: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Release all
|
||||
release-clean: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Release clean
|
||||
release-distclean: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Release distclean
|
||||
release-install: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Release install
|
||||
release-uninstall: FORCE
|
||||
$(MAKE) -f $(MAKEFILE).Release uninstall
|
||||
|
||||
Makefile: tomato1227.pro E:/QT/5.15.2/mingw81_64/mkspecs/win32-g++/qmake.conf E:/QT/5.15.2/mingw81_64/mkspecs/features/spec_pre.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/qdevice.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/device_config.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/sanitize.conf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/gcc-base.conf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/g++-base.conf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/angle.conf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/win32/windows_vulkan_sdk.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/windows-vulkan.conf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/g++-win32.conf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/windows-desktop.conf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/qconfig.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3danimation.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3danimation_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dcore.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dcore_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dextras.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dextras_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dinput.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dinput_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dlogic.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dlogic_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquick.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquick_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickanimation.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickanimation_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickextras.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickextras_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickinput.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickinput_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickrender.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickrender_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickscene2d.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickscene2d_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3drender.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3drender_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_accessibility_support_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axbase.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axbase_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axcontainer.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axcontainer_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axserver.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axserver_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_bluetooth.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_bluetooth_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_bootstrap_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_charts.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_charts_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_concurrent.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_concurrent_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_core.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_core_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_dbus.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_dbus_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_designer.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_designer_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_designercomponents_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_devicediscovery_support_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_edid_support_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_egl_support_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_fb_support_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_fontdatabase_support_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_gamepad.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_gamepad_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_gui.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_gui_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_help.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_help_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_location.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_location_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_multimedia.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_multimedia_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_multimediawidgets.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_multimediawidgets_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_network.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_network_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_nfc.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_nfc_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_opengl.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_opengl_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_openglextensions.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_openglextensions_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_packetprotocol_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_platformcompositor_support_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_positioning.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_positioning_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_positioningquick.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_positioningquick_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_printsupport.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_printsupport_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qml.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qml_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmldebug_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmldevtools_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmlmodels.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmlmodels_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmltest.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmltest_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmlworkerscript.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmlworkerscript_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quick.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quick_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickcontrols2.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickcontrols2_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickparticles_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickshapes_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quicktemplates2.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quicktemplates2_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickwidgets.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickwidgets_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_remoteobjects.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_remoteobjects_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_repparser.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_repparser_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_scxml.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_scxml_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_sensors.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_sensors_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_serialbus.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_serialbus_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_serialport.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_serialport_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_sql.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_sql_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_svg.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_svg_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_testlib.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_testlib_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_texttospeech.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_texttospeech_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_theme_support_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_uiplugin.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_uitools.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_uitools_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_vulkan_support_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_webchannel.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_webchannel_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_websockets.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_websockets_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_widgets.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_widgets_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_windowsuiautomation_support_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_winextras.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_winextras_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_xml.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_xml_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_xmlpatterns.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_xmlpatterns_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_zlib_private.pri \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/qt_functions.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/qt_config.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/win32-g++/qmake.conf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/spec_post.prf \
|
||||
.qmake.stash \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/exclusive_builds.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/toolchain.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/default_pre.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/win32/default_pre.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/resolve_config.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/exclusive_builds_post.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/default_post.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/qml_debug.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/precompile_header.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/warn_on.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/qt.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/resources_functions.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/resources.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/moc.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/win32/opengl.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/uic.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/qmake_use.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/file_copies.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/win32/windows.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/testcase_targets.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/exceptions.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/yacc.prf \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/lex.prf \
|
||||
tomato1227.pro \
|
||||
E:/QT/5.15.2/mingw81_64/lib/Qt5Widgets.prl \
|
||||
E:/QT/5.15.2/mingw81_64/lib/Qt5Gui.prl \
|
||||
E:/QT/5.15.2/mingw81_64/lib/Qt5Network.prl \
|
||||
E:/QT/5.15.2/mingw81_64/lib/Qt5Core.prl \
|
||||
E:/QT/5.15.2/mingw81_64/lib/qtmain.prl \
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/build_pass.prf
|
||||
$(QMAKE) -o Makefile tomato1227.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/spec_pre.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/qdevice.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/device_config.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/sanitize.conf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/gcc-base.conf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/g++-base.conf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/angle.conf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/win32/windows_vulkan_sdk.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/windows-vulkan.conf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/g++-win32.conf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/common/windows-desktop.conf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/qconfig.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3danimation.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3danimation_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dcore.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dcore_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dextras.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dextras_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dinput.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dinput_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dlogic.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dlogic_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquick.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquick_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickanimation.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickanimation_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickextras.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickextras_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickinput.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickinput_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickrender.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickrender_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickscene2d.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3dquickscene2d_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3drender.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_3drender_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_accessibility_support_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axbase.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axbase_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axcontainer.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axcontainer_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axserver.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_axserver_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_bluetooth.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_bluetooth_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_bootstrap_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_charts.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_charts_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_concurrent.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_concurrent_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_core.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_core_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_dbus.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_dbus_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_designer.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_designer_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_designercomponents_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_devicediscovery_support_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_edid_support_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_egl_support_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_fb_support_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_fontdatabase_support_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_gamepad.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_gamepad_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_gui.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_gui_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_help.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_help_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_location.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_location_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_multimedia.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_multimedia_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_multimediawidgets.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_multimediawidgets_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_network.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_network_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_nfc.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_nfc_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_opengl.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_opengl_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_openglextensions.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_openglextensions_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_packetprotocol_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_platformcompositor_support_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_positioning.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_positioning_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_positioningquick.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_positioningquick_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_printsupport.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_printsupport_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qml.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qml_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmldebug_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmldevtools_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmlmodels.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmlmodels_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmltest.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmltest_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmlworkerscript.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qmlworkerscript_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quick.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quick_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickcontrols2.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickcontrols2_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickparticles_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickshapes_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quicktemplates2.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quicktemplates2_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickwidgets.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_quickwidgets_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_remoteobjects.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_remoteobjects_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_repparser.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_repparser_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_scxml.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_scxml_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_sensors.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_sensors_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_serialbus.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_serialbus_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_serialport.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_serialport_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_sql.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_sql_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_svg.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_svg_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_testlib.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_testlib_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_texttospeech.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_texttospeech_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_theme_support_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_uiplugin.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_uitools.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_uitools_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_vulkan_support_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_webchannel.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_webchannel_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_websockets.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_websockets_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_widgets.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_widgets_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_windowsuiautomation_support_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_winextras.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_winextras_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_xml.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_xml_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_xmlpatterns.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_xmlpatterns_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/modules/qt_lib_zlib_private.pri:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/qt_functions.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/qt_config.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/win32-g++/qmake.conf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/spec_post.prf:
|
||||
.qmake.stash:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/exclusive_builds.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/toolchain.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/default_pre.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/win32/default_pre.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/resolve_config.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/exclusive_builds_post.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/default_post.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/qml_debug.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/precompile_header.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/warn_on.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/qt.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/resources_functions.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/resources.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/moc.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/win32/opengl.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/uic.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/qmake_use.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/file_copies.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/win32/windows.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/testcase_targets.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/exceptions.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/yacc.prf:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/lex.prf:
|
||||
tomato1227.pro:
|
||||
E:/QT/5.15.2/mingw81_64/lib/Qt5Widgets.prl:
|
||||
E:/QT/5.15.2/mingw81_64/lib/Qt5Gui.prl:
|
||||
E:/QT/5.15.2/mingw81_64/lib/Qt5Network.prl:
|
||||
E:/QT/5.15.2/mingw81_64/lib/Qt5Core.prl:
|
||||
E:/QT/5.15.2/mingw81_64/lib/qtmain.prl:
|
||||
E:/QT/5.15.2/mingw81_64/mkspecs/features/build_pass.prf:
|
||||
qmake: FORCE
|
||||
@$(QMAKE) -o Makefile tomato1227.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
|
||||
|
||||
qmake_all: FORCE
|
||||
|
||||
make_first: debug-make_first release-make_first FORCE
|
||||
all: debug-all release-all FORCE
|
||||
clean: debug-clean release-clean FORCE
|
||||
distclean: debug-distclean release-distclean FORCE
|
||||
-$(DEL_FILE) Makefile
|
||||
-$(DEL_FILE) .qmake.stash
|
||||
|
||||
debug-mocclean:
|
||||
$(MAKE) -f $(MAKEFILE).Debug mocclean
|
||||
release-mocclean:
|
||||
$(MAKE) -f $(MAKEFILE).Release mocclean
|
||||
mocclean: debug-mocclean release-mocclean
|
||||
|
||||
debug-mocables:
|
||||
$(MAKE) -f $(MAKEFILE).Debug mocables
|
||||
release-mocables:
|
||||
$(MAKE) -f $(MAKEFILE).Release mocables
|
||||
mocables: debug-mocables release-mocables
|
||||
|
||||
check: first
|
||||
|
||||
benchmark: first
|
||||
FORCE:
|
||||
|
||||
$(MAKEFILE).Debug: Makefile
|
||||
$(MAKEFILE).Release: Makefile
|
||||
2139
Makefile.Debug
Normal file
2139
Makefile.Debug
Normal file
File diff suppressed because one or more lines are too long
2139
Makefile.Release
Normal file
2139
Makefile.Release
Normal file
File diff suppressed because one or more lines are too long
37
README.md
Normal file
37
README.md
Normal file
@ -0,0 +1,37 @@
|
||||
# passion_NJFU
|
||||
|
||||
#### 介绍
|
||||
福建省重点研发项目------果树分选
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
80
SpectrolDll.h
Normal file
80
SpectrolDll.h
Normal file
@ -0,0 +1,80 @@
|
||||
#ifndef RTSPECTROL_H
|
||||
#define RTSPECTROL_H
|
||||
|
||||
#ifndef Q_DECL_IMPORT
|
||||
#define Q_DECL_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#ifndef Q_DECL_EXPORT
|
||||
#define Q_DECL_EXPORT __declspec(dllexport)
|
||||
#endif
|
||||
#ifdef RTSPECTROL_LIBRARY
|
||||
#define RT_API extern "C" Q_DECL_EXPORT
|
||||
#else
|
||||
#define RT_API extern "C" Q_DECL_IMPORT
|
||||
#endif
|
||||
RT_API bool __stdcall RTGetCameraName( wchar_t* wcCameraName );
|
||||
RT_API bool __stdcall RTSetCameraCaptureStyle(int iStyle);
|
||||
RT_API int __stdcall RTOpenCamera();
|
||||
RT_API bool __stdcall RTCloseCamera();
|
||||
RT_API bool __stdcall RTStartAutoExposetime();
|
||||
|
||||
RT_API bool __stdcall RTSetExposure(float expostime);
|
||||
RT_API bool __stdcall RTGetExposure(float& expostime);
|
||||
RT_API bool __stdcall RTSetCameraGain(float fgain);
|
||||
RT_API bool __stdcall RTGetCameraGain(float& fgain);
|
||||
RT_API bool __stdcall RTGetImageProperty(int& iWidth, int& iHeight);
|
||||
RT_API bool __stdcall RT_SetBool(const wchar_t* Feature,bool flag);
|
||||
RT_API bool __stdcall RTSetCameraBinning(int iBinX,int iBinY);
|
||||
RT_API bool __stdcall RTGetCameraBinning(int& iBinX,int& iBinY);
|
||||
RT_API bool __stdcall RTGetCameraFrameRate(float& fRate);
|
||||
RT_API bool __stdcall RTSetCameraFrameRate(float fRate);
|
||||
|
||||
RT_API int __stdcall RTGetCameraDepth();
|
||||
RT_API bool __stdcall RTApplyCameraParam();
|
||||
|
||||
|
||||
RT_API bool __stdcall RTCameraSnapshot(const char* cstrPath,int iTimes);
|
||||
|
||||
RT_API long __stdcall RTAddRGBCallback( void (__stdcall *VideoRGBFilter)(
|
||||
void *pContext,unsigned char *pRData,unsigned char *pGData,
|
||||
unsigned char *pBData, unsigned long dataLength),
|
||||
void *pCBContext );
|
||||
|
||||
RT_API int __stdcall RTRemoveRGBCallback( long callbackId );
|
||||
|
||||
RT_API bool __stdcall RTStartSingleCapture(bool bMotor = false,bool bSave = false,
|
||||
const char* savePath = "", bool bFlip = false,bool bRef = false, bool bcorrect = false);
|
||||
|
||||
RT_API bool __stdcall RTSetBWPath(const char* bwPath);
|
||||
|
||||
RT_API bool __stdcall RTStopSingleCapture();
|
||||
|
||||
RT_API bool __stdcall RTGetMinAndMaxWavelength(float& fmin,float& fmax);
|
||||
RT_API bool __stdcall RTGetRGBselect(int& iRed,int& iGreen, int& iBlue);
|
||||
RT_API bool __stdcall RTSetRGBselect(int iRed,int iGreen, int iBlue);
|
||||
|
||||
RT_API const double* __stdcall RTGetCurentCalibrationData();
|
||||
|
||||
RT_API int __stdcall RTGetLastError(wchar_t* errobuf,int len);
|
||||
|
||||
RT_API bool __stdcall RTIsCameraWorking();
|
||||
|
||||
RT_API bool __stdcall RTGetRealFrameRate(float& frame);
|
||||
|
||||
RT_API bool __stdcall RTCaptureAllDarkFrame();
|
||||
|
||||
RT_API bool __stdcall RTGetLastRealFrameRate(float& frame);
|
||||
|
||||
RT_API long __stdcall RTAddStreamingCallback(
|
||||
void(__stdcall *VideoFilter)(void *pContext, unsigned char *pData, unsigned long dataLength),
|
||||
void *pCBContext);
|
||||
|
||||
RT_API int __stdcall RTRemoveStreamingCallback(long callbackId);
|
||||
|
||||
RT_API int __stdcall RTAddMessageCallback( void(__stdcall *VideoFilter)(void *pContext,const wchar_t *pData, unsigned long dataLength),
|
||||
void *pCBContext);
|
||||
|
||||
RT_API int __stdcall RTBWCorrection(const char* cOriFile, const char* cOutputFile, const char* cDCFile, const char* cWCFile, const char* cWhiteDarkFile,int correctsize = 0);
|
||||
|
||||
|
||||
#endif
|
||||
725
camera.cpp
Normal file
725
camera.cpp
Normal file
@ -0,0 +1,725 @@
|
||||
#include "camera.h"
|
||||
#include "thread.h"
|
||||
#include <vector>
|
||||
|
||||
#include <QTime>
|
||||
// 使用std::vector存储所有帧的数据
|
||||
|
||||
|
||||
extern int save_flag;
|
||||
extern bool spec_flag;
|
||||
tomato tomato;
|
||||
void __stdcall onImageDataCallBackFunc(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pFrameInfo, void* pUser);
|
||||
void __stdcall onOfflineCallBackFunc(unsigned int nMsgType, void* pUser);
|
||||
void __stdcall onImageDataCallBackFunc1(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pFrameInfo, void* pUser);
|
||||
void __stdcall onOfflineCallBackFunc1(unsigned int nMsgType, void* pUser);
|
||||
void __stdcall onImageDataCallBackFunc2(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pFrameInfo, void* pUser);
|
||||
void __stdcall onOfflineCallBackFunc2(unsigned int nMsgType, void* pUser);
|
||||
|
||||
extern void __stdcall RTRGBViewCallback(void* pContext, unsigned char* pRData, unsigned char* pGData, unsigned char* pBData, unsigned long dataLength);
|
||||
extern void __stdcall RTSpecStreamingCallback(void *pContext, unsigned char *pData, unsigned long dataLength);
|
||||
|
||||
int camStatusret;
|
||||
int camStatusret1;
|
||||
int camStatusret2;
|
||||
extern bool change_passionFlag;
|
||||
extern bool change_tomatoFlag;
|
||||
CameraL::CameraL(QObject *parent) : QObject(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool CameraL::initCameraL()
|
||||
{
|
||||
/*
|
||||
* 枚举设备
|
||||
* */
|
||||
int device_num = enum_device();
|
||||
qDebug()<<"找到相机: "<<device_num;
|
||||
if(device_num == -1)
|
||||
{
|
||||
qDebug()<<"enum device failed";
|
||||
if(camera_handle != NULL)
|
||||
{
|
||||
destroy_handle();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if(device_num == 0)
|
||||
{
|
||||
qDebug()<<"no camera found";
|
||||
if(camera_handle != NULL)
|
||||
{
|
||||
destroy_handle();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
//print_device_info();
|
||||
bool isOk = select_device();
|
||||
if(!isOk)
|
||||
{
|
||||
qDebug()<<"create handle failed";
|
||||
if(camera_handle != NULL)
|
||||
{
|
||||
destroy_handle();
|
||||
}
|
||||
if(camera_handle1 != NULL)
|
||||
{
|
||||
destroy_handle1();
|
||||
}
|
||||
if(camera_handle2 != NULL)
|
||||
{
|
||||
destroy_handle2();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* 开启相机
|
||||
* */
|
||||
isOk = open_camera();
|
||||
|
||||
if(!isOk)
|
||||
{
|
||||
qDebug()<<"open camera failed";
|
||||
if(camera_handle != NULL)
|
||||
{
|
||||
destroy_handle();
|
||||
}
|
||||
return false;
|
||||
}else{
|
||||
qDebug()<<"打开相机: "<<"isOk: "<<isOk;
|
||||
}
|
||||
|
||||
// set_ROI(0, 0, 2448, 2048);
|
||||
|
||||
/*
|
||||
* 导入配置文件(相机)
|
||||
**/
|
||||
isOk = import_config_file();
|
||||
// set_ROI(0, 668, 1000, 2448);
|
||||
if(!isOk)
|
||||
{
|
||||
qDebug()<<"import config file failed";
|
||||
if(camera_handle != NULL)
|
||||
{
|
||||
destroy_handle();
|
||||
}
|
||||
if(camera_handle1 != NULL)
|
||||
{
|
||||
destroy_handle1();
|
||||
}
|
||||
if(camera_handle2 != NULL)
|
||||
{
|
||||
destroy_handle2();
|
||||
}
|
||||
return false;;
|
||||
}
|
||||
|
||||
isOk = register_image_callback(onImageDataCallBackFunc,onImageDataCallBackFunc1,onImageDataCallBackFunc2);
|
||||
qDebug()<<"注册回调成功: "<<"isOk: "<<isOk;
|
||||
if(!isOk)
|
||||
{
|
||||
qDebug()<<"register image callback function failed";
|
||||
if(camera_handle != NULL)
|
||||
{
|
||||
destroy_handle();
|
||||
}
|
||||
if(camera_handle1 != NULL)
|
||||
{
|
||||
destroy_handle1();
|
||||
}
|
||||
if(camera_handle2 != NULL)
|
||||
{
|
||||
destroy_handle2();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
isOk = register_offline_callback(onOfflineCallBackFunc,onOfflineCallBackFunc1,onOfflineCallBackFunc2);
|
||||
qDebug()<<"取消注册回调成功: "<<"isOk: "<<isOk;
|
||||
if(!isOk)
|
||||
{
|
||||
qDebug()<<"register offline callback function failed";
|
||||
if(camera_handle != NULL)
|
||||
{
|
||||
destroy_handle();
|
||||
}
|
||||
if(camera_handle1 != NULL)
|
||||
{
|
||||
destroy_handle1();
|
||||
}
|
||||
if(camera_handle2 != NULL)
|
||||
{
|
||||
destroy_handle2();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
isOk = set_acquisition_mode();
|
||||
qDebug()<<"设置触发成功: "<<"isOk: "<<isOk;
|
||||
if(!isOk)
|
||||
{
|
||||
qDebug()<<"set acquistion mode failed";
|
||||
if(camera_handle != NULL)
|
||||
{
|
||||
destroy_handle();
|
||||
}
|
||||
if(camera_handle1 != NULL)
|
||||
{
|
||||
destroy_handle1();
|
||||
}
|
||||
if(camera_handle2 != NULL)
|
||||
{
|
||||
destroy_handle2();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// isOk = set_ROI(0, 668, 2448, 1000);
|
||||
// if(!isOk)
|
||||
// {
|
||||
// qDebug()<<"SET ROI FAILED";
|
||||
// if(camera_handle != NULL)
|
||||
// {
|
||||
// destroy_handle();
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
|
||||
|
||||
MV_CC_SetBalanceWhiteAuto(camera_handle, 0);
|
||||
MV_CC_SetBalanceWhiteAuto(camera_handle1, 0);
|
||||
MV_CC_SetBalanceWhiteAuto(camera_handle2, 0);
|
||||
MV_CC_SetIntValue(camera_handle, "LineDebouncerTime", 100);
|
||||
MV_CC_SetIntValue(camera_handle1, "LineDebouncerTime", 100);
|
||||
MV_CC_SetIntValue(camera_handle2, "LineDebouncerTime", 100);
|
||||
|
||||
return true;
|
||||
|
||||
|
||||
}
|
||||
|
||||
uint32_t CameraL::enum_device()
|
||||
{
|
||||
int ret = MV_CC_EnumDevices(MV_GIGE_DEVICE | MV_USB_DEVICE, &device_list);
|
||||
if(ret != MV_OK)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
//qDebug()<<"device_list[0]: "<<device_list.pDeviceInfo[0];
|
||||
|
||||
//qDebug()<<"device_list[1]: "<<device_list.pDeviceInfo[1];
|
||||
|
||||
return device_list.nDeviceNum;
|
||||
}
|
||||
|
||||
|
||||
bool CameraL::select_device()
|
||||
{
|
||||
MV_CC_DEVICE_INFO* pstDeviceInfo;
|
||||
|
||||
|
||||
for(i=0;i<=2;i++)
|
||||
{
|
||||
|
||||
pstDeviceInfo = device_list.pDeviceInfo[i];
|
||||
if (NULL == pstDeviceInfo)
|
||||
{
|
||||
printf("The Pointer of pstMVDevInfo is NULL!\n");
|
||||
return false;
|
||||
}
|
||||
// qDebug()<<"nip1; "<<((pstDeviceInfo->SpecialInfo.stGigEInfo.nCurrentIp & 0xff000000)>>24);
|
||||
// qDebug()<<"nip2; "<<((pstDeviceInfo->SpecialInfo.stGigEInfo.nCurrentIp & 0x00ff0000)>>16);
|
||||
// qDebug()<<"nip3; "<<((pstDeviceInfo->SpecialInfo.stGigEInfo.nCurrentIp & 0x0000ff00)>>8);
|
||||
// qDebug()<<"nip4; "<<((pstDeviceInfo->SpecialInfo.stGigEInfo.nCurrentIp & 0x000000ff));
|
||||
ip4 = pstDeviceInfo->SpecialInfo.stGigEInfo.nCurrentIp & 0x000000ff;
|
||||
switch (ip4) {
|
||||
case 100:
|
||||
MV_CC_CreateHandle(&camera_handle1, device_list.pDeviceInfo[i]);
|
||||
|
||||
break;
|
||||
case 150:
|
||||
MV_CC_CreateHandle(&camera_handle, device_list.pDeviceInfo[i]);
|
||||
break;
|
||||
case 200:
|
||||
MV_CC_CreateHandle(&camera_handle2, device_list.pDeviceInfo[i]);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
pstDeviceInfo++;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CameraL::open_camera()
|
||||
{
|
||||
int ret = MV_CC_OpenDevice(camera_handle);
|
||||
int ret1 = MV_CC_OpenDevice(camera_handle1);
|
||||
int ret2 = MV_CC_OpenDevice(camera_handle2);
|
||||
camStatusret2=0;
|
||||
camStatusret1=0;
|
||||
camStatusret=0;
|
||||
if(ret != MV_OK||ret1 != MV_OK||ret2 != MV_OK)
|
||||
{
|
||||
return false;
|
||||
camStatusret2=0;
|
||||
camStatusret1=0;
|
||||
camStatusret=0;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CameraL::start_capture()
|
||||
{
|
||||
int ret2 = MV_CC_StartGrabbing(camera_handle2);
|
||||
|
||||
int ret1 = MV_CC_StartGrabbing(camera_handle1);
|
||||
|
||||
int ret = MV_CC_StartGrabbing(camera_handle);
|
||||
if (ret != MV_OK||ret1 != MV_OK||ret2 != MV_OK)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CameraL::register_image_callback(imageCallbackFunc onImageDataCallBackFunc,imageCallbackFunc onImageDataCallBackFunc1,imageCallbackFunc onImageDataCallBackFunc2)
|
||||
{
|
||||
int ret2 = MV_CC_RegisterImageCallBackForBGR(camera_handle1, onImageDataCallBackFunc, NULL);
|
||||
|
||||
int ret1 = MV_CC_RegisterImageCallBackForBGR(camera_handle, onImageDataCallBackFunc2, NULL);
|
||||
|
||||
int ret = MV_CC_RegisterImageCallBackForBGR(camera_handle2, onImageDataCallBackFunc1, NULL);
|
||||
if (ret != MV_OK||ret1 != MV_OK||ret2 != MV_OK)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CameraL::register_offline_callback(exceptionCallbackFunc onOfflineCallBackFunc, exceptionCallbackFunc onOfflineCallBackFunc1, exceptionCallbackFunc onOfflineCallBackFunc2)
|
||||
{
|
||||
int nRet1 = MV_CC_RegisterExceptionCallBack(camera_handle, onOfflineCallBackFunc2, NULL);
|
||||
|
||||
int nRet = MV_CC_RegisterExceptionCallBack(camera_handle2, onOfflineCallBackFunc1, NULL);
|
||||
int nRet2 = MV_CC_RegisterExceptionCallBack(camera_handle1, onOfflineCallBackFunc, NULL);
|
||||
if (nRet != MV_OK||nRet1 != MV_OK||nRet2 != MV_OK)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool CameraL::destroy_handle()
|
||||
{
|
||||
int ret = MV_CC_DestroyHandle(camera_handle);
|
||||
if (MV_OK != ret)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
bool CameraL::destroy_handle1()
|
||||
{
|
||||
int ret = MV_CC_DestroyHandle(camera_handle1);
|
||||
if (MV_OK != ret)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}bool CameraL::destroy_handle2()
|
||||
{
|
||||
int ret = MV_CC_DestroyHandle(camera_handle2);
|
||||
if (MV_OK != ret)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
bool CameraL::import_config_file()
|
||||
{
|
||||
if(change_passionFlag&&(!change_tomatoFlag))
|
||||
{
|
||||
int ret = MV_CC_FeatureLoad(camera_handle, CAMERA_CONFIG_PATH);
|
||||
if(ret != MV_OK)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
int ret2 = MV_CC_FeatureLoad(camera_handle2, CAMERA2_CONFIG_PATH);
|
||||
if(ret2 != MV_OK)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
int ret1 = MV_CC_FeatureLoad(camera_handle1, CAMERAtop_CONFIG_PATH);
|
||||
if(ret1 != MV_OK)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if((!change_passionFlag)&&change_tomatoFlag)
|
||||
{
|
||||
int ret = MV_CC_FeatureLoad(camera_handle, CAMERApassion_left_config);
|
||||
if(ret != MV_OK)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
int ret2 = MV_CC_FeatureLoad(camera_handle2, CAMERApassion_right_config);
|
||||
if(ret2 != MV_OK)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
int ret1 = MV_CC_FeatureLoad(camera_handle1, CAMERAtoppassion_top2_config);
|
||||
if(ret1 != MV_OK)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
bool CameraL::save_config_file()
|
||||
{
|
||||
int ret = MV_CC_FeatureSave(camera_handle, CAMERA_CONFIG_PATH);
|
||||
if(ret != MV_OK)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CameraL::set_param(Camera_param param_struct)
|
||||
{
|
||||
camera_param = param_struct;
|
||||
int ret = MV_CC_SetIntValue(camera_handle, "BalanceRatio", camera_param.white_balance_ratio);
|
||||
if (ret != MV_OK)
|
||||
{
|
||||
qDebug()<<"white balance ration set failed";
|
||||
return false;
|
||||
}
|
||||
|
||||
ret = MV_CC_SetFloatValue(camera_handle, "ExposureTime", camera_param.exposure_time);
|
||||
if(ret != MV_OK)
|
||||
{
|
||||
qDebug()<<"exposure time set failed";
|
||||
return false;
|
||||
}
|
||||
|
||||
ret = MV_CC_SetFloatValue(camera_handle, "Gain", camera_param.gain);
|
||||
if(ret != MV_OK)
|
||||
{
|
||||
qDebug()<<"gain set failed";
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Camera_param CameraL::get_param()
|
||||
{
|
||||
MVCC_INTVALUE BalanceRatio = {0};
|
||||
int ret = MV_CC_GetIntValue(camera_handle, "BalanceRatio", &BalanceRatio);
|
||||
if (ret == MV_OK)
|
||||
{
|
||||
camera_param.white_balance_ratio = BalanceRatio.nCurValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug()<<"get white balance ratio failed";
|
||||
}
|
||||
|
||||
|
||||
MVCC_FLOATVALUE ExposureTime = {0};
|
||||
ret = MV_CC_GetFloatValue(camera_handle, "ExposureTime", &ExposureTime);
|
||||
if(ret == MV_OK)
|
||||
{
|
||||
camera_param.exposure_time = ExposureTime.fCurValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug()<<"get exposure time failed";
|
||||
}
|
||||
|
||||
MVCC_FLOATVALUE Gain = {0};
|
||||
ret = MV_CC_GetFloatValue(camera_handle, "Gain", &Gain);
|
||||
if(ret == MV_OK)
|
||||
{
|
||||
camera_param.gain = Gain.fCurValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug()<<"get gain failed";
|
||||
}
|
||||
|
||||
#if 1
|
||||
qDebug()<< camera_param.white_balance_ratio;
|
||||
qDebug()<<camera_param.exposure_time;
|
||||
qDebug()<<camera_param.gain;
|
||||
|
||||
#endif
|
||||
|
||||
return camera_param;
|
||||
}
|
||||
/*
|
||||
* TriggerMode 0 OFF
|
||||
* 1 ON
|
||||
*
|
||||
* TriggerSource Line0 0
|
||||
* Line1 1
|
||||
* Line2 2
|
||||
* Line3 3
|
||||
* Counter0 4
|
||||
* Software 7
|
||||
* FrequencyConverter 8
|
||||
*TriggerActivation 0:RisingEdge
|
||||
1:FallingEdge
|
||||
2:LevelHigh
|
||||
3:LevelLow
|
||||
AcquisitionMode 0:SingleFrame
|
||||
1:MultiFrame
|
||||
2:Continuous
|
||||
* */
|
||||
bool CameraL::set_acquisition_mode()
|
||||
{
|
||||
int ret = MV_CC_SetEnumValue(camera_handle, "TriggerMode", 1);
|
||||
int ret1 = MV_CC_SetEnumValue(camera_handle1, "TriggerMode",1);
|
||||
int ret2 = MV_CC_SetEnumValue(camera_handle2, "TriggerMode", 1);
|
||||
if(MV_OK != ret || MV_OK != ret1 ||MV_OK != ret2)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
int ret3 = MV_CC_SetEnumValue(camera_handle, "TriggerSource",0);
|
||||
int ret4 = MV_CC_SetEnumValue(camera_handle1, "TriggerSource", 0);
|
||||
int ret5 = MV_CC_SetEnumValue(camera_handle2, "TriggerSource", 0);
|
||||
if(MV_OK != ret3 || MV_OK != ret4 ||MV_OK != ret5)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
int ret6 = MV_CC_SetEnumValue(camera_handle, "TriggerActivation", 0);
|
||||
int ret7 = MV_CC_SetEnumValue(camera_handle1, "TriggerActivation", 0);
|
||||
int ret8 = MV_CC_SetEnumValue(camera_handle2, "TriggerActivation", 0);
|
||||
if(MV_OK != ret6 || MV_OK != ret7 ||MV_OK != ret8)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
int ret9 = MV_CC_SetEnumValue(camera_handle, "AcquisitionMode", 2); //采集模式连续
|
||||
int ret10 = MV_CC_SetEnumValue(camera_handle1, "AcquisitionMode", 2);
|
||||
int ret11 = MV_CC_SetEnumValue(camera_handle2, "AcquisitionMode", 2);
|
||||
if(MV_OK != ret9 || MV_OK != ret10 ||MV_OK != ret11)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CameraL::stop_capture()
|
||||
{
|
||||
|
||||
int ret = MV_CC_StopGrabbing(camera_handle);
|
||||
int ret1 = MV_CC_StopGrabbing(camera_handle1);
|
||||
int ret2 = MV_CC_StopGrabbing(camera_handle2);
|
||||
if(MV_OK!=ret){
|
||||
destroy_handle();
|
||||
}
|
||||
if(MV_OK!=ret1){
|
||||
destroy_handle1();
|
||||
}
|
||||
if(MV_OK!=ret2){
|
||||
destroy_handle2();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
//spec camera
|
||||
SpecCamera::SpecCamera(QObject *parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool SpecCamera::init_SpecCamera()
|
||||
{
|
||||
//打开相机
|
||||
int ires = RTOpenCamera();
|
||||
qDebug()<<"ires: "<<ires;
|
||||
if (ires != 1)
|
||||
{
|
||||
printf("Open Camera failed!");
|
||||
return false;
|
||||
}
|
||||
//获取当前系统相机参数
|
||||
m_uiDepth = RTGetCameraDepth(); //获取相机图像最大值(256/4096/65536)
|
||||
RTGetImageProperty(m_iWidth, m_iHeight); //获取图像宽、高
|
||||
m_pusSaveBuffer = new unsigned short[m_iHeight*((m_iWidth * 3 + 3) / 4 * 4)];
|
||||
m_pRefreshBuffer = new unsigned char[m_iHeight*((m_iWidth * 3 + 3) / 4 * 4)];
|
||||
|
||||
|
||||
RTGetCameraGain(m_fGain);
|
||||
RTGetExposure(m_fExpTime);
|
||||
RTGetCameraFrameRate(m_iFrameRate);
|
||||
RTGetMinAndMaxWavelength(m_fWaveLengthMin, m_fWaveLengthMax);
|
||||
|
||||
RTGetRGBselect(m_cslRed, m_cslGreen, m_cslBlue);
|
||||
|
||||
|
||||
RTSetExposure(m_fExpTime);
|
||||
RTSetCameraGain(m_fGain);
|
||||
RTSetCameraFrameRate(m_iFrameRate);
|
||||
RTApplyCameraParam();
|
||||
if (m_cslRed > m_iHeight || m_cslGreen > m_iHeight || m_cslBlue > m_iHeight
|
||||
|| m_cslRed <= 0 || m_cslGreen <= 0 || m_cslBlue <= 0)
|
||||
{
|
||||
m_cslRed = m_iHeight * 3 / 4;
|
||||
m_cslGreen = m_iHeight / 2;
|
||||
m_cslBlue = m_iHeight / 4;
|
||||
}
|
||||
RTSetRGBselect(m_cslRed, m_cslGreen, m_cslBlue);
|
||||
// RTAddRGBCallback(RTRGBViewCallback, nullptr);
|
||||
RTAddStreamingCallback(RTSpecStreamingCallback,nullptr);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SpecCamera::cal(unsigned char *pData)
|
||||
{
|
||||
// QTime currenttime = QTime::currentTime();
|
||||
// qDebug()<<"触发时间:"<<currenttime;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// unsigned short* spec_data = new unsigned short[1024*40]; //2048*224*1
|
||||
// unsigned short* spec_data_short = (unsigned short *)pData;
|
||||
// memcpy(spec_data, spec_data_short + 1024 * 40 , 1024 * 40 * sizeof(unsigned short));
|
||||
// //将处理后的帧数据存储到vector中
|
||||
// frameData.push_back(spec_data);
|
||||
// // 检查是否已收集到足够的帧
|
||||
// if (frameData.size() == totalFrames)
|
||||
// {
|
||||
|
||||
// // 处理这些帧,例如拼接成一张大图
|
||||
// specfullImage = new unsigned short[1024 * 40 * totalFrames];
|
||||
|
||||
// for (int i = 0; i < totalFrames ; i++)
|
||||
// {
|
||||
// memcpy(specfullImage + i * 1024 * 40, frameData[i] , 1024 * 40 * sizeof(unsigned short));
|
||||
// }
|
||||
// frameData.clear();
|
||||
// if(save_flag)
|
||||
// {
|
||||
// static int file_index = 1;
|
||||
// std::string spec_filename = "E:/qt_tomato_passion/new/20240422/image/specImg/spec" + std::to_string(file_index);
|
||||
// FILE *fp = fopen(spec_filename.c_str(), "wb");
|
||||
// int ret = fwrite(specfullImage, 1, totalFrames * 1024 * 40 * sizeof(unsigned short), fp);
|
||||
// // qDebug()<<"光谱队列长度: "<<frameData.size()<<" ret : "<<ret;
|
||||
|
||||
// std::fflush(fp);
|
||||
// fclose(fp);
|
||||
// file_index++;
|
||||
// std::cout<<"save img success"<<std::endl;
|
||||
// // qDebug()<<"test_count: "<<test_count;
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
|
||||
|
||||
// memcpy(specfullImage + test_count * m_iWidth * 224, spec_data + 500 * 224, 1024 * 224 * sizeof(unsigned short));
|
||||
// test_count++;
|
||||
// if(test_count == totalFrames)
|
||||
// {
|
||||
// QTime starttime = QTime::currentTime();
|
||||
// //specImgQueue.push(specfullImage);
|
||||
|
||||
// test_count = 0;
|
||||
// QTime stoptime = QTime::currentTime();
|
||||
// int functime = starttime.msecsTo(stoptime);
|
||||
// qDebug() << "Time elapsed for image" <<functime;
|
||||
// }
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool SpecCamera::stop_capture()
|
||||
{
|
||||
bool ret = trigger_close();
|
||||
if(ret == false)
|
||||
{
|
||||
qDebug()<<"trigger is not close:"<<ret;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug()<<"trigger is close:"<<ret;
|
||||
}
|
||||
qDebug()<<"ret: "<<ret;
|
||||
if (RTIsCameraWorking())
|
||||
{
|
||||
RTStopSingleCapture();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SpecCamera::trigger_open()
|
||||
{
|
||||
bool ret = RT_SetBool(L"Camera.TriggerIn", true); //设置相机外触发
|
||||
|
||||
if(ret==false)
|
||||
{
|
||||
qDebug()<<"trigger is not open:"<<ret;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug()<<"trigger is open:"<<ret;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SpecCamera::trigger_close()
|
||||
{
|
||||
bool ret = RT_SetBool(L"Camera.TriggerIn", false);
|
||||
|
||||
if(ret==false)
|
||||
{
|
||||
qDebug()<<"trigger is not close:"<<ret;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug()<<"trigger is close:"<<ret;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SpecCamera::start_capture()
|
||||
{
|
||||
trigger_open();
|
||||
bool flag = RTStartSingleCapture(false, false, "E:/qt_tomato_passion/new/20240422/image/specImg/newdata.raw");
|
||||
if (!flag)
|
||||
{
|
||||
printf("erro to start capture");
|
||||
return 1;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
172
camera.h
Normal file
172
camera.h
Normal file
@ -0,0 +1,172 @@
|
||||
#ifndef CAMERA_H
|
||||
#define CAMERA_H
|
||||
|
||||
#include <QObject>
|
||||
#include "MvCameraControl.h"
|
||||
#include "SpectrolDll.h"
|
||||
#include "QDebug"
|
||||
#include "opencv2/opencv.hpp"
|
||||
#include "QImage"
|
||||
typedef void(*imageCallbackFunc)(unsigned char * , MV_FRAME_OUT_INFO_EX* , void* );
|
||||
typedef void(*exceptionCallbackFunc)(unsigned int , void* );
|
||||
#define CAMERApassion_left_config "E:/qt_tomato_passion/new/20240421/left.mfs"
|
||||
#define CAMERApassion_right_config "E:/qt_tomato_passion/new/20240421/right.mfs"
|
||||
#define CAMERAtoppassion_top2_config "E:/qt_tomato_passion/new/20240421/top2.mfs"
|
||||
|
||||
|
||||
#define CAMERA_CONFIG_PATH "E:/qt_tomato_passion/new/20240421/tomatoLeft.mfs"
|
||||
#define CAMERA2_CONFIG_PATH "E:/qt_tomato_passion/new/20240421/tomatoRight.mfs"
|
||||
#define CAMERAtop_CONFIG_PATH "E:/qt_tomato_passion/new/20240421/tomatoTop.mfs"
|
||||
|
||||
class tomato
|
||||
{
|
||||
public:
|
||||
unsigned int count=0;
|
||||
QImage img1;
|
||||
QImage img2;
|
||||
QImage img3;
|
||||
QImage img4;
|
||||
QImage img5;
|
||||
|
||||
|
||||
};
|
||||
struct Camera_param //相机参数在此添加,在构造函数中给出默认值,设置参数需要刷新,左侧
|
||||
{
|
||||
float exposure_time;
|
||||
float gain;
|
||||
int white_balance_ratio;
|
||||
//... other params
|
||||
};
|
||||
struct Camera_paramR //相机参数在此添加,在构造函数中给出默认值,设置参数需要刷新,右侧
|
||||
{
|
||||
float exposure_time;
|
||||
float gain;
|
||||
int white_balance_ratio;
|
||||
//... other params
|
||||
};
|
||||
struct Camera_paramTop //相机参数在此添加,在构造函数中给出默认值,设置参数需要刷新,顶部
|
||||
{
|
||||
float exposure_time;
|
||||
float gain;
|
||||
int white_balance_ratio;
|
||||
//... other params
|
||||
};
|
||||
class CameraL : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
void* camera_handle; //设备句柄
|
||||
void* camera_handle1;
|
||||
void* camera_handle2;
|
||||
MV_CC_DEVICE_INFO_LIST device_list; //设备列表
|
||||
Camera_param camera_param;
|
||||
unsigned int ip4; //用于保存ipv4地址的第4位,即192.168.0.100中的100
|
||||
int i;
|
||||
public:
|
||||
explicit CameraL(QObject *parent = nullptr);
|
||||
bool initCameraL();
|
||||
uint32_t enum_device();
|
||||
bool print_device_info();
|
||||
bool select_device();
|
||||
|
||||
|
||||
bool destroy_handle();
|
||||
bool destroy_handle1();
|
||||
bool destroy_handle2();
|
||||
|
||||
|
||||
|
||||
bool open_camera();
|
||||
bool start_capture();
|
||||
bool close_camera();
|
||||
bool set_acquisition_mode();
|
||||
bool set_test_acquisition_mode();
|
||||
bool set_ROI(int offset_x, int offset_y, int width, int height);
|
||||
bool stop_capture();
|
||||
bool register_image_callback(imageCallbackFunc onImageDataCallBackFunc,imageCallbackFunc onImageDataCallBackFunc1,imageCallbackFunc onImageDataCallBackFunc2);
|
||||
bool register_offline_callback(exceptionCallbackFunc onOfflineCallBackFunc,exceptionCallbackFunc onOfflineCallBackFunc1,exceptionCallbackFunc onOfflineCallBackFunc2);
|
||||
|
||||
bool import_config_file();
|
||||
bool save_config_file();
|
||||
bool set_param(Camera_param value);
|
||||
Camera_param get_param();
|
||||
std::queue<QImage> leftImgQueue;
|
||||
std::queue<QImage> rightImgQueue;
|
||||
std::queue<QImage> topImgQueue;
|
||||
std::queue<QImage> topImgTQueue;
|
||||
std::queue<QImage> topImgMQueue;
|
||||
std::queue<QImage> topImgBQueue;
|
||||
std::queue<tomato> tomatoQueue;
|
||||
|
||||
|
||||
signals:
|
||||
// void send_RgbimageL(cv::Mat img,unsigned int count);
|
||||
void send_Rgbimage(QImage& img);
|
||||
void send_Rgbimage1(QImage& img);
|
||||
|
||||
void send_Rgbimage2(QImage& img,QImage& img1,QImage& img2);
|
||||
|
||||
void send_camerastatus(int ret,int ret1,int ret2);
|
||||
|
||||
|
||||
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
||||
|
||||
class SpecCamera : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SpecCamera(QObject *parent = nullptr);
|
||||
bool init_SpecCamera();
|
||||
bool cal(unsigned char* pData);
|
||||
bool stop_capture();
|
||||
bool trigger_open();
|
||||
bool trigger_close();
|
||||
int m_iWidth; //相机采集数据宽度
|
||||
int m_iHeight; //相机采集数据高度
|
||||
unsigned short* specfullImage;
|
||||
const int totalFrames = 100; // 假设需要拼接50帧来形成一张图
|
||||
// std::vector<unsigned short*> frameData;
|
||||
int vector_flag;
|
||||
std::vector<unsigned short*> frameData;
|
||||
std::vector<unsigned short*> frameData_copy;
|
||||
int test_count = 0;
|
||||
//CameraSetting
|
||||
float m_fWaveLengthMin; //起点光谱波长
|
||||
float m_fWaveLengthMax; //终点光谱波长
|
||||
float m_fExpTime; //曝光时间
|
||||
float m_fGain; //增益
|
||||
|
||||
float m_iFrameRate; //帧速
|
||||
|
||||
//GenralSetting
|
||||
int m_cslRed; //红色波长序号
|
||||
int m_cslGreen; //绿色波长序号
|
||||
int m_cslBlue; //蓝色波长序号
|
||||
unsigned int m_uiDepth;
|
||||
|
||||
unsigned short* m_pusSaveBuffer;
|
||||
unsigned char* m_pRefreshBuffer; //RGB
|
||||
|
||||
unsigned char* m_specBuffer; //光谱
|
||||
|
||||
long m_iDrawCount = 0;
|
||||
|
||||
|
||||
bool start_capture();
|
||||
std::queue<unsigned short*> specImgQueue;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
signals:
|
||||
void show_SpecImg(QImage);
|
||||
void process_spec(unsigned short*);
|
||||
|
||||
|
||||
};
|
||||
#endif // CAMERA_H
|
||||
7
image_background.qrc
Normal file
7
image_background.qrc
Normal file
@ -0,0 +1,7 @@
|
||||
<RCC>
|
||||
<qresource prefix="/new/prefix1">
|
||||
<file>image/1.jpg</file>
|
||||
<file>image/2.jpg</file>
|
||||
<file>image/3.jpg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
279
left.mfs
Normal file
279
left.mfs
Normal file
@ -0,0 +1,279 @@
|
||||
# {05D8C294-F295-4dfb-9D01-096BD04049F4}
|
||||
# GenApi persistence file (version 3.0.1)
|
||||
# Device = HIKROBOT::HIKCamera -- HIKROBOT GigE Vision Camera Interface -- Device version = 1.2.0 -- Product GUID = EE4B7E09-DA29-4956-A1EC-212263331CFC -- Product version GUID = 79ace398-62e3-44a6-8845-f81aaf104382
|
||||
ReverseX 0
|
||||
ReverseY 0
|
||||
PixelFormat BayerRG8
|
||||
DecimationHorizontal DecimationHorizontal1
|
||||
DecimationVertical DecimationVertical1
|
||||
AcquisitionMode Continuous
|
||||
AcquisitionBurstFrameCount 1
|
||||
AcquisitionFrameRate 23.14
|
||||
AcquisitionFrameRateEnable 1
|
||||
TriggerCacheEnable 0
|
||||
ExposureMode Timed
|
||||
ExposureTimeMode Standard
|
||||
ExposureTime 700
|
||||
ExposureAuto Off
|
||||
AutoExposureTimeLowerLimit 15
|
||||
AutoExposureTimeUpperLimit 42663
|
||||
HDREnable 0
|
||||
ActionDeviceKey 0
|
||||
ChunkModeActive 0
|
||||
CCMEnable 1
|
||||
ColorTransformationSelector RGBtoRGB
|
||||
ColorTransformationEnable 1
|
||||
ColorTransformationValueSelector Gain22
|
||||
Gain 0
|
||||
GainAuto Off
|
||||
AutoGainLowerLimit 0
|
||||
AutoGainUpperLimit 23.9812
|
||||
DigitalShiftEnable 0
|
||||
BlackLevel 240
|
||||
BlackLevelEnable 1
|
||||
BalanceWhiteAuto Off
|
||||
UserSetDefault Default
|
||||
GevHeartbeatTimeout 3000
|
||||
GevGVCPHeartbeatDisable 0
|
||||
GevMCTT 0
|
||||
GevMCRC 0
|
||||
GevIEEE1588 0
|
||||
GevGVSPExtendedIDMode Off
|
||||
ActionSelector 0
|
||||
ActionGroupMask 0
|
||||
ActionSelector 0
|
||||
ActionSelector 0
|
||||
ActionGroupKey 0
|
||||
ActionSelector 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIUsageIntensity 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIUsageWhiteBalance 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
BalanceRatioSelector Red
|
||||
BalanceRatio 1458
|
||||
BalanceRatioSelector Green
|
||||
BalanceRatio 1024
|
||||
BalanceRatioSelector Blue
|
||||
BalanceRatio 1957
|
||||
BalanceRatioSelector Red
|
||||
BinningSelector Region0
|
||||
BinningHorizontal BinningHorizontal1
|
||||
BinningSelector Region0
|
||||
BinningSelector Region0
|
||||
BinningVertical BinningVertical1
|
||||
BinningSelector Region0
|
||||
CounterSelector Counter0
|
||||
CounterEventSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterResetSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterValue 1
|
||||
CounterSelector Counter0
|
||||
DeviceLinkSelector 0
|
||||
DeviceLinkHeartbeatMode On
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
DeviceStreamChannelPacketSize 1500
|
||||
DeviceStreamChannelSelector 0
|
||||
EventSelector AcquisitionStart
|
||||
EventNotification Off
|
||||
EventSelector AcquisitionEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameStart
|
||||
EventNotification Off
|
||||
EventSelector FrameEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstStart
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstEnd
|
||||
EventNotification Off
|
||||
EventSelector ExposureStart
|
||||
EventNotification Off
|
||||
EventSelector ExposureEnd
|
||||
EventNotification Off
|
||||
EventSelector Line0RisingEdge
|
||||
EventNotification Off
|
||||
EventSelector Line0FallingEdge
|
||||
EventNotification Off
|
||||
EventSelector FrameStartOverTrigger
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
EventNotification Off
|
||||
EventSelector FrameTriggerWait
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet2
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet3
|
||||
FileOperationSelector Open
|
||||
FileSelector DPC
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance1
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance2
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance3
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet1
|
||||
FileSelector UserSet1
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet2
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet3
|
||||
FileOpenMode Read
|
||||
FileSelector DPC
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance1
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance2
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance3
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet1
|
||||
FrameSpecInfoSelector Timestamp
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Gain
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Exposure
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector BrightnessInfo
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector WhiteBalance
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Framecounter
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ExtTriggerCount
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector LineInputOutput
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ROIPosition
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPSPacketSize 1500
|
||||
GevStreamChannelSelector 0
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPD 400
|
||||
GevStreamChannelSelector 0
|
||||
HDRSelector 0
|
||||
HDRShutter 15
|
||||
HDRSelector 1
|
||||
HDRShutter 15
|
||||
HDRSelector 2
|
||||
HDRShutter 15
|
||||
HDRSelector 3
|
||||
HDRShutter 15
|
||||
HDRSelector 0
|
||||
HDRSelector 0
|
||||
HDRGain 0
|
||||
HDRSelector 1
|
||||
HDRGain 0
|
||||
HDRSelector 2
|
||||
HDRGain 0
|
||||
HDRSelector 3
|
||||
HDRGain 0
|
||||
HDRSelector 0
|
||||
LineSelector Line1
|
||||
LineMode Strobe
|
||||
LineSelector Line2
|
||||
LineMode Input
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineSource ExposureStartActive
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineInverter 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeEnable 0
|
||||
LineSelector Line0
|
||||
LineSelector Line0
|
||||
LineDebouncerTime 100
|
||||
LineSelector Line2
|
||||
LineDebouncerTime 50
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDuration 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDelay 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLinePreDelay 0
|
||||
LineSelector Line0
|
||||
RegionSelector Region0
|
||||
RegionDestination Stream0
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Width 2448
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Height 2048
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetX 0
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetY 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
TestPattern Off
|
||||
TestPatternGeneratorSelector Region0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerMode Off
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSource Line0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerActivation RisingEdge
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerDelay 0
|
||||
TriggerSelector FrameBurstStart
|
||||
DeviceConnectionSelector 0
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
BinningSelector Region0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
TriggerSelector FrameBurstStart
|
||||
HDRSelector 0
|
||||
LineSelector Line0
|
||||
ActionSelector 0
|
||||
CounterSelector Counter0
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
EventSelector StreamTransferOverflow
|
||||
BalanceRatioSelector Red
|
||||
AutoFunctionAOISelector AOI1
|
||||
UserSetSelector Default
|
||||
GevSupportedOptionSelector CommandsConcatenation
|
||||
GevStreamChannelSelector 0
|
||||
11
main.cpp
Normal file
11
main.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include "widget.h"
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
Widget w;
|
||||
w.show();
|
||||
return a.exec();
|
||||
}
|
||||
11
object_script.tomato1227.Debug
Normal file
11
object_script.tomato1227.Debug
Normal file
@ -0,0 +1,11 @@
|
||||
debug/camera.o
|
||||
debug/main.o
|
||||
debug/modbus-data.o
|
||||
debug/modbus-rtu.o
|
||||
debug/modbus-tcp.o
|
||||
debug/modbus.o
|
||||
debug/thread.o
|
||||
debug/widget.o
|
||||
debug/moc_camera.o
|
||||
debug/moc_thread.o
|
||||
debug/moc_widget.o
|
||||
11
object_script.tomato1227.Release
Normal file
11
object_script.tomato1227.Release
Normal file
@ -0,0 +1,11 @@
|
||||
release/camera.o
|
||||
release/main.o
|
||||
release/modbus-data.o
|
||||
release/modbus-rtu.o
|
||||
release/modbus-tcp.o
|
||||
release/modbus.o
|
||||
release/thread.o
|
||||
release/widget.o
|
||||
release/moc_camera.o
|
||||
release/moc_thread.o
|
||||
release/moc_widget.o
|
||||
279
right.mfs
Normal file
279
right.mfs
Normal file
@ -0,0 +1,279 @@
|
||||
# {05D8C294-F295-4dfb-9D01-096BD04049F4}
|
||||
# GenApi persistence file (version 3.0.1)
|
||||
# Device = HIKROBOT::HIKCamera -- HIKROBOT GigE Vision Camera Interface -- Device version = 1.2.0 -- Product GUID = EE4B7E09-DA29-4956-A1EC-212263331CFC -- Product version GUID = 79ace398-62e3-44a6-8845-f81aaf104382
|
||||
ReverseX 0
|
||||
ReverseY 0
|
||||
PixelFormat BayerRG8
|
||||
DecimationHorizontal DecimationHorizontal1
|
||||
DecimationVertical DecimationVertical1
|
||||
AcquisitionMode Continuous
|
||||
AcquisitionBurstFrameCount 1
|
||||
AcquisitionFrameRate 23.14
|
||||
AcquisitionFrameRateEnable 1
|
||||
TriggerCacheEnable 0
|
||||
ExposureMode Timed
|
||||
ExposureTimeMode Standard
|
||||
ExposureTime 700
|
||||
ExposureAuto Off
|
||||
AutoExposureTimeLowerLimit 15
|
||||
AutoExposureTimeUpperLimit 42663
|
||||
HDREnable 0
|
||||
ActionDeviceKey 0
|
||||
ChunkModeActive 0
|
||||
CCMEnable 1
|
||||
ColorTransformationSelector RGBtoRGB
|
||||
ColorTransformationEnable 1
|
||||
ColorTransformationValueSelector Gain22
|
||||
Gain 0
|
||||
GainAuto Off
|
||||
AutoGainLowerLimit 0
|
||||
AutoGainUpperLimit 23.9812
|
||||
DigitalShiftEnable 0
|
||||
BlackLevel 240
|
||||
BlackLevelEnable 1
|
||||
BalanceWhiteAuto Off
|
||||
UserSetDefault Default
|
||||
GevHeartbeatTimeout 3000
|
||||
GevGVCPHeartbeatDisable 0
|
||||
GevMCTT 0
|
||||
GevMCRC 0
|
||||
GevIEEE1588 0
|
||||
GevGVSPExtendedIDMode Off
|
||||
ActionSelector 0
|
||||
ActionGroupMask 0
|
||||
ActionSelector 0
|
||||
ActionSelector 0
|
||||
ActionGroupKey 0
|
||||
ActionSelector 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIUsageIntensity 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIUsageWhiteBalance 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
BalanceRatioSelector Red
|
||||
BalanceRatio 1458
|
||||
BalanceRatioSelector Green
|
||||
BalanceRatio 1024
|
||||
BalanceRatioSelector Blue
|
||||
BalanceRatio 1957
|
||||
BalanceRatioSelector Red
|
||||
BinningSelector Region0
|
||||
BinningHorizontal BinningHorizontal1
|
||||
BinningSelector Region0
|
||||
BinningSelector Region0
|
||||
BinningVertical BinningVertical1
|
||||
BinningSelector Region0
|
||||
CounterSelector Counter0
|
||||
CounterEventSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterResetSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterValue 1
|
||||
CounterSelector Counter0
|
||||
DeviceLinkSelector 0
|
||||
DeviceLinkHeartbeatMode On
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
DeviceStreamChannelPacketSize 1500
|
||||
DeviceStreamChannelSelector 0
|
||||
EventSelector AcquisitionStart
|
||||
EventNotification Off
|
||||
EventSelector AcquisitionEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameStart
|
||||
EventNotification Off
|
||||
EventSelector FrameEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstStart
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstEnd
|
||||
EventNotification Off
|
||||
EventSelector ExposureStart
|
||||
EventNotification Off
|
||||
EventSelector ExposureEnd
|
||||
EventNotification Off
|
||||
EventSelector Line0RisingEdge
|
||||
EventNotification Off
|
||||
EventSelector Line0FallingEdge
|
||||
EventNotification Off
|
||||
EventSelector FrameStartOverTrigger
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
EventNotification Off
|
||||
EventSelector FrameTriggerWait
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet2
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet3
|
||||
FileOperationSelector Open
|
||||
FileSelector DPC
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance1
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance2
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance3
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet1
|
||||
FileSelector UserSet1
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet2
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet3
|
||||
FileOpenMode Read
|
||||
FileSelector DPC
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance1
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance2
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance3
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet1
|
||||
FrameSpecInfoSelector Timestamp
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Gain
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Exposure
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector BrightnessInfo
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector WhiteBalance
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Framecounter
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ExtTriggerCount
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector LineInputOutput
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ROIPosition
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPSPacketSize 1500
|
||||
GevStreamChannelSelector 0
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPD 400
|
||||
GevStreamChannelSelector 0
|
||||
HDRSelector 0
|
||||
HDRShutter 15
|
||||
HDRSelector 1
|
||||
HDRShutter 15
|
||||
HDRSelector 2
|
||||
HDRShutter 15
|
||||
HDRSelector 3
|
||||
HDRShutter 15
|
||||
HDRSelector 0
|
||||
HDRSelector 0
|
||||
HDRGain 0
|
||||
HDRSelector 1
|
||||
HDRGain 0
|
||||
HDRSelector 2
|
||||
HDRGain 0
|
||||
HDRSelector 3
|
||||
HDRGain 0
|
||||
HDRSelector 0
|
||||
LineSelector Line1
|
||||
LineMode Strobe
|
||||
LineSelector Line2
|
||||
LineMode Input
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineSource ExposureStartActive
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineInverter 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeEnable 0
|
||||
LineSelector Line0
|
||||
LineSelector Line0
|
||||
LineDebouncerTime 100
|
||||
LineSelector Line2
|
||||
LineDebouncerTime 50
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDuration 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDelay 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLinePreDelay 0
|
||||
LineSelector Line0
|
||||
RegionSelector Region0
|
||||
RegionDestination Stream0
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Width 2448
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Height 2048
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetX 0
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetY 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
TestPattern Off
|
||||
TestPatternGeneratorSelector Region0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerMode Off
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSource Line0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerActivation RisingEdge
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerDelay 0
|
||||
TriggerSelector FrameBurstStart
|
||||
DeviceConnectionSelector 0
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
BinningSelector Region0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
TriggerSelector FrameBurstStart
|
||||
HDRSelector 0
|
||||
LineSelector Line0
|
||||
ActionSelector 0
|
||||
CounterSelector Counter0
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
EventSelector StreamTransferOverflow
|
||||
BalanceRatioSelector Red
|
||||
AutoFunctionAOISelector AOI1
|
||||
UserSetSelector Default
|
||||
GevSupportedOptionSelector CommandsConcatenation
|
||||
GevStreamChannelSelector 0
|
||||
233
src/modbus-data.c
Normal file
233
src/modbus-data.c
Normal file
@ -0,0 +1,233 @@
|
||||
/*
|
||||
* Copyright © 2010-2014 Stéphane Raimbault <stephane.raimbault@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: LGPL-2.1+
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef _MSC_VER
|
||||
# include <stdint.h>
|
||||
#else
|
||||
# include "stdint.h"
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#if defined(_WIN32)
|
||||
# include <winsock2.h>
|
||||
#else
|
||||
# include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
//#include <config.h>
|
||||
|
||||
#include "modbus.h"
|
||||
|
||||
#if defined(HAVE_BYTESWAP_H)
|
||||
# include <byteswap.h>
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
# include <libkern/OSByteOrder.h>
|
||||
# define bswap_16 OSSwapInt16
|
||||
# define bswap_32 OSSwapInt32
|
||||
# define bswap_64 OSSwapInt64
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__)
|
||||
# define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__ * 10)
|
||||
# if GCC_VERSION >= 430
|
||||
// Since GCC >= 4.30, GCC provides __builtin_bswapXX() alternatives so we switch to them
|
||||
# undef bswap_32
|
||||
# define bswap_32 __builtin_bswap32
|
||||
# endif
|
||||
# if GCC_VERSION >= 480
|
||||
# undef bswap_16
|
||||
# define bswap_16 __builtin_bswap16
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
||||
# define bswap_32 _byteswap_ulong
|
||||
# define bswap_16 _byteswap_ushort
|
||||
#endif
|
||||
|
||||
#if !defined(bswap_16)
|
||||
# warning "Fallback on C functions for bswap_16"
|
||||
static inline uint16_t bswap_16(uint16_t x)
|
||||
{
|
||||
return (x >> 8) | (x << 8);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(bswap_32)
|
||||
# warning "Fallback on C functions for bswap_32"
|
||||
static inline uint32_t bswap_32(uint32_t x)
|
||||
{
|
||||
return (bswap_16(x & 0xffff) << 16) | (bswap_16(x >> 16));
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Sets many bits from a single byte value (all 8 bits of the byte value are
|
||||
set) */
|
||||
void modbus_set_bits_from_byte(uint8_t *dest, int idx, const uint8_t value)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i=0; i < 8; i++) {
|
||||
dest[idx+i] = (value & (1 << i)) ? 1 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Sets many bits from a table of bytes (only the bits between idx and
|
||||
idx + nb_bits are set) */
|
||||
void modbus_set_bits_from_bytes(uint8_t *dest, int idx, unsigned int nb_bits,
|
||||
const uint8_t *tab_byte)
|
||||
{
|
||||
unsigned int i;
|
||||
int shift = 0;
|
||||
|
||||
for (i = idx; i < idx + nb_bits; i++) {
|
||||
dest[i] = tab_byte[(i - idx) / 8] & (1 << shift) ? 1 : 0;
|
||||
/* gcc doesn't like: shift = (++shift) % 8; */
|
||||
shift++;
|
||||
shift %= 8;
|
||||
}
|
||||
}
|
||||
|
||||
/* Gets the byte value from many bits.
|
||||
To obtain a full byte, set nb_bits to 8. */
|
||||
uint8_t modbus_get_byte_from_bits(const uint8_t *src, int idx,
|
||||
unsigned int nb_bits)
|
||||
{
|
||||
unsigned int i;
|
||||
uint8_t value = 0;
|
||||
|
||||
if (nb_bits > 8) {
|
||||
/* Assert is ignored if NDEBUG is set */
|
||||
assert(nb_bits < 8);
|
||||
nb_bits = 8;
|
||||
}
|
||||
|
||||
for (i=0; i < nb_bits; i++) {
|
||||
value |= (src[idx+i] << i);
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
/* Get a float from 4 bytes (Modbus) without any conversion (ABCD) */
|
||||
float modbus_get_float_abcd(const uint16_t *src)
|
||||
{
|
||||
float f;
|
||||
uint32_t i;
|
||||
|
||||
i = ntohl(((uint32_t)src[0] << 16) + src[1]);
|
||||
memcpy(&f, &i, sizeof(float));
|
||||
|
||||
return f;
|
||||
}
|
||||
|
||||
/* Get a float from 4 bytes (Modbus) in inversed format (DCBA) */
|
||||
float modbus_get_float_dcba(const uint16_t *src)
|
||||
{
|
||||
float f;
|
||||
uint32_t i;
|
||||
|
||||
i = ntohl(bswap_32((((uint32_t)src[0]) << 16) + src[1]));
|
||||
memcpy(&f, &i, sizeof(float));
|
||||
|
||||
return f;
|
||||
}
|
||||
|
||||
/* Get a float from 4 bytes (Modbus) with swapped bytes (BADC) */
|
||||
float modbus_get_float_badc(const uint16_t *src)
|
||||
{
|
||||
float f;
|
||||
uint32_t i;
|
||||
|
||||
i = ntohl((uint32_t)(bswap_16(src[0]) << 16) + bswap_16(src[1]));
|
||||
memcpy(&f, &i, sizeof(float));
|
||||
|
||||
return f;
|
||||
}
|
||||
|
||||
/* Get a float from 4 bytes (Modbus) with swapped words (CDAB) */
|
||||
float modbus_get_float_cdab(const uint16_t *src)
|
||||
{
|
||||
float f;
|
||||
uint32_t i;
|
||||
|
||||
i = ntohl((((uint32_t)src[1]) << 16) + src[0]);
|
||||
memcpy(&f, &i, sizeof(float));
|
||||
|
||||
return f;
|
||||
}
|
||||
|
||||
/* DEPRECATED - Get a float from 4 bytes in sort of Modbus format */
|
||||
float modbus_get_float(const uint16_t *src)
|
||||
{
|
||||
float f;
|
||||
uint32_t i;
|
||||
|
||||
i = (((uint32_t)src[1]) << 16) + src[0];
|
||||
memcpy(&f, &i, sizeof(float));
|
||||
|
||||
return f;
|
||||
}
|
||||
|
||||
/* Set a float to 4 bytes for Modbus w/o any conversion (ABCD) */
|
||||
void modbus_set_float_abcd(float f, uint16_t *dest)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
memcpy(&i, &f, sizeof(uint32_t));
|
||||
i = htonl(i);
|
||||
dest[0] = (uint16_t)(i >> 16);
|
||||
dest[1] = (uint16_t)i;
|
||||
}
|
||||
|
||||
/* Set a float to 4 bytes for Modbus with byte and word swap conversion (DCBA) */
|
||||
void modbus_set_float_dcba(float f, uint16_t *dest)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
memcpy(&i, &f, sizeof(uint32_t));
|
||||
i = bswap_32(htonl(i));
|
||||
dest[0] = (uint16_t)(i >> 16);
|
||||
dest[1] = (uint16_t)i;
|
||||
}
|
||||
|
||||
/* Set a float to 4 bytes for Modbus with byte swap conversion (BADC) */
|
||||
void modbus_set_float_badc(float f, uint16_t *dest)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
memcpy(&i, &f, sizeof(uint32_t));
|
||||
i = htonl(i);
|
||||
dest[0] = (uint16_t)bswap_16(i >> 16);
|
||||
dest[1] = (uint16_t)bswap_16(i & 0xFFFF);
|
||||
}
|
||||
|
||||
/* Set a float to 4 bytes for Modbus with word swap conversion (CDAB) */
|
||||
void modbus_set_float_cdab(float f, uint16_t *dest)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
memcpy(&i, &f, sizeof(uint32_t));
|
||||
i = htonl(i);
|
||||
dest[0] = (uint16_t)i;
|
||||
dest[1] = (uint16_t)(i >> 16);
|
||||
}
|
||||
|
||||
/* DEPRECATED - Set a float to 4 bytes in a sort of Modbus format! */
|
||||
void modbus_set_float(float f, uint16_t *dest)
|
||||
{
|
||||
uint32_t i;
|
||||
|
||||
memcpy(&i, &f, sizeof(uint32_t));
|
||||
dest[0] = (uint16_t)i;
|
||||
dest[1] = (uint16_t)(i >> 16);
|
||||
}
|
||||
116
src/modbus-private.h
Normal file
116
src/modbus-private.h
Normal file
@ -0,0 +1,116 @@
|
||||
/*
|
||||
* Copyright © 2010-2012 Stéphane Raimbault <stephane.raimbault@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: LGPL-2.1+
|
||||
*/
|
||||
|
||||
#ifndef MODBUS_PRIVATE_H
|
||||
#define MODBUS_PRIVATE_H
|
||||
|
||||
#ifndef _MSC_VER
|
||||
# include <stdint.h>
|
||||
# include <sys/time.h>
|
||||
#else
|
||||
# include "stdint.h"
|
||||
# include <time.h>
|
||||
typedef int ssize_t;
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
//#include <config.h>
|
||||
|
||||
#include "modbus.h"
|
||||
|
||||
MODBUS_BEGIN_DECLS
|
||||
|
||||
/* It's not really the minimal length (the real one is report slave ID
|
||||
* in RTU (4 bytes)) but it's a convenient size to use in RTU or TCP
|
||||
* communications to read many values or write a single one.
|
||||
* Maximum between :
|
||||
* - HEADER_LENGTH_TCP (7) + function (1) + address (2) + number (2)
|
||||
* - HEADER_LENGTH_RTU (1) + function (1) + address (2) + number (2) + CRC (2)
|
||||
*/
|
||||
#define _MIN_REQ_LENGTH 12
|
||||
|
||||
#define _REPORT_SLAVE_ID 180
|
||||
|
||||
#define _MODBUS_EXCEPTION_RSP_LENGTH 5
|
||||
|
||||
/* Timeouts in microsecond (0.5 s) */
|
||||
#define _RESPONSE_TIMEOUT 500000
|
||||
#define _BYTE_TIMEOUT 500000
|
||||
|
||||
typedef enum {
|
||||
_MODBUS_BACKEND_TYPE_RTU=0,
|
||||
_MODBUS_BACKEND_TYPE_TCP
|
||||
} modbus_backend_type_t;
|
||||
|
||||
/*
|
||||
* ---------- Request Indication ----------
|
||||
* | Client | ---------------------->| Server |
|
||||
* ---------- Confirmation Response ----------
|
||||
*/
|
||||
typedef enum {
|
||||
/* Request message on the server side */
|
||||
MSG_INDICATION,
|
||||
/* Request message on the client side */
|
||||
MSG_CONFIRMATION
|
||||
} msg_type_t;
|
||||
|
||||
/* This structure reduces the number of params in functions and so
|
||||
* optimizes the speed of execution (~ 37%). */
|
||||
typedef struct _sft {
|
||||
int slave;
|
||||
int function;
|
||||
int t_id;
|
||||
} sft_t;
|
||||
|
||||
typedef struct _modbus_backend {
|
||||
unsigned int backend_type;
|
||||
unsigned int header_length;
|
||||
unsigned int checksum_length;
|
||||
unsigned int max_adu_length;
|
||||
int (*set_slave) (modbus_t *ctx, int slave);
|
||||
int (*build_request_basis) (modbus_t *ctx, int function, int addr,
|
||||
int nb, uint8_t *req);
|
||||
int (*build_response_basis) (sft_t *sft, uint8_t *rsp);
|
||||
int (*prepare_response_tid) (const uint8_t *req, int *req_length);
|
||||
int (*send_msg_pre) (uint8_t *req, int req_length);
|
||||
ssize_t (*send) (modbus_t *ctx, const uint8_t *req, int req_length);
|
||||
int (*receive) (modbus_t *ctx, uint8_t *req);
|
||||
ssize_t (*recv) (modbus_t *ctx, uint8_t *rsp, int rsp_length);
|
||||
int (*check_integrity) (modbus_t *ctx, uint8_t *msg,
|
||||
const int msg_length);
|
||||
int (*pre_check_confirmation) (modbus_t *ctx, const uint8_t *req,
|
||||
const uint8_t *rsp, int rsp_length);
|
||||
int (*connect) (modbus_t *ctx);
|
||||
void (*close) (modbus_t *ctx);
|
||||
int (*flush) (modbus_t *ctx);
|
||||
int (*select) (modbus_t *ctx, fd_set *rset, struct timeval *tv, int msg_length);
|
||||
void (*free) (modbus_t *ctx);
|
||||
} modbus_backend_t;
|
||||
|
||||
struct _modbus {
|
||||
/* Slave address */
|
||||
int slave;
|
||||
/* Socket or file descriptor */
|
||||
int s;
|
||||
int debug;
|
||||
int error_recovery;
|
||||
struct timeval response_timeout;
|
||||
struct timeval byte_timeout;
|
||||
struct timeval indication_timeout;
|
||||
const modbus_backend_t *backend;
|
||||
void *backend_data;
|
||||
};
|
||||
|
||||
void _modbus_init_common(modbus_t *ctx);
|
||||
void _error_print(modbus_t *ctx, const char *context);
|
||||
int _modbus_receive_msg(modbus_t *ctx, uint8_t *msg, msg_type_t msg_type);
|
||||
|
||||
#ifndef HAVE_STRLCPY
|
||||
size_t strlcpy(char *dest, const char *src, size_t dest_size);
|
||||
#endif
|
||||
|
||||
MODBUS_END_DECLS
|
||||
|
||||
#endif /* MODBUS_PRIVATE_H */
|
||||
76
src/modbus-rtu-private.h
Normal file
76
src/modbus-rtu-private.h
Normal file
@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright © 2001-2011 Stéphane Raimbault <stephane.raimbault@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: LGPL-2.1+
|
||||
*/
|
||||
|
||||
#ifndef MODBUS_RTU_PRIVATE_H
|
||||
#define MODBUS_RTU_PRIVATE_H
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#include <stdint.h>
|
||||
#else
|
||||
#include "stdint.h"
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <termios.h>
|
||||
#endif
|
||||
|
||||
#define _MODBUS_RTU_HEADER_LENGTH 1
|
||||
#define _MODBUS_RTU_PRESET_REQ_LENGTH 6
|
||||
#define _MODBUS_RTU_PRESET_RSP_LENGTH 2
|
||||
|
||||
#define _MODBUS_RTU_CHECKSUM_LENGTH 2
|
||||
|
||||
#if defined(_WIN32)
|
||||
#if !defined(ENOTSUP)
|
||||
#define ENOTSUP WSAEOPNOTSUPP
|
||||
#endif
|
||||
|
||||
/* WIN32: struct containing serial handle and a receive buffer */
|
||||
#define PY_BUF_SIZE 512
|
||||
struct win32_ser {
|
||||
/* File handle */
|
||||
HANDLE fd;
|
||||
/* Receive buffer */
|
||||
uint8_t buf[PY_BUF_SIZE];
|
||||
/* Received chars */
|
||||
DWORD n_bytes;
|
||||
};
|
||||
#endif /* _WIN32 */
|
||||
|
||||
typedef struct _modbus_rtu {
|
||||
/* Device: "/dev/ttyS0", "/dev/ttyUSB0" or "/dev/tty.USA19*" on Mac OS X. */
|
||||
char *device;
|
||||
/* Bauds: 9600, 19200, 57600, 115200, etc */
|
||||
int baud;
|
||||
/* Data bit */
|
||||
uint8_t data_bit;
|
||||
/* Stop bit */
|
||||
uint8_t stop_bit;
|
||||
/* Parity: 'N', 'O', 'E' */
|
||||
char parity;
|
||||
#if defined(_WIN32)
|
||||
struct win32_ser w_ser;
|
||||
DCB old_dcb;
|
||||
#else
|
||||
/* Save old termios settings */
|
||||
struct termios old_tios;
|
||||
#endif
|
||||
#if HAVE_DECL_TIOCSRS485
|
||||
int serial_mode;
|
||||
#endif
|
||||
#if HAVE_DECL_TIOCM_RTS
|
||||
int rts;
|
||||
int rts_delay;
|
||||
int onebyte_time;
|
||||
void (*set_rts) (modbus_t *ctx, int on);
|
||||
#endif
|
||||
/* To handle many slaves on the same link */
|
||||
int confirmation_to_ignore;
|
||||
} modbus_rtu_t;
|
||||
|
||||
#endif /* MODBUS_RTU_PRIVATE_H */
|
||||
1299
src/modbus-rtu.c
Normal file
1299
src/modbus-rtu.c
Normal file
File diff suppressed because it is too large
Load Diff
42
src/modbus-rtu.h
Normal file
42
src/modbus-rtu.h
Normal file
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright © 2001-2011 Stéphane Raimbault <stephane.raimbault@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: LGPL-2.1+
|
||||
*/
|
||||
|
||||
#ifndef MODBUS_RTU_H
|
||||
#define MODBUS_RTU_H
|
||||
|
||||
#include "modbus.h"
|
||||
|
||||
MODBUS_BEGIN_DECLS
|
||||
|
||||
/* Modbus_Application_Protocol_V1_1b.pdf Chapter 4 Section 1 Page 5
|
||||
* RS232 / RS485 ADU = 253 bytes + slave (1 byte) + CRC (2 bytes) = 256 bytes
|
||||
*/
|
||||
#define MODBUS_RTU_MAX_ADU_LENGTH 256
|
||||
|
||||
MODBUS_API modbus_t* modbus_new_rtu(const char *device, int baud, char parity,
|
||||
int data_bit, int stop_bit);
|
||||
|
||||
#define MODBUS_RTU_RS232 0
|
||||
#define MODBUS_RTU_RS485 1
|
||||
|
||||
MODBUS_API int modbus_rtu_set_serial_mode(modbus_t *ctx, int mode);
|
||||
MODBUS_API int modbus_rtu_get_serial_mode(modbus_t *ctx);
|
||||
|
||||
#define MODBUS_RTU_RTS_NONE 0
|
||||
#define MODBUS_RTU_RTS_UP 1
|
||||
#define MODBUS_RTU_RTS_DOWN 2
|
||||
|
||||
MODBUS_API int modbus_rtu_set_rts(modbus_t *ctx, int mode);
|
||||
MODBUS_API int modbus_rtu_get_rts(modbus_t *ctx);
|
||||
|
||||
MODBUS_API int modbus_rtu_set_custom_rts(modbus_t *ctx, void (*set_rts) (modbus_t *ctx, int on));
|
||||
|
||||
MODBUS_API int modbus_rtu_set_rts_delay(modbus_t *ctx, int us);
|
||||
MODBUS_API int modbus_rtu_get_rts_delay(modbus_t *ctx);
|
||||
|
||||
MODBUS_END_DECLS
|
||||
|
||||
#endif /* MODBUS_RTU_H */
|
||||
44
src/modbus-tcp-private.h
Normal file
44
src/modbus-tcp-private.h
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright © 2001-2011 Stéphane Raimbault <stephane.raimbault@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: LGPL-2.1+
|
||||
*/
|
||||
|
||||
#ifndef MODBUS_TCP_PRIVATE_H
|
||||
#define MODBUS_TCP_PRIVATE_H
|
||||
|
||||
#define _MODBUS_TCP_HEADER_LENGTH 7
|
||||
#define _MODBUS_TCP_PRESET_REQ_LENGTH 12
|
||||
#define _MODBUS_TCP_PRESET_RSP_LENGTH 8
|
||||
|
||||
#define _MODBUS_TCP_CHECKSUM_LENGTH 0
|
||||
|
||||
/* In both structures, the transaction ID must be placed on first position
|
||||
to have a quick access not dependant of the TCP backend */
|
||||
typedef struct _modbus_tcp {
|
||||
/* Extract from MODBUS Messaging on TCP/IP Implementation Guide V1.0b
|
||||
(page 23/46):
|
||||
The transaction identifier is used to associate the future response
|
||||
with the request. This identifier is unique on each TCP connection. */
|
||||
uint16_t t_id;
|
||||
/* TCP port */
|
||||
int port;
|
||||
/* IP address */
|
||||
char ip[16];
|
||||
} modbus_tcp_t;
|
||||
|
||||
#define _MODBUS_TCP_PI_NODE_LENGTH 1025
|
||||
#define _MODBUS_TCP_PI_SERVICE_LENGTH 32
|
||||
|
||||
typedef struct _modbus_tcp_pi {
|
||||
/* Transaction ID */
|
||||
uint16_t t_id;
|
||||
/* TCP port */
|
||||
int port;
|
||||
/* Node */
|
||||
char node[_MODBUS_TCP_PI_NODE_LENGTH];
|
||||
/* Service */
|
||||
char service[_MODBUS_TCP_PI_SERVICE_LENGTH];
|
||||
} modbus_tcp_pi_t;
|
||||
|
||||
#endif /* MODBUS_TCP_PRIVATE_H */
|
||||
929
src/modbus-tcp.c
Normal file
929
src/modbus-tcp.c
Normal file
@ -0,0 +1,929 @@
|
||||
/*
|
||||
* Copyright © 2001-2013 Stéphane Raimbault <stephane.raimbault@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: LGPL-2.1+
|
||||
*/
|
||||
|
||||
#if defined(_WIN32)
|
||||
# define OS_WIN32
|
||||
/* ws2_32.dll has getaddrinfo and freeaddrinfo on Windows XP and later.
|
||||
* minwg32 headers check WINVER before allowing the use of these */
|
||||
# ifndef WINVER
|
||||
# define WINVER 0x0501
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <signal.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#if defined(_WIN32)
|
||||
/* Already set in modbus-tcp.h but it seems order matters in VS2005 */
|
||||
# include <winsock2.h>
|
||||
# include <ws2tcpip.h>
|
||||
# define SHUT_RDWR 2
|
||||
# define close closesocket
|
||||
#else
|
||||
# include <sys/socket.h>
|
||||
# include <sys/ioctl.h>
|
||||
|
||||
#if defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ < 5)
|
||||
# define OS_BSD
|
||||
# include <netinet/in_systm.h>
|
||||
#endif
|
||||
|
||||
# include <netinet/in.h>
|
||||
# include <netinet/ip.h>
|
||||
# include <netinet/tcp.h>
|
||||
# include <arpa/inet.h>
|
||||
# include <netdb.h>
|
||||
#endif
|
||||
|
||||
#if !defined(MSG_NOSIGNAL)
|
||||
#define MSG_NOSIGNAL 0
|
||||
#endif
|
||||
|
||||
#if defined(_AIX) && !defined(MSG_DONTWAIT)
|
||||
#define MSG_DONTWAIT MSG_NONBLOCK
|
||||
#endif
|
||||
|
||||
#include "modbus-private.h"
|
||||
|
||||
#include "modbus-tcp.h"
|
||||
#include "modbus-tcp-private.h"
|
||||
|
||||
#ifdef OS_WIN32
|
||||
static int _modbus_tcp_init_win32(void)
|
||||
{
|
||||
/* Initialise Windows Socket API */
|
||||
WSADATA wsaData;
|
||||
|
||||
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) {
|
||||
fprintf(stderr, "WSAStartup() returned error code %d\n",
|
||||
(unsigned int)GetLastError());
|
||||
errno = EIO;
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int _modbus_set_slave(modbus_t *ctx, int slave)
|
||||
{
|
||||
/* Broadcast address is 0 (MODBUS_BROADCAST_ADDRESS) */
|
||||
if (slave >= 0 && slave <= 247) {
|
||||
ctx->slave = slave;
|
||||
} else if (slave == MODBUS_TCP_SLAVE) {
|
||||
/* The special value MODBUS_TCP_SLAVE (0xFF) can be used in TCP mode to
|
||||
* restore the default value. */
|
||||
ctx->slave = slave;
|
||||
} else {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Builds a TCP request header */
|
||||
static int _modbus_tcp_build_request_basis(modbus_t *ctx, int function,
|
||||
int addr, int nb,
|
||||
uint8_t *req)
|
||||
{
|
||||
modbus_tcp_t *ctx_tcp = ctx->backend_data;
|
||||
|
||||
/* Increase transaction ID */
|
||||
if (ctx_tcp->t_id < UINT16_MAX)
|
||||
ctx_tcp->t_id++;
|
||||
else
|
||||
ctx_tcp->t_id = 0;
|
||||
req[0] = ctx_tcp->t_id >> 8;
|
||||
req[1] = ctx_tcp->t_id & 0x00ff;
|
||||
|
||||
/* Protocol Modbus */
|
||||
req[2] = 0;
|
||||
req[3] = 0;
|
||||
|
||||
/* Length will be defined later by set_req_length_tcp at offsets 4
|
||||
and 5 */
|
||||
|
||||
req[6] = ctx->slave;
|
||||
req[7] = function;
|
||||
req[8] = addr >> 8;
|
||||
req[9] = addr & 0x00ff;
|
||||
req[10] = nb >> 8;
|
||||
req[11] = nb & 0x00ff;
|
||||
|
||||
return _MODBUS_TCP_PRESET_REQ_LENGTH;
|
||||
}
|
||||
|
||||
/* Builds a TCP response header */
|
||||
static int _modbus_tcp_build_response_basis(sft_t *sft, uint8_t *rsp)
|
||||
{
|
||||
/* Extract from MODBUS Messaging on TCP/IP Implementation
|
||||
Guide V1.0b (page 23/46):
|
||||
The transaction identifier is used to associate the future
|
||||
response with the request. */
|
||||
rsp[0] = sft->t_id >> 8;
|
||||
rsp[1] = sft->t_id & 0x00ff;
|
||||
|
||||
/* Protocol Modbus */
|
||||
rsp[2] = 0;
|
||||
rsp[3] = 0;
|
||||
|
||||
/* Length will be set later by send_msg (4 and 5) */
|
||||
|
||||
/* The slave ID is copied from the indication */
|
||||
rsp[6] = sft->slave;
|
||||
rsp[7] = sft->function;
|
||||
|
||||
return _MODBUS_TCP_PRESET_RSP_LENGTH;
|
||||
}
|
||||
|
||||
|
||||
static int _modbus_tcp_prepare_response_tid(const uint8_t *req, int *req_length)
|
||||
{
|
||||
return (req[0] << 8) + req[1];
|
||||
}
|
||||
|
||||
static int _modbus_tcp_send_msg_pre(uint8_t *req, int req_length)
|
||||
{
|
||||
/* Substract the header length to the message length */
|
||||
int mbap_length = req_length - 6;
|
||||
|
||||
req[4] = mbap_length >> 8;
|
||||
req[5] = mbap_length & 0x00FF;
|
||||
|
||||
return req_length;
|
||||
}
|
||||
|
||||
static ssize_t _modbus_tcp_send(modbus_t *ctx, const uint8_t *req, int req_length)
|
||||
{
|
||||
/* MSG_NOSIGNAL
|
||||
Requests not to send SIGPIPE on errors on stream oriented
|
||||
sockets when the other end breaks the connection. The EPIPE
|
||||
error is still returned. */
|
||||
return send(ctx->s, (const char *)req, req_length, MSG_NOSIGNAL);
|
||||
}
|
||||
|
||||
static int _modbus_tcp_receive(modbus_t *ctx, uint8_t *req) {
|
||||
return _modbus_receive_msg(ctx, req, MSG_INDICATION);
|
||||
}
|
||||
|
||||
static ssize_t _modbus_tcp_recv(modbus_t *ctx, uint8_t *rsp, int rsp_length) {
|
||||
return recv(ctx->s, (char *)rsp, rsp_length, 0);
|
||||
}
|
||||
|
||||
static int _modbus_tcp_check_integrity(modbus_t *ctx, uint8_t *msg, const int msg_length)
|
||||
{
|
||||
return msg_length;
|
||||
}
|
||||
|
||||
static int _modbus_tcp_pre_check_confirmation(modbus_t *ctx, const uint8_t *req,
|
||||
const uint8_t *rsp, int rsp_length)
|
||||
{
|
||||
/* Check transaction ID */
|
||||
if (req[0] != rsp[0] || req[1] != rsp[1]) {
|
||||
if (ctx->debug) {
|
||||
fprintf(stderr, "Invalid transaction ID received 0x%X (not 0x%X)\n",
|
||||
(rsp[0] << 8) + rsp[1], (req[0] << 8) + req[1]);
|
||||
}
|
||||
errno = EMBBADDATA;
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Check protocol ID */
|
||||
if (rsp[2] != 0x0 && rsp[3] != 0x0) {
|
||||
if (ctx->debug) {
|
||||
fprintf(stderr, "Invalid protocol ID received 0x%X (not 0x0)\n",
|
||||
(rsp[2] << 8) + rsp[3]);
|
||||
}
|
||||
errno = EMBBADDATA;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int _modbus_tcp_set_ipv4_options(int s)
|
||||
{
|
||||
int rc;
|
||||
int option;
|
||||
|
||||
/* Set the TCP no delay flag */
|
||||
/* SOL_TCP = IPPROTO_TCP */
|
||||
option = 1;
|
||||
rc = setsockopt(s, IPPROTO_TCP, TCP_NODELAY,
|
||||
(const void *)&option, sizeof(int));
|
||||
if (rc == -1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* If the OS does not offer SOCK_NONBLOCK, fall back to setting FIONBIO to
|
||||
* make sockets non-blocking */
|
||||
/* Do not care about the return value, this is optional */
|
||||
#if !defined(SOCK_NONBLOCK) && defined(FIONBIO)
|
||||
#ifdef OS_WIN32
|
||||
{
|
||||
/* Setting FIONBIO expects an unsigned long according to MSDN */
|
||||
u_long loption = 1;
|
||||
ioctlsocket(s, FIONBIO, &loption);
|
||||
}
|
||||
#else
|
||||
option = 1;
|
||||
ioctl(s, FIONBIO, &option);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef OS_WIN32
|
||||
/**
|
||||
* Cygwin defines IPTOS_LOWDELAY but can't handle that flag so it's
|
||||
* necessary to workaround that problem.
|
||||
**/
|
||||
/* Set the IP low delay option */
|
||||
option = IPTOS_LOWDELAY;
|
||||
rc = setsockopt(s, IPPROTO_IP, IP_TOS,
|
||||
(const void *)&option, sizeof(int));
|
||||
if (rc == -1) {
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int _connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen,
|
||||
const struct timeval *ro_tv)
|
||||
{
|
||||
int rc = connect(sockfd, addr, addrlen);
|
||||
|
||||
#ifdef OS_WIN32
|
||||
int wsaError = 0;
|
||||
if (rc == -1) {
|
||||
wsaError = WSAGetLastError();
|
||||
}
|
||||
|
||||
if (wsaError == WSAEWOULDBLOCK || wsaError == WSAEINPROGRESS) {
|
||||
#else
|
||||
if (rc == -1 && errno == EINPROGRESS) {
|
||||
#endif
|
||||
fd_set wset;
|
||||
int optval;
|
||||
socklen_t optlen = sizeof(optval);
|
||||
struct timeval tv = *ro_tv;
|
||||
|
||||
/* Wait to be available in writing */
|
||||
FD_ZERO(&wset);
|
||||
FD_SET(sockfd, &wset);
|
||||
rc = select(sockfd + 1, NULL, &wset, NULL, &tv);
|
||||
if (rc <= 0) {
|
||||
/* Timeout or fail */
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* The connection is established if SO_ERROR and optval are set to 0 */
|
||||
rc = getsockopt(sockfd, SOL_SOCKET, SO_ERROR, (void *)&optval, &optlen);
|
||||
if (rc == 0 && optval == 0) {
|
||||
return 0;
|
||||
} else {
|
||||
errno = ECONNREFUSED;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Establishes a modbus TCP connection with a Modbus server. */
|
||||
static int _modbus_tcp_connect(modbus_t *ctx)
|
||||
{
|
||||
int rc;
|
||||
/* Specialized version of sockaddr for Internet socket address (same size) */
|
||||
struct sockaddr_in addr;
|
||||
modbus_tcp_t *ctx_tcp = ctx->backend_data;
|
||||
int flags = SOCK_STREAM;
|
||||
|
||||
#ifdef OS_WIN32
|
||||
if (_modbus_tcp_init_win32() == -1) {
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef SOCK_CLOEXEC
|
||||
flags |= SOCK_CLOEXEC;
|
||||
#endif
|
||||
|
||||
#ifdef SOCK_NONBLOCK
|
||||
flags |= SOCK_NONBLOCK;
|
||||
#endif
|
||||
|
||||
ctx->s = socket(PF_INET, flags, 0);
|
||||
if (ctx->s == -1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
rc = _modbus_tcp_set_ipv4_options(ctx->s);
|
||||
if (rc == -1) {
|
||||
close(ctx->s);
|
||||
ctx->s = -1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ctx->debug) {
|
||||
printf("Connecting to %s:%d\n", ctx_tcp->ip, ctx_tcp->port);
|
||||
}
|
||||
|
||||
addr.sin_family = AF_INET;
|
||||
addr.sin_port = htons(ctx_tcp->port);
|
||||
addr.sin_addr.s_addr = inet_addr(ctx_tcp->ip);
|
||||
rc = _connect(ctx->s, (struct sockaddr *)&addr, sizeof(addr), &ctx->response_timeout);
|
||||
if (rc == -1) {
|
||||
close(ctx->s);
|
||||
ctx->s = -1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Establishes a modbus TCP PI connection with a Modbus server. */
|
||||
static int _modbus_tcp_pi_connect(modbus_t *ctx)
|
||||
{
|
||||
int rc;
|
||||
struct addrinfo *ai_list;
|
||||
struct addrinfo *ai_ptr;
|
||||
struct addrinfo ai_hints;
|
||||
modbus_tcp_pi_t *ctx_tcp_pi = ctx->backend_data;
|
||||
|
||||
#ifdef OS_WIN32
|
||||
if (_modbus_tcp_init_win32() == -1) {
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
memset(&ai_hints, 0, sizeof(ai_hints));
|
||||
#ifdef AI_ADDRCONFIG
|
||||
ai_hints.ai_flags |= AI_ADDRCONFIG;
|
||||
#endif
|
||||
ai_hints.ai_family = AF_UNSPEC;
|
||||
ai_hints.ai_socktype = SOCK_STREAM;
|
||||
ai_hints.ai_addr = NULL;
|
||||
ai_hints.ai_canonname = NULL;
|
||||
ai_hints.ai_next = NULL;
|
||||
|
||||
ai_list = NULL;
|
||||
rc = getaddrinfo(ctx_tcp_pi->node, ctx_tcp_pi->service,
|
||||
&ai_hints, &ai_list);
|
||||
if (rc != 0) {
|
||||
if (ctx->debug) {
|
||||
fprintf(stderr, "Error returned by getaddrinfo: %s\n", gai_strerror(rc));
|
||||
}
|
||||
errno = ECONNREFUSED;
|
||||
return -1;
|
||||
}
|
||||
|
||||
for (ai_ptr = ai_list; ai_ptr != NULL; ai_ptr = ai_ptr->ai_next) {
|
||||
int flags = ai_ptr->ai_socktype;
|
||||
int s;
|
||||
|
||||
#ifdef SOCK_CLOEXEC
|
||||
flags |= SOCK_CLOEXEC;
|
||||
#endif
|
||||
|
||||
#ifdef SOCK_NONBLOCK
|
||||
flags |= SOCK_NONBLOCK;
|
||||
#endif
|
||||
|
||||
s = socket(ai_ptr->ai_family, flags, ai_ptr->ai_protocol);
|
||||
if (s < 0)
|
||||
continue;
|
||||
|
||||
if (ai_ptr->ai_family == AF_INET)
|
||||
_modbus_tcp_set_ipv4_options(s);
|
||||
|
||||
if (ctx->debug) {
|
||||
printf("Connecting to [%s]:%s\n", ctx_tcp_pi->node, ctx_tcp_pi->service);
|
||||
}
|
||||
|
||||
rc = _connect(s, ai_ptr->ai_addr, ai_ptr->ai_addrlen, &ctx->response_timeout);
|
||||
if (rc == -1) {
|
||||
close(s);
|
||||
continue;
|
||||
}
|
||||
|
||||
ctx->s = s;
|
||||
break;
|
||||
}
|
||||
|
||||
freeaddrinfo(ai_list);
|
||||
|
||||
if (ctx->s < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Closes the network connection and socket in TCP mode */
|
||||
static void _modbus_tcp_close(modbus_t *ctx)
|
||||
{
|
||||
if (ctx->s != -1) {
|
||||
shutdown(ctx->s, SHUT_RDWR);
|
||||
close(ctx->s);
|
||||
ctx->s = -1;
|
||||
}
|
||||
}
|
||||
|
||||
static int _modbus_tcp_flush(modbus_t *ctx)
|
||||
{
|
||||
int rc;
|
||||
int rc_sum = 0;
|
||||
|
||||
do {
|
||||
/* Extract the garbage from the socket */
|
||||
char devnull[MODBUS_TCP_MAX_ADU_LENGTH];
|
||||
#ifndef OS_WIN32
|
||||
rc = recv(ctx->s, devnull, MODBUS_TCP_MAX_ADU_LENGTH, MSG_DONTWAIT);
|
||||
#else
|
||||
/* On Win32, it's a bit more complicated to not wait */
|
||||
fd_set rset;
|
||||
struct timeval tv;
|
||||
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = 0;
|
||||
FD_ZERO(&rset);
|
||||
FD_SET(ctx->s, &rset);
|
||||
rc = select(ctx->s+1, &rset, NULL, NULL, &tv);
|
||||
if (rc == -1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (rc == 1) {
|
||||
/* There is data to flush */
|
||||
rc = recv(ctx->s, devnull, MODBUS_TCP_MAX_ADU_LENGTH, 0);
|
||||
}
|
||||
#endif
|
||||
if (rc > 0) {
|
||||
rc_sum += rc;
|
||||
}
|
||||
} while (rc == MODBUS_TCP_MAX_ADU_LENGTH);
|
||||
|
||||
return rc_sum;
|
||||
}
|
||||
|
||||
/* Listens for any request from one or many modbus masters in TCP */
|
||||
int modbus_tcp_listen(modbus_t *ctx, int nb_connection)
|
||||
{
|
||||
int new_s;
|
||||
int enable;
|
||||
int flags;
|
||||
struct sockaddr_in addr;
|
||||
modbus_tcp_t *ctx_tcp;
|
||||
|
||||
if (ctx == NULL) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
ctx_tcp = ctx->backend_data;
|
||||
|
||||
#ifdef OS_WIN32
|
||||
if (_modbus_tcp_init_win32() == -1) {
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
flags = SOCK_STREAM;
|
||||
|
||||
#ifdef SOCK_CLOEXEC
|
||||
flags |= SOCK_CLOEXEC;
|
||||
#endif
|
||||
|
||||
new_s = socket(PF_INET, flags, IPPROTO_TCP);
|
||||
if (new_s == -1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
enable = 1;
|
||||
if (setsockopt(new_s, SOL_SOCKET, SO_REUSEADDR,
|
||||
(char *)&enable, sizeof(enable)) == -1) {
|
||||
close(new_s);
|
||||
return -1;
|
||||
}
|
||||
|
||||
memset(&addr, 0, sizeof(addr));
|
||||
addr.sin_family = AF_INET;
|
||||
/* If the modbus port is < to 1024, we need the setuid root. */
|
||||
addr.sin_port = htons(ctx_tcp->port);
|
||||
if (ctx_tcp->ip[0] == '0') {
|
||||
/* Listen any addresses */
|
||||
addr.sin_addr.s_addr = htonl(INADDR_ANY);
|
||||
} else {
|
||||
/* Listen only specified IP address */
|
||||
addr.sin_addr.s_addr = inet_addr(ctx_tcp->ip);
|
||||
}
|
||||
if (bind(new_s, (struct sockaddr *)&addr, sizeof(addr)) == -1) {
|
||||
close(new_s);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (listen(new_s, nb_connection) == -1) {
|
||||
close(new_s);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return new_s;
|
||||
}
|
||||
|
||||
int modbus_tcp_pi_listen(modbus_t *ctx, int nb_connection)
|
||||
{
|
||||
int rc;
|
||||
struct addrinfo *ai_list;
|
||||
struct addrinfo *ai_ptr;
|
||||
struct addrinfo ai_hints;
|
||||
const char *node;
|
||||
const char *service;
|
||||
int new_s;
|
||||
modbus_tcp_pi_t *ctx_tcp_pi;
|
||||
|
||||
if (ctx == NULL) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
ctx_tcp_pi = ctx->backend_data;
|
||||
|
||||
#ifdef OS_WIN32
|
||||
if (_modbus_tcp_init_win32() == -1) {
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (ctx_tcp_pi->node[0] == 0) {
|
||||
node = NULL; /* == any */
|
||||
} else {
|
||||
node = ctx_tcp_pi->node;
|
||||
}
|
||||
|
||||
if (ctx_tcp_pi->service[0] == 0) {
|
||||
service = "502";
|
||||
} else {
|
||||
service = ctx_tcp_pi->service;
|
||||
}
|
||||
|
||||
memset(&ai_hints, 0, sizeof (ai_hints));
|
||||
/* If node is not NULL, than the AI_PASSIVE flag is ignored. */
|
||||
ai_hints.ai_flags |= AI_PASSIVE;
|
||||
#ifdef AI_ADDRCONFIG
|
||||
ai_hints.ai_flags |= AI_ADDRCONFIG;
|
||||
#endif
|
||||
ai_hints.ai_family = AF_UNSPEC;
|
||||
ai_hints.ai_socktype = SOCK_STREAM;
|
||||
ai_hints.ai_addr = NULL;
|
||||
ai_hints.ai_canonname = NULL;
|
||||
ai_hints.ai_next = NULL;
|
||||
|
||||
ai_list = NULL;
|
||||
rc = getaddrinfo(node, service, &ai_hints, &ai_list);
|
||||
if (rc != 0) {
|
||||
if (ctx->debug) {
|
||||
fprintf(stderr, "Error returned by getaddrinfo: %s\n", gai_strerror(rc));
|
||||
}
|
||||
errno = ECONNREFUSED;
|
||||
return -1;
|
||||
}
|
||||
|
||||
new_s = -1;
|
||||
for (ai_ptr = ai_list; ai_ptr != NULL; ai_ptr = ai_ptr->ai_next) {
|
||||
int flags = ai_ptr->ai_socktype;
|
||||
int s;
|
||||
|
||||
#ifdef SOCK_CLOEXEC
|
||||
flags |= SOCK_CLOEXEC;
|
||||
#endif
|
||||
|
||||
s = socket(ai_ptr->ai_family, flags, ai_ptr->ai_protocol);
|
||||
if (s < 0) {
|
||||
if (ctx->debug) {
|
||||
perror("socket");
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
int enable = 1;
|
||||
rc = setsockopt(s, SOL_SOCKET, SO_REUSEADDR,
|
||||
(void *)&enable, sizeof (enable));
|
||||
if (rc != 0) {
|
||||
close(s);
|
||||
if (ctx->debug) {
|
||||
perror("setsockopt");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
rc = bind(s, ai_ptr->ai_addr, ai_ptr->ai_addrlen);
|
||||
if (rc != 0) {
|
||||
close(s);
|
||||
if (ctx->debug) {
|
||||
perror("bind");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
rc = listen(s, nb_connection);
|
||||
if (rc != 0) {
|
||||
close(s);
|
||||
if (ctx->debug) {
|
||||
perror("listen");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
new_s = s;
|
||||
break;
|
||||
}
|
||||
freeaddrinfo(ai_list);
|
||||
|
||||
if (new_s < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return new_s;
|
||||
}
|
||||
|
||||
int modbus_tcp_accept(modbus_t *ctx, int *s)
|
||||
{
|
||||
struct sockaddr_in addr;
|
||||
socklen_t addrlen;
|
||||
|
||||
if (ctx == NULL) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
addrlen = sizeof(addr);
|
||||
#ifdef HAVE_ACCEPT4
|
||||
/* Inherit socket flags and use accept4 call */
|
||||
ctx->s = accept4(*s, (struct sockaddr *)&addr, &addrlen, SOCK_CLOEXEC);
|
||||
#else
|
||||
ctx->s = accept(*s, (struct sockaddr *)&addr, &addrlen);
|
||||
#endif
|
||||
|
||||
if (ctx->s == -1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ctx->debug) {
|
||||
printf("The client connection from %s is accepted\n",
|
||||
inet_ntoa(addr.sin_addr));
|
||||
}
|
||||
|
||||
return ctx->s;
|
||||
}
|
||||
|
||||
int modbus_tcp_pi_accept(modbus_t *ctx, int *s)
|
||||
{
|
||||
struct sockaddr_storage addr;
|
||||
socklen_t addrlen;
|
||||
|
||||
if (ctx == NULL) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
addrlen = sizeof(addr);
|
||||
#ifdef HAVE_ACCEPT4
|
||||
/* Inherit socket flags and use accept4 call */
|
||||
ctx->s = accept4(*s, (struct sockaddr *)&addr, &addrlen, SOCK_CLOEXEC);
|
||||
#else
|
||||
ctx->s = accept(*s, (struct sockaddr *)&addr, &addrlen);
|
||||
#endif
|
||||
|
||||
if (ctx->s == -1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ctx->debug) {
|
||||
printf("The client connection is accepted.\n");
|
||||
}
|
||||
|
||||
return ctx->s;
|
||||
}
|
||||
|
||||
static int _modbus_tcp_select(modbus_t *ctx, fd_set *rset, struct timeval *tv, int length_to_read)
|
||||
{
|
||||
int s_rc;
|
||||
while ((s_rc = select(ctx->s+1, rset, NULL, NULL, tv)) == -1) {
|
||||
if (errno == EINTR) {
|
||||
if (ctx->debug) {
|
||||
fprintf(stderr, "A non blocked signal was caught\n");
|
||||
}
|
||||
/* Necessary after an error */
|
||||
FD_ZERO(rset);
|
||||
FD_SET(ctx->s, rset);
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (s_rc == 0) {
|
||||
errno = ETIMEDOUT;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return s_rc;
|
||||
}
|
||||
|
||||
static void _modbus_tcp_free(modbus_t *ctx) {
|
||||
free(ctx->backend_data);
|
||||
free(ctx);
|
||||
}
|
||||
|
||||
const modbus_backend_t _modbus_tcp_backend = {
|
||||
_MODBUS_BACKEND_TYPE_TCP,
|
||||
_MODBUS_TCP_HEADER_LENGTH,
|
||||
_MODBUS_TCP_CHECKSUM_LENGTH,
|
||||
MODBUS_TCP_MAX_ADU_LENGTH,
|
||||
_modbus_set_slave,
|
||||
_modbus_tcp_build_request_basis,
|
||||
_modbus_tcp_build_response_basis,
|
||||
_modbus_tcp_prepare_response_tid,
|
||||
_modbus_tcp_send_msg_pre,
|
||||
_modbus_tcp_send,
|
||||
_modbus_tcp_receive,
|
||||
_modbus_tcp_recv,
|
||||
_modbus_tcp_check_integrity,
|
||||
_modbus_tcp_pre_check_confirmation,
|
||||
_modbus_tcp_connect,
|
||||
_modbus_tcp_close,
|
||||
_modbus_tcp_flush,
|
||||
_modbus_tcp_select,
|
||||
_modbus_tcp_free
|
||||
};
|
||||
|
||||
|
||||
const modbus_backend_t _modbus_tcp_pi_backend = {
|
||||
_MODBUS_BACKEND_TYPE_TCP,
|
||||
_MODBUS_TCP_HEADER_LENGTH,
|
||||
_MODBUS_TCP_CHECKSUM_LENGTH,
|
||||
MODBUS_TCP_MAX_ADU_LENGTH,
|
||||
_modbus_set_slave,
|
||||
_modbus_tcp_build_request_basis,
|
||||
_modbus_tcp_build_response_basis,
|
||||
_modbus_tcp_prepare_response_tid,
|
||||
_modbus_tcp_send_msg_pre,
|
||||
_modbus_tcp_send,
|
||||
_modbus_tcp_receive,
|
||||
_modbus_tcp_recv,
|
||||
_modbus_tcp_check_integrity,
|
||||
_modbus_tcp_pre_check_confirmation,
|
||||
_modbus_tcp_pi_connect,
|
||||
_modbus_tcp_close,
|
||||
_modbus_tcp_flush,
|
||||
_modbus_tcp_select,
|
||||
_modbus_tcp_free
|
||||
};
|
||||
|
||||
modbus_t* modbus_new_tcp(const char *ip, int port)
|
||||
{
|
||||
modbus_t *ctx;
|
||||
modbus_tcp_t *ctx_tcp;
|
||||
size_t dest_size;
|
||||
size_t ret_size;
|
||||
|
||||
#if defined(OS_BSD)
|
||||
/* MSG_NOSIGNAL is unsupported on *BSD so we install an ignore
|
||||
handler for SIGPIPE. */
|
||||
struct sigaction sa;
|
||||
|
||||
sa.sa_handler = SIG_IGN;
|
||||
if (sigaction(SIGPIPE, &sa, NULL) < 0) {
|
||||
/* The debug flag can't be set here... */
|
||||
fprintf(stderr, "Could not install SIGPIPE handler.\n");
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
ctx = (modbus_t *)malloc(sizeof(modbus_t));
|
||||
if (ctx == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
_modbus_init_common(ctx);
|
||||
|
||||
/* Could be changed after to reach a remote serial Modbus device */
|
||||
ctx->slave = MODBUS_TCP_SLAVE;
|
||||
|
||||
ctx->backend = &_modbus_tcp_backend;
|
||||
|
||||
ctx->backend_data = (modbus_tcp_t *)malloc(sizeof(modbus_tcp_t));
|
||||
if (ctx->backend_data == NULL) {
|
||||
modbus_free(ctx);
|
||||
errno = ENOMEM;
|
||||
return NULL;
|
||||
}
|
||||
ctx_tcp = (modbus_tcp_t *)ctx->backend_data;
|
||||
|
||||
if (ip != NULL) {
|
||||
dest_size = sizeof(char) * 16;
|
||||
ret_size = strlcpy(ctx_tcp->ip, ip, dest_size);
|
||||
if (ret_size == 0) {
|
||||
fprintf(stderr, "The IP string is empty\n");
|
||||
modbus_free(ctx);
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (ret_size >= dest_size) {
|
||||
fprintf(stderr, "The IP string has been truncated\n");
|
||||
modbus_free(ctx);
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
ctx_tcp->ip[0] = '0';
|
||||
}
|
||||
ctx_tcp->port = port;
|
||||
ctx_tcp->t_id = 0;
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
||||
|
||||
modbus_t* modbus_new_tcp_pi(const char *node, const char *service)
|
||||
{
|
||||
modbus_t *ctx;
|
||||
modbus_tcp_pi_t *ctx_tcp_pi;
|
||||
size_t dest_size;
|
||||
size_t ret_size;
|
||||
|
||||
ctx = (modbus_t *)malloc(sizeof(modbus_t));
|
||||
if (ctx == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
_modbus_init_common(ctx);
|
||||
|
||||
/* Could be changed after to reach a remote serial Modbus device */
|
||||
ctx->slave = MODBUS_TCP_SLAVE;
|
||||
|
||||
ctx->backend = &_modbus_tcp_pi_backend;
|
||||
|
||||
ctx->backend_data = (modbus_tcp_pi_t *)malloc(sizeof(modbus_tcp_pi_t));
|
||||
if (ctx->backend_data == NULL) {
|
||||
modbus_free(ctx);
|
||||
errno = ENOMEM;
|
||||
return NULL;
|
||||
}
|
||||
ctx_tcp_pi = (modbus_tcp_pi_t *)ctx->backend_data;
|
||||
|
||||
if (node == NULL) {
|
||||
/* The node argument can be empty to indicate any hosts */
|
||||
ctx_tcp_pi->node[0] = 0;
|
||||
} else {
|
||||
dest_size = sizeof(char) * _MODBUS_TCP_PI_NODE_LENGTH;
|
||||
ret_size = strlcpy(ctx_tcp_pi->node, node, dest_size);
|
||||
if (ret_size == 0) {
|
||||
fprintf(stderr, "The node string is empty\n");
|
||||
modbus_free(ctx);
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (ret_size >= dest_size) {
|
||||
fprintf(stderr, "The node string has been truncated\n");
|
||||
modbus_free(ctx);
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (service != NULL) {
|
||||
dest_size = sizeof(char) * _MODBUS_TCP_PI_SERVICE_LENGTH;
|
||||
ret_size = strlcpy(ctx_tcp_pi->service, service, dest_size);
|
||||
} else {
|
||||
/* Empty service is not allowed, error catched below. */
|
||||
ret_size = 0;
|
||||
}
|
||||
|
||||
if (ret_size == 0) {
|
||||
fprintf(stderr, "The service string is empty\n");
|
||||
modbus_free(ctx);
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (ret_size >= dest_size) {
|
||||
fprintf(stderr, "The service string has been truncated\n");
|
||||
modbus_free(ctx);
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ctx_tcp_pi->t_id = 0;
|
||||
|
||||
return ctx;
|
||||
}
|
||||
52
src/modbus-tcp.h
Normal file
52
src/modbus-tcp.h
Normal file
@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright © 2001-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: LGPL-2.1+
|
||||
*/
|
||||
|
||||
#ifndef MODBUS_TCP_H
|
||||
#define MODBUS_TCP_H
|
||||
|
||||
#include "modbus.h"
|
||||
|
||||
MODBUS_BEGIN_DECLS
|
||||
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
/* Win32 with MinGW, supplement to <errno.h> */
|
||||
#include <winsock2.h>
|
||||
#if !defined(ECONNRESET)
|
||||
#define ECONNRESET WSAECONNRESET
|
||||
#endif
|
||||
#if !defined(ECONNREFUSED)
|
||||
#define ECONNREFUSED WSAECONNREFUSED
|
||||
#endif
|
||||
#if !defined(ETIMEDOUT)
|
||||
#define ETIMEDOUT WSAETIMEDOUT
|
||||
#endif
|
||||
#if !defined(ENOPROTOOPT)
|
||||
#define ENOPROTOOPT WSAENOPROTOOPT
|
||||
#endif
|
||||
#if !defined(EINPROGRESS)
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define MODBUS_TCP_DEFAULT_PORT 502
|
||||
#define MODBUS_TCP_SLAVE 0xFF
|
||||
|
||||
/* Modbus_Application_Protocol_V1_1b.pdf Chapter 4 Section 1 Page 5
|
||||
* TCP MODBUS ADU = 253 bytes + MBAP (7 bytes) = 260 bytes
|
||||
*/
|
||||
#define MODBUS_TCP_MAX_ADU_LENGTH 260
|
||||
|
||||
MODBUS_API modbus_t* modbus_new_tcp(const char *ip_address, int port);
|
||||
MODBUS_API int modbus_tcp_listen(modbus_t *ctx, int nb_connection);
|
||||
MODBUS_API int modbus_tcp_accept(modbus_t *ctx, int *s);
|
||||
|
||||
MODBUS_API modbus_t* modbus_new_tcp_pi(const char *node, const char *service);
|
||||
MODBUS_API int modbus_tcp_pi_listen(modbus_t *ctx, int nb_connection);
|
||||
MODBUS_API int modbus_tcp_pi_accept(modbus_t *ctx, int *s);
|
||||
|
||||
MODBUS_END_DECLS
|
||||
|
||||
#endif /* MODBUS_TCP_H */
|
||||
53
src/modbus-version.h
Normal file
53
src/modbus-version.h
Normal file
@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright © 2010-2014 Stéphane Raimbault <stephane.raimbault@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef MODBUS_VERSION_H
|
||||
#define MODBUS_VERSION_H
|
||||
|
||||
/* The major version, (1, if %LIBMODBUS_VERSION is 1.2.3) */
|
||||
#define LIBMODBUS_VERSION_MAJOR (3)
|
||||
|
||||
/* The minor version (2, if %LIBMODBUS_VERSION is 1.2.3) */
|
||||
#define LIBMODBUS_VERSION_MINOR (1)
|
||||
|
||||
/* The micro version (3, if %LIBMODBUS_VERSION is 1.2.3) */
|
||||
#define LIBMODBUS_VERSION_MICRO (6)
|
||||
|
||||
/* The full version, like 1.2.3 */
|
||||
#define LIBMODBUS_VERSION 3.1.6
|
||||
|
||||
/* The full version, in string form (suited for string concatenation)
|
||||
*/
|
||||
#define LIBMODBUS_VERSION_STRING "3.1.6"
|
||||
|
||||
/* Numerically encoded version, eg. v1.2.3 is 0x010203 */
|
||||
#define LIBMODBUS_VERSION_HEX ((LIBMODBUS_VERSION_MAJOR << 16) | \
|
||||
(LIBMODBUS_VERSION_MINOR << 8) | \
|
||||
(LIBMODBUS_VERSION_MICRO << 0))
|
||||
|
||||
/* Evaluates to True if the version is greater than @major, @minor and @micro
|
||||
*/
|
||||
#define LIBMODBUS_VERSION_CHECK(major,minor,micro) \
|
||||
(LIBMODBUS_VERSION_MAJOR > (major) || \
|
||||
(LIBMODBUS_VERSION_MAJOR == (major) && \
|
||||
LIBMODBUS_VERSION_MINOR > (minor)) || \
|
||||
(LIBMODBUS_VERSION_MAJOR == (major) && \
|
||||
LIBMODBUS_VERSION_MINOR == (minor) && \
|
||||
LIBMODBUS_VERSION_MICRO >= (micro)))
|
||||
|
||||
#endif /* MODBUS_VERSION_H */
|
||||
1911
src/modbus.c
Normal file
1911
src/modbus.c
Normal file
File diff suppressed because it is too large
Load Diff
293
src/modbus.h
Normal file
293
src/modbus.h
Normal file
@ -0,0 +1,293 @@
|
||||
/*
|
||||
* Copyright © 2001-2013 Stéphane Raimbault <stephane.raimbault@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: LGPL-2.1+
|
||||
*/
|
||||
|
||||
#ifndef MODBUS_H
|
||||
#define MODBUS_H
|
||||
|
||||
/* Add this for macros that defined unix flavor */
|
||||
#if (defined(__unix__) || defined(unix)) && !defined(USG)
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#include <stdint.h>
|
||||
#else
|
||||
#include "stdint.h"
|
||||
#endif
|
||||
|
||||
#include "modbus-version.h"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# if defined(DLLBUILD)
|
||||
/* define DLLBUILD when building the DLL */
|
||||
# define MODBUS_API __declspec(dllexport)
|
||||
# else
|
||||
# define MODBUS_API __declspec(dllimport)
|
||||
# endif
|
||||
#else
|
||||
# define MODBUS_API
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
# define MODBUS_BEGIN_DECLS extern "C" {
|
||||
# define MODBUS_END_DECLS }
|
||||
#else
|
||||
# define MODBUS_BEGIN_DECLS
|
||||
# define MODBUS_END_DECLS
|
||||
#endif
|
||||
|
||||
MODBUS_BEGIN_DECLS
|
||||
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
|
||||
#ifndef OFF
|
||||
#define OFF 0
|
||||
#endif
|
||||
|
||||
#ifndef ON
|
||||
#define ON 1
|
||||
#endif
|
||||
|
||||
/* Modbus function codes */
|
||||
#define MODBUS_FC_READ_COILS 0x01
|
||||
#define MODBUS_FC_READ_DISCRETE_INPUTS 0x02
|
||||
#define MODBUS_FC_READ_HOLDING_REGISTERS 0x03
|
||||
#define MODBUS_FC_READ_INPUT_REGISTERS 0x04
|
||||
#define MODBUS_FC_WRITE_SINGLE_COIL 0x05
|
||||
#define MODBUS_FC_WRITE_SINGLE_REGISTER 0x06
|
||||
#define MODBUS_FC_READ_EXCEPTION_STATUS 0x07
|
||||
#define MODBUS_FC_WRITE_MULTIPLE_COILS 0x0F
|
||||
#define MODBUS_FC_WRITE_MULTIPLE_REGISTERS 0x10
|
||||
#define MODBUS_FC_REPORT_SLAVE_ID 0x11
|
||||
#define MODBUS_FC_MASK_WRITE_REGISTER 0x16
|
||||
#define MODBUS_FC_WRITE_AND_READ_REGISTERS 0x17
|
||||
|
||||
#define MODBUS_BROADCAST_ADDRESS 0
|
||||
|
||||
/* Modbus_Application_Protocol_V1_1b.pdf (chapter 6 section 1 page 12)
|
||||
* Quantity of Coils to read (2 bytes): 1 to 2000 (0x7D0)
|
||||
* (chapter 6 section 11 page 29)
|
||||
* Quantity of Coils to write (2 bytes): 1 to 1968 (0x7B0)
|
||||
*/
|
||||
#define MODBUS_MAX_READ_BITS 2000
|
||||
#define MODBUS_MAX_WRITE_BITS 1968
|
||||
|
||||
/* Modbus_Application_Protocol_V1_1b.pdf (chapter 6 section 3 page 15)
|
||||
* Quantity of Registers to read (2 bytes): 1 to 125 (0x7D)
|
||||
* (chapter 6 section 12 page 31)
|
||||
* Quantity of Registers to write (2 bytes) 1 to 123 (0x7B)
|
||||
* (chapter 6 section 17 page 38)
|
||||
* Quantity of Registers to write in R/W registers (2 bytes) 1 to 121 (0x79)
|
||||
*/
|
||||
#define MODBUS_MAX_READ_REGISTERS 125
|
||||
#define MODBUS_MAX_WRITE_REGISTERS 123
|
||||
#define MODBUS_MAX_WR_WRITE_REGISTERS 121
|
||||
#define MODBUS_MAX_WR_READ_REGISTERS 125
|
||||
|
||||
/* The size of the MODBUS PDU is limited by the size constraint inherited from
|
||||
* the first MODBUS implementation on Serial Line network (max. RS485 ADU = 256
|
||||
* bytes). Therefore, MODBUS PDU for serial line communication = 256 - Server
|
||||
* address (1 byte) - CRC (2 bytes) = 253 bytes.
|
||||
*/
|
||||
#define MODBUS_MAX_PDU_LENGTH 253
|
||||
|
||||
/* Consequently:
|
||||
* - RTU MODBUS ADU = 253 bytes + Server address (1 byte) + CRC (2 bytes) = 256
|
||||
* bytes.
|
||||
* - TCP MODBUS ADU = 253 bytes + MBAP (7 bytes) = 260 bytes.
|
||||
* so the maximum of both backend in 260 bytes. This size can used to allocate
|
||||
* an array of bytes to store responses and it will be compatible with the two
|
||||
* backends.
|
||||
*/
|
||||
#define MODBUS_MAX_ADU_LENGTH 260
|
||||
|
||||
/* Random number to avoid errno conflicts */
|
||||
#define MODBUS_ENOBASE 112345678
|
||||
|
||||
/* Protocol exceptions */
|
||||
enum {
|
||||
MODBUS_EXCEPTION_ILLEGAL_FUNCTION = 0x01,
|
||||
MODBUS_EXCEPTION_ILLEGAL_DATA_ADDRESS,
|
||||
MODBUS_EXCEPTION_ILLEGAL_DATA_VALUE,
|
||||
MODBUS_EXCEPTION_SLAVE_OR_SERVER_FAILURE,
|
||||
MODBUS_EXCEPTION_ACKNOWLEDGE,
|
||||
MODBUS_EXCEPTION_SLAVE_OR_SERVER_BUSY,
|
||||
MODBUS_EXCEPTION_NEGATIVE_ACKNOWLEDGE,
|
||||
MODBUS_EXCEPTION_MEMORY_PARITY,
|
||||
MODBUS_EXCEPTION_NOT_DEFINED,
|
||||
MODBUS_EXCEPTION_GATEWAY_PATH,
|
||||
MODBUS_EXCEPTION_GATEWAY_TARGET,
|
||||
MODBUS_EXCEPTION_MAX
|
||||
};
|
||||
|
||||
#define EMBXILFUN (MODBUS_ENOBASE + MODBUS_EXCEPTION_ILLEGAL_FUNCTION)
|
||||
#define EMBXILADD (MODBUS_ENOBASE + MODBUS_EXCEPTION_ILLEGAL_DATA_ADDRESS)
|
||||
#define EMBXILVAL (MODBUS_ENOBASE + MODBUS_EXCEPTION_ILLEGAL_DATA_VALUE)
|
||||
#define EMBXSFAIL (MODBUS_ENOBASE + MODBUS_EXCEPTION_SLAVE_OR_SERVER_FAILURE)
|
||||
#define EMBXACK (MODBUS_ENOBASE + MODBUS_EXCEPTION_ACKNOWLEDGE)
|
||||
#define EMBXSBUSY (MODBUS_ENOBASE + MODBUS_EXCEPTION_SLAVE_OR_SERVER_BUSY)
|
||||
#define EMBXNACK (MODBUS_ENOBASE + MODBUS_EXCEPTION_NEGATIVE_ACKNOWLEDGE)
|
||||
#define EMBXMEMPAR (MODBUS_ENOBASE + MODBUS_EXCEPTION_MEMORY_PARITY)
|
||||
#define EMBXGPATH (MODBUS_ENOBASE + MODBUS_EXCEPTION_GATEWAY_PATH)
|
||||
#define EMBXGTAR (MODBUS_ENOBASE + MODBUS_EXCEPTION_GATEWAY_TARGET)
|
||||
|
||||
/* Native libmodbus error codes */
|
||||
#define EMBBADCRC (EMBXGTAR + 1)
|
||||
#define EMBBADDATA (EMBXGTAR + 2)
|
||||
#define EMBBADEXC (EMBXGTAR + 3)
|
||||
#define EMBUNKEXC (EMBXGTAR + 4)
|
||||
#define EMBMDATA (EMBXGTAR + 5)
|
||||
#define EMBBADSLAVE (EMBXGTAR + 6)
|
||||
|
||||
extern const unsigned int libmodbus_version_major;
|
||||
extern const unsigned int libmodbus_version_minor;
|
||||
extern const unsigned int libmodbus_version_micro;
|
||||
|
||||
typedef struct _modbus modbus_t;
|
||||
|
||||
typedef struct _modbus_mapping_t {
|
||||
int nb_bits;
|
||||
int start_bits;
|
||||
int nb_input_bits;
|
||||
int start_input_bits;
|
||||
int nb_input_registers;
|
||||
int start_input_registers;
|
||||
int nb_registers;
|
||||
int start_registers;
|
||||
uint8_t *tab_bits;
|
||||
uint8_t *tab_input_bits;
|
||||
uint16_t *tab_input_registers;
|
||||
uint16_t *tab_registers;
|
||||
} modbus_mapping_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
MODBUS_ERROR_RECOVERY_NONE = 0,
|
||||
MODBUS_ERROR_RECOVERY_LINK = (1<<1),
|
||||
MODBUS_ERROR_RECOVERY_PROTOCOL = (1<<2)
|
||||
} modbus_error_recovery_mode;
|
||||
|
||||
MODBUS_API int modbus_set_slave(modbus_t* ctx, int slave);
|
||||
MODBUS_API int modbus_get_slave(modbus_t* ctx);
|
||||
MODBUS_API int modbus_set_error_recovery(modbus_t *ctx, modbus_error_recovery_mode error_recovery);
|
||||
MODBUS_API int modbus_set_socket(modbus_t *ctx, int s);
|
||||
MODBUS_API int modbus_get_socket(modbus_t *ctx);
|
||||
|
||||
MODBUS_API int modbus_get_response_timeout(modbus_t *ctx, uint32_t *to_sec, uint32_t *to_usec);
|
||||
MODBUS_API int modbus_set_response_timeout(modbus_t *ctx, uint32_t to_sec, uint32_t to_usec);
|
||||
|
||||
MODBUS_API int modbus_get_byte_timeout(modbus_t *ctx, uint32_t *to_sec, uint32_t *to_usec);
|
||||
MODBUS_API int modbus_set_byte_timeout(modbus_t *ctx, uint32_t to_sec, uint32_t to_usec);
|
||||
|
||||
MODBUS_API int modbus_get_indication_timeout(modbus_t *ctx, uint32_t *to_sec, uint32_t *to_usec);
|
||||
MODBUS_API int modbus_set_indication_timeout(modbus_t *ctx, uint32_t to_sec, uint32_t to_usec);
|
||||
|
||||
MODBUS_API int modbus_get_header_length(modbus_t *ctx);
|
||||
|
||||
MODBUS_API int modbus_connect(modbus_t *ctx);
|
||||
MODBUS_API void modbus_close(modbus_t *ctx);
|
||||
|
||||
MODBUS_API void modbus_free(modbus_t *ctx);
|
||||
|
||||
MODBUS_API int modbus_flush(modbus_t *ctx);
|
||||
MODBUS_API int modbus_set_debug(modbus_t *ctx, int flag);
|
||||
|
||||
MODBUS_API const char *modbus_strerror(int errnum);
|
||||
|
||||
MODBUS_API int modbus_read_bits(modbus_t *ctx, int addr, int nb, uint8_t *dest);
|
||||
MODBUS_API int modbus_read_input_bits(modbus_t *ctx, int addr, int nb, uint8_t *dest);
|
||||
MODBUS_API int modbus_read_registers(modbus_t *ctx, int addr, int nb, uint16_t *dest);
|
||||
MODBUS_API int modbus_read_input_registers(modbus_t *ctx, int addr, int nb, uint16_t *dest);
|
||||
MODBUS_API int modbus_write_bit(modbus_t *ctx, int coil_addr, int status);
|
||||
MODBUS_API int modbus_write_register(modbus_t *ctx, int reg_addr, const uint16_t value);
|
||||
MODBUS_API int modbus_write_bits(modbus_t *ctx, int addr, int nb, const uint8_t *data);
|
||||
MODBUS_API int modbus_write_registers(modbus_t *ctx, int addr, int nb, const uint16_t *data);
|
||||
MODBUS_API int modbus_mask_write_register(modbus_t *ctx, int addr, uint16_t and_mask, uint16_t or_mask);
|
||||
MODBUS_API int modbus_write_and_read_registers(modbus_t *ctx, int write_addr, int write_nb,
|
||||
const uint16_t *src, int read_addr, int read_nb,
|
||||
uint16_t *dest);
|
||||
MODBUS_API int modbus_report_slave_id(modbus_t *ctx, int max_dest, uint8_t *dest);
|
||||
|
||||
MODBUS_API modbus_mapping_t* modbus_mapping_new_start_address(
|
||||
unsigned int start_bits, unsigned int nb_bits,
|
||||
unsigned int start_input_bits, unsigned int nb_input_bits,
|
||||
unsigned int start_registers, unsigned int nb_registers,
|
||||
unsigned int start_input_registers, unsigned int nb_input_registers);
|
||||
|
||||
MODBUS_API modbus_mapping_t* modbus_mapping_new(int nb_bits, int nb_input_bits,
|
||||
int nb_registers, int nb_input_registers);
|
||||
MODBUS_API void modbus_mapping_free(modbus_mapping_t *mb_mapping);
|
||||
|
||||
MODBUS_API int modbus_send_raw_request(modbus_t *ctx, const uint8_t *raw_req, int raw_req_length);
|
||||
|
||||
MODBUS_API int modbus_receive(modbus_t *ctx, uint8_t *req);
|
||||
|
||||
MODBUS_API int modbus_receive_confirmation(modbus_t *ctx, uint8_t *rsp);
|
||||
|
||||
MODBUS_API int modbus_reply(modbus_t *ctx, const uint8_t *req,
|
||||
int req_length, modbus_mapping_t *mb_mapping);
|
||||
MODBUS_API int modbus_reply_exception(modbus_t *ctx, const uint8_t *req,
|
||||
unsigned int exception_code);
|
||||
|
||||
/**
|
||||
* UTILS FUNCTIONS
|
||||
**/
|
||||
|
||||
#define MODBUS_GET_HIGH_BYTE(data) (((data) >> 8) & 0xFF)
|
||||
#define MODBUS_GET_LOW_BYTE(data) ((data) & 0xFF)
|
||||
#define MODBUS_GET_INT64_FROM_INT16(tab_int16, index) \
|
||||
(((int64_t)tab_int16[(index) ] << 48) + \
|
||||
((int64_t)tab_int16[(index) + 1] << 32) + \
|
||||
((int64_t)tab_int16[(index) + 2] << 16) + \
|
||||
(int64_t)tab_int16[(index) + 3])
|
||||
#define MODBUS_GET_INT32_FROM_INT16(tab_int16, index) ((tab_int16[(index)] << 16) + tab_int16[(index) + 1])
|
||||
#define MODBUS_GET_INT16_FROM_INT8(tab_int8, index) ((tab_int8[(index)] << 8) + tab_int8[(index) + 1])
|
||||
#define MODBUS_SET_INT16_TO_INT8(tab_int8, index, value) \
|
||||
do { \
|
||||
tab_int8[(index)] = (value) >> 8; \
|
||||
tab_int8[(index) + 1] = (value) & 0xFF; \
|
||||
} while (0)
|
||||
#define MODBUS_SET_INT32_TO_INT16(tab_int16, index, value) \
|
||||
do { \
|
||||
tab_int16[(index) ] = (value) >> 16; \
|
||||
tab_int16[(index) + 1] = (value); \
|
||||
} while (0)
|
||||
#define MODBUS_SET_INT64_TO_INT16(tab_int16, index, value) \
|
||||
do { \
|
||||
tab_int16[(index) ] = (value) >> 48; \
|
||||
tab_int16[(index) + 1] = (value) >> 32; \
|
||||
tab_int16[(index) + 2] = (value) >> 16; \
|
||||
tab_int16[(index) + 3] = (value); \
|
||||
} while (0)
|
||||
|
||||
MODBUS_API void modbus_set_bits_from_byte(uint8_t *dest, int idx, const uint8_t value);
|
||||
MODBUS_API void modbus_set_bits_from_bytes(uint8_t *dest, int idx, unsigned int nb_bits,
|
||||
const uint8_t *tab_byte);
|
||||
MODBUS_API uint8_t modbus_get_byte_from_bits(const uint8_t *src, int idx, unsigned int nb_bits);
|
||||
MODBUS_API float modbus_get_float(const uint16_t *src);
|
||||
MODBUS_API float modbus_get_float_abcd(const uint16_t *src);
|
||||
MODBUS_API float modbus_get_float_dcba(const uint16_t *src);
|
||||
MODBUS_API float modbus_get_float_badc(const uint16_t *src);
|
||||
MODBUS_API float modbus_get_float_cdab(const uint16_t *src);
|
||||
|
||||
MODBUS_API void modbus_set_float(float f, uint16_t *dest);
|
||||
MODBUS_API void modbus_set_float_abcd(float f, uint16_t *dest);
|
||||
MODBUS_API void modbus_set_float_dcba(float f, uint16_t *dest);
|
||||
MODBUS_API void modbus_set_float_badc(float f, uint16_t *dest);
|
||||
MODBUS_API void modbus_set_float_cdab(float f, uint16_t *dest);
|
||||
|
||||
#include "modbus-tcp.h"
|
||||
#include "modbus-rtu.h"
|
||||
|
||||
MODBUS_END_DECLS
|
||||
|
||||
#endif /* MODBUS_H */
|
||||
755
thread.cpp
Normal file
755
thread.cpp
Normal file
@ -0,0 +1,755 @@
|
||||
#include "thread.h"
|
||||
#include "camera.h"
|
||||
#include "QMutex"
|
||||
#include "QSemaphore"
|
||||
#include <QtEndian> // 引入Qt处理字节序的头文件
|
||||
#include <QBuffer>
|
||||
#include "QTimer"
|
||||
#include <QTime>
|
||||
|
||||
ProcessImg *processimg;
|
||||
QImage image[5];
|
||||
|
||||
SendThread *sendthread;
|
||||
RecvThread *recvthread;
|
||||
QMutex judge_connect_mutex;
|
||||
CameraL *cameraL;
|
||||
|
||||
SpecCamera *speccamera;
|
||||
bool is_connected;
|
||||
extern tomato tomato;
|
||||
extern QTcpServer server;
|
||||
extern QTcpSocket *clientSocket;
|
||||
extern int start_flag;
|
||||
bool spec_flag = 0;
|
||||
extern bool is_timeout;
|
||||
extern modbus_t* CZ;
|
||||
QMutex imgR_muex;
|
||||
|
||||
extern int save_flag;
|
||||
uint countimgR = 1;
|
||||
uint countimgL = 1;
|
||||
uint countimgTopT = 1;
|
||||
uint countimgTopM = 1;
|
||||
uint countimgTopB = 1;
|
||||
|
||||
//右侧相机回调
|
||||
extern void __stdcall onImageDataCallBackFunc1(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pFrameInfo, void* pUser)
|
||||
{
|
||||
|
||||
if (pFrameInfo) //帧信息有效
|
||||
{
|
||||
// qDebug()<<"右部相机帧号: "<<pFrameInfo->nFrameNum;
|
||||
|
||||
QImage img(pData,pFrameInfo->nWidth,pFrameInfo->nHeight,QImage::Format_RGB888); //构造图像
|
||||
QImage tempimg = img;
|
||||
tempimg = tempimg.rgbSwapped();
|
||||
QImage queueImg = tempimg;
|
||||
QString filePath = "E:/qt_tomato_passion/new/20240422/image/R";
|
||||
QString imagePath = QString("%1/%2.bmp").arg(filePath).arg(countimgR);
|
||||
if(save_flag)
|
||||
{
|
||||
tempimg.save(imagePath);
|
||||
}
|
||||
|
||||
countimgR++;
|
||||
// qDebug()<<"右侧相机帧号: "<<pFrameInfo->nFrameNum;
|
||||
emit cameraL->send_Rgbimage(tempimg);
|
||||
|
||||
cameraL->rightImgQueue.push(queueImg);
|
||||
// qDebug()<<"右侧相机队列长度: "<<cameraL->rightImgQueue.size();
|
||||
|
||||
}
|
||||
return ;
|
||||
|
||||
}
|
||||
|
||||
extern void __stdcall onOfflineCallBackFunc1(unsigned int nMsgType, void* pUser)
|
||||
{
|
||||
//qDebug()<<"camera offline";
|
||||
judge_connect_mutex.lock();
|
||||
is_connected = false;
|
||||
judge_connect_mutex.unlock();
|
||||
return;
|
||||
}
|
||||
|
||||
//左侧相机回调
|
||||
extern void __stdcall onImageDataCallBackFunc2(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pFrameInfo, void* pUser)
|
||||
{
|
||||
if (pFrameInfo)
|
||||
{
|
||||
// qDebug()<<"左侧相机帧号: "<<pFrameInfo->nFrameNum;
|
||||
QImage imgL(pData,pFrameInfo->nWidth,pFrameInfo->nHeight,QImage::Format_RGB888);
|
||||
|
||||
QImage tempimg = imgL;
|
||||
tempimg = tempimg.rgbSwapped();
|
||||
QImage queueImg = tempimg;
|
||||
QString filePath = "E:/qt_tomato_passion/new/20240422/image/L";
|
||||
QString imagePath = QString("%1/%2.bmp").arg(filePath).arg(countimgL);
|
||||
if(save_flag)
|
||||
{
|
||||
tempimg.save(imagePath);
|
||||
}
|
||||
|
||||
countimgL++;
|
||||
|
||||
emit cameraL->send_Rgbimage1(tempimg);
|
||||
|
||||
cameraL->leftImgQueue.push(queueImg);
|
||||
// qDebug()<<"左侧相机队列长度: "<<cameraL->leftImgQueue.size();
|
||||
|
||||
|
||||
|
||||
}
|
||||
return ;
|
||||
}
|
||||
|
||||
extern void __stdcall onOfflineCallBackFunc2(unsigned int nMsgType, void* pUser)
|
||||
{
|
||||
judge_connect_mutex.lock();
|
||||
is_connected = false;
|
||||
judge_connect_mutex.unlock();
|
||||
return;
|
||||
}
|
||||
//顶部相机回调(ip[4] 100)
|
||||
extern void __stdcall onImageDataCallBackFunc(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pFrameInfo, void* pUser)
|
||||
{
|
||||
|
||||
if (pFrameInfo) //帧信息有效
|
||||
{
|
||||
// qDebug()<<"顶部相机帧号: "<<pFrameInfo->nFrameNum;
|
||||
|
||||
QImage imgT(pData,pFrameInfo->nWidth,pFrameInfo->nHeight,QImage::Format_RGB888); //构造图像
|
||||
|
||||
/*
|
||||
* 裁切图片三等分
|
||||
* */
|
||||
int width = imgT.width();
|
||||
int height = imgT.height();
|
||||
int partHeight = height / 3;
|
||||
|
||||
QImage topPart = imgT.copy(0, 0, width, partHeight);
|
||||
QImage middlePart = imgT.copy(0, partHeight, width, partHeight);
|
||||
QImage bottomPart = imgT.copy(0, 2 * partHeight, width, partHeight);
|
||||
|
||||
/*
|
||||
* 颜色转换+存图
|
||||
* */
|
||||
QImage tempimg = bottomPart;
|
||||
tempimg = tempimg.rgbSwapped();
|
||||
QImage queueImg = tempimg;
|
||||
QString filePath = "E:/qt_tomato_passion/new/20240422/image/T/bottom";
|
||||
QString imagePath = QString("%1/%2.bmp").arg(filePath).arg(countimgTopB);
|
||||
if(save_flag)
|
||||
{
|
||||
tempimg.save(imagePath);
|
||||
|
||||
}
|
||||
countimgTopB++;
|
||||
|
||||
QImage tempimg1 = middlePart;
|
||||
tempimg1 = tempimg1.rgbSwapped();
|
||||
QImage queueImg1 = tempimg1;
|
||||
QString filePath1 = "E:/qt_tomato_passion/new/20240422/image/T/middle";
|
||||
QString imagePath1 = QString("%1/%2.bmp").arg(filePath1).arg(countimgTopM);
|
||||
if(save_flag)
|
||||
{
|
||||
tempimg1.save(imagePath1);
|
||||
}
|
||||
|
||||
countimgTopM++;
|
||||
|
||||
QImage tempimg2 = topPart;
|
||||
tempimg2 = tempimg2.rgbSwapped();
|
||||
QImage queueImg2 = tempimg2;
|
||||
QString filePath2 = "E:/qt_tomato_passion/new/20240422/image/T/top";
|
||||
QString imagePath2 = QString("%1/%2.bmp").arg(filePath2).arg(countimgTopT);
|
||||
if(save_flag)
|
||||
{
|
||||
tempimg2.save(imagePath2);
|
||||
}
|
||||
|
||||
countimgTopT++;
|
||||
|
||||
|
||||
/*
|
||||
* 触发显示信号
|
||||
* */
|
||||
emit cameraL->send_Rgbimage2(tempimg,tempimg1,tempimg2);
|
||||
|
||||
/*
|
||||
* 顶部裁切后的图片入队
|
||||
* */
|
||||
cameraL->topImgTQueue.push(queueImg);
|
||||
cameraL->topImgMQueue.push(queueImg1);
|
||||
cameraL->topImgBQueue.push(queueImg2);
|
||||
|
||||
// qDebug()<<"顶部上相机队列长度: "<<cameraL->topImgTQueue.size();
|
||||
// qDebug()<<"顶部中相机队列长度: "<<cameraL->topImgMQueue.size();
|
||||
// qDebug()<<"顶部下相机队列长度: "<<cameraL->topImgBQueue.size();
|
||||
|
||||
|
||||
|
||||
}
|
||||
return ;
|
||||
}
|
||||
|
||||
extern void __stdcall onOfflineCallBackFunc(unsigned int nMsgType, void* pUser)
|
||||
{
|
||||
//qDebug()<<"camera offline";
|
||||
judge_connect_mutex.lock();
|
||||
is_connected = false;
|
||||
judge_connect_mutex.unlock();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void __stdcall RTSpecStreamingCallback(void *pContext, unsigned char *pData, unsigned long dataLength)
|
||||
{
|
||||
// unsigned char* pPData = new unsigned char[speccamera->m_iWidth*speccamera->m_iHeight*224]; //2048*224*1
|
||||
// memcpy(pPData, pData, dataLength); // 直接从pData拷贝全部数据到pPData
|
||||
// unsigned char* pPData1 = new unsigned char[speccamera->m_iWidth*speccamera->m_iHeight*224];
|
||||
// int k = 0;
|
||||
// for( int i = 0; i < speccamera->m_iHeight; i++ )
|
||||
// {
|
||||
// for(uint j = 91; j < 101; j++ )
|
||||
// {
|
||||
// memcpy(pPData1 + speccamera->m_iWidth * k, pPData + (i * speccamera->m_iHeight + j) * speccamera->m_iWidth,
|
||||
// sizeof(unsigned char) * speccamera->m_iWidth);
|
||||
// k++;
|
||||
// }
|
||||
// }
|
||||
// speccamera->specImgQueue.push(pPData1);
|
||||
// qDebug()<<"spec queue length: "<<speccamera->specImgQueue.size();
|
||||
// delete []pPData;
|
||||
// delete []pPData1;
|
||||
|
||||
if(pData)
|
||||
{
|
||||
// qDebug()<<"pData: "<<pData;
|
||||
speccamera->cal(pData);
|
||||
unsigned short* spec_total_data= new unsigned short[2048 * 100 * speccamera->totalFrames];//2048*224*1;
|
||||
unsigned short* spec_data_short = (unsigned short *)pData;
|
||||
memcpy(spec_total_data + speccamera->test_count * speccamera->m_iWidth * 100, spec_data_short, 2048 * 100 * sizeof(unsigned short));
|
||||
speccamera->test_count++;
|
||||
if(speccamera->test_count == speccamera->totalFrames)
|
||||
{
|
||||
qDebug()<<"光谱相机触发了一张图";
|
||||
// unsigned short* spec_data_short_copy = new unsigned short[speccamera->m_iWidth * 100 * speccamera->totalFrames]; //2048*224*1
|
||||
// memcpy(spec_data_short_copy, spec_total_data,speccamera->m_iWidth * 100 * speccamera->totalFrames * sizeof(unsigned short));
|
||||
// emit speccamera->process_spec(spec_data_short_copy);
|
||||
spec_total_data = nullptr;
|
||||
speccamera->test_count = 0;
|
||||
|
||||
// if(save_flag)
|
||||
// {
|
||||
|
||||
// static int file_index = 1;
|
||||
// std::string spec_filename = "E:/qt_tomato_passion/new/20240422/image/specImg/spec" + std::to_string(file_index);
|
||||
// FILE *fp = fopen(spec_filename.c_str(), "wb");
|
||||
|
||||
// int ret = fwrite(spec_data_short_copy, 1, speccamera->totalFrames * speccamera->m_iWidth * 40 * sizeof(unsigned short), fp);
|
||||
// // qDebug()<<"光谱队列长度: "<<frameData.size()<<" ret : "<<ret;
|
||||
|
||||
// std::fflush(fp);
|
||||
// fclose(fp);
|
||||
// file_index++;
|
||||
// std::cout<<"save img success"<<std::endl;
|
||||
// // qDebug()<<"test_count: "<<speccamera->test_count;
|
||||
|
||||
|
||||
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
void __stdcall RTRGBViewCallback(void* pContext, unsigned char* pRData, unsigned char* pGData, unsigned char* pBData, unsigned long dataLength)
|
||||
{
|
||||
unsigned short* pShortRData = (unsigned short*)pRData;
|
||||
unsigned short* pShortGData = (unsigned short*)pGData;
|
||||
unsigned short* pShortBData = (unsigned short*)pBData;
|
||||
|
||||
unsigned short m_usCurrentMax = 1;
|
||||
unsigned short m_usCurrentMin = 65535;
|
||||
|
||||
for (int i = 0; i < speccamera->m_iWidth; i++) //拉伸
|
||||
{
|
||||
if (pShortRData[i] > m_usCurrentMax)
|
||||
m_usCurrentMax = pShortRData[i];
|
||||
if (pShortGData[i] > m_usCurrentMax)
|
||||
m_usCurrentMax = pShortGData[i];
|
||||
if (pShortBData[i] > m_usCurrentMax)
|
||||
m_usCurrentMax = pShortBData[i];
|
||||
if (pShortRData[i] < m_usCurrentMin)
|
||||
m_usCurrentMin = pShortRData[i];
|
||||
if (pShortGData[i] < m_usCurrentMin)
|
||||
m_usCurrentMin = pShortGData[i];
|
||||
if (pShortBData[i] < m_usCurrentMin)
|
||||
m_usCurrentMin = pShortBData[i];
|
||||
}
|
||||
int iLineByte = (speccamera->m_iWidth * 3 + 3) / 4 * 4; //字节对齐
|
||||
memcpy(speccamera->m_pusSaveBuffer, speccamera->m_pusSaveBuffer + iLineByte, (speccamera->m_iHeight - 1)*iLineByte*sizeof(unsigned short));
|
||||
for (int i = speccamera->m_iWidth - 1; i >= 0; i = i - 1)
|
||||
{
|
||||
int sel = (speccamera->m_iHeight - 1)* iLineByte + i * 3;
|
||||
if (sel < iLineByte * speccamera->m_iHeight )
|
||||
{
|
||||
speccamera->m_pusSaveBuffer[sel + 2] = pShortRData[i];
|
||||
speccamera->m_pusSaveBuffer[sel + 1] = pShortGData[i];
|
||||
speccamera->m_pusSaveBuffer[sel + 0] = pShortBData[i];
|
||||
}
|
||||
} //拷贝
|
||||
speccamera->m_iDrawCount++;
|
||||
|
||||
|
||||
// qDebug()<<"speccamera->m_iDrawCount: "<<speccamera->m_iDrawCount;
|
||||
for (int i = 0; i < speccamera->m_iHeight; i++)
|
||||
{
|
||||
for (int j = 0; j < speccamera->m_iWidth; j++)
|
||||
{
|
||||
if (m_usCurrentMax - m_usCurrentMin*0.9 == 0)
|
||||
{
|
||||
speccamera->m_pRefreshBuffer[i*iLineByte+j*3 + 0] = 0;
|
||||
speccamera->m_pRefreshBuffer[i*iLineByte+j*3 + 1] = 0;
|
||||
speccamera->m_pRefreshBuffer[i*iLineByte+j*3 + 2] = 0;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
speccamera->m_pRefreshBuffer[i*iLineByte+j*3 + 0] = (speccamera->m_pusSaveBuffer[i*iLineByte+j*3 + 2]-m_usCurrentMin*0.9)*255.0/(m_usCurrentMax-m_usCurrentMin*0.9);
|
||||
speccamera->m_pRefreshBuffer[i*iLineByte+j*3 + 1] = (speccamera->m_pusSaveBuffer[i*iLineByte+j*3 + 1]-m_usCurrentMin*0.9)*255.0/(m_usCurrentMax-m_usCurrentMin*0.9);
|
||||
speccamera->m_pRefreshBuffer[i*iLineByte+j*3 + 2] = (speccamera->m_pusSaveBuffer[i*iLineByte+j*3 + 0]-m_usCurrentMin*0.9)*255.0/(m_usCurrentMax-m_usCurrentMin*0.9);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
QImage image(speccamera->m_pRefreshBuffer,speccamera->m_iWidth, speccamera->m_iHeight, QImage::Format_RGB888);
|
||||
// speccamera->specImgQueue.push(speccamera->m_pRefreshBuffer);
|
||||
|
||||
emit speccamera->show_SpecImg(image);
|
||||
|
||||
return;
|
||||
}
|
||||
//图像处理线程,通过相机得到图片,然后裁剪后放入队列,并一同发给python
|
||||
ProcessImg::ProcessImg(QObject *parent) : QThread(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
ProcessImg::~ProcessImg()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void ProcessImg::exitThread()
|
||||
{
|
||||
stop_mutex.lock();
|
||||
m_stop = true;
|
||||
stop_mutex.unlock();
|
||||
}
|
||||
|
||||
void ProcessImg::run()
|
||||
{
|
||||
connect(speccamera,SIGNAL(process_spec(unsigned short*)),this,SLOT(processSpecSlots(unsigned short*)));
|
||||
|
||||
// while(1)
|
||||
// {
|
||||
// uint16_t czData[8];
|
||||
// imgR_muex.lock();
|
||||
// modbus_read_registers(CZ,0x0000,1,czData);
|
||||
// qDebug()<<"重量数据: "<<czData;
|
||||
// if(czData[5]==1)
|
||||
// {
|
||||
|
||||
// spec_flag = 1;
|
||||
// modbus_write_register(CZ,0x0005,0);
|
||||
// }
|
||||
// imgR_muex.unlock();
|
||||
|
||||
|
||||
// }
|
||||
// while(1)
|
||||
// {
|
||||
|
||||
// // 检查是否已收集到足够的帧
|
||||
// if (speccamera->frameData.size() == speccamera->totalFrames)
|
||||
// {
|
||||
// // 处理这些帧,例如拼接成一张大图
|
||||
|
||||
// speccamera->specfullImage = new unsigned short[speccamera->m_iWidth * 224 * speccamera->totalFrames];
|
||||
// for (int i = 0; i < speccamera->totalFrames; ++i)
|
||||
// {
|
||||
// memcpy(speccamera->specfullImage + i * speccamera->m_iWidth * 224, speccamera->frameData[i], speccamera->m_iWidth * 224 * sizeof(unsigned short));
|
||||
// }
|
||||
// speccamera->specImgQueue.push(speccamera->specfullImage);
|
||||
|
||||
// if(save_flag)
|
||||
// {
|
||||
|
||||
// static int file_index = 1;
|
||||
// std::string spec_filename = "E:/qt_tomato_passion/new/20240422/image/specImg/spec" + std::to_string(file_index);
|
||||
// FILE *fp = fopen(spec_filename.c_str(), "wb");
|
||||
|
||||
// int ret = fwrite(speccamera->specfullImage, 1, speccamera->totalFrames * speccamera->m_iWidth * 224 * sizeof(unsigned short), fp);
|
||||
// // qDebug()<<"光谱队列长度: "<<frameData.size()<<" ret : "<<ret;
|
||||
|
||||
// std::fflush(fp);
|
||||
// fclose(fp);
|
||||
// file_index++;
|
||||
// std::cout<<"save img success"<<std::endl;
|
||||
// qDebug()<<"test_count: "<<speccamera->test_count;
|
||||
// }
|
||||
// speccamera->frameData.clear();
|
||||
// speccamera->test_count = 0;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// // 检查是否已收集到足够的帧
|
||||
// if (speccamera->frameData_copy.size() == speccamera->totalFrames)
|
||||
// {
|
||||
// speccamera->vector_flag = 0;
|
||||
// // speccamera->vector_flag = 1;
|
||||
// // 处理这些帧,例如拼接成一张大图
|
||||
// speccamera->specfullImage = new unsigned short[speccamera->m_iWidth * 224 * speccamera->totalFrames];
|
||||
// for (int i = 0; i < speccamera->totalFrames; ++i)
|
||||
// {
|
||||
// memcpy(speccamera->specfullImage + i * speccamera->m_iWidth * 224, speccamera->frameData_copy[i], speccamera->m_iWidth * 224 * sizeof(unsigned short));
|
||||
// }
|
||||
// speccamera->specImgQueue.push(speccamera->specfullImage);
|
||||
|
||||
// if(save_flag)
|
||||
// {
|
||||
// static int file_index = 1;
|
||||
// std::string spec_filename = "E:/qt_tomato_passion/new/20240422/image/specImg/spec" + std::to_string(file_index);
|
||||
// FILE *fp = fopen(spec_filename.c_str(), "wb");
|
||||
|
||||
// int ret = fwrite(speccamera->specfullImage, 1, speccamera->totalFrames * speccamera->m_iWidth * 224 * sizeof(unsigned short), fp);
|
||||
// // qDebug()<<"光谱队列长度: "<<frameData.size()<<" ret : "<<ret;
|
||||
|
||||
// std::fflush(fp);
|
||||
// fclose(fp);
|
||||
// file_index++;
|
||||
// std::cout<<"save img success"<<std::endl;
|
||||
// qDebug()<<"test_count: "<<speccamera->test_count;
|
||||
// }
|
||||
// speccamera->frameData_copy.clear();
|
||||
// speccamera->test_count = 0;
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
void ProcessImg::processSpecSlots(unsigned short *data)
|
||||
{
|
||||
// // qDebug()<<"sssssssssssssssssssssssssssssss";
|
||||
// speccamera->frameData.push_back(data);
|
||||
// // 检查是否已收集到足够的帧
|
||||
// if (speccamera->frameData.size() == speccamera->totalFrames)
|
||||
// {
|
||||
// // 处理这些帧,例如拼接成一张大图
|
||||
|
||||
// speccamera->specfullImage = new unsigned short[speccamera->m_iWidth * 50 * speccamera->totalFrames];
|
||||
// for (int i = 0; i < speccamera->totalFrames + 1; i++)
|
||||
// {
|
||||
// memcpy(speccamera->specfullImage + i * speccamera->m_iWidth * 50, speccamera->frameData[i], speccamera->m_iWidth * 50 * sizeof(unsigned short));
|
||||
// }
|
||||
// speccamera->specImgQueue.push(data);
|
||||
|
||||
|
||||
// speccamera->frameData.clear();
|
||||
// speccamera->test_count = 0;
|
||||
// }
|
||||
}
|
||||
|
||||
//接收线程
|
||||
RecvThread::RecvThread(QObject *parent) : QThread(parent)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
RecvThread::~RecvThread()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void RecvThread::run()
|
||||
{
|
||||
|
||||
|
||||
QString rePipe = "\\\\.\\pipe\\rgb_send";
|
||||
|
||||
// 创建并连接到命名管道
|
||||
HANDLE RPipe = CreateFile(
|
||||
(LPCWSTR)rePipe.utf16(), // 管道名称
|
||||
GENERIC_READ, // 更改为读取访问
|
||||
0, // 不共享
|
||||
NULL, // 默认安全属性
|
||||
OPEN_EXISTING, // 打开现有管道
|
||||
FILE_ATTRIBUTE_NORMAL, // 默认属性
|
||||
NULL // 没有模板文件
|
||||
);
|
||||
|
||||
if (RPipe == INVALID_HANDLE_VALUE) {
|
||||
qWarning() << "Failed to open pipe for reading:" << GetLastError();
|
||||
return;
|
||||
}
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
||||
// 读取各个部分的数据
|
||||
quint16 long_axis, short_axis, defect_num;
|
||||
quint32 total_defect_area, imgSize;
|
||||
DWORD readBytes;
|
||||
|
||||
ReadFile(RPipe, &long_axis, sizeof(long_axis), &readBytes, NULL);
|
||||
long_axis = qFromBigEndian(long_axis);
|
||||
|
||||
|
||||
ReadFile(RPipe, &short_axis, sizeof(short_axis), &readBytes, NULL);
|
||||
short_axis = qFromBigEndian(short_axis);
|
||||
|
||||
ReadFile(RPipe, &defect_num, sizeof(defect_num), &readBytes, NULL);
|
||||
defect_num = qFromBigEndian(defect_num);
|
||||
|
||||
ReadFile(RPipe, &total_defect_area, sizeof(total_defect_area), &readBytes, NULL);
|
||||
total_defect_area = qFromBigEndian(total_defect_area);
|
||||
|
||||
ReadFile(RPipe, &imgSize, sizeof(imgSize), &readBytes, NULL);
|
||||
imgSize = qFromBigEndian(imgSize);
|
||||
|
||||
// 读取图像数据
|
||||
// 根据图像大小读取图像数据
|
||||
QByteArray imageData;
|
||||
imageData.resize(imgSize - 4); // 减去4字节的长度信息
|
||||
if (!ReadFile(RPipe, imageData.data(), imgSize - 4, &readBytes, NULL) || readBytes != imgSize - 4) {
|
||||
qDebug() << "Failed to read image data."<< readBytes;
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
// QByteArray imageData;
|
||||
// imageData.resize(imgSize);
|
||||
// ReadFile(RPipe, imageData.data(), imgSize, &readBytes, NULL);
|
||||
qDebug()<<"long_axis: "<<long_axis<<"short_axis: "<<short_axis<<"defect_num: "<<defect_num<<"total_defect_area: "<<total_defect_area<<"imgSize: "<<imgSize;
|
||||
|
||||
|
||||
// qDebug()<<"imageData: "<<imageData.size();
|
||||
|
||||
QImage image;
|
||||
QBuffer buffer(&imageData);
|
||||
buffer.open(QIODevice::ReadOnly);
|
||||
|
||||
if (image.load(&buffer, "bmp")) { // 指定假定的图像格式,如BMP
|
||||
|
||||
emit recv_Data(long_axis,short_axis,defect_num,total_defect_area,image);
|
||||
// 可以在此处添加进一步的图像处理或显示代码
|
||||
} else {
|
||||
qDebug() << "Failed to load image.";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// CloseHandle(RPipe); // Make sure to close the pipe handle
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//发送线程
|
||||
SendThread::SendThread(QObject *parent) : QThread(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
SendThread::~SendThread()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
bool SendThread::sendData(HANDLE &hPipe, const QByteArray &data)
|
||||
{
|
||||
DWORD bytesWritten;
|
||||
if (!WriteFile(hPipe, data.constData(), static_cast<DWORD>(data.size()), &bytesWritten, nullptr) || bytesWritten == 0) {
|
||||
DWORD dwError = GetLastError();
|
||||
qDebug() << "Failed to write to pipe or no bytes written. Error:" << dwError;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
HANDLE SendThread::reconnect(const QString &pipeName)
|
||||
{
|
||||
CloseHandle(hPipe); // Close the old handle before reconnecting
|
||||
HANDLE hPipe = CreateFile((LPCWSTR)pipeName.utf16(), GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if (hPipe == INVALID_HANDLE_VALUE) {
|
||||
qWarning() << "Failed to connect to pipe:" << GetLastError();
|
||||
}
|
||||
return hPipe;
|
||||
}
|
||||
|
||||
void SendThread::SendImgToPython()
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
void SendThread::run()
|
||||
{
|
||||
|
||||
QString pipeName = "\\\\.\\pipe\\rgb_receive";
|
||||
|
||||
// 创建并连接到命名管道
|
||||
hPipe = CreateFile(
|
||||
(LPCWSTR)pipeName.utf16(), // 管道名称
|
||||
GENERIC_WRITE, // 写入访问
|
||||
0, // 不共享
|
||||
NULL, // 默认安全属性
|
||||
OPEN_EXISTING, // 打开现有管道
|
||||
FILE_ATTRIBUTE_NORMAL, // 默认属性
|
||||
NULL // 没有模板文件
|
||||
);
|
||||
|
||||
QString pipeName2 = "\\\\.\\pipe\\spec_receive";
|
||||
DWORD written;
|
||||
|
||||
// 创建并连接到命名管道(光谱相机发送)
|
||||
specPipe = CreateFile(
|
||||
(LPCWSTR)pipeName2.utf16(), // 管道名称
|
||||
GENERIC_WRITE, // 写入访问
|
||||
0, // 不共享
|
||||
NULL, // 默认安全属性
|
||||
OPEN_EXISTING, // 打开现有管道
|
||||
FILE_ATTRIBUTE_NORMAL, // 默认属性
|
||||
NULL // 没有模板文件
|
||||
);
|
||||
|
||||
|
||||
|
||||
while(1)
|
||||
{
|
||||
// cameraL->rightImgQueue.pop();
|
||||
// cameraL->rightImgQueue.pop();
|
||||
// cameraL->topImgMQueue.pop();
|
||||
// cameraL->topImgBQueue.pop();
|
||||
// cameraL->topImgBQueue.pop();
|
||||
|
||||
//(cameraL->topImgTQueue.size()>5)&&(cameraL->topImgMQueue.size()>5)&&(cameraL->topImgBQueue.size()>5)&&(cameraL->leftImgQueue.size()>5)&&(cameraL->rightImgQueue.size()>5)
|
||||
if(speccamera->specImgQueue.size()>3)
|
||||
{
|
||||
QTime starttime = QTime::currentTime();
|
||||
QImage temp[5];
|
||||
temp[0] = cameraL->topImgTQueue.front();
|
||||
cameraL->topImgTQueue.pop();
|
||||
qDebug()<<"顶部相机顶队列大小:"<<cameraL->topImgTQueue.size();
|
||||
temp[1] = cameraL->topImgMQueue.front();
|
||||
cameraL->topImgMQueue.pop();
|
||||
qDebug()<<"顶部相机中队列大小:"<<cameraL->topImgMQueue.size();
|
||||
temp[2] = cameraL ->topImgBQueue.front();
|
||||
cameraL -> topImgBQueue.pop();
|
||||
qDebug()<<"顶部相机下队列大小:"<<cameraL->topImgBQueue.size();
|
||||
temp[3] = cameraL->leftImgQueue.front();
|
||||
cameraL->leftImgQueue.pop();
|
||||
qDebug()<<"左侧相机队列大小:"<<cameraL->leftImgQueue.size();
|
||||
temp[4] = cameraL->rightImgQueue.front();
|
||||
cameraL->rightImgQueue.pop();
|
||||
qDebug()<<"右侧相机队列大小:"<<cameraL->rightImgQueue.size();
|
||||
for(int i=0;i<5;i++)
|
||||
{
|
||||
|
||||
// std::string filePath = "C:/tomato0410data/top/middle";
|
||||
// static int count = 1;
|
||||
// QString imgpath = QString("%1/%2.bmp").arg(QString::fromStdString(filePath)).arg(count);
|
||||
// count++;
|
||||
// QImage img(imgpath); // 读取图像
|
||||
|
||||
QByteArray imageData;
|
||||
QBuffer buffer(&imageData);
|
||||
|
||||
buffer.open(QIODevice::WriteOnly);
|
||||
temp[i].save(&buffer, "bmp"); // 将图片保存为 bmp 格式的字节流
|
||||
|
||||
|
||||
|
||||
// 创建一个新的 QByteArray 来包含长度和图像数据
|
||||
QByteArray lengthToSend;
|
||||
QDataStream lengthStream(&lengthToSend, QIODevice::WriteOnly);
|
||||
lengthStream.setByteOrder(QDataStream::BigEndian); // 确保字节顺序与接收方一致
|
||||
// 写入图像数据长度(4字节)
|
||||
lengthStream << quint32(imageData.size());
|
||||
|
||||
// 追加实际的图像数据
|
||||
lengthToSend.append(imageData);
|
||||
// qDebug()<<"lengthToSend: "<<lengthToSend.size();
|
||||
if (!sendData(hPipe, lengthToSend)) {
|
||||
qWarning() << "Failed to send data, attempting to reconnect...";
|
||||
hPipe = reconnect(pipeName);
|
||||
if (hPipe == INVALID_HANDLE_VALUE) return;
|
||||
if (!sendData(hPipe, lengthToSend)) return;
|
||||
return;
|
||||
}
|
||||
buffer.close(); // Ensure the buffer is closed after use
|
||||
|
||||
//qDebug() << "Image sent successfully, bytes written:" << lengthToSend.size();
|
||||
|
||||
msleep(10);
|
||||
qDebug()<<"光谱队列发送前长度: "<<speccamera->specImgQueue.size();
|
||||
|
||||
if(i==4)
|
||||
{
|
||||
unsigned short* specTemp = speccamera->specImgQueue.front();
|
||||
speccamera->specImgQueue.pop();
|
||||
qDebug()<<"光谱队列长度: "<<speccamera->specImgQueue.size();
|
||||
QByteArray specByte;
|
||||
specByte.append(reinterpret_cast<const char*>(specTemp),1024 * 224 * speccamera->totalFrames);
|
||||
QByteArray lengthToSend;
|
||||
QDataStream lengthStream(&lengthToSend, QIODevice::WriteOnly);
|
||||
lengthStream.setByteOrder(QDataStream::BigEndian); // 确保字节顺序与接收方一致
|
||||
// 写入图像数据长度(4字节)
|
||||
lengthStream << quint32(specByte.size());
|
||||
|
||||
// 追加实际的图像数据
|
||||
lengthToSend.append(specByte);
|
||||
DWORD written; // 确保声明这个变量
|
||||
BOOL success = WriteFile(
|
||||
specPipe,
|
||||
lengthToSend.constData(), // 发送包含长度的完整数据
|
||||
lengthToSend.size(), // 使用完整数据的大小
|
||||
&written,
|
||||
NULL
|
||||
);
|
||||
qDebug() << "write to pipe."<<lengthToSend.size()<<"success: "<<success;
|
||||
msleep(10);
|
||||
}
|
||||
}
|
||||
QTime stoptime = QTime::currentTime();
|
||||
qDebug()<<"发送五张图运行时间:"<<starttime.msecsTo(stoptime);
|
||||
}
|
||||
|
||||
}
|
||||
// CloseHandle(hPipe); // Make sure to close the pipe handle
|
||||
|
||||
|
||||
}
|
||||
92
thread.h
Normal file
92
thread.h
Normal file
@ -0,0 +1,92 @@
|
||||
#ifndef THREAD_H
|
||||
#define THREAD_H
|
||||
#include "QThread"
|
||||
#include "QFile"
|
||||
#include <queue>
|
||||
#include <QFileDialog>
|
||||
#include "camera.h"
|
||||
#include "queue"
|
||||
#include "QMutex"
|
||||
#include <QTcpServer>
|
||||
#include <QTcpSocket>
|
||||
#include "src/modbus.h"
|
||||
#include <QImage>
|
||||
|
||||
|
||||
class ProcessImg : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ProcessImg(QObject *parent = nullptr);
|
||||
~ProcessImg();
|
||||
|
||||
|
||||
void exitThread();
|
||||
QMutex stop_mutex;
|
||||
|
||||
|
||||
protected:
|
||||
void run();
|
||||
private:
|
||||
bool m_stop;
|
||||
|
||||
|
||||
signals:
|
||||
|
||||
|
||||
|
||||
|
||||
public slots:
|
||||
void processSpecSlots(unsigned short* data);
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
|
||||
class SendThread: public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
protected:
|
||||
void run();
|
||||
|
||||
public:
|
||||
explicit SendThread(QObject *parent = NULL);
|
||||
~SendThread();
|
||||
bool sendData(HANDLE &hPipe, const QByteArray &data);
|
||||
HANDLE reconnect(const QString &pipeName);
|
||||
private:
|
||||
HANDLE hPipe;
|
||||
HANDLE specPipe;
|
||||
void SendImgToPython();
|
||||
|
||||
signals:
|
||||
|
||||
private slots:
|
||||
//void sendimg_topySlots(cv::Mat img1,cv::Mat img2,cv::Mat img3,cv::Mat img4,cv::Mat img5);
|
||||
};
|
||||
|
||||
|
||||
class RecvThread: public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
protected:
|
||||
void run();
|
||||
|
||||
public:
|
||||
explicit RecvThread(QObject *parent = NULL);
|
||||
~RecvThread();
|
||||
|
||||
|
||||
|
||||
public slots:
|
||||
|
||||
|
||||
signals:
|
||||
|
||||
void recv_Data(quint16,quint16,quint16,quint32,QImage);
|
||||
};
|
||||
|
||||
|
||||
#endif // THREAD_H
|
||||
71
tomato1227.pro
Normal file
71
tomato1227.pro
Normal file
@ -0,0 +1,71 @@
|
||||
QT += core gui network
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
CONFIG += c++17
|
||||
|
||||
# You can make your code fail to compile if it uses deprecated APIs.
|
||||
# In order to do so, uncomment the following line.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
SOURCES += \
|
||||
camera.cpp \
|
||||
main.cpp \
|
||||
src/modbus-data.c \
|
||||
src/modbus-rtu.c \
|
||||
src/modbus-tcp.c \
|
||||
src/modbus.c \
|
||||
thread.cpp \
|
||||
widget.cpp
|
||||
|
||||
HEADERS += \
|
||||
camera.h \
|
||||
src/modbus-private.h \
|
||||
src/modbus-rtu-private.h \
|
||||
src/modbus-rtu.h \
|
||||
src/modbus-tcp-private.h \
|
||||
src/modbus-tcp.h \
|
||||
src/modbus-version.h \
|
||||
src/modbus.h \
|
||||
thread.h \
|
||||
widget.h
|
||||
|
||||
FORMS += \
|
||||
widget.ui
|
||||
|
||||
# Default rules for deployment.
|
||||
qnx: target.path = /tmp/$${TARGET}/bin
|
||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
!isEmpty(target.path): INSTALLS += target
|
||||
DISTFILES += \
|
||||
src/modbus.lib
|
||||
LIBS += -Ldll -lws2_32
|
||||
|
||||
|
||||
# rgb camera SDK
|
||||
#ROOT_DIR = $$PWD
|
||||
LIBS += -LF:projectNJFU/20240429(END)/sdk -lMvCameraControl
|
||||
INCLUDEPATH += F:/projectNJFU/20240429(END)/sdk/rgbcamera_sdk/Includes
|
||||
DEPENDPATH += F:/projectNJFU/20240429(END)/sdk/rgbcamera_sdk/Includes
|
||||
# LIBS +=-LE:/QT/projects/tomato20240415/tomato04150955 -lMvCameraControl
|
||||
# INCLUDEPATH += E:/QT/projects/tomato20240415/tomato04150955/rgbcamera_sdk/Includes
|
||||
# DEPENDPATH += E:/QT/projects/tomato20240415/tomato04150955/rgbcamera_sdk/Includes
|
||||
|
||||
|
||||
|
||||
|
||||
# opencv
|
||||
LIBS += -LF:/projectNJFU/20240429(END)/sdk/opencv -llibopencv_world344.dll
|
||||
LIBS += -LF:/projectNJFU/20240429(END)/sdk/opencv/Withcontrib -llibopencv_img_hash344.dll
|
||||
INCLUDEPATH += F:/projectNJFU/20240429(END)/sdk/opencv/Withcontrib/include
|
||||
INCLUDEPATH += F:/projectNJFU/20240429(END)/sdk/opencv/Withcontrib/include/opencv
|
||||
INCLUDEPATH += F:/projectNJFU/20240429(END)/sdk/opencv/Withcontrib/include/opencv2
|
||||
|
||||
# spec
|
||||
|
||||
LIBS += -LF:/projectNJFU/20240429(END)/sdk -lSpectrolDll
|
||||
INCLUDEPATH += F:/projectNJFU/20240429(END)/sdk
|
||||
DEPENDPATH += F:/projectNJFU/20240429(END)/sdk
|
||||
LIBS += -LF:/projectNJFU/20240429(END)/sdk -lSpectrolDll
|
||||
|
||||
RESOURCES +=
|
||||
264
tomato1227.pro.user
Normal file
264
tomato1227.pro.user
Normal file
@ -0,0 +1,264 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 11.0.3, 2024-05-11T16:32:05. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{0b75770b-fd0a-46a4-bbf9-c9fd6b2a44bc}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="qlonglong">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.tintMarginArea">true</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
|
||||
<value type="bool" key="AutoTest.Framework.Boost">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.CTest">false</value>
|
||||
<value type="bool" key="AutoTest.Framework.Catch">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.GTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
|
||||
<value type="int" key="AutoTest.RunAfterBuild">0</value>
|
||||
<value type="bool" key="AutoTest.UseGlobal">true</value>
|
||||
<valuemap type="QVariantMap" key="ClangTools">
|
||||
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
|
||||
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
|
||||
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">8</value>
|
||||
<value type="bool" key="ClangTools.PreferConfigFile">true</value>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
|
||||
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5152.win64_mingw81_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:\projectNJFU\20240429(END)\sdk</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">F:/projectNJFU/20240429(END)/sdk</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:\tomato\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">F:/tomato/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Release</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:\tomato\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">F:/tomato/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Profile</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
<value type="int" key="SeparateDebugInfo">0</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
|
||||
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="bool" key="PE.EnvironmentAspect.PrintOnRun">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">tomato12272</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:F:/projectNJFU/20240429(END)/code/tomato1227.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">F:/projectNJFU/20240429(END)/code/tomato1227.pro</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">F:/projectNJFU/20240429(END)/sdk</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="qlonglong">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
263
tomato1227.pro.user.0362ffc
Normal file
263
tomato1227.pro.user.0362ffc
Normal file
@ -0,0 +1,263 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 10.0.2, 2024-01-16T17:03:55. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{0362ffc6-07c5-459f-9588-e5db68ec6f9e}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="qlonglong">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.tintMarginArea">true</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
|
||||
<value type="bool" key="AutoTest.Framework.Boost">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.CTest">false</value>
|
||||
<value type="bool" key="AutoTest.Framework.Catch">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.GTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
|
||||
<value type="int" key="AutoTest.RunAfterBuild">0</value>
|
||||
<value type="bool" key="AutoTest.UseGlobal">true</value>
|
||||
<valuemap type="QVariantMap" key="ClangTools">
|
||||
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
|
||||
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
|
||||
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">10</value>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
|
||||
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5152.win64_mingw81_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\86198\Desktop\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/86198/Desktop/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\86198\Desktop\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/86198/Desktop/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Release</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\86198\Desktop\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/86198/Desktop/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Profile</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
<value type="int" key="SeparateDebugInfo">0</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
|
||||
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:C:/Users/86198/Desktop/tomato1227/tomato1227.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">C:/Users/86198/Desktop/tomato1227/tomato1227.pro</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">C:/Users/86198/Desktop/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="qlonglong">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
263
tomato1227.pro.user.0b75770
Normal file
263
tomato1227.pro.user.0b75770
Normal file
@ -0,0 +1,263 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 11.0.3, 2024-01-16T12:00:39. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{0b75770b-fd0a-46a4-bbf9-c9fd6b2a44bc}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="qlonglong">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.tintMarginArea">true</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
|
||||
<value type="bool" key="AutoTest.Framework.Boost">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.CTest">false</value>
|
||||
<value type="bool" key="AutoTest.Framework.Catch">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.GTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
|
||||
<value type="int" key="AutoTest.RunAfterBuild">0</value>
|
||||
<value type="bool" key="AutoTest.UseGlobal">true</value>
|
||||
<valuemap type="QVariantMap" key="ClangTools">
|
||||
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
|
||||
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
|
||||
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">8</value>
|
||||
<value type="bool" key="ClangTools.PreferConfigFile">true</value>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
|
||||
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5152.win64_mingw81_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:\tomato\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">F:/tomato/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:\tomato\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">F:/tomato/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Release</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">F:\tomato\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">F:/tomato/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Profile</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
<value type="int" key="SeparateDebugInfo">0</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
|
||||
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="bool" key="PE.EnvironmentAspect.PrintOnRun">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:F:/tomato/tomato1227/tomato1227.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">F:/tomato/tomato1227/tomato1227.pro</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">F:/tomato/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="qlonglong">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
311
tomato1227.pro.user.1009ea2
Normal file
311
tomato1227.pro.user.1009ea2
Normal file
@ -0,0 +1,311 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 12.0.1, 2024-01-26T09:23:55. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{1009ea28-efb8-46ce-b0b8-d4f802a27ecf}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="qlonglong">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="int" key="EditorConfiguration.PreferAfterWhitespaceComments">0</value>
|
||||
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.tintMarginArea">true</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
|
||||
<value type="bool" key="AutoTest.Framework.Boost">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.CTest">false</value>
|
||||
<value type="bool" key="AutoTest.Framework.Catch">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.GTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
|
||||
<value type="int" key="AutoTest.RunAfterBuild">0</value>
|
||||
<value type="bool" key="AutoTest.UseGlobal">true</value>
|
||||
<valuemap type="QVariantMap" key="ClangTools">
|
||||
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
|
||||
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
|
||||
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">8</value>
|
||||
<value type="bool" key="ClangTools.PreferConfigFile">true</value>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
|
||||
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ClangdSettings">
|
||||
<value type="bool" key="blockIndexing">false</value>
|
||||
<value type="bool" key="useGlobalSettings">true</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5152.win64_mingw81_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Release</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Profile</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
<value type="int" key="SeparateDebugInfo">0</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.3">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\2024124</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/2024124</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">4</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
|
||||
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="int" key="Analyzer.Valgrind.Callgrind.CostFormat">0</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="bool" key="PE.EnvironmentAspect.PrintOnRun">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">tomato12272</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:C:/Users/succtech/Desktop/20240124_2223/tomato1227.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">C:/Users/succtech/Desktop/20240124_2223/tomato1227.pro</value>
|
||||
<value type="bool" key="ProjectExplorer.RunConfiguration.Customized">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">D:/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="qlonglong">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
263
tomato1227.pro.user.2ef3400
Normal file
263
tomato1227.pro.user.2ef3400
Normal file
@ -0,0 +1,263 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 10.0.2, 2024-01-17T15:17:03. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{2ef3400b-7837-46e6-9c79-6f91af76e1d5}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="qlonglong">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.tintMarginArea">true</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
|
||||
<value type="bool" key="AutoTest.Framework.Boost">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.CTest">false</value>
|
||||
<value type="bool" key="AutoTest.Framework.Catch">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.GTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
|
||||
<value type="int" key="AutoTest.RunAfterBuild">0</value>
|
||||
<value type="bool" key="AutoTest.UseGlobal">true</value>
|
||||
<valuemap type="QVariantMap" key="ClangTools">
|
||||
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
|
||||
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
|
||||
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">2</value>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
|
||||
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5152.win64_mingw81_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">G:\project\tomato\tomato1227</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">G:/project/tomato/tomato1227</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">G:\project\tomato\tomato1227</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">G:/project/tomato/tomato1227</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">G:\project\tomato\tomato1227</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">G:/project/tomato/tomato1227</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
<value type="int" key="SeparateDebugInfo">0</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
|
||||
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:G:/project/tomato/tomato1227/tomato1227.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">G:/project/tomato/tomato1227/tomato1227.pro</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">G:/project/tomato/tomato1227</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="qlonglong">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
185
tomato1227.pro.user.81d103d
Normal file
185
tomato1227.pro.user.81d103d
Normal file
@ -0,0 +1,185 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 12.0.2, 2024-04-08T16:18:52. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{81d103d8-fd18-4f01-a65a-92e8628dbfcd}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="qlonglong">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="int" key="EditorConfiguration.PreferAfterWhitespaceComments">0</value>
|
||||
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.tintMarginArea">true</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
|
||||
<value type="bool" key="AutoTest.Framework.Boost">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.CTest">false</value>
|
||||
<value type="bool" key="AutoTest.Framework.Catch">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.GTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
|
||||
<value type="int" key="AutoTest.RunAfterBuild">0</value>
|
||||
<value type="bool" key="AutoTest.UseGlobal">true</value>
|
||||
<valuemap type="QVariantMap" key="ClangTools">
|
||||
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
|
||||
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
|
||||
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">2</value>
|
||||
<value type="bool" key="ClangTools.PreferConfigFile">true</value>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
|
||||
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5152.win64_mingw81_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">E:\QT\projects\0126tomato\20240124_2223</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">E:/QT/projects/0126tomato/20240124_2223</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
|
||||
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="int" key="Analyzer.Valgrind.Callgrind.CostFormat">0</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="bool" key="PE.EnvironmentAspect.PrintOnRun">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:E:/QT/projects/0126tomato/20240124_2223/tomato1227.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">E:/QT/projects/0126tomato/20240124_2223/tomato1227.pro</value>
|
||||
<value type="bool" key="ProjectExplorer.RunConfiguration.Customized">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">E:/QT/projects/0126tomato/20240124_2223</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="qlonglong">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
267
tomato1227.pro.user.a29e981
Normal file
267
tomato1227.pro.user.a29e981
Normal file
@ -0,0 +1,267 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 12.0.1, 2024-02-28T07:37:41. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{a29e9816-bd57-47f9-a79d-a2fcc651cb89}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="qlonglong">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="int" key="EditorConfiguration.PreferAfterWhitespaceComments">0</value>
|
||||
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.tintMarginArea">true</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
|
||||
<value type="bool" key="AutoTest.Framework.Boost">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.CTest">false</value>
|
||||
<value type="bool" key="AutoTest.Framework.Catch">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.GTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
|
||||
<value type="int" key="AutoTest.RunAfterBuild">0</value>
|
||||
<value type="bool" key="AutoTest.UseGlobal">true</value>
|
||||
<valuemap type="QVariantMap" key="ClangTools">
|
||||
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
|
||||
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
|
||||
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">8</value>
|
||||
<value type="bool" key="ClangTools.PreferConfigFile">true</value>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
|
||||
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5152.win64_mingw81_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\project\0126tomato\20240124_2223</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/project/0126tomato/20240124_2223</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\project\0126tomato\20240124_2223</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/project/0126tomato/20240124_2223</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">D:\project\0126tomato\20240124_2223</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">D:/project/0126tomato/20240124_2223</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
<value type="int" key="SeparateDebugInfo">0</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
|
||||
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="int" key="Analyzer.Valgrind.Callgrind.CostFormat">0</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="bool" key="PE.EnvironmentAspect.PrintOnRun">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:D:/project/0126tomato/20240124_2223/tomato1227.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">D:/project/0126tomato/20240124_2223/tomato1227.pro</value>
|
||||
<value type="bool" key="ProjectExplorer.RunConfiguration.Customized">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">D:/project/0126tomato/20240124_2223</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="qlonglong">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
267
tomato1227.pro.user.f5ab958
Normal file
267
tomato1227.pro.user.f5ab958
Normal file
@ -0,0 +1,267 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 12.0.1, 2024-01-22T20:59:52. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{f5ab958a-1c85-4aac-9ade-662345558262}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="qlonglong">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="int" key="EditorConfiguration.PreferAfterWhitespaceComments">0</value>
|
||||
<value type="bool" key="EditorConfiguration.PreferSingleLineComments">false</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="bool" key="EditorConfiguration.UseIndenter">false</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="QString" key="EditorConfiguration.ignoreFileTypes">*.md, *.MD, Makefile</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
<value type="bool" key="EditorConfiguration.skipTrailingWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.tintMarginArea">true</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<valuemap type="QVariantMap" key="AutoTest.ActiveFrameworks">
|
||||
<value type="bool" key="AutoTest.Framework.Boost">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.CTest">false</value>
|
||||
<value type="bool" key="AutoTest.Framework.Catch">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.GTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtQuickTest">true</value>
|
||||
<value type="bool" key="AutoTest.Framework.QtTest">true</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="AutoTest.CheckStates"/>
|
||||
<value type="int" key="AutoTest.RunAfterBuild">0</value>
|
||||
<value type="bool" key="AutoTest.UseGlobal">true</value>
|
||||
<valuemap type="QVariantMap" key="ClangTools">
|
||||
<value type="bool" key="ClangTools.AnalyzeOpenFiles">true</value>
|
||||
<value type="bool" key="ClangTools.BuildBeforeAnalysis">true</value>
|
||||
<value type="QString" key="ClangTools.DiagnosticConfig">Builtin.DefaultTidyAndClazy</value>
|
||||
<value type="int" key="ClangTools.ParallelJobs">8</value>
|
||||
<value type="bool" key="ClangTools.PreferConfigFile">true</value>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedDirs"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SelectedFiles"/>
|
||||
<valuelist type="QVariantList" key="ClangTools.SuppressedDiagnostics"/>
|
||||
<value type="bool" key="ClangTools.UseGlobalSettings">true</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="DeviceType">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.15.2 MinGW 64-bit</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5152.win64_mingw81_kit</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\succtech\Desktop\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/succtech/Desktop/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Debug</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\succtech\Desktop\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Release</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/succtech/Desktop/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Release</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Release</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="int" key="EnableQmlDebugging">0</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">C:\Users\succtech\Desktop\build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory.shadowDir">C:/Users/succtech/Desktop/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Profile</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<valuelist type="QVariantList" key="QtProjectManager.QMakeBuildStep.SelectedAbis"/>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">构建</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">清除</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.CustomParsers"/>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ParseStandardOutput">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Profile</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="int" key="QtQuickCompiler">0</value>
|
||||
<value type="int" key="SeparateDebugInfo">0</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="qlonglong" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">部署</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
|
||||
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.Perf.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<value type="int" key="Analyzer.Valgrind.Callgrind.CostFormat">0</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="CustomOutputParsers"/>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="bool" key="PE.EnvironmentAspect.PrintOnRun">false</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:C:/Users/succtech/Desktop/tomato2024120/tomato1227.pro</value>
|
||||
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">C:/Users/succtech/Desktop/tomato2024120/tomato1227.pro</value>
|
||||
<value type="bool" key="ProjectExplorer.RunConfiguration.Customized">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
<value type="QString" key="RunConfiguration.WorkingDirectory.default">C:/Users/succtech/Desktop/build-tomato1227-Desktop_Qt_5_15_2_MinGW_64_bit-Debug</value>
|
||||
</valuemap>
|
||||
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="qlonglong">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">22</value>
|
||||
</data>
|
||||
</qtcreator>
|
||||
272
tomatoLeft.mfs
Normal file
272
tomatoLeft.mfs
Normal file
@ -0,0 +1,272 @@
|
||||
# {05D8C294-F295-4dfb-9D01-096BD04049F4}
|
||||
# GenApi persistence file (version 3.0.1)
|
||||
# Device = HIKROBOT::HIKCamera -- HIKROBOT GigE Vision Camera Interface -- Device version = 1.2.0 -- Product GUID = EE4B7E09-DA29-4956-A1EC-212263331CFC -- Product version GUID = 79ace398-62e3-44a6-8845-f81aaf104382
|
||||
ReverseX 0
|
||||
ReverseY 0
|
||||
PixelFormat BayerRG8
|
||||
DecimationHorizontal DecimationHorizontal1
|
||||
DecimationVertical DecimationVertical1
|
||||
AcquisitionMode Continuous
|
||||
AcquisitionBurstFrameCount 1
|
||||
AcquisitionFrameRate 23.14
|
||||
AcquisitionFrameRateEnable 1
|
||||
TriggerCacheEnable 0
|
||||
ExposureMode Timed
|
||||
ExposureTimeMode Standard
|
||||
ExposureTime 1500
|
||||
ExposureAuto Off
|
||||
AutoExposureTimeLowerLimit 15
|
||||
AutoExposureTimeUpperLimit 42663
|
||||
HDREnable 0
|
||||
ActionDeviceKey 0
|
||||
ChunkModeActive 0
|
||||
CCMEnable 1
|
||||
ColorTransformationSelector RGBtoRGB
|
||||
ColorTransformationEnable 1
|
||||
ColorTransformationValueSelector Gain00
|
||||
Gain 0
|
||||
GainAuto Off
|
||||
AutoGainLowerLimit 0
|
||||
AutoGainUpperLimit 23.9812
|
||||
DigitalShiftEnable 0
|
||||
BlackLevel 240
|
||||
BlackLevelEnable 1
|
||||
BalanceWhiteAuto Continuous
|
||||
BalanceColorTemperatureMode NarrowMode
|
||||
UserSetDefault Default
|
||||
GevHeartbeatTimeout 3000
|
||||
GevGVCPHeartbeatDisable 0
|
||||
GevMCTT 0
|
||||
GevMCRC 0
|
||||
GevIEEE1588 0
|
||||
GevGVSPExtendedIDMode Off
|
||||
ActionSelector 0
|
||||
ActionGroupMask 0
|
||||
ActionSelector 0
|
||||
ActionSelector 0
|
||||
ActionGroupKey 0
|
||||
ActionSelector 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIUsageIntensity 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIUsageWhiteBalance 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
BinningSelector Region0
|
||||
BinningHorizontal BinningHorizontal1
|
||||
BinningSelector Region0
|
||||
BinningSelector Region0
|
||||
BinningVertical BinningVertical1
|
||||
BinningSelector Region0
|
||||
CounterSelector Counter0
|
||||
CounterEventSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterResetSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterValue 1
|
||||
CounterSelector Counter0
|
||||
DeviceLinkSelector 0
|
||||
DeviceLinkHeartbeatMode On
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
DeviceStreamChannelPacketSize 1500
|
||||
DeviceStreamChannelSelector 0
|
||||
EventSelector AcquisitionStart
|
||||
EventNotification Off
|
||||
EventSelector AcquisitionEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameStart
|
||||
EventNotification Off
|
||||
EventSelector FrameEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstStart
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstEnd
|
||||
EventNotification Off
|
||||
EventSelector ExposureStart
|
||||
EventNotification Off
|
||||
EventSelector ExposureEnd
|
||||
EventNotification Off
|
||||
EventSelector Line0RisingEdge
|
||||
EventNotification Off
|
||||
EventSelector Line0FallingEdge
|
||||
EventNotification Off
|
||||
EventSelector FrameStartOverTrigger
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
EventNotification Off
|
||||
EventSelector FrameTriggerWait
|
||||
EventNotification Off
|
||||
EventSelector AcquisitionStart
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet2
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet3
|
||||
FileOperationSelector Open
|
||||
FileSelector DPC
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance1
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance2
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance3
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet1
|
||||
FileSelector UserSet1
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet2
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet3
|
||||
FileOpenMode Read
|
||||
FileSelector DPC
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance1
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance2
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance3
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet1
|
||||
FrameSpecInfoSelector Timestamp
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Gain
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Exposure
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector BrightnessInfo
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector WhiteBalance
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Framecounter
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ExtTriggerCount
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector LineInputOutput
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ROIPosition
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPSPacketSize 1500
|
||||
GevStreamChannelSelector 0
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPD 400
|
||||
GevStreamChannelSelector 0
|
||||
HDRSelector 0
|
||||
HDRShutter 15
|
||||
HDRSelector 1
|
||||
HDRShutter 15
|
||||
HDRSelector 2
|
||||
HDRShutter 15
|
||||
HDRSelector 3
|
||||
HDRShutter 15
|
||||
HDRSelector 0
|
||||
HDRSelector 0
|
||||
HDRGain 0
|
||||
HDRSelector 1
|
||||
HDRGain 0
|
||||
HDRSelector 2
|
||||
HDRGain 0
|
||||
HDRSelector 3
|
||||
HDRGain 0
|
||||
HDRSelector 0
|
||||
LineSelector Line1
|
||||
LineMode Strobe
|
||||
LineSelector Line2
|
||||
LineMode Input
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineSource ExposureStartActive
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineInverter 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeEnable 0
|
||||
LineSelector Line0
|
||||
LineSelector Line0
|
||||
LineDebouncerTime 50
|
||||
LineSelector Line2
|
||||
LineDebouncerTime 50
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDuration 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDelay 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLinePreDelay 0
|
||||
LineSelector Line0
|
||||
RegionSelector Region0
|
||||
RegionDestination Stream0
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Width 2448
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Height 2048
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetX 0
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetY 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
TestPattern Off
|
||||
TestPatternGeneratorSelector Region0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerMode Off
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSource Line0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerActivation RisingEdge
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerDelay 0
|
||||
TriggerSelector FrameBurstStart
|
||||
DeviceConnectionSelector 0
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
BinningSelector Region0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
TriggerSelector FrameBurstStart
|
||||
HDRSelector 0
|
||||
LineSelector Line0
|
||||
ActionSelector 0
|
||||
CounterSelector Counter0
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
EventSelector AcquisitionStart
|
||||
AutoFunctionAOISelector AOI1
|
||||
UserSetSelector Default
|
||||
GevSupportedOptionSelector CommandsConcatenation
|
||||
GevStreamChannelSelector 0
|
||||
272
tomatoRight.mfs
Normal file
272
tomatoRight.mfs
Normal file
@ -0,0 +1,272 @@
|
||||
# {05D8C294-F295-4dfb-9D01-096BD04049F4}
|
||||
# GenApi persistence file (version 3.0.1)
|
||||
# Device = HIKROBOT::HIKCamera -- HIKROBOT GigE Vision Camera Interface -- Device version = 1.2.0 -- Product GUID = EE4B7E09-DA29-4956-A1EC-212263331CFC -- Product version GUID = 79ace398-62e3-44a6-8845-f81aaf104382
|
||||
ReverseX 0
|
||||
ReverseY 0
|
||||
PixelFormat BayerRG8
|
||||
DecimationHorizontal DecimationHorizontal1
|
||||
DecimationVertical DecimationVertical1
|
||||
AcquisitionMode Continuous
|
||||
AcquisitionBurstFrameCount 1
|
||||
AcquisitionFrameRate 23.14
|
||||
AcquisitionFrameRateEnable 1
|
||||
TriggerCacheEnable 0
|
||||
ExposureMode Timed
|
||||
ExposureTimeMode Standard
|
||||
ExposureTime 1500
|
||||
ExposureAuto Off
|
||||
AutoExposureTimeLowerLimit 15
|
||||
AutoExposureTimeUpperLimit 42663
|
||||
HDREnable 0
|
||||
ActionDeviceKey 0
|
||||
ChunkModeActive 0
|
||||
CCMEnable 1
|
||||
ColorTransformationSelector RGBtoRGB
|
||||
ColorTransformationEnable 1
|
||||
ColorTransformationValueSelector Gain00
|
||||
Gain 0
|
||||
GainAuto Off
|
||||
AutoGainLowerLimit 0
|
||||
AutoGainUpperLimit 23.9812
|
||||
DigitalShiftEnable 0
|
||||
BlackLevel 240
|
||||
BlackLevelEnable 1
|
||||
BalanceWhiteAuto Continuous
|
||||
BalanceColorTemperatureMode NarrowMode
|
||||
UserSetDefault Default
|
||||
GevHeartbeatTimeout 3000
|
||||
GevGVCPHeartbeatDisable 0
|
||||
GevMCTT 0
|
||||
GevMCRC 0
|
||||
GevIEEE1588 0
|
||||
GevGVSPExtendedIDMode Off
|
||||
ActionSelector 0
|
||||
ActionGroupMask 0
|
||||
ActionSelector 0
|
||||
ActionSelector 0
|
||||
ActionGroupKey 0
|
||||
ActionSelector 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIUsageIntensity 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIUsageWhiteBalance 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
BinningSelector Region0
|
||||
BinningHorizontal BinningHorizontal1
|
||||
BinningSelector Region0
|
||||
BinningSelector Region0
|
||||
BinningVertical BinningVertical1
|
||||
BinningSelector Region0
|
||||
CounterSelector Counter0
|
||||
CounterEventSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterResetSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterValue 1
|
||||
CounterSelector Counter0
|
||||
DeviceLinkSelector 0
|
||||
DeviceLinkHeartbeatMode On
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
DeviceStreamChannelPacketSize 1500
|
||||
DeviceStreamChannelSelector 0
|
||||
EventSelector AcquisitionStart
|
||||
EventNotification Off
|
||||
EventSelector AcquisitionEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameStart
|
||||
EventNotification Off
|
||||
EventSelector FrameEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstStart
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstEnd
|
||||
EventNotification Off
|
||||
EventSelector ExposureStart
|
||||
EventNotification Off
|
||||
EventSelector ExposureEnd
|
||||
EventNotification Off
|
||||
EventSelector Line0RisingEdge
|
||||
EventNotification Off
|
||||
EventSelector Line0FallingEdge
|
||||
EventNotification Off
|
||||
EventSelector FrameStartOverTrigger
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
EventNotification Off
|
||||
EventSelector FrameTriggerWait
|
||||
EventNotification Off
|
||||
EventSelector AcquisitionStart
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet2
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet3
|
||||
FileOperationSelector Open
|
||||
FileSelector DPC
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance1
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance2
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance3
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet1
|
||||
FileSelector UserSet1
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet2
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet3
|
||||
FileOpenMode Read
|
||||
FileSelector DPC
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance1
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance2
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance3
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet1
|
||||
FrameSpecInfoSelector Timestamp
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Gain
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Exposure
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector BrightnessInfo
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector WhiteBalance
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Framecounter
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ExtTriggerCount
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector LineInputOutput
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ROIPosition
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPSPacketSize 1500
|
||||
GevStreamChannelSelector 0
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPD 400
|
||||
GevStreamChannelSelector 0
|
||||
HDRSelector 0
|
||||
HDRShutter 15
|
||||
HDRSelector 1
|
||||
HDRShutter 15
|
||||
HDRSelector 2
|
||||
HDRShutter 15
|
||||
HDRSelector 3
|
||||
HDRShutter 15
|
||||
HDRSelector 0
|
||||
HDRSelector 0
|
||||
HDRGain 0
|
||||
HDRSelector 1
|
||||
HDRGain 0
|
||||
HDRSelector 2
|
||||
HDRGain 0
|
||||
HDRSelector 3
|
||||
HDRGain 0
|
||||
HDRSelector 0
|
||||
LineSelector Line1
|
||||
LineMode Strobe
|
||||
LineSelector Line2
|
||||
LineMode Input
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineSource ExposureStartActive
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineInverter 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeEnable 0
|
||||
LineSelector Line0
|
||||
LineSelector Line0
|
||||
LineDebouncerTime 50
|
||||
LineSelector Line2
|
||||
LineDebouncerTime 50
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDuration 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDelay 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLinePreDelay 0
|
||||
LineSelector Line0
|
||||
RegionSelector Region0
|
||||
RegionDestination Stream0
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Width 2448
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Height 2048
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetX 0
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetY 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
TestPattern Off
|
||||
TestPatternGeneratorSelector Region0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerMode Off
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSource Line0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerActivation RisingEdge
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerDelay 0
|
||||
TriggerSelector FrameBurstStart
|
||||
DeviceConnectionSelector 0
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
BinningSelector Region0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
TriggerSelector FrameBurstStart
|
||||
HDRSelector 0
|
||||
LineSelector Line0
|
||||
ActionSelector 0
|
||||
CounterSelector Counter0
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
EventSelector AcquisitionStart
|
||||
AutoFunctionAOISelector AOI1
|
||||
UserSetSelector Default
|
||||
GevSupportedOptionSelector CommandsConcatenation
|
||||
GevStreamChannelSelector 0
|
||||
279
tomatoTop.mfs
Normal file
279
tomatoTop.mfs
Normal file
@ -0,0 +1,279 @@
|
||||
# {05D8C294-F295-4dfb-9D01-096BD04049F4}
|
||||
# GenApi persistence file (version 3.0.1)
|
||||
# Device = HIKROBOT::HIKCamera -- HIKROBOT GigE Vision Camera Interface -- Device version = 1.2.0 -- Product GUID = EE4B7E09-DA29-4956-A1EC-212263331CFC -- Product version GUID = 79ace398-62e3-44a6-8845-f81aaf104382
|
||||
ReverseX 0
|
||||
ReverseY 0
|
||||
PixelFormat BayerRG8
|
||||
DecimationHorizontal DecimationHorizontal1
|
||||
DecimationVertical DecimationVertical1
|
||||
AcquisitionMode Continuous
|
||||
AcquisitionBurstFrameCount 1
|
||||
AcquisitionFrameRate 23.14
|
||||
AcquisitionFrameRateEnable 1
|
||||
TriggerCacheEnable 0
|
||||
ExposureMode Timed
|
||||
ExposureTimeMode Standard
|
||||
ExposureTime 1500
|
||||
ExposureAuto Off
|
||||
AutoExposureTimeLowerLimit 15
|
||||
AutoExposureTimeUpperLimit 42663
|
||||
HDREnable 0
|
||||
ActionDeviceKey 0
|
||||
ChunkModeActive 0
|
||||
CCMEnable 1
|
||||
ColorTransformationSelector RGBtoRGB
|
||||
ColorTransformationEnable 1
|
||||
ColorTransformationValueSelector Gain22
|
||||
Gain 0
|
||||
GainAuto Off
|
||||
AutoGainLowerLimit 0
|
||||
AutoGainUpperLimit 23.9812
|
||||
DigitalShiftEnable 0
|
||||
BlackLevel 240
|
||||
BlackLevelEnable 1
|
||||
BalanceWhiteAuto Off
|
||||
UserSetDefault Default
|
||||
GevHeartbeatTimeout 3000
|
||||
GevGVCPHeartbeatDisable 0
|
||||
GevMCTT 0
|
||||
GevMCRC 0
|
||||
GevIEEE1588 0
|
||||
GevGVSPExtendedIDMode Off
|
||||
ActionSelector 0
|
||||
ActionGroupMask 0
|
||||
ActionSelector 0
|
||||
ActionSelector 0
|
||||
ActionGroupKey 0
|
||||
ActionSelector 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIUsageIntensity 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIUsageWhiteBalance 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
BalanceRatioSelector Red
|
||||
BalanceRatio 1458
|
||||
BalanceRatioSelector Green
|
||||
BalanceRatio 1024
|
||||
BalanceRatioSelector Blue
|
||||
BalanceRatio 1957
|
||||
BalanceRatioSelector Red
|
||||
BinningSelector Region0
|
||||
BinningHorizontal BinningHorizontal1
|
||||
BinningSelector Region0
|
||||
BinningSelector Region0
|
||||
BinningVertical BinningVertical1
|
||||
BinningSelector Region0
|
||||
CounterSelector Counter0
|
||||
CounterEventSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterResetSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterValue 1
|
||||
CounterSelector Counter0
|
||||
DeviceLinkSelector 0
|
||||
DeviceLinkHeartbeatMode On
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
DeviceStreamChannelPacketSize 1500
|
||||
DeviceStreamChannelSelector 0
|
||||
EventSelector AcquisitionStart
|
||||
EventNotification Off
|
||||
EventSelector AcquisitionEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameStart
|
||||
EventNotification Off
|
||||
EventSelector FrameEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstStart
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstEnd
|
||||
EventNotification Off
|
||||
EventSelector ExposureStart
|
||||
EventNotification Off
|
||||
EventSelector ExposureEnd
|
||||
EventNotification Off
|
||||
EventSelector Line0RisingEdge
|
||||
EventNotification Off
|
||||
EventSelector Line0FallingEdge
|
||||
EventNotification Off
|
||||
EventSelector FrameStartOverTrigger
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
EventNotification Off
|
||||
EventSelector FrameTriggerWait
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet2
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet3
|
||||
FileOperationSelector Open
|
||||
FileSelector DPC
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance1
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance2
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance3
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet1
|
||||
FileSelector UserSet1
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet2
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet3
|
||||
FileOpenMode Read
|
||||
FileSelector DPC
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance1
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance2
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance3
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet1
|
||||
FrameSpecInfoSelector Timestamp
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Gain
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Exposure
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector BrightnessInfo
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector WhiteBalance
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Framecounter
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ExtTriggerCount
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector LineInputOutput
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ROIPosition
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPSPacketSize 1500
|
||||
GevStreamChannelSelector 0
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPD 400
|
||||
GevStreamChannelSelector 0
|
||||
HDRSelector 0
|
||||
HDRShutter 15
|
||||
HDRSelector 1
|
||||
HDRShutter 15
|
||||
HDRSelector 2
|
||||
HDRShutter 15
|
||||
HDRSelector 3
|
||||
HDRShutter 15
|
||||
HDRSelector 0
|
||||
HDRSelector 0
|
||||
HDRGain 0
|
||||
HDRSelector 1
|
||||
HDRGain 0
|
||||
HDRSelector 2
|
||||
HDRGain 0
|
||||
HDRSelector 3
|
||||
HDRGain 0
|
||||
HDRSelector 0
|
||||
LineSelector Line1
|
||||
LineMode Strobe
|
||||
LineSelector Line2
|
||||
LineMode Input
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineSource ExposureStartActive
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineInverter 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeEnable 0
|
||||
LineSelector Line0
|
||||
LineSelector Line0
|
||||
LineDebouncerTime 100
|
||||
LineSelector Line2
|
||||
LineDebouncerTime 50
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDuration 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDelay 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLinePreDelay 0
|
||||
LineSelector Line0
|
||||
RegionSelector Region0
|
||||
RegionDestination Stream0
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Width 880
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Height 1840
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetX 700
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetY 156
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
TestPattern Off
|
||||
TestPatternGeneratorSelector Region0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerMode On
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSource Line0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerActivation RisingEdge
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerDelay 0
|
||||
TriggerSelector FrameBurstStart
|
||||
DeviceConnectionSelector 0
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
BinningSelector Region0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
TriggerSelector FrameBurstStart
|
||||
HDRSelector 0
|
||||
LineSelector Line0
|
||||
ActionSelector 0
|
||||
CounterSelector Counter0
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
EventSelector StreamTransferOverflow
|
||||
BalanceRatioSelector Red
|
||||
AutoFunctionAOISelector AOI1
|
||||
UserSetSelector Default
|
||||
GevSupportedOptionSelector CommandsConcatenation
|
||||
GevStreamChannelSelector 0
|
||||
279
top.mfs
Normal file
279
top.mfs
Normal file
@ -0,0 +1,279 @@
|
||||
# {05D8C294-F295-4dfb-9D01-096BD04049F4}
|
||||
# GenApi persistence file (version 3.0.1)
|
||||
# Device = HIKROBOT::HIKCamera -- HIKROBOT GigE Vision Camera Interface -- Device version = 1.2.0 -- Product GUID = EE4B7E09-DA29-4956-A1EC-212263331CFC -- Product version GUID = 79ace398-62e3-44a6-8845-f81aaf104382
|
||||
ReverseX 0
|
||||
ReverseY 0
|
||||
PixelFormat BayerRG8
|
||||
DecimationHorizontal DecimationHorizontal1
|
||||
DecimationVertical DecimationVertical1
|
||||
AcquisitionMode Continuous
|
||||
AcquisitionBurstFrameCount 1
|
||||
AcquisitionFrameRate 23.14
|
||||
AcquisitionFrameRateEnable 1
|
||||
TriggerCacheEnable 0
|
||||
ExposureMode Timed
|
||||
ExposureTimeMode Standard
|
||||
ExposureTime 700
|
||||
ExposureAuto Off
|
||||
AutoExposureTimeLowerLimit 15
|
||||
AutoExposureTimeUpperLimit 42663
|
||||
HDREnable 0
|
||||
ActionDeviceKey 0
|
||||
ChunkModeActive 0
|
||||
CCMEnable 1
|
||||
ColorTransformationSelector RGBtoRGB
|
||||
ColorTransformationEnable 1
|
||||
ColorTransformationValueSelector Gain22
|
||||
Gain 0
|
||||
GainAuto Off
|
||||
AutoGainLowerLimit 0
|
||||
AutoGainUpperLimit 23.9812
|
||||
DigitalShiftEnable 0
|
||||
BlackLevel 240
|
||||
BlackLevelEnable 1
|
||||
BalanceWhiteAuto Off
|
||||
UserSetDefault Default
|
||||
GevHeartbeatTimeout 3000
|
||||
GevGVCPHeartbeatDisable 0
|
||||
GevMCTT 0
|
||||
GevMCRC 0
|
||||
GevIEEE1588 0
|
||||
GevGVSPExtendedIDMode Off
|
||||
ActionSelector 0
|
||||
ActionGroupMask 0
|
||||
ActionSelector 0
|
||||
ActionSelector 0
|
||||
ActionGroupKey 0
|
||||
ActionSelector 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIUsageIntensity 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIUsageWhiteBalance 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
BalanceRatioSelector Red
|
||||
BalanceRatio 1458
|
||||
BalanceRatioSelector Green
|
||||
BalanceRatio 1024
|
||||
BalanceRatioSelector Blue
|
||||
BalanceRatio 1957
|
||||
BalanceRatioSelector Red
|
||||
BinningSelector Region0
|
||||
BinningHorizontal BinningHorizontal1
|
||||
BinningSelector Region0
|
||||
BinningSelector Region0
|
||||
BinningVertical BinningVertical1
|
||||
BinningSelector Region0
|
||||
CounterSelector Counter0
|
||||
CounterEventSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterResetSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterValue 1
|
||||
CounterSelector Counter0
|
||||
DeviceLinkSelector 0
|
||||
DeviceLinkHeartbeatMode On
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
DeviceStreamChannelPacketSize 1500
|
||||
DeviceStreamChannelSelector 0
|
||||
EventSelector AcquisitionStart
|
||||
EventNotification Off
|
||||
EventSelector AcquisitionEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameStart
|
||||
EventNotification Off
|
||||
EventSelector FrameEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstStart
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstEnd
|
||||
EventNotification Off
|
||||
EventSelector ExposureStart
|
||||
EventNotification Off
|
||||
EventSelector ExposureEnd
|
||||
EventNotification Off
|
||||
EventSelector Line0RisingEdge
|
||||
EventNotification Off
|
||||
EventSelector Line0FallingEdge
|
||||
EventNotification Off
|
||||
EventSelector FrameStartOverTrigger
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
EventNotification Off
|
||||
EventSelector FrameTriggerWait
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet2
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet3
|
||||
FileOperationSelector Open
|
||||
FileSelector DPC
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance1
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance2
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance3
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet1
|
||||
FileSelector UserSet1
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet2
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet3
|
||||
FileOpenMode Read
|
||||
FileSelector DPC
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance1
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance2
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance3
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet1
|
||||
FrameSpecInfoSelector Timestamp
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Gain
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Exposure
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector BrightnessInfo
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector WhiteBalance
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Framecounter
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ExtTriggerCount
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector LineInputOutput
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ROIPosition
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPSPacketSize 1500
|
||||
GevStreamChannelSelector 0
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPD 400
|
||||
GevStreamChannelSelector 0
|
||||
HDRSelector 0
|
||||
HDRShutter 15
|
||||
HDRSelector 1
|
||||
HDRShutter 15
|
||||
HDRSelector 2
|
||||
HDRShutter 15
|
||||
HDRSelector 3
|
||||
HDRShutter 15
|
||||
HDRSelector 0
|
||||
HDRSelector 0
|
||||
HDRGain 0
|
||||
HDRSelector 1
|
||||
HDRGain 0
|
||||
HDRSelector 2
|
||||
HDRGain 0
|
||||
HDRSelector 3
|
||||
HDRGain 0
|
||||
HDRSelector 0
|
||||
LineSelector Line1
|
||||
LineMode Strobe
|
||||
LineSelector Line2
|
||||
LineMode Input
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineSource ExposureStartActive
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineInverter 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeEnable 0
|
||||
LineSelector Line0
|
||||
LineSelector Line0
|
||||
LineDebouncerTime 100
|
||||
LineSelector Line2
|
||||
LineDebouncerTime 50
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDuration 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDelay 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLinePreDelay 0
|
||||
LineSelector Line0
|
||||
RegionSelector Region0
|
||||
RegionDestination Stream0
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Width 848
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Height 2048
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetX 700
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetY 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
TestPattern Off
|
||||
TestPatternGeneratorSelector Region0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerMode On
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSource Line0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerActivation RisingEdge
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerDelay 0
|
||||
TriggerSelector FrameBurstStart
|
||||
DeviceConnectionSelector 0
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
BinningSelector Region0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
TriggerSelector FrameBurstStart
|
||||
HDRSelector 0
|
||||
LineSelector Line0
|
||||
ActionSelector 0
|
||||
CounterSelector Counter0
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
EventSelector StreamTransferOverflow
|
||||
BalanceRatioSelector Red
|
||||
AutoFunctionAOISelector AOI1
|
||||
UserSetSelector Default
|
||||
GevSupportedOptionSelector CommandsConcatenation
|
||||
GevStreamChannelSelector 0
|
||||
279
top2.mfs
Normal file
279
top2.mfs
Normal file
@ -0,0 +1,279 @@
|
||||
# {05D8C294-F295-4dfb-9D01-096BD04049F4}
|
||||
# GenApi persistence file (version 3.0.1)
|
||||
# Device = HIKROBOT::HIKCamera -- HIKROBOT GigE Vision Camera Interface -- Device version = 1.2.0 -- Product GUID = EE4B7E09-DA29-4956-A1EC-212263331CFC -- Product version GUID = 79ace398-62e3-44a6-8845-f81aaf104382
|
||||
ReverseX 0
|
||||
ReverseY 0
|
||||
PixelFormat BayerRG8
|
||||
DecimationHorizontal DecimationHorizontal1
|
||||
DecimationVertical DecimationVertical1
|
||||
AcquisitionMode Continuous
|
||||
AcquisitionBurstFrameCount 1
|
||||
AcquisitionFrameRate 23.14
|
||||
AcquisitionFrameRateEnable 1
|
||||
TriggerCacheEnable 0
|
||||
ExposureMode Timed
|
||||
ExposureTimeMode Standard
|
||||
ExposureTime 700
|
||||
ExposureAuto Off
|
||||
AutoExposureTimeLowerLimit 15
|
||||
AutoExposureTimeUpperLimit 42663
|
||||
HDREnable 0
|
||||
ActionDeviceKey 0
|
||||
ChunkModeActive 0
|
||||
CCMEnable 1
|
||||
ColorTransformationSelector RGBtoRGB
|
||||
ColorTransformationEnable 1
|
||||
ColorTransformationValueSelector Gain22
|
||||
Gain 0
|
||||
GainAuto Off
|
||||
AutoGainLowerLimit 0
|
||||
AutoGainUpperLimit 23.9812
|
||||
DigitalShiftEnable 0
|
||||
BlackLevel 240
|
||||
BlackLevelEnable 1
|
||||
BalanceWhiteAuto Off
|
||||
UserSetDefault Default
|
||||
GevHeartbeatTimeout 3000
|
||||
GevGVCPHeartbeatDisable 0
|
||||
GevMCTT 0
|
||||
GevMCRC 0
|
||||
GevIEEE1588 0
|
||||
GevGVSPExtendedIDMode Off
|
||||
ActionSelector 0
|
||||
ActionGroupMask 0
|
||||
ActionSelector 0
|
||||
ActionSelector 0
|
||||
ActionGroupKey 0
|
||||
ActionSelector 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIWidth 2448
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIHeight 2048
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetX 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIOffsetY 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOIUsageIntensity 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
AutoFunctionAOISelector AOI2
|
||||
AutoFunctionAOIUsageWhiteBalance 0
|
||||
AutoFunctionAOISelector AOI1
|
||||
BalanceRatioSelector Red
|
||||
BalanceRatio 1458
|
||||
BalanceRatioSelector Green
|
||||
BalanceRatio 1024
|
||||
BalanceRatioSelector Blue
|
||||
BalanceRatio 1957
|
||||
BalanceRatioSelector Red
|
||||
BinningSelector Region0
|
||||
BinningHorizontal BinningHorizontal1
|
||||
BinningSelector Region0
|
||||
BinningSelector Region0
|
||||
BinningVertical BinningVertical1
|
||||
BinningSelector Region0
|
||||
CounterSelector Counter0
|
||||
CounterEventSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterResetSource Off
|
||||
CounterSelector Counter0
|
||||
CounterSelector Counter0
|
||||
CounterValue 1
|
||||
CounterSelector Counter0
|
||||
DeviceLinkSelector 0
|
||||
DeviceLinkHeartbeatMode On
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
DeviceStreamChannelPacketSize 1500
|
||||
DeviceStreamChannelSelector 0
|
||||
EventSelector AcquisitionStart
|
||||
EventNotification Off
|
||||
EventSelector AcquisitionEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameStart
|
||||
EventNotification Off
|
||||
EventSelector FrameEnd
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstStart
|
||||
EventNotification Off
|
||||
EventSelector FrameBurstEnd
|
||||
EventNotification Off
|
||||
EventSelector ExposureStart
|
||||
EventNotification Off
|
||||
EventSelector ExposureEnd
|
||||
EventNotification Off
|
||||
EventSelector Line0RisingEdge
|
||||
EventNotification Off
|
||||
EventSelector Line0FallingEdge
|
||||
EventNotification Off
|
||||
EventSelector FrameStartOverTrigger
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
EventNotification Off
|
||||
EventSelector FrameTriggerWait
|
||||
EventNotification Off
|
||||
EventSelector StreamTransferOverflow
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet2
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet3
|
||||
FileOperationSelector Open
|
||||
FileSelector DPC
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance1
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance2
|
||||
FileOperationSelector Open
|
||||
FileSelector LUTLuminance3
|
||||
FileOperationSelector Open
|
||||
FileSelector UserSet1
|
||||
FileSelector UserSet1
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet2
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet3
|
||||
FileOpenMode Read
|
||||
FileSelector DPC
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance1
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance2
|
||||
FileOpenMode Read
|
||||
FileSelector LUTLuminance3
|
||||
FileOpenMode Read
|
||||
FileSelector UserSet1
|
||||
FrameSpecInfoSelector Timestamp
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Gain
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Exposure
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector BrightnessInfo
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector WhiteBalance
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Framecounter
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ExtTriggerCount
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector LineInputOutput
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector ROIPosition
|
||||
FrameSpecInfo 0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPSPacketSize 1500
|
||||
GevStreamChannelSelector 0
|
||||
GevStreamChannelSelector 0
|
||||
GevSCPD 400
|
||||
GevStreamChannelSelector 0
|
||||
HDRSelector 0
|
||||
HDRShutter 15
|
||||
HDRSelector 1
|
||||
HDRShutter 15
|
||||
HDRSelector 2
|
||||
HDRShutter 15
|
||||
HDRSelector 3
|
||||
HDRShutter 15
|
||||
HDRSelector 0
|
||||
HDRSelector 0
|
||||
HDRGain 0
|
||||
HDRSelector 1
|
||||
HDRGain 0
|
||||
HDRSelector 2
|
||||
HDRGain 0
|
||||
HDRSelector 3
|
||||
HDRGain 0
|
||||
HDRSelector 0
|
||||
LineSelector Line1
|
||||
LineMode Strobe
|
||||
LineSelector Line2
|
||||
LineMode Input
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineSource ExposureStartActive
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
LineInverter 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeEnable 0
|
||||
LineSelector Line0
|
||||
LineSelector Line0
|
||||
LineDebouncerTime 100
|
||||
LineSelector Line2
|
||||
LineDebouncerTime 50
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDuration 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLineDelay 0
|
||||
LineSelector Line0
|
||||
LineSelector Line1
|
||||
StrobeLinePreDelay 0
|
||||
LineSelector Line0
|
||||
RegionSelector Region0
|
||||
RegionDestination Stream0
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Width 880
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
Height 1840
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetX 700
|
||||
RegionSelector Region0
|
||||
RegionSelector Region0
|
||||
OffsetY 156
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
TestPattern Off
|
||||
TestPatternGeneratorSelector Region0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerMode On
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSource Line0
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerActivation RisingEdge
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerSelector FrameBurstStart
|
||||
TriggerDelay 0
|
||||
TriggerSelector FrameBurstStart
|
||||
DeviceConnectionSelector 0
|
||||
DeviceLinkSelector 0
|
||||
DeviceStreamChannelSelector 0
|
||||
RegionSelector Region0
|
||||
TestPatternGeneratorSelector Region0
|
||||
BinningSelector Region0
|
||||
FrameSpecInfoSelector Timestamp
|
||||
TriggerSelector FrameBurstStart
|
||||
HDRSelector 0
|
||||
LineSelector Line0
|
||||
ActionSelector 0
|
||||
CounterSelector Counter0
|
||||
FileSelector UserSet1
|
||||
FileOperationSelector Open
|
||||
EventSelector StreamTransferOverflow
|
||||
BalanceRatioSelector Red
|
||||
AutoFunctionAOISelector AOI1
|
||||
UserSetSelector Default
|
||||
GevSupportedOptionSelector CommandsConcatenation
|
||||
GevStreamChannelSelector 0
|
||||
1278
ui_widget.h
Normal file
1278
ui_widget.h
Normal file
File diff suppressed because it is too large
Load Diff
446
widget.cpp
Normal file
446
widget.cpp
Normal file
@ -0,0 +1,446 @@
|
||||
#include "widget.h"
|
||||
#include "ui_widget.h"
|
||||
#include "camera.h"
|
||||
#include <QDateTime>
|
||||
#include "QSemaphore"
|
||||
#include "vector"
|
||||
extern ProcessImg *processimg;
|
||||
extern SendThread *sendthread;
|
||||
extern RecvThread *recvthread;
|
||||
using namespace std;
|
||||
extern CameraL *cameraL;
|
||||
|
||||
extern SpecCamera *speccamera;
|
||||
|
||||
extern QSemaphore emptybuff;
|
||||
|
||||
bool is_timeout;
|
||||
extern tomato tomato;
|
||||
//起动标志位
|
||||
bool change_passionFlag = 0;
|
||||
bool change_tomatoFlag = 0;
|
||||
int start_flag=1;
|
||||
int save_flag=0;
|
||||
extern int camStatusret;
|
||||
extern int camStatusret1;
|
||||
extern int camStatusret2;
|
||||
extern int img_count;
|
||||
extern int img_count1;
|
||||
|
||||
extern int img_count2;
|
||||
|
||||
|
||||
int pipe_counter=1;
|
||||
modbus_t* CZ;
|
||||
Widget::Widget(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::Widget)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
processimg = new ProcessImg();
|
||||
sendthread = new SendThread();
|
||||
recvthread = new RecvThread();
|
||||
|
||||
|
||||
// connectModbus_CZ();
|
||||
initparam();
|
||||
|
||||
/**连接相机*/
|
||||
|
||||
|
||||
cameraL = new CameraL();
|
||||
bool ret = cameraL->initCameraL();
|
||||
|
||||
|
||||
if(camStatusret==0){
|
||||
ui->RGBstatus->setText("已连接");
|
||||
ui->RGBstatus->setStyleSheet("QLabel{color:rgb(0,255,0);}");
|
||||
}
|
||||
if(camStatusret1==0){
|
||||
ui->RGBstatus_1->setText("已连接");
|
||||
ui->RGBstatus_1->setStyleSheet("QLabel{color:rgb(0,255,0);}");
|
||||
|
||||
}
|
||||
if(camStatusret2==0){
|
||||
ui->RGBstatus_2->setText("已连接");
|
||||
ui->RGBstatus_2->setStyleSheet("QLabel{color:rgb(0,255,0);}");
|
||||
}
|
||||
speccamera = new SpecCamera();
|
||||
|
||||
bool ret3 = speccamera->init_SpecCamera();
|
||||
|
||||
|
||||
if(ret3==true){
|
||||
ui->spec_camera_status->setText("已连接");
|
||||
ui->spec_camera_status->setStyleSheet("QLabel{color:rgb(0,255,0);}");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Widget::~Widget()
|
||||
{
|
||||
delete ui;
|
||||
|
||||
// if(sendthread != nullptr)
|
||||
// {
|
||||
// delete sendthread;
|
||||
// sendthread = nullptr;
|
||||
// }
|
||||
|
||||
// if(recvthread != nullptr)
|
||||
// {
|
||||
// delete recvthread;
|
||||
// recvthread = nullptr;
|
||||
// }
|
||||
// if(processimg != nullptr)
|
||||
// {
|
||||
// delete processimg;
|
||||
// processimg = nullptr;
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
||||
void Widget::initparam()
|
||||
{
|
||||
camStatusret=-1;
|
||||
camStatusret1=-1;
|
||||
camStatusret2=-1;
|
||||
ui->tabWidget->setCurrentIndex(1);
|
||||
setMinimumSize(QSize(1200, 600));
|
||||
setWindowState(Qt::WindowMaximized);
|
||||
//初始化第一个相机参数
|
||||
ui->exSpinBox_left->setRange(0, 9999500.00);
|
||||
ui->exSpinBox_left->setSingleStep(0.01);
|
||||
ui->GainSpinBox_left->setRange(0, 16.98);
|
||||
ui->GainSpinBox_left->setSingleStep(0.01);
|
||||
ui->wbSpinBox_left_2->setRange(0, 4095);
|
||||
|
||||
//初始化第二个相机参数
|
||||
ui->exspinBox_right->setRange(0, 9999500.00);
|
||||
ui->exspinBox_right->setSingleStep(0.01);
|
||||
ui->GainspinBox_right->setRange(0, 16.98);
|
||||
ui->GainspinBox_right->setSingleStep(0.01);
|
||||
ui->wbspinBox_right->setRange(0, 4095);
|
||||
|
||||
//初始化第三个相机参数
|
||||
|
||||
|
||||
ui->exspinBox_top->setRange(0, 9999500.00);
|
||||
ui->exspinBox_top->setSingleStep(0.01);
|
||||
ui->GainspinBox_top->setRange(0, 16.98);
|
||||
ui->GainspinBox_top->setSingleStep(0.01);
|
||||
ui->wbspinBox_top->setRange(0, 4095);
|
||||
}
|
||||
|
||||
void Widget::connectModbus_CZ()
|
||||
{
|
||||
//称重模块
|
||||
int status = -1;
|
||||
CZ = modbus_new_rtu("COM7", 9600, 'N', 8, 1);
|
||||
modbus_set_slave(CZ, 3); //设置modbus从机地址
|
||||
status = modbus_connect(CZ);
|
||||
if(status == -1)
|
||||
{
|
||||
qDebug() << "modbus connect failed";
|
||||
ui->lowermachine_status->setText("未连接");
|
||||
ui->lowermachine_status->setStyleSheet("QLabel{color:rgb(255,0,0);}");
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << "status" << status;
|
||||
qDebug() << "connect plc success";
|
||||
ui->lowermachine_status->setStyleSheet("QLabel{background-color:rgb(0,255,0);}");
|
||||
ui->lowermachine_status->setText("已连接");
|
||||
}
|
||||
modbus_set_response_timeout(CZ, 0, 1000000);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void Widget::on_btn_start_clicked()
|
||||
{
|
||||
|
||||
|
||||
if(start_flag){
|
||||
|
||||
processimg->start();
|
||||
// sendthread->start();
|
||||
// recvthread->start();
|
||||
|
||||
speccamera->start_capture();
|
||||
connect(cameraL,SIGNAL(send_Rgbimage(QImage&)),this,SLOT(showimg(QImage&)),Qt::BlockingQueuedConnection);
|
||||
connect(cameraL,SIGNAL(send_Rgbimage1(QImage&)),this,SLOT(showimg1(QImage&)),Qt::BlockingQueuedConnection);
|
||||
connect(cameraL,SIGNAL(send_Rgbimage2(QImage&,QImage&,QImage&)),this,SLOT(showimg2(QImage&,QImage&,QImage&)),Qt::BlockingQueuedConnection);
|
||||
// connect(speccamera,SIGNAL(show_SpecImg(QImage)),this,SLOT(show_specImgSlots(QImage)));
|
||||
connect(recvthread,SIGNAL(recv_Data(quint16,quint16,quint16,quint32,QImage)),this,SLOT(receiveDataSlots(quint16,quint16,quint16,quint32,QImage)));
|
||||
|
||||
cameraL->set_acquisition_mode();
|
||||
cameraL->start_capture();
|
||||
ui->btn_start->setText("停止采集");
|
||||
start_flag=0;
|
||||
}else{
|
||||
cameraL->stop_capture();
|
||||
disconnect(cameraL,SIGNAL(send_Rgbimage(QImage&)),this,SLOT(showimg(QImage&)));
|
||||
disconnect(cameraL,SIGNAL(send_Rgbimage1(QImage&)),this,SLOT(showimg1(QImage&)));
|
||||
disconnect(cameraL,SIGNAL(send_Rgbimage2(QImage&,QImage&,QImage&)),this,SLOT(showimg2(QImage&,QImage&,QImage&)));
|
||||
speccamera->stop_capture();
|
||||
/*
|
||||
* 清除图片显示
|
||||
* */
|
||||
ui->showimg_left->clear();
|
||||
ui->showimg_right->clear();
|
||||
ui->label_topL->clear();
|
||||
ui->label_topM->clear();
|
||||
ui->label_topR->clear();
|
||||
|
||||
|
||||
qDebug() << "Stop Success!";
|
||||
|
||||
|
||||
ui->btn_start->setText("开始采集");
|
||||
start_flag=1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//右侧
|
||||
void Widget::showimg(QImage& img)
|
||||
{
|
||||
|
||||
pix = QPixmap::fromImage(img.scaled(ui->showimg_left->width(),ui->showimg_left->height(),Qt::KeepAspectRatio));
|
||||
ui->showimg_left->setScaledContents(true);
|
||||
ui->showimg_left->setPixmap(pix);
|
||||
ui->showimg_left->show();
|
||||
}
|
||||
|
||||
|
||||
//左侧
|
||||
void Widget::showimg1(QImage& img)
|
||||
{
|
||||
|
||||
pix = QPixmap::fromImage(img.scaled(ui->showimg_right->width(),ui->showimg_right->height(),Qt::KeepAspectRatio));
|
||||
ui->showimg_right->setScaledContents(true);
|
||||
ui->showimg_right->setPixmap(pix);
|
||||
ui->showimg_right->show();
|
||||
}
|
||||
|
||||
/*
|
||||
* 顶部相机槽函数
|
||||
* */
|
||||
void Widget::showimg2(QImage& img,QImage& img1,QImage& img2)
|
||||
{
|
||||
// pipe_counter++;
|
||||
// qDebug()<<"pipe_counter: "<<pipe_counter;
|
||||
pix = QPixmap::fromImage(img.scaled(ui->label_topL->width(),ui->label_topL->height(),Qt::KeepAspectRatio));
|
||||
ui->label_topL->setScaledContents(true);
|
||||
ui->label_topL->setPixmap(pix);
|
||||
ui->label_topL->show();
|
||||
|
||||
pix1 = QPixmap::fromImage(img1.scaled(ui->label_topM->width(),ui->label_topM->height(),Qt::KeepAspectRatio));
|
||||
ui->label_topM->setScaledContents(true);
|
||||
ui->label_topM->setPixmap(pix1);
|
||||
ui->label_topM->show();
|
||||
|
||||
pix2 = QPixmap::fromImage(img2.scaled(ui->label_topR->width(),ui->label_topR->height(),Qt::KeepAspectRatio));
|
||||
ui->label_topR->setScaledContents(true);
|
||||
ui->label_topR->setPixmap(pix2);
|
||||
ui->label_topR->show();
|
||||
}
|
||||
|
||||
void Widget::on_save_img_clicked()
|
||||
{
|
||||
save_flag=1;
|
||||
}
|
||||
|
||||
|
||||
void Widget::on_btn_PWenter_clicked()
|
||||
{
|
||||
QString password = "110";
|
||||
QString input = ui->lineEdit_password->text();
|
||||
if(input==password&&ui->lineEdit_user->text()!=""){
|
||||
ui->tabWidget->setCurrentIndex(1);
|
||||
}else if(input==password&&ui->lineEdit_user->text()==""){
|
||||
QMessageBox::information(this,"提示","请输入操作人员!");
|
||||
}else{
|
||||
QMessageBox::information(this,"提示","密码错误!");
|
||||
input.clear();
|
||||
ui->lineEdit_password->text();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Widget::on_btn_quit_clicked()
|
||||
{
|
||||
qApp->quit();
|
||||
}
|
||||
|
||||
|
||||
void Widget::on_btn_quit2_clicked()
|
||||
{
|
||||
qApp->quit();
|
||||
}
|
||||
|
||||
|
||||
void Widget::on_btn_save_clicked()
|
||||
{
|
||||
if(!save_flag){
|
||||
ui->btn_save->setText("不保存图片");
|
||||
save_flag=1;
|
||||
}else{
|
||||
ui->btn_save->setText("保存图片");
|
||||
save_flag=0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Widget::on_btn_setparam_clicked()
|
||||
{
|
||||
ui->tabWidget->setCurrentIndex(2);
|
||||
}
|
||||
|
||||
|
||||
void Widget::on_btn_enterparam_clicked()
|
||||
{
|
||||
// //left
|
||||
// Camera_param setL;
|
||||
// setL.exposure_time = ui->exSpinBox_left->text().toFloat();
|
||||
// setL.gain = ui->GainSpinBox_left->text().toDouble();
|
||||
// setL.white_balance_ratio = ui->wbSpinBox_left_2->text().toInt();
|
||||
|
||||
|
||||
// cameraL->set_param(setL);
|
||||
|
||||
// cameraL->stop_capture();
|
||||
// usleep(1000);
|
||||
|
||||
// cameraL->get_param();
|
||||
// if(!cameraL->save_config_file())
|
||||
// {
|
||||
// qDebug()<<"SAVE FAILED";
|
||||
// }
|
||||
// //right
|
||||
// Camera_paramR setsR;
|
||||
// setsR.exposure_time = ui->exspinBox_right->text().toFloat();
|
||||
// setsR.gain = ui->GainspinBox_right->text().toDouble();
|
||||
// setsR.white_balance_ratio = ui->wbspinBox_right->text().toInt();
|
||||
|
||||
// qDebug()<<setsR.exposure_time;
|
||||
// cameraR->set_param2(setsR);
|
||||
|
||||
// cameraR->stop_capture2();
|
||||
// usleep(1000);
|
||||
|
||||
// cameraR->get_param2();
|
||||
// if(!cameraR->save_config_file2())
|
||||
// {
|
||||
// qDebug()<<"SAVE FAILED";
|
||||
// }
|
||||
|
||||
// //top
|
||||
// Camera_paramTop settop;
|
||||
// settop.exposure_time = ui->exspinBox_top->text().toFloat();
|
||||
// settop.gain = ui->GainspinBox_top->text().toDouble();
|
||||
// settop.white_balance_ratio = ui->wbspinBox_top->text().toInt();
|
||||
|
||||
|
||||
// cameratop->set_param(settop);
|
||||
|
||||
// cameratop->stop_capture();
|
||||
// usleep(1000);
|
||||
|
||||
// cameratop->get_param();
|
||||
// if(!cameratop->save_config_file())
|
||||
// {
|
||||
// qDebug()<<"SAVE FAILED";
|
||||
// }
|
||||
// qDebug()<<"设置成功";
|
||||
}
|
||||
|
||||
|
||||
void Widget::on_btn_return_clicked()
|
||||
{
|
||||
ui->tabWidget->setCurrentIndex(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void Widget::on_passionBtn_clicked() //切换百香果模型
|
||||
{
|
||||
change_passionFlag = 1;
|
||||
change_tomatoFlag = 0;
|
||||
uint8_t send_buf_switch[13];
|
||||
send_buf_switch[0] = 0xAA;
|
||||
send_buf_switch[1] = 0x00;
|
||||
send_buf_switch[2] = 0x00;
|
||||
send_buf_switch[3] = 0x00;
|
||||
send_buf_switch[4] = 0x05;
|
||||
send_buf_switch[5] = ' ';
|
||||
send_buf_switch[6] = ' ';
|
||||
send_buf_switch[7] = 'P';
|
||||
send_buf_switch[8] = 'A';
|
||||
send_buf_switch[9] = 0xFF;
|
||||
send_buf_switch[10] = 0xFF;
|
||||
send_buf_switch[11] = 0xFF;
|
||||
send_buf_switch[12] = 0xBB;
|
||||
// sendthread->send_socket->write((const char*)send_buf_switch,sizeof(send_buf_switch));
|
||||
}
|
||||
|
||||
|
||||
void Widget::on_tomatoBtn_clicked() //切换番茄模型
|
||||
{
|
||||
change_tomatoFlag = 1;
|
||||
change_passionFlag = 0;
|
||||
uint8_t send_buf_switch[13];
|
||||
send_buf_switch[0] = 0xAA;
|
||||
send_buf_switch[1] = 0x00;
|
||||
send_buf_switch[2] = 0x00;
|
||||
send_buf_switch[3] = 0x00;
|
||||
send_buf_switch[4] = 0x05;
|
||||
send_buf_switch[5] = ' ';
|
||||
send_buf_switch[6] = ' ';
|
||||
send_buf_switch[7] = 'T';
|
||||
send_buf_switch[8] = 'O';
|
||||
send_buf_switch[9] = 0xFF;
|
||||
send_buf_switch[10] = 0xFF;
|
||||
send_buf_switch[11] = 0xFF;
|
||||
send_buf_switch[12] = 0xBB;
|
||||
// sendthread->send_socket->write((const char*)send_buf_switch,sizeof(send_buf_switch));
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Widget::receiveDataSlots(quint16 longD, quint16 shortD, quint16 QNum, quint32 QArea,QImage img)
|
||||
{
|
||||
img = img.rgbSwapped();
|
||||
|
||||
pix = QPixmap::fromImage(img.scaled(ui->show_resultsImg->width(),ui->show_resultsImg->height(),Qt::KeepAspectRatio));
|
||||
ui->show_resultsImg->setScaledContents(true);
|
||||
ui->show_resultsImg->setPixmap(pix);
|
||||
ui->show_resultsImg->show();
|
||||
ui->longdia_linedit->setText(QString::number(longD));
|
||||
ui->shortdia_linedit->setText(QString::number(shortD));
|
||||
ui->QueNum_linedit->setText(QString::number(QNum));
|
||||
ui->QArea_linedit->setText(QString::number(QArea));
|
||||
|
||||
}
|
||||
|
||||
void Widget::show_specImgSlots(QImage img)
|
||||
{
|
||||
// qDebug()<<"2";
|
||||
QTransform transform;
|
||||
transform.rotate(90.0);
|
||||
img = img.transformed(transform, Qt::FastTransformation);
|
||||
|
||||
pix = QPixmap::fromImage(img.scaled(ui->spec_camera_show->width(),ui->spec_camera_show->height(),Qt::KeepAspectRatio));
|
||||
ui->spec_camera_show->setScaledContents(true);
|
||||
ui->spec_camera_show->setPixmap(pix);
|
||||
ui->spec_camera_show->show();
|
||||
}
|
||||
|
||||
84
widget.h
Normal file
84
widget.h
Normal file
@ -0,0 +1,84 @@
|
||||
#ifndef WIDGET_H
|
||||
#define WIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
#include "QMessageBox"
|
||||
#include "thread.h"
|
||||
#include <unistd.h>
|
||||
#include "QMessageBox"
|
||||
#include "src/modbus.h"
|
||||
|
||||
#include <QImage>
|
||||
#define SAVE_IMAGE_PATH "F:/tomato/tomato1227/image/left"
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class Widget; }
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class Widget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Widget(QWidget *parent = nullptr);
|
||||
~Widget();
|
||||
void initparam();
|
||||
void connectModbus_CZ();
|
||||
|
||||
|
||||
private slots:
|
||||
void on_btn_start_clicked();
|
||||
|
||||
void showimg1(QImage&);
|
||||
void showimg(QImage&);
|
||||
void showimg2(QImage&,QImage&,QImage&);
|
||||
|
||||
|
||||
void on_save_img_clicked();
|
||||
|
||||
void on_btn_PWenter_clicked();
|
||||
|
||||
void on_btn_quit_clicked();
|
||||
|
||||
void on_btn_quit2_clicked();
|
||||
|
||||
void on_btn_save_clicked();
|
||||
|
||||
void on_btn_setparam_clicked();
|
||||
|
||||
void on_btn_enterparam_clicked();
|
||||
|
||||
void on_btn_return_clicked();
|
||||
|
||||
void on_passionBtn_clicked();
|
||||
|
||||
void on_tomatoBtn_clicked();
|
||||
|
||||
|
||||
void receiveDataSlots(quint16 longD,quint16 shortD,quint16 QNum,quint32 ,QImage img);
|
||||
|
||||
void show_specImgSlots(QImage);
|
||||
|
||||
private:
|
||||
Ui::Widget *ui;
|
||||
QPixmap pix;
|
||||
QPixmap pix1;
|
||||
QPixmap pix2;
|
||||
|
||||
int m_index;
|
||||
|
||||
|
||||
|
||||
//存图标志位
|
||||
int save_img=0;
|
||||
|
||||
//tcp变量
|
||||
|
||||
QTcpServer* server_to_lowermachine = nullptr;
|
||||
QTcpSocket* lower_machine = nullptr;
|
||||
volatile bool is_running = false;
|
||||
|
||||
|
||||
|
||||
};
|
||||
#endif // WIDGET_H
|
||||
Loading…
Reference in New Issue
Block a user